:root {
  --grund: #ECEAE5;
  --grund-2: #E2DFD8;
  --blattgrund: #F6F4F0;
  --text: #1B1D1F;
  --t1: rgba(27, 29, 31, .92);
  --t2: rgba(27, 29, 31, .68);
  --t3: rgba(27, 29, 31, .48);
  --linie: rgba(27, 29, 31, .16);
  --blau: #0A5C9E;
  --blau-dunkel: #08497E;
  --hell: #F6F4F0;
  --rand: 20px;
  --luft: 72px;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--t1);
  font: 400 17px/1.5 var(--sans);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--rand); }

/* Balken oben */
.bar { background: var(--text); color: var(--hell); font-size: 14px; text-align: center; padding: 4px var(--rand); }
.bar a { display: inline-block; padding: 4px 0; text-decoration: none; }
.bar a:hover { text-decoration: underline; }

/* Kopf */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.marke { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }
.marke-zeichen { width: 28px; height: 28px; border-radius: 2px; }
.nav { display: none; gap: 24px; }
.nav a, .kopf-tel { text-decoration: none; font-size: 15px; color: var(--t2); transition: color 150ms ease-out; }
.nav a:hover, .kopf-tel:hover { color: var(--text); }
.kopf-tel { font-family: var(--mono); font-size: 14px; padding: 8px 0; }

/* Titel */
.titel, .h2 { color: var(--text); font-weight: 500; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; line-height: 1.0; }
.titel { font-size: 56px; }
.h2 { font-size: 40px; }
.z { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.z > span { display: block; }
.lead { font-size: 18px; color: var(--t2); max-width: 34em; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20px; border-radius: 4px; white-space: nowrap;
  background: var(--blau); color: var(--hell); text-decoration: none; font-weight: 500;
  transition: background-color 150ms ease-out;
}
.knopf:hover { background: var(--blau-dunkel); }
.knopf-hell { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf-hell:hover { background: var(--grund-2); }
.textlink { display: inline-block; padding: 8px 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--t3); text-underline-offset: 4px; transition: text-decoration-color 150ms ease-out; }
.textlink:hover { text-decoration-color: var(--text); }

/* Masslinie: das eine Detail in Blau */
.mass { position: relative; display: flex; align-items: center; justify-content: center; height: 24px; color: var(--blau); }
.mass-linie { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform-origin: 50% 50%; }
.mass-linie::before, .mass-linie::after { content: ""; position: absolute; top: -8px; width: 1px; height: 17px; background: currentColor; }
.mass-linie::before { left: 0; }
.mass-linie::after { right: 0; }
.mass-text { position: relative; background: var(--mass-grund, var(--grund)); padding: 0 8px; font: 400 13px/1 var(--mono); }

/* Bilder */
.bild-rahmen { overflow: hidden; border-radius: 4px; background: var(--grund-2); }
.bild-rahmen img { width: 100%; height: 100%; object-fit: cover; }

/* Schriftfeld (wie auf einem Werkplan) */
.feld { border-top: 1px solid var(--linie); }
.feld > div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.feld dt { font: 400 13px/1.7 var(--mono); color: var(--t3); }
.feld dd { color: var(--text); line-height: 1.35; }
.feld a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--t3); }

/* Planblatt: Einstieg und Kontakt */
.blatt, .kontakt-raster {
  --mass-grund: var(--blattgrund);
  position: relative; background: var(--blattgrund);
  border: 1px solid var(--linie); border-radius: 4px; padding: 16px;
}
.blatt::before, .blatt::after, .kontakt-raster::before, .kontakt-raster::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-color: var(--blau); border-style: solid; pointer-events: none;
}
.blatt::before, .kontakt-raster::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.blatt::after, .kontakt-raster::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

