@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --porzellan: #EEF0F2;
  --porzellan-hell: #F8F9FA;
  --tusche: #1F2328;
  --tusche-weich: #4A525C;
  --weinrot: #8C1C2B;
  --weinrot-dunkel: #6E1521;
  --messing: #A8823D;
  --stoff: #2A3038;
  --naht: #C9CDD3;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --breite: 72rem;
  --rand: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--porzellan);
  color: var(--tusche);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--weinrot); text-underline-offset: 0.18em; }
a:hover { color: var(--weinrot-dunkel); }
:focus-visible { outline: 2px solid var(--weinrot); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }

.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 1rem; top: -4rem; background: var(--tusche); color: #fff; padding: 0.5rem 1rem; z-index: 20; }
.sprung:focus { top: 1rem; color: #fff; }

/* ---------- Kopfzeile ---------- */
.kopfzeile {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem var(--rand);
  background: color-mix(in srgb, var(--porzellan) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--naht) 60%, transparent);
}
.marke {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 600 1.15rem/1 var(--serif); letter-spacing: 0.08em; color: var(--tusche); text-decoration: none;
}
.marke svg { width: 1.6rem; fill: var(--weinrot); }
.kopfzeile nav { display: flex; gap: clamp(0.8rem, 2.5vw, 2rem); font-size: 0.95rem; margin-left: auto; }
.kopfzeile nav a { color: var(--tusche-weich); text-decoration: none; }
.kopfzeile nav a:hover { color: var(--tusche); text-decoration: underline; }
@media (max-width: 640px) { .kopfzeile nav { display: none; } }

