/* Mofas Oldtimer, Stylesheet
   Schriften lokal gehostet (SIL Open Font License), keine externen Ressourcen. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f4eee3;
  --paper-2: #ebe3d4;
  --card: #fffdf8;
  --ink: #1d211e;
  --muted: #555a52;
  --line: #d9cfbd;

  /* Farben aus der Sammlung: Condor-Orange, Postgelb, Pony-Grün, DKW-Oliv, Piaggio-Rot */
  --orange: #d8641b;
  --orange-ink: #a3470c;
  --yellow: #ecb62c;
  --green: #1f4b38;
  --olive: #7b7d24;
  --olive-ink: #5c5e16;
  --red: #b3302a;

  --radius: 18px;
  --shadow: 0 1px 2px rgb(40 30 10 / .06), 0 10px 28px -12px rgb(40 30 10 / .22);
  --wrap: 1180px;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
  text-wrap: balance;
}

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.label {
  font-family: var(--f-body);
  font-stretch: 125%;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}
.kicker { color: var(--orange-ink); margin-bottom: .9rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; }
.skip:focus { left: 16px; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 10px; }

/* 70er-Dekorstreifen wie auf Tank und Seitendeckel */
.stripes {
  height: 18px;
  background: linear-gradient(to bottom,
    var(--orange) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--green) 66.66% 100%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid var(--ink);
  font: 650 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-accent:hover { background: var(--yellow); border-color: var(--yellow); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(244 238 227 / .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--ink);
}
.brand-mark svg { width: 32px; height: auto; }
.brand-name { font: 700 1.3rem/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.brand-name small {
  display: block; margin-top: 4px; color: var(--muted);
  font: 650 .62rem/1.2 var(--f-body); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase;
}
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .5rem .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 550;
}
.nav a:hover { background: var(--paper-2); }
.nav-toggle { display: none; }

@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .55em 1em; border: 2px solid var(--ink); border-radius: 999px;
    background: transparent; color: var(--ink); font: 650 .95rem/1 var(--f-body); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav { width: 100%; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; padding: 6px 0 10px; }
  .js .nav a { padding: .75rem .5rem; border-radius: 10px; font-size: 1.1rem; }
}

/* Hero */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.9rem);
  font-weight: 720;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.02em;
}
.hl {
  background: linear-gradient(to top, var(--yellow) 0 .28em, transparent .28em);
  padding-inline: .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px;
  margin: 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stats dt { color: var(--muted); }
.stats dd {
  margin: 0; font: 700 2.3rem/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1;
  font-variant-numeric: lining-nums;
}
.stats-sep { font: 600 .9rem var(--f-body); color: var(--muted); margin-inline: .4em; vertical-align: middle; }

.hero-photo { position: relative; margin: 0; }
.hero-band {
  position: absolute; z-index: 0; top: 14%; left: 18%; width: 120%; height: 64%;
  border-radius: 999px 0 0 999px; transform: rotate(-9deg);
  background: linear-gradient(to bottom,
    var(--orange) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--green) 66.66% 100%);
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%;
  border: 10px solid var(--card); border-radius: 20px; box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.sticker {
  position: absolute; z-index: 2; left: -22px; bottom: -26px;
  width: 128px; height: 128px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow);
  transform: rotate(-10deg); border: 3px solid var(--ink);
}
.sticker .label { font-size: .62rem; }
.sticker strong { font: 750 2.1rem/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; }

@media (max-width: 920px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { max-width: 560px; margin-inline: auto; width: calc(100% - 20px); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, auto); gap: 16px 28px; }
  .stats dd { font-size: 2rem; }
  .sticker { width: 104px; height: 104px; left: -8px; }
  .sticker strong { font-size: 1.7rem; }
}

