/* ============================================================
   BAWEMO – Retro-Manufaktur Design System
   Orientiert an Logo (Kornblumenblau + fette Slab) & Fahrzeugfotos
   ============================================================ */

:root {
  /* Farben */
  --blue:      #3a4da2;   /* Kornblumenblau – Logo */
  --blue-dk:   #2c3a7d;
  --navy:      #1b2145;   /* Tiefsee */
  --cream:     #f6efdf;   /* Papier */
  --cream-2:   #efe6d1;
  --paper:     #fbf7ec;
  --oak:       #c2894a;   /* warmes Eichenholz */
  --oak-dk:    #a06d32;
  --orange:    #e07a35;   /* 90er-Akzent */
  --ink:       #241f18;   /* Text */
  --ink-soft:  #4d4638;
  --line:      #d8cba8;
  --white:     #ffffff;

  --shadow-sm: 0 2px 0 rgba(27,33,69,.10);
  --shadow-md: 6px 6px 0 rgba(27,33,69,.12);
  --shadow-lg: 10px 10px 0 rgba(27,33,69,.14);

  --wrap: 1180px;
  --radius: 4px;

  --font-display: "Alfa Slab One", Georgia, serif;
  --font-head:    "Zilla Slab", Georgia, serif;
  --font-body:    "Work Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(rgba(58,77,162,.035) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .5px;
}

/* ---------- Reusable bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 13px; color: var(--oak-dk);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 26px; min-height: 48px;
  border-radius: var(--radius); border: 2.5px solid var(--navy);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.badge-1974 {
  display: grid; place-items: center; text-align: center;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--blue); color: var(--cream);
  border: 3px solid var(--cream); box-shadow: 0 0 0 3px var(--blue);
  font-family: var(--font-head); line-height: 1.05; transform: rotate(-8deg);
}
.badge-1974 .yr { font-family: var(--font-display); font-size: 30px; display: block; }
.badge-1974 small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--navy);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.brand { font-family: var(--font-display); font-size: 30px; color: var(--navy); text-decoration: none; letter-spacing: 1px; }
.brand span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--navy); text-decoration: none; padding: 8px 14px; border-radius: var(--radius);
}
.nav a:hover { background: var(--cream-2); }
.nav a.active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--orange); }
.nav .tel { color: var(--white); background: var(--blue); padding: 10px 16px; }
.nav .tel:hover { background: var(--blue-dk); }
.burger { display: none; background: none; border: 2.5px solid var(--navy); border-radius: var(--radius);
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 22px; height: 2.5px; background: var(--navy); position: relative; }
.burger span::before { position: absolute; top: -7px; } .burger span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-top: 66px; padding-bottom: 66px; }
.hero h1 { color: var(--cream); font-size: clamp(38px, 6vw, 68px); margin: 14px 0 18px; }
.hero h1 .em { color: var(--orange); }
.hero p.lead { font-size: 20px; color: #d7d3e6; max-width: 46ch; }
.hero .eyebrow { color: #ffd9a8; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: var(--cream); border-color: var(--cream); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--navy); }
.hero-figure { position: relative; }
.hero-figure img { border: 4px solid var(--cream); box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.hero-figure .badge-1974 { position: absolute; right: -14px; bottom: -22px; }
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: -2px; height: 46px; color: var(--cream); }

/* ---------- Section framing ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--paper); border-top: 3px solid var(--line); border-bottom: 3px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 12px; }
.section-head p { font-size: 19px; color: var(--ink-soft); margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: var(--white); border: 2.5px solid var(--navy); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-md);
}
.feature .ico { width: 46px; height: 46px; color: var(--blue); margin-bottom: 14px; }
.feature h3 { font-size: 22px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------- Model cards ---------- */
.model-card {
  background: var(--white); border: 2.5px solid var(--navy); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.model-card .ph { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); border-bottom: 2.5px solid var(--navy); }
.model-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.model-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.model-card .kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--oak-dk); font-weight: 700; }
.model-card h3 { font-size: 26px; margin: 6px 0 10px; }
.model-card p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Split feature (Doppelboden) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.top { align-items: start; }

/* ---------- Coverflow (compact 3D image scroller) ---------- */
.coverflow { position: relative; margin: 0; }
.cf-viewport { position: relative; height: clamp(240px, 38vw, 360px); perspective: 1100px; overflow: hidden; }
.cf-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-slide { position: absolute; top: 50%; left: 50%;
  width: clamp(200px, 62%, 360px); height: clamp(180px, 32vw, 300px);
  will-change: transform, opacity; backface-visibility: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease; cursor: pointer; }
.cf-slide img { width: 100%; height: 100%; object-fit: contain; background: var(--cream-2);
  border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.cf-slide.is-center img { box-shadow: var(--shadow-lg); background: var(--white); cursor: zoom-in; }
.cf-slide:not(.is-center) img { cursor: pointer; }
.cf-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 120;
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  background: var(--cream); color: var(--navy); border: 3px solid var(--navy); border-radius: 50%;
  font-family: var(--font-display); font-size: 26px; line-height: 1; padding-bottom: 5px; box-shadow: var(--shadow-sm); }
.cf-btn:hover { background: var(--orange); }
.cf-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cf-prev { left: 6px; } .cf-next { right: 6px; }
.cf-caption { text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--ink-soft);
  margin: 14px 0 0; min-height: 1.3em; }
.cf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cf-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--navy);
  background: transparent; cursor: pointer; }
.cf-dot[aria-current="true"] { background: var(--orange); }
@media (prefers-reduced-motion: reduce) { .cf-slide { transition: none; } }
.split img { border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 16px; }
.ticklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.ticklist svg { width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 3px solid var(--navy);
  border-radius: var(--radius); overflow: hidden; background: var(--white); }