/* Einstieg */
.einstieg { padding-top: 16px; padding-bottom: var(--luft); }
.blatt { margin-top: 24px; display: grid; gap: 16px; }
.blatt-bild { display: grid; gap: 8px; }
.blatt-bild .bild-rahmen { aspect-ratio: 16 / 10; }
.schriftfeld { display: grid; gap: 16px; }
.feld-aktion { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.feld-aktion .knopf { flex: 1 1 auto; }

/* Abschnitte */
.abschnitt { padding: var(--luft) 0; border-top: 1px solid var(--linie); }
.kopfzeile { display: grid; gap: 16px; margin-bottom: 40px; }

/* Ausstellung, dunkel wie die Fronten */
.dunkel {
  --mass-grund: var(--text);
  background: var(--text); color: rgba(246, 244, 240, .92); border-top: 0;
}
.dunkel .h2, .dunkel h3 { color: var(--hell); }
.dunkel .lead, .dunkel .zeile p { color: rgba(246, 244, 240, .68); }
.dunkel .mass { color: #6FA8DC; }
.dunkel .zeile-art, .dunkel .wisch { color: rgba(246, 244, 240, .48); }

.liste {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand); scroll-padding: 0 var(--rand);
  scrollbar-width: none;
}
.liste::-webkit-scrollbar { display: none; }
.zeile { flex: 0 0 84%; scroll-snap-align: start; display: grid; gap: 16px; align-content: start; }
.zeile-bild { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.zeile h3 { font-size: 22px; font-weight: 500; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; line-height: 1.15; }
.zeile p { margin-top: 8px; }
.zeile-art { font: 400 13px/1 var(--mono); }
.wisch { display: flex; gap: 16px; margin-top: 24px; font: 400 13px/1 var(--mono); }
.wisch-zahl { color: #6FA8DC; }
.vorschau { display: none; }

/* Aufbau */
.aufbau-raster { display: grid; gap: 40px; }
.aufbau-bild { display: grid; gap: 8px; }
.aufbau-bild .bild-rahmen { aspect-ratio: 3 / 2; }
.masse > div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.masse .masse-kopf { padding: 0 0 8px; font: 400 13px/1 var(--mono); color: var(--t3); }
.masse dt { font: 500 15px/1.6 var(--mono); color: var(--blau); }
.masse dd { color: var(--t1); }

/* Familie */
.aussage { font-size: 30px; line-height: 1.15; font-weight: 400; font-variation-settings: "wdth" 112; letter-spacing: -0.025em; color: var(--text); max-width: 20em; margin-bottom: 40px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; }
.team .bild-rahmen { aspect-ratio: 4 / 5; }
.team img { object-position: 50% 30%; }
.team h3 { margin-top: 16px; font-size: 17px; font-weight: 500; color: var(--text); }
.team p { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--t2); }

/* Kontakt */
.kontakt-raster { display: grid; gap: 40px; padding: 24px 16px; }
.kontakt-frage { color: var(--t2); }
.anliegen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.anliegen button {
  font: inherit; font-size: 15px; color: var(--text); background: transparent;
  border: 1px solid var(--linie); border-radius: 4px; padding: 8px 16px; min-height: 44px; cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}
.anliegen button:hover { border-color: var(--t3); }
.anliegen button[aria-checked="true"] { background: var(--text); color: var(--hell); border-color: var(--text); }
.tel-gross {
  display: block; margin-top: 40px; text-decoration: none; color: var(--text);
  font-size: 44px; font-weight: 400; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; line-height: 1;
  font-feature-settings: "tnum"; white-space: nowrap; transition: color 150ms ease-out;
}
.tel-gross:hover { color: var(--blau); }
.kontakt-aktion { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.kontakt-aktion .knopf { flex: 1 1 140px; }
.klein { margin-top: 16px; font-size: 15px; color: var(--t3); }
.kontakt-info { display: grid; gap: 16px; align-content: start; }
.platzhalter { display: inline-block; font: 400 13px/1 var(--mono); color: var(--t2); border: 1px dashed var(--t3); padding: 8px; border-radius: 4px; }

/* Fuss */
.fuss { background: var(--text); color: rgba(246, 244, 240, .68); padding: 64px 0 40px; font-size: 15px; }
.fuss a { display: inline-block; padding: 8px 0; color: rgba(246, 244, 240, .92); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-name { color: var(--hell); font-size: 11vw; font-weight: 500; font-variation-settings: "wdth" 125; letter-spacing: -0.05em; line-height: .9; white-space: nowrap; }
.fuss-zeilen { display: grid; gap: 8px; margin-top: 40px; }
.entwurf { margin-top: 16px; color: rgba(246, 244, 240, .48); }

/* Bewegung */
.js .z > span { transform: translateY(105%); transition: transform 900ms var(--expo); transition-delay: calc(var(--i, 0) * 90ms); }
.js .ist-da .z > span { transform: none; }
.js .mass .mass-linie { transform: scaleX(0); transition: transform 1000ms var(--expo); }
.js .mass.ist-da .mass-linie { transform: scaleX(1); }
.js .mass .mass-text { opacity: 0; transition: opacity 600ms var(--expo) 400ms; }
.js .mass.ist-da .mass-text { opacity: 1; }
.js .enthuellen { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--expo); }
.js .enthuellen img { transform: scale(1.15); transition: transform 1000ms var(--expo); }
.js .enthuellen.ist-da { clip-path: inset(0 0 0 0); }
.js .enthuellen.ist-da img { transform: scale(1); }

@media (min-width: 900px) {
  :root { --rand: 40px; --luft: 120px; }
  body { font-size: 18px; }
  .nav { display: flex; }
  .kopf { padding-top: 24px; padding-bottom: 24px; }
  .titel { font-size: min(7vw, 104px); }
  .titel .z { display: inline-block; }
  .h2 { font-size: 72px; }
  .marke-zeichen { width: 32px; height: 32px; }

  .einstieg { padding-top: 24px; }
  .blatt { margin-top: 40px; grid-template-columns: 8fr 4fr; gap: 24px; padding: 24px; }
  .blatt-bild .bild-rahmen { aspect-ratio: 16 / 10; }
  .schriftfeld { align-content: space-between; gap: 40px; padding-top: 32px; }
  .feld-aktion { flex-direction: column; align-items: stretch; gap: 8px; }
  .feld-aktion .textlink { align-self: center; }

  .kopfzeile { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-bottom: 64px; }

  .ausstellung { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .liste { display: block; overflow: visible; margin: 0; padding: 0; border-top: 1px solid rgba(246, 244, 240, .14); }
  .zeile { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid rgba(246, 244, 240, .14); cursor: default; transition: padding-left 150ms ease-out; }
  .zeile-bild, .wisch { display: none; }
  .zeile-art { padding-top: 6px; }
  .zeile.aktiv { padding-left: 16px; }
  .zeile.aktiv h3 { color: #6FA8DC; }
  .vorschau { display: grid; gap: 8px; position: sticky; top: 40px; }
  .vorschau-bild { aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: 4px; background: #2a2c2e; }
  .vorschau img { width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms var(--expo), transform 900ms var(--expo); }
  .vorschau img.wechsel { opacity: 0; transform: scale(1.04); }

  .aufbau-raster { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .masse > div { grid-template-columns: 120px 1fr; }

  .aussage { font-size: 48px; margin-bottom: 64px; }
  .team { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  .kontakt-raster { grid-template-columns: 7fr 5fr; gap: 64px; padding: 40px; }
  .tel-gross { font-size: clamp(56px, 5.6vw, 88px); }
  .kontakt-aktion .knopf { flex: 0 0 auto; }
  .fuss { padding: 104px 0 40px; }
  .fuss-name { font-size: min(10.5vw, 136px); }
  .fuss-zeilen { grid-template-columns: 1fr auto; align-items: end; }
  .entwurf { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .z > span, .js .mass .mass-linie, .js .mass .mass-text, .js .enthuellen, .js .enthuellen img, .vorschau img {
    transform: none !important; clip-path: none !important; opacity: 1 !important; transition: none !important;
  }
}