/* Parade */
.parade-wrap { background: var(--ink); padding: 26px 0 14px; }
.parade { overflow-x: auto; scrollbar-width: thin; }
.parade-track { list-style: none; margin: 0; padding: 0 0 0 16px; display: flex; width: max-content; }
.parade-track li { margin-right: 14px; }
.parade-track img { height: 180px; width: auto; border-radius: 12px; }
.parade-controls { display: flex; justify-content: flex-end; margin-top: 10px; }
.parade-toggle {
  display: none; background: transparent; color: var(--paper); border: 1px solid rgb(244 238 227 / .4);
  border-radius: 999px; padding: .35em .9em; font: 600 .8rem var(--f-body); cursor: pointer;
}
.parade-toggle:hover { border-color: var(--paper); }
.js .parade { overflow: hidden; }
.js .parade-toggle { display: inline-block; }
.parade-track.animate { padding-left: 0; animation: parade 110s linear infinite; }
.parade-track.animate.paused, .parade:hover .parade-track.animate { animation-play-state: paused; }
@keyframes parade { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .parade { overflow-x: auto; }
  .parade-track.animate { animation: none; }
  .js .parade-toggle { display: none; }
}
@media (max-width: 520px) { .parade-track img { height: 130px; } }

/* Sektionen */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 48px; margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); margin: 0; }
.section-head > p { max-width: 34em; color: var(--muted); margin: 0; }
.section-head-sm h3 { font-size: 2rem; margin: 0; }
@media (max-width: 700px) { .section { padding: 68px 0; } }

/* Filter */
.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.js .filters { display: flex; }
.chip {
  font: 600 .95rem/1 var(--f-body); padding: .65em 1.1em; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--card); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip .count { margin-left: .45em; opacity: .65; font-variant-numeric: tabular-nums; }

/* Karten */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px;
}
.card {
  --c: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 5px solid var(--c);
}
.card[hidden] { display: none; }
.card[data-marke="alpa"] { --c: var(--red); }
.card[data-marke="sachs"] { --c: var(--olive); }
.card[data-marke="pony"] { --c: var(--green); }
.card[data-marke="puch"] { --c: var(--orange); }
.card[data-marke="post"] { --c: var(--yellow); }
.card-media { display: block; aspect-ratio: 699 / 599; overflow: hidden; background: #e8e5df; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-media:hover img { transform: scale(1.04); }
.card-media:focus-visible { outline-offset: -4px; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.card-marke { display: flex; align-items: center; gap: .5em; color: var(--muted); }
.card-marke::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.card h3 { font-size: 1.5rem; margin: 2px 0 0; }
.card-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.card .badge { margin-top: auto; align-self: flex-start; }
.card .specs { margin-bottom: 10px; }

.specs {
  display: grid; gap: 5px; margin: 6px 0 0; padding-top: 10px;
  border-top: 1px dashed var(--line); font-size: .9rem;
}
.specs div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 10px; }
.specs dt {
  color: var(--muted); font-stretch: 125%; font-size: .68rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; padding-top: .2em;
}
.specs dd { margin: 0; }

.badge {
  display: inline-block; padding: .38em .8em; border-radius: 999px;
  font: 650 .78rem/1.2 var(--f-body);
}
.badge-neu { background: var(--green); color: var(--card); }
.badge-sanft { background: #e6e2c3; color: var(--olive-ink); }

/* Verzeichnis */
.register { margin-top: 80px; }
.table-wrap {
  overflow-x: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .65em 1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--ink); color: var(--paper);
  font-stretch: 125%; font-size: .7rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
}
tbody th { font-weight: 600; }
.group th {
  background: var(--paper-2); padding-top: 1em;
  font: 650 1.05rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0;
}
tbody tr:not(.group):hover > * { background: #fbf5ea; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ka { color: #6f726b; }
tbody td:nth-child(5) { white-space: nowrap; }
.z { white-space: nowrap; }
.z-neu::before, .z-sanft::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5em;
}
.z-neu::before { background: var(--green); }
.z-sanft::before { background: var(--olive); }
.note { color: var(--muted); font-size: .88rem; margin-top: 12px; }

/* Restaurierung */
.zustand { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.zustand-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.zustand-item p { margin: 12px 0 0; }
.steps {
  list-style: none; counter-reset: s; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.steps > li {
  counter-increment: s; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px;
}
.steps > li::before {
  content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px;
  font: 750 2.4rem/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--orange);
}
.steps h3 { font-size: 1.35rem; margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0 0 14px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: .78rem; padding: .3em .7em; border-radius: 6px;
  background: var(--paper); border: 1px dashed var(--line); color: var(--muted);
}
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 40px; padding: 32px 36px; border-radius: 24px; background: var(--ink); color: var(--paper);
}
.cta h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .3em; }
.cta p { margin: 0; color: rgb(244 238 227 / .8); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .steps, .zustand { grid-template-columns: 1fr; }
  .cta { padding: 26px 22px; }
}