.stats .stat { padding: 28px 20px; text-align: center; border-right: 2px solid var(--line); }
.stats .stat:last-child { border-right: 0; }
.stats .num { font-family: var(--font-display); font-size: 40px; color: var(--blue); line-height: 1; }
.stats .lbl { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* ---------- Quote / story ---------- */
.quote { background: var(--blue); color: var(--cream); border-radius: var(--radius);
  border: 3px solid var(--navy); box-shadow: var(--shadow-lg); padding: 48px; position: relative; }
.quote .mark { font-family: var(--font-display); font-size: 90px; line-height: .6; color: rgba(255,255,255,.25); }
.quote blockquote { font-family: var(--font-head); font-size: clamp(21px, 2.6vw, 30px); line-height: 1.35; margin: 0 0 18px; }
.quote cite { font-style: normal; color: #ffd9a8; font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 3px solid var(--navy); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.data caption { text-align: left; font-family: var(--font-head); font-weight: 700; padding: 16px 18px; background: var(--cream-2); }
table.data th, table.data td { padding: 12px 16px; border-bottom: 1.5px solid var(--line); text-align: left; }
table.data thead th { background: var(--navy); color: var(--cream); font-family: var(--font-head); font-weight: 600; position: sticky; top: 0; }
table.data tbody tr:nth-child(even) { background: var(--cream); }
table.data td.num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Timeline (history) ---------- */
.timeline { position: relative; margin: 40px 0 0; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--oak); }
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--orange); border: 3px solid var(--navy); }
.tl-item .yr { font-family: var(--font-display); color: var(--blue); font-size: 24px; }
.tl-item h3 { margin: 2px 0 8px; font-size: 22px; }
.tl-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Gallery (masonry, natural aspect ratios – no cropping) ---------- */
.gallery { columns: 2; column-gap: 16px; }
.gallery img, .gallery figure { break-inside: avoid; margin: 0 0 16px; }
.gallery img {
  width: 100%; height: auto;              /* preserve the photo's real proportions */
  border: 2.5px solid var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--cream-2);
}
.gallery figure { display: block; }
.gallery figure img { margin-bottom: 8px; }
.gallery figcaption { font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--ink-soft); text-align: center; }
/* wide floor-plan drawings: give them the full width so nothing is cut off */
.gallery .plan { column-span: all; }
.gallery .plan img { background: var(--white); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--orange); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 16px; padding: 12px 14px; min-height: 48px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,77,162,.2); background: var(--white); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.check-row label { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 400; }
.check-row input { width: auto; min-height: auto; }
.form-note { font-size: 14px; color: var(--ink-soft); }

.contact-panel { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: 34px; }
.contact-panel h3 { color: var(--cream); }
.contact-panel a { color: #ffd9a8; }
.contact-panel .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-panel .row svg { width: 22px; height: 22px; color: var(--orange); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9c6dc; padding: 56px 0 30px; border-top: 5px solid var(--orange); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--cream); }
.site-footer h4 { font-family: var(--font-head); color: var(--cream); font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 14px; }
.site-footer a { color: #c9c6dc; text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--blue); color: var(--cream); padding: 60px 0; border-bottom: 4px solid var(--navy); position: relative; }
.page-hero h1 { color: var(--cream); font-size: clamp(34px,5vw,56px); margin: 10px 0 12px; }
.page-hero p { color: #e4e2f0; font-size: 19px; max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: #ffd9a8; }

.prose { max-width: 72ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-size: 26px; margin: 34px 0 12px; color: var(--navy); }

/* ---------- Lightbox ---------- */
main img { cursor: zoom-in; }
.hero-figure .badge-1974, .badge-1974, main .brand img { cursor: auto; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center;
  background: rgba(15,18,40,.92); padding: 24px; }
.lightbox.open { display: grid; animation: lb-fade .18s ease; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 92vh; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; object-fit: contain;
  border: 4px solid var(--cream); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: auto; }
.lightbox figcaption { color: var(--cream); font-family: var(--font-head); font-weight: 600; text-align: center; }
.lightbox .lb-close { position: fixed; top: 18px; right: 22px; width: 52px; height: 52px; cursor: pointer;
  background: var(--orange); color: var(--navy); border: 3px solid var(--navy); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 24px; line-height: 1; display: grid; place-items: center; }
.lightbox .lb-close:hover { background: var(--cream); }
.lightbox .lb-hint { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #d9d7ea; font-size: 15px; }
.lightbox .lb-count { font-family: var(--font-head); font-weight: 600; background: rgba(0,0,0,.35);
  padding: 6px 14px; border-radius: 999px; }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 58px; height: 58px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  background: var(--cream); color: var(--navy); border: 3px solid var(--navy); border-radius: 50%;
  font-family: var(--font-display); font-size: 30px; line-height: 1; padding-bottom: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: background .15s ease, transform .15s ease; }
.lightbox .lb-nav:hover { background: var(--orange); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-nav[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .lightbox .lb-nav { width: 48px; height: 48px; font-size: 24px; }
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--navy);
  padding: 10px 16px; font-family: var(--font-head); font-weight: 700; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 54px; }
  .hero-figure { order: -1; }
  .split, .grid-3, .grid-2, .stats, .site-footer .cols { grid-template-columns: 1fr; }
  .stats .stat { border-right: 0; border-bottom: 2px solid var(--line); }
  .stats .stat:last-child { border-bottom: 0; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 3px solid var(--navy); padding: 12px; gap: 6px;
    transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow-md); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; }
  .burger { display: inline-flex; }
  .quote { padding: 32px; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .gallery { columns: 1; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
