/* KINGWAY 504 — kingwayshop.com. Colours and type follow the offer PDFs. No external resources. */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-latin-900.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-latin-ext-900.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


/* Dark graphite theme — the dark bars of the offer PDFs, orange accents. */
:root {
  --orange: #EF7D00;
  --orange-light: #FFA640;     /* orange text/links on dark background (contrast) */
  --bg: #16181B;               /* page */
  --bg-alt: #1C1F23;           /* every other section */
  --bg-deep: #101214;          /* header, contact, footer */
  --surface: #24282D;          /* cards, chips, tables */
  --line: #30353C;
  --text: #D5D9DE;
  --heading: #FFFFFF;
  --muted: #9AA1AA;
  --radius: 6px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
a[href^="tel:"] { white-space: nowrap; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-light); }
a:hover { color: #fff; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 900; font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: -.01em; }
h2 { font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
strong { color: var(--heading); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--orange); color: #111; padding: 8px 12px; z-index: 10; }

/* ---------------------------------------------------------------- header */
/* light bar: the logo is always shown in its original colours */
.site-header { background: #FBFAF7; border-bottom: 3px solid var(--orange); color-scheme: light; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo img { height: 40px; width: auto; }
.header-phone { font-weight: 700; color: #1A1A1A; text-decoration: none; white-space: nowrap; display: none; }
.header-phone:hover { color: #B85F00; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 20px; border-radius: var(--radius); border: 2px solid var(--orange);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--orange); color: #111; }
.btn-primary:hover { background: #ff8f1a; color: #111; }
.btn-secondary { background: transparent; color: #fff; }
.btn-secondary:hover { background: var(--orange); color: #111; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 220px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 24px; }
.hero .subtitle { font-size: 1.25rem; color: var(--text); margin-bottom: 0; }
.chips { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips li {
  background: var(--surface); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px 12px; font-weight: 700; color: #fff; line-height: 1.25;
}
.hero-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.price {
  background: var(--bg-deep); color: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--radius); padding: 20px; margin: 4px 0 16px;
}
.price .amount { font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 900; line-height: 1.1; display: block; }
.price .amount small { font-size: .5em; font-weight: 400; }
.price .terms { color: var(--muted); font-size: .95rem; display: block; margin-top: 6px; }

/* ---------------------------------------------------------------- sections */
section { padding: 40px 0; }
main > section:nth-of-type(odd) { background: var(--bg-alt); }
.lead { font-size: 1.1rem; max-width: 760px; }
.dotlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.dotlist li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.dotlist li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}

.cards { display: grid; gap: 16px; }
.card { background: var(--surface); border-top: 3px solid var(--orange); border-radius: var(--radius); padding: 20px; }
.card .num { color: var(--orange-light); font-weight: 900; font-size: 1.3rem; display: block; margin-bottom: 4px; }
.card p { margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 2px 0;
}

/* technical data */
.specs { display: grid; gap: 0 32px; }
.specs table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .95rem; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs th { font-weight: 400; color: var(--muted); width: 46%; padding-right: 12px; hyphens: auto; overflow-wrap: break-word; }
.specs td { font-weight: 700; color: #fff; }

/* callout like the "Vorführung" box in the PDF */
.callout { background: var(--surface); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px; }
.callout p:last-child { margin-bottom: 0; }
.callout .address { font-size: 1.35rem; font-weight: 900; color: #fff; line-height: 1.3; }
.callout .address .eyebrow { margin-bottom: .2em; }
.eyebrow { display: block; color: var(--orange-light); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

main > section.dark { background: var(--bg-deep); border-top: 3px solid var(--orange); }
.contact-lines { font-size: 1.15rem; margin-bottom: 20px; }
.contact-lines a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-lines a:hover { color: var(--orange-light); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; padding: 22px 0 92px; /* room for the mobile call bar */ }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.site-footer .sep { color: #5C636C; }

/* mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(16, 18, 20, .97); border-top: 1px solid var(--line);
}
.callbar .btn { min-height: 46px; padding: 10px 12px; }

/* legal pages */
.legal { padding: 32px 0 48px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2em; }

/* lightbox (gallery) */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(5, 5, 6, .9); }
dialog.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; border-radius: var(--radius); }
dialog.lightbox p { color: #fff; margin: 8px 0 0; font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; }
dialog.lightbox button { background: var(--orange); border: 0; border-radius: var(--radius); font: 700 .95rem "Lato", sans-serif; padding: 8px 14px; cursor: pointer; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 720px) {
  .site-footer { padding-bottom: 22px; }
  .callbar { display: none; }
  .header-phone { display: inline; }
  .logo img { height: 48px; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  section { padding: 56px 0; }
}
@media (min-width: 980px) {
  .hero { padding: 44px 0 24px; }
  .hero-grid { grid-template-columns: 5fr 6fr; grid-template-areas: "text photo" "details photo"; gap: 8px 40px; }
  .hero-text { grid-area: text; align-self: end; }
  .hero-photo { grid-area: photo; align-self: center; }
  .hero-details { grid-area: details; align-self: start; margin-top: 16px; }
  .hero .actions .btn { flex-basis: 180px; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
@media print {
  .callbar, .site-header .header-phone, .actions { display: none !important; }
  html, body, main > section, .site-header, .site-footer { background: #fff !important; color: #000 !important; }
  h1, h2, h3, strong, .specs td, .chips li { color: #000 !important; }
}