/* PTT */
.section-post { background: var(--yellow); }
.section-post .kicker { color: var(--ink); }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.post-grid h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); }
.post-photo { margin: 0; }
.post-photo img { border: 10px solid var(--card); border-radius: 20px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.post-photo figcaption { margin-top: 18px; font-size: .92rem; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 3px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 14px; padding: 0 0 18px 20px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45em; width: 15px; height: 15px;
  border-radius: 50%; background: var(--red); border: 3px solid var(--ink);
}
.timeline-year { font: 750 1.35rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; gap: 40px; } .post-photo { max-width: 560px; } }

/* Rheinau */
.rheinau-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.rheinau-grid h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); }
.rheinau-grid > div > p { max-width: 36em; }
.h-small { font-size: 1.3rem; margin-top: 32px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: .45em .95em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 550; }
.sale {
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--orange);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.sale .label { color: var(--orange-ink); margin-bottom: .8rem; }
.sale h3 { font-size: 1.6rem; }
.sale p:not(.label) { color: var(--muted); }
@media (max-width: 860px) { .rheinau-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.contact-card {
  font-style: normal; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow);
}
.contact-card p { margin: 0 0 .25em; }
.contact-card .label { color: var(--orange-ink); margin-bottom: .9rem; }
.contact-name { font: 650 1.45rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100; margin-bottom: .4em !important; }
.mail a, .contact-card a { font-weight: 600; }

/* Lightbox */
.lightbox {
  width: min(1040px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .4);
  overflow: auto;
}
.lightbox::backdrop { background: rgb(18 20 18 / .82); }
.lb-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.lb-media { background: #e8e5df; }
.lb-media img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { padding: 32px 30px 28px; display: flex; flex-direction: column; gap: 8px; }
.lb-marke { color: var(--orange-ink); }
.lb-title { font-size: 2rem; margin: 0; }
.lb-meta { color: var(--muted); margin: 0; }
.lb-badge:empty { display: none; }
.lb-specs:empty { display: none; }
.lb-nav { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }
.lb-nav .btn { padding: .6em 1.1em; font-size: .92rem; }
.lb-close {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@media (max-width: 760px) {
  .lb-grid { grid-template-columns: 1fr; }
  .lb-info { padding: 22px 20px 20px; }
}

/* Footer */
.site-footer { background: var(--ink); color: rgb(244 238 227 / .8); }
.footer-inner { padding: 40px 0 48px; display: grid; gap: 6px; }
.footer-inner p { margin: 0; }
.footer-brand { font: 700 1.5rem/1.2 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--paper); margin-bottom: 8px !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px !important; }
.site-footer a { color: var(--yellow); }

/* Unterseite (Impressum) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); font-variation-settings: "SOFT" 100, "WONK" 1; }
.page h2 { font-size: 1.6rem; margin-top: 2em; }
.page address { font-style: normal; }

@media print {
  .site-header, .parade-wrap, .filters, .lightbox, .stripes, .hero-band { display: none !important; }
  body { background: #fff; }
  .section { padding: 24px 0; }
}