/* ---------- Bühne (Hero) ---------- */
.buehne {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  max-width: 84rem; margin: 0 auto;
  min-height: calc(100svh - 3.6rem);
  padding: clamp(1.5rem, 4vw, 3rem) var(--rand) 2rem;
}
.buehne__text { max-width: 34rem; }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; color: var(--tusche-weich); margin-bottom: 1.4rem;
}
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--messing); box-shadow: 0 0 0 4px color-mix(in srgb, var(--messing) 22%, transparent); }
h1 {
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.einleitung { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--tusche-weich); max-width: 30rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.35rem;
  font: 600 0.98rem/1 var(--sans);
  color: var(--tusche); background: transparent;
  border: 1.5px solid var(--tusche); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.knopf:hover { background: var(--tusche); color: var(--porzellan); }
.knopf--voll { background: var(--weinrot); border-color: var(--weinrot); color: #fff; }
.knopf--voll:hover { background: var(--weinrot-dunkel); border-color: var(--weinrot-dunkel); color: #fff; }

.buehne__modell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.modell {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1.08; max-height: calc(100svh - 12.5rem);
  border-radius: 50% 50% 1.25rem 1.25rem / 38% 38% 1.25rem 1.25rem;
  background:
    radial-gradient(ellipse 60% 18% at 50% 92%, rgb(31 35 40 / 0.16), transparent 70%),
    linear-gradient(180deg, #E1E4E8 0%, #D2D7DD 62%, #C3C9D0 100%);
  overflow: hidden;
  touch-action: none;
}
.modell canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; cursor: grab; }
.modell canvas:active { cursor: grabbing; }
.modell.bereit canvas { opacity: 1; }
.modell__poster { position: absolute; inset: 6% 12% 0; width: 76%; height: 94%; object-fit: contain; object-position: bottom; mix-blend-mode: multiply; transition: opacity 0.6s ease; }
.modell.bereit .modell__poster { opacity: 0; }
.modell__laden { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; font-size: 0.85rem; color: var(--tusche-weich); }
.modell.bereit .modell__laden { display: none; }
.modell.ohne3d canvas { display: none; }
.modell.ohne3d .modell__poster { opacity: 1; }

.etiketten { position: absolute; inset: 0; pointer-events: none; }
.etikett {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; line-height: 1.2; white-space: nowrap;
  color: var(--tusche);
  transform: translate(-0.3rem, -50%);
  opacity: 0; transition: opacity 0.3s;
}
.etikett::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--weinrot); box-shadow: 0 0 0 3px rgb(255 255 255 / 0.85); flex: none; }
.etikett span { background: rgb(255 255 255 / 0.9); padding: 0.25rem 0.55rem; border-radius: 0.4rem; box-shadow: 0 1px 2px rgb(31 35 40 / 0.15); }
.etiketten.sichtbar .etikett { opacity: 1; }
.etikett.links { transform: translate(calc(-100% + 0.3rem), -50%); flex-direction: row-reverse; }

.steuerung { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.umschalter { display: inline-flex; padding: 0.2rem; border-radius: 999px; background: var(--porzellan-hell); border: 1px solid var(--naht); }
.umschalter button {
  font: 600 0.88rem/1 var(--sans); color: var(--tusche-weich);
  background: transparent; border: 0; border-radius: 999px;
  padding: 0.6rem 0.95rem; cursor: pointer;
}
.umschalter button:hover { color: var(--tusche); }
.umschalter button[aria-pressed="true"] { background: var(--tusche); color: var(--porzellan-hell); }
.hinweis { font-size: 0.85rem; color: var(--tusche-weich); text-align: center; }

@media (max-width: 880px) {
  .buehne { grid-template-columns: 1fr; min-height: 0; }
  .buehne__text { max-width: none; }
  .modell { max-height: 75svh; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7.5rem) var(--rand); }
.abschnitt > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.abschnitt--stoff {
  background-color: var(--stoff);
  /* feiner Nadelstreifen wie Anzugstoff */
  background-image: repeating-linear-gradient(90deg, transparent 0 22px, rgb(255 255 255 / 0.035) 22px 23px);
  color: #E6E8EB;
}
.abschnitt--stoff .vorwort { color: #B9C0C8; }
.abschnitt--stoff .knopf { color: #E6E8EB; border-color: #8A939D; margin: 2rem 0.6rem 0 0; }
.abschnitt--stoff .knopf:hover { background: #E6E8EB; color: var(--stoff); border-color: #E6E8EB; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.01em; max-width: 18ch; text-wrap: balance; }
.vorwort { margin-top: 1.2rem; max-width: 38rem; font-size: 1.1rem; color: var(--tusche-weich); }
h3 { font-size: 1.45rem; line-height: 1.2; }

/* Fähigkeiten */
.faehigkeiten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.faehigkeiten > div { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--naht); }
.faehigkeiten dt { font: 400 1.6rem/1.2 var(--serif); margin-bottom: 0.5rem; }
.faehigkeiten dd { margin: 0; color: var(--tusche-weich); max-width: 32rem; }

/* Vergleich */
.tabelle-rahmen { overflow-x: auto; margin-top: clamp(2rem, 4vw, 3rem); }
.vergleich { width: 100%; border-collapse: collapse; min-width: 34rem; }
.vergleich th, .vergleich td { text-align: left; padding: 1.05rem 1rem 1.05rem 0; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.vergleich thead th { font: 400 1.75rem/1.1 var(--serif); color: #fff; padding-bottom: 1.2rem; }
.vergleich tbody th { font-weight: 600; color: #fff; width: 22%; }
.vergleich td { color: #C9CFD6; }
.vergleich td[colspan] { color: #E6E8EB; }

/* Bauweise */
.bau { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.bau__bild { margin: 0; background: #fff; border-radius: 1rem; padding: 1rem; }
.baugruppen { list-style: none; margin: 0; padding: 0; counter-reset: bg; }
.baugruppen li { counter-increment: bg; display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.5rem; padding: 1.25rem 0; border-top: 1px solid var(--naht); }
.baugruppen li::before { content: counter(bg); grid-row: span 2; font: italic 400 2rem/1 var(--serif); color: var(--messing); }
.baugruppen h3 { font-size: 1.4rem; }
.baugruppen p { color: var(--tusche-weich); margin-top: 0.35rem; }
@media (max-width: 880px) { .bau { grid-template-columns: 1fr; } }

/* Maßkarte: wie die Karte beim Schneider */
.masskarte {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--porzellan-hell);
  border: 1px solid var(--naht);
  border-radius: 0.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  max-width: var(--breite);
}
.masskarte::after { /* Maßband-Kante */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 0.75rem 0.75rem 0 0;
  background: repeating-linear-gradient(90deg, var(--messing) 0 1px, transparent 1px 8px), color-mix(in srgb, var(--messing) 18%, var(--porzellan-hell));
  background-size: 100% 6px, 100% 100%; background-repeat: no-repeat;
}
.masskarte h3 { font-style: italic; margin: 0.4rem 0 1rem; }
.masskarte dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); column-gap: 3rem; }
.masskarte dl > div { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0; }
.masskarte dt { color: var(--tusche-weich); }
.masskarte dt::after { content: ""; }
.masskarte dl > div::after { content: none; }
.masskarte dd { margin: 0; font-weight: 600; order: 3; white-space: nowrap; }
.masskarte dl > div > dt { flex: none; }
.masskarte dl > div::before { content: ""; order: 2; flex: 1; border-bottom: 1.5px dotted var(--naht); transform: translateY(-0.3em); }

.paar { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.paar figure { margin: 0; }
.paar img { background: #fff; border-radius: 1rem; padding: 0.75rem; }
.paar figcaption { margin-top: 0.8rem; color: var(--tusche-weich); font-size: 0.95rem; max-width: 34rem; }
@media (max-width: 760px) { .paar { grid-template-columns: 1fr; } }

/* Zeitleiste */
.zeitleiste { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding: 0; position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 0.55rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: rgb(255 255 255 / 0.18); }
.zeitleiste li { position: relative; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0.75rem; padding: 0.9rem 0; align-items: start; }
.zeitleiste .punkt { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; border-radius: 50%; border: 1.5px solid #8A939D; background: var(--stoff); position: relative; z-index: 1; }
.zeitleiste li.erledigt .punkt { background: var(--messing); border-color: var(--messing); }
.zeitleiste li.aktuell .punkt { border-color: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.12); }
.zeitleiste h3 { font-size: 1.35rem; color: #fff; }
.zeitleiste p { color: #B9C0C8; margin-top: 0.2rem; }
.marke-status { font-size: 0.85rem; color: #B9C0C8; padding-top: 0.45rem; white-space: nowrap; }
.zeitleiste li.aktuell .marke-status { color: #fff; }
.zeitleiste li:not(.erledigt):not(.aktuell) h3 { color: #C9CFD6; }

/* Fuß */
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem var(--rand); color: var(--tusche-weich); font-size: 0.95rem; max-width: 84rem; margin: 0 auto; }

/* ---------- Sprache ---------- */
html[lang="de"] [lang="en"], html[lang="en"] [lang="de"] { display: none !important; }
.sprachwahl {
  font: 600 0.85rem/1 var(--sans); color: var(--tusche); background: transparent;
  border: 1px solid var(--naht); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer;
}
.sprachwahl:hover { background: var(--tusche); color: var(--porzellan-hell); border-color: var(--tusche); }

/* ---------- Klarstellung im Kopf ---------- */
.klarstellung {
  margin-top: 1.4rem; max-width: 30rem; padding-left: 1rem; border-left: 3px solid var(--messing);
  color: var(--tusche); font-size: 1rem;
}

/* ---------- Zwei GORBIs ---------- */
.vergleich--zwei tbody th { width: 20%; }
.vergleich--zwei thead th small { display: block; font: 400 0.9rem/1.4 var(--sans); color: #B9C0C8; margin-top: 0.35rem; }
.vergleich--zwei td.besser { color: #fff; }

/* ---------- Projekt, kein Produkt ---------- */
.projekt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.projekt ul { list-style: none; margin: 0; padding: 0; }
.projekt li { padding: 1rem 0; border-top: 1px solid var(--naht); }
.projekt li strong { display: block; font: 400 1.35rem/1.25 var(--serif); }
.projekt li span[lang] { color: var(--tusche-weich); }
@media (max-width: 880px) { .projekt { grid-template-columns: 1fr; } }

/* ---------- Fuß ---------- */
.fuss nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.fuss__wer { max-width: 40rem; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--rand) clamp(3rem, 6vw, 5rem); }
.rechtstext h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 2rem; }
.rechtstext h2 { font-size: 1.5rem; max-width: none; margin: 2.4rem 0 0.7rem; }
.rechtstext p, .rechtstext ul { margin: 0 0 0.9rem; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext address { font-style: normal; margin: 0 0 0.9rem; }
.rechtstext .hinweis-en { color: var(--tusche-weich); font-size: 0.95rem; border-left: 3px solid var(--naht); padding-left: 1rem; margin-bottom: 2rem; }
.fehlt { background: #FBE9EB; color: var(--weinrot-dunkel); padding: 0.1rem 0.4rem; border-radius: 0.3rem; }
@media (max-width: 640px) {
  .vergleich--zwei { min-width: 0; font-size: 0.92rem; }
  .vergleich--zwei th, .vergleich--zwei td { padding-right: 0.6rem; }
  .vergleich--zwei thead th { font-size: 1.3rem; }
  .vergleich--zwei tbody th { width: 26%; }
}
