/* ============================================================
   RITTER WEBSERVICE — startseite.css (Entwurf „Digitale Bauwerke“)
   Die Seite ist eine Bauzeichnung: Blaupausen-Grund, Achsraster,
   Plankopf, Bemaßung. Bernstein (--hand) markiert alles, was von
   Hand entsteht, so wie Bauhelm und Kran auf der Baustelle.
   ============================================================ */

@font-face { font-family: Inter; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/DMSerifDisplay-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/DMSerifDisplay-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --grund:   #061631;
  --grund2:  #0A2147;
  --navy:    #071B3A;
  --navy2:   #0D2D5E;
  --blau:    #2487FF;
  --blau2:   #62B1FF;
  --hell:    #C4E0FF;
  --text:    #E8F1FF;
  --leise:   #8FA8CC;
  --linie:   rgba(98, 177, 255, .18);
  --linie2:  rgba(98, 177, 255, .34);
  --hand:    #E09612;
  --hand2:   #F5B544;
  --gruen:   #3DDC97;
  --serif:   "DM Serif Display", Georgia, serif;
  --sans:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --rand:    clamp(16px, 4vw, 56px);
  --breite:  1280px;
  --kurve:   cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Blaupausen-Raster über die ganze Seite */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    linear-gradient(var(--linie) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--linie) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(rgba(98,177,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(98,177,255,.06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 50% 0%, #0E2A57 0%, var(--grund) 60%);
  opacity: .55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* Überschriften wie auf der bisherigen Seite: Inter Black, eng gesetzt.
   Die Serifenschrift bleibt den Zitaten vorbehalten. */
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 900; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
h2 em, h1 em { font-style: normal; color: var(--hand2); }
p { margin: 0; }
/* Unsichtbare Sprungziele für alte Links (#kontakt, #ueber …), knapp über dem Abschnitt wegen der festen Kopfzeile */
.anker { position: absolute; top: 0; width: 1px; height: 1px; scroll-margin-top: 0; pointer-events: none; }
section { position: relative; }
:focus-visible { outline: 2px solid var(--hand2); outline-offset: 3px; }

.kennung {
  font: 600 .72rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blau2);
}

/* ── Knöpfe ─────────────────────────────────────────────── */
.knopf {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--kurve), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.knopf-voll { background: var(--hand); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(224,150,18,.6); }
.knopf-voll:hover { background: var(--hand2); box-shadow: 0 14px 40px -10px rgba(245,181,68,.75); }
.knopf-linie { border-color: var(--linie2); color: var(--text); background: rgba(6,22,49,.4); backdrop-filter: blur(6px); }
.knopf-linie:hover { border-color: var(--blau2); background: rgba(36,135,255,.12); }
.knopf-leise { background: none; color: var(--leise); padding: 0 6px; }
.knopf-leise:hover { color: var(--text); }
.knopf[disabled] { opacity: .45; cursor: not-allowed; }
.textlink { color: var(--hand2); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(245,181,68,.4); padding-bottom: 2px; }
.textlink:hover { border-color: var(--hand2); }

/* ── Kopf: Aufbau in rahmen.css, hier nur die Farben der dunklen Blaupause ── */
:root {
  /* Oben auf der Blaupause: dunkler Verlauf statt des hellen Standards aus rahmen.css */
  --kopf-grund-ruhe: linear-gradient(rgba(6,22,49,.92), rgba(6,22,49,.55));
  --kopf-grund: rgba(6,22,49,.9);
  --kopf-text: #fff;
  --kopf-leise: #D3E1F5;
  --kopf-akzent: var(--blau2);
  --kopf-linie: var(--linie);
  --kopf-schild-schein: drop-shadow(0 0 14px rgba(98,177,255,.35));
  --menue-grund: rgba(6,22,49,.97);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: center;
  padding: 120px var(--rand) 150px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,22,49,.92) 0%, rgba(6,22,49,.55) 38%, transparent 62%),
    linear-gradient(0deg, var(--grund) 0%, transparent 28%);
}
.hero-inhalt { max-width: 760px; position: relative; }
.hero-titel {
  margin: 22px 0 26px;
  font-size: clamp(2.7rem, min(7vw, 11vh), 6.6rem);
  line-height: .98;
  letter-spacing: -.045em;
}
/* Akzentwort wie „von Hand“ auf der bisherigen Seite: Bernstein mit Unterstrich */
.hero-titel em { position: relative; }
.hero-titel em::after { content: ""; position: absolute; left: 0; right: .12em; bottom: .02em; height: .07em; border-radius: 2px; background: var(--hand); opacity: .55; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--kurve) 1.1s; }
.ist-bereit .hero-titel em::after { transform: scaleX(1); }
.hero-titel .zeile { display: block; }
.hero-titel .wort { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-titel .wort > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--kurve); transition-delay: calc(var(--i) * 110ms + 250ms); }
.ist-bereit .hero-titel .wort > span { transform: none; }
.hero-lead { max-width: 520px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--hell); }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-masse {
  position: absolute; left: var(--rand); right: var(--rand); bottom: 34px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; border-top: 1px solid var(--linie2);
}
.hero-masse div { position: relative; padding: 16px 16px 0 0; }
.hero-masse div::before { content: ""; position: absolute; left: 0; top: -5px; width: 1px; height: 9px; background: var(--blau2); }
.hero-masse dt { order: 2; font: 500 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--leise); }
.hero-masse dd { margin: 0 0 4px; font: 900 clamp(1.7rem, 2.8vw, 2.4rem)/1 var(--sans); letter-spacing: -.04em; color: var(--text); }
.hero-masse div { display: flex; flex-direction: column-reverse; }

.hero-runter {
  position: absolute; right: var(--rand); bottom: 118px;
  display: flex; align-items: center; gap: 12px;
  font: 600 .66rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--leise); text-decoration: none;
  writing-mode: vertical-rl;
}
.hero-runter i { width: 1px; height: 60px; background: linear-gradient(var(--hand), transparent); animation: tropfen 2.2s infinite var(--kurve); transform-origin: top; }
@keyframes tropfen { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero-fadenkreuz { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .4s; }
.hero:hover .hero-fadenkreuz { opacity: 1; }
.fk-x, .fk-y { position: absolute; background: rgba(224,150,18,.22); }
.fk-x { left: 0; right: 0; height: 1px; top: var(--fy, 50%); }
.fk-y { top: 0; bottom: 0; width: 1px; left: var(--fx, 50%); }
.fk-wert { position: absolute; left: calc(var(--fx, 50%) + 10px); top: calc(var(--fy, 50%) + 8px); font: 600 .66rem/1 var(--mono); color: var(--hand2); letter-spacing: .08em; }

/* ── Abschnitte ─────────────────────────────────────────── */
.abschnitt { position: relative; max-width: var(--breite); margin: 0 auto; padding: clamp(90px, 12vw, 170px) var(--rand); }
.abschnitt-kopf { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.abschnitt-kopf--zeile { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.abschnitt-kopf--zeile > div { display: grid; gap: 18px; }
.abschnitt-lead { color: var(--hell); font-size: 1.12rem; max-width: 620px; }

/* Einblenden beim Scrollen */
[data-auf] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--kurve), transform .9s var(--kurve); transition-delay: calc(var(--v, 0) * 90ms); }
[data-auf].ist-da { opacity: 1; transform: none; }

/* ── Disziplinen ────────────────────────────────────────── */
.disziplin-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); perspective: 1400px; }
.disziplin {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: 360px auto;
  border: 1px solid var(--linie2); border-radius: 22px;
  background: linear-gradient(160deg, rgba(13,45,94,.75), rgba(6,22,49,.9));
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--kurve), border-color .3s;
}
.disziplin.ist-da { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.disziplin:hover { border-color: var(--blau2); }
.disziplin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--lx, 50%) var(--ly, 30%), rgba(98,177,255,.16), transparent 45%);
}
.disziplin--software::before { background: radial-gradient(600px circle at var(--lx, 50%) var(--ly, 30%), rgba(224,150,18,.14), transparent 45%); }
.disziplin-modell { display: block; width: 100%; height: 360px; }
.disziplin-text { position: relative; display: grid; gap: 14px; padding: 0 clamp(22px, 3vw, 40px) clamp(26px, 3vw, 40px); transform: translateZ(40px); }
.disziplin h3 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.disziplin-text > p:not(.kennung) { color: var(--hell); max-width: 440px; }
.disziplin .preis { font: 500 .8rem/1.5 var(--mono); color: var(--leise) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--linie2); border-radius: 999px; font-size: .8rem; color: var(--hell); transition: border-color .2s, background .2s; }
.chips a { display: block; padding: 6px 12px; color: inherit; text-decoration: none; }
.chips li:hover { border-color: var(--hand2); background: rgba(224,150,18,.12); }

/* ── Bauablauf (gepinnt) ────────────────────────────────── */
.bauablauf { position: relative; height: 900vh; }
.bauablauf-buehne {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  grid-template-rows: auto 1fr;
  padding: 100px var(--rand) 40px;
  gap: 0 40px;
}
.bauablauf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bauablauf-kopf { position: relative; display: grid; gap: 16px; align-content: start; grid-column: 1; }
.bauablauf-kopf h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }

.umschalter { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: max-content; padding: 4px; border: 1px solid var(--linie2); border-radius: 999px; background: rgba(6,22,49,.6); backdrop-filter: blur(6px); }
.umschalter button { position: relative; z-index: 1; padding: 9px 20px; border: 0; background: none; color: var(--leise); font: 600 .86rem/1 var(--sans); cursor: pointer; transition: color .3s; }
.umschalter button[aria-checked="true"] { color: var(--navy); }
.umschalter i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--hand); transition: transform .45s var(--kurve); }
.umschalter[data-wahl="software"] i { transform: translateX(100%); }

.phasen { position: relative; grid-column: 1; align-self: center; margin: 0; padding: 0; list-style: none; min-height: 270px; }
.phase { position: absolute; inset: 0 0 auto; display: grid; gap: 12px; opacity: 0; transform: translateY(30px); transition: opacity .25s ease, transform .5s var(--kurve); pointer-events: none; }
.phase.ist-aktiv { opacity: 1; transform: none; pointer-events: auto; transition: opacity .45s ease .18s, transform .6s var(--kurve) .18s; }
.phase.ist-vorbei { transform: translateY(-30px); }
.phase-nr { font: 900 clamp(4.2rem, 8vw, 6.4rem)/.9 var(--sans); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--hand2); }
.phase h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.phase p { color: var(--hell); max-width: 380px; }
.phase .phase-liefer { font: 500 .78rem/1.5 var(--mono); color: var(--hand2); letter-spacing: .04em; padding-left: 14px; border-left: 2px solid var(--hand); }

/* Rechte Spalte: Editor über dem Plankopf, das Gebäude steht dazwischen in der Mitte */
.bauablauf-seite { position: absolute; right: calc(var(--rand) + 26px); bottom: 40px; width: min(400px, 31vw); display: grid; gap: 12px; }
.editor { margin: 0; border: 1px solid var(--linie2); border-radius: 12px; overflow: hidden; background: rgba(4,14,32,.86); backdrop-filter: blur(8px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.editor-leiste { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--linie); background: rgba(13,45,94,.5); }
.editor-leiste i { width: 8px; height: 8px; border-radius: 50%; background: var(--linie2); }
.editor-leiste i:first-child { background: #FF6B6B; } .editor-leiste i:nth-child(2) { background: var(--hand); } .editor-leiste i:nth-child(3) { background: var(--gruen); }
.editor-datei { margin-left: 8px; font: 600 .7rem/1 var(--mono); color: var(--text); }
.editor-wer { margin-left: auto; font: 500 .62rem/1 var(--mono); letter-spacing: .06em; color: var(--hand2); white-space: nowrap; }
.editor-wer::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--gruen); vertical-align: 1px; animation: puls 1.4s infinite; }
@keyframes puls { 50% { opacity: .25; } }
.editor-code { height: 196px; margin: 0; padding: 12px 14px; overflow: hidden; font: 500 .74rem/1.65 var(--mono); color: var(--hell); white-space: pre; counter-reset: zeile; }
.editor-code .z { display: block; counter-increment: zeile; }
.editor-code .z::before { content: counter(zeile); display: inline-block; width: 22px; margin-right: 12px; text-align: right; color: #3D5A85; }
.editor-code .cursor { display: inline-block; width: 7px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--hand); animation: puls 1s steps(1) infinite; }
.c-tag { color: #62B1FF; } .c-attr { color: #F5B544; } .c-str { color: #3DDC97; } .c-kw { color: #C792EA; } .c-kom { color: #6E86AA; } .c-ok { color: #3DDC97; } .c-weg { color: #FF8A80; }

.plankopf {
  display: grid; grid-template-columns: repeat(2, auto); gap: 0;
  border: 1px solid var(--linie2); background: rgba(6,22,49,.72); backdrop-filter: blur(8px);
  font-family: var(--mono);
}
.plankopf > div { display: grid; gap: 3px; padding: 9px 14px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.plankopf > div:nth-child(2n) { border-right: 0; }
.plankopf span { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leise); }
.plankopf b { font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.plankopf-balken { grid-column: 1 / -1; padding: 0 !important; height: 4px; border: 0 !important; background: rgba(98,177,255,.12); }
.plankopf-balken i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blau), var(--hand)); }

.phasen-schiene { position: absolute; right: calc(var(--rand) - 6px); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.phasen-schiene button { width: 12px; height: 12px; padding: 0; border: 1px solid var(--blau2); border-radius: 50%; background: transparent; cursor: pointer; transition: background .3s, transform .3s; }
.phasen-schiene button.ist-erledigt { background: var(--blau2); }
.phasen-schiene button.ist-aktiv { background: var(--hand); border-color: var(--hand); transform: scale(1.35); }

/* ── Referenzen ─────────────────────────────────────────── */
.bauwerke { max-width: none; padding-inline: 0; }
.bauwerke .abschnitt-kopf { max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.google-note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--linie2); border-radius: 999px; text-decoration: none; font-size: .82rem; color: var(--leise); }
.google-note b { font: 900 1.4rem/1 var(--sans); letter-spacing: -.03em; color: var(--text); }
.google-note .sterne { color: var(--hand2); letter-spacing: 2px; }
.google-note:hover { border-color: var(--hand2); color: var(--text); }

.galerie {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 560px);
  gap: clamp(18px, 2.5vw, 32px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rand);
  padding: 30px var(--rand) 40px;
  perspective: 1600px;
  scrollbar-width: none;
  cursor: grab;
}
.galerie::-webkit-scrollbar { display: none; }
.galerie.ist-gezogen { cursor: grabbing; scroll-snap-type: none; }
.galerie.ist-gezogen .objekt { pointer-events: none; }
.objekt {
  --rx: 0deg; --ry: 0deg; --tiefe: 0;
  scroll-snap-align: start;
  display: grid; gap: 10px; align-content: start;
  text-decoration: none;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--tiefe) * 1deg));
  transition: transform .5s var(--kurve);
}
.objekt-fenster { position: relative; margin: 0 0 14px; border: 1px solid var(--linie2); border-radius: 14px; overflow: hidden; background: var(--navy2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.objekt-leiste { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(6,22,49,.9); border-bottom: 1px solid var(--linie); }
.objekt-leiste i { width: 8px; height: 8px; border-radius: 50%; background: var(--linie2); }
.objekt-leiste em { margin-left: 10px; font: 500 .7rem/1 var(--mono); font-style: normal; color: var(--leise); }
/* height:auto, sonst gewinnt das height-Attribut und das Bild wird stark angeschnitten.
   Das Seitenverhältnis entspricht den Desktop-Screenshots (1440 × 1000). */
.objekt-fenster img { width: 100%; height: auto; aspect-ratio: 1440 / 1000; object-fit: cover; object-position: top center; transition: transform 1.2s var(--kurve); }
.objekt:hover .objekt-fenster img { transform: scale(1.03); }
.objekt h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.objekt p:not(.kennung), .objekt blockquote { margin: 0; color: var(--hell); font-size: .95rem; max-width: 460px; }
.objekt blockquote { font-style: italic; color: var(--hand2); }
.objekt--software .kennung { color: var(--hand2); }
.galerie-steuerung { display: flex; align-items: center; gap: 16px; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.rund { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linie2); background: none; color: var(--text); font-size: 1.1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.rund:hover { border-color: var(--hand2); background: rgba(224,150,18,.1); }
.galerie-balken { flex: 1; height: 1px; background: var(--linie2); }
.galerie-balken i { display: block; height: 3px; margin-top: -1px; width: 20%; background: var(--hand); transition: transform .2s; transform-origin: left; }

/* ── Büro ───────────────────────────────────────────────── */
.buero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.buero-bild { position: relative; margin: 0 28px 28px 0; }
.buero-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: grayscale(.25) contrast(1.05); }
.buero-bild::before { content: ""; position: absolute; inset: -14px; border: 1px dashed var(--linie2); pointer-events: none; }
.mass { position: absolute; display: flex; align-items: center; justify-content: center; font: 600 .62rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hand2); }
.mass b { padding: 0 10px; background: var(--grund); font-weight: 600; }
.mass-h { left: 0; right: 0; bottom: -30px; height: 1px; background: var(--hand); }
.mass-h::before, .mass-h::after, .mass-v::before, .mass-v::after { content: ""; position: absolute; background: var(--hand); }
.mass-h::before, .mass-h::after { top: -5px; width: 1px; height: 11px; }
.mass-h::before { left: 0; } .mass-h::after { right: 0; }
.mass-v { top: 0; bottom: 0; right: -30px; width: 1px; background: var(--hand); }
.mass-v b { writing-mode: vertical-rl; padding: 10px 0; }
.mass-v::before, .mass-v::after { left: -5px; height: 1px; width: 11px; }
.mass-v::before { top: 0; } .mass-v::after { bottom: 0; }
.buero-text { display: grid; gap: 24px; justify-items: start; }
.buero-text h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.buero-text > p:not(.kennung) { color: var(--hell); font-size: 1.1rem; max-width: 560px; }
.team { position: relative; display: grid; gap: 0; width: 100%; max-width: 600px; }
.team-chef { display: grid; gap: 4px; justify-self: start; padding: 14px 18px; border: 1px solid var(--hand); border-radius: 12px; background: rgba(224,150,18,.1); }
.team-chef b { font-size: 1.05rem; }
.team small { color: var(--leise); font-size: .8rem; line-height: 1.35; }
.team-ki { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 26px 0 0; list-style: none; }
/* Verbindungslinien wie in einem Organigramm */
.team-ki::before { content: ""; position: absolute; top: 0; left: 30px; width: 1px; height: 13px; background: var(--linie2); }
.team-ki::after { content: ""; position: absolute; top: 13px; left: 30px; right: 12%; height: 1px; background: var(--linie2); }
.team-ki li { position: relative; display: grid; gap: 3px; padding: 12px; border: 1px dashed var(--linie2); border-radius: 10px; background: rgba(6,22,49,.5); }
.team-ki li::before { content: ""; position: absolute; top: -13px; left: 18px; width: 1px; height: 13px; background: var(--linie2); }
.team-ki b { font-size: .9rem; }
.team-ki .kennung { font-size: .6rem; color: var(--blau2); }
.team-fuss { margin-top: 12px !important; color: var(--hand2) !important; font: 500 .78rem/1.5 var(--mono) !important; }
@media (max-width: 620px) { .team-ki { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-ki::after { right: 30%; } }
.nachweise { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.buero-text blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--hand); font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--serif); color: var(--text); max-width: 520px; }

/* ── Bauantrag ──────────────────────────────────────────── */
.antrag { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.antrag-buehne {
  position: relative; min-height: 560px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--linie2); border-radius: 22px;
  background: linear-gradient(160deg, rgba(13,45,94,.6), rgba(6,22,49,.85));
  overflow: hidden;
}
.antrag-fortschritt { position: absolute; inset: 0 0 auto; height: 3px; background: rgba(98,177,255,.12); }
.antrag-fortschritt i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blau), var(--hand)); transition: width .6s var(--kurve); }
.antrag-schritt-nr { font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hand2); margin-bottom: 18px; }
.antrag-form { display: grid; gap: 30px; }
.antrag-frage { display: grid; gap: 22px; }
.antrag-frage.ist-neu { animation: frage-ein .6s var(--kurve); }
.antrag-frage.ist-zurueck { animation: frage-zurueck .6s var(--kurve); }
@keyframes frage-ein { from { opacity: 0; transform: translateX(40px); } }
@keyframes frage-zurueck { from { opacity: 0; transform: translateX(-40px); } }
.antrag-frage legend, .antrag-frage h3 { font-weight: 900; letter-spacing: -.04em; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; padding: 0; text-wrap: balance; }
/* Schwebende Legende wird zum normalen Rasterelement, statt im Rahmen zu hängen */
.antrag-frage legend { float: left; width: 100%; }
.antrag-frage fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.antrag-hinweis { color: var(--leise); margin-top: -6px; }
.optionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  min-height: 74px; padding: 14px 16px;
  border: 1px solid var(--linie2); border-radius: 14px;
  background: rgba(6,22,49,.5);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s var(--kurve);
}
.option label:hover { border-color: var(--blau2); transform: translateY(-2px); }
.option input:focus-visible + label { outline: 2px solid var(--hand2); outline-offset: 2px; }
.option input:checked + label { border-color: var(--hand); background: rgba(224,150,18,.12); }
.option svg { width: 30px; height: 30px; stroke: var(--blau2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.option input:checked + label svg { stroke: var(--hand2); }
.option label.ohne-symbol { grid-template-columns: 1fr; padding-right: 36px; }
.optionen--klein { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.optionen--klein .option label { min-height: 52px; }
.option b { display: block; font-weight: 600; font-size: .96rem; line-height: 1.25; }
.option small { display: block; color: var(--leise); font-size: .8rem; line-height: 1.35; margin-top: 3px; }
.option input[type="checkbox"] + label::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--linie2);
}
.option input[type="checkbox"]:checked + label::after { background: var(--hand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23071B3A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--hand); }
.feld { display: grid; gap: 8px; font-size: .88rem; color: var(--leise); }
.feld input, .feld textarea {
  width: 100%; padding: 15px 16px;
  border: 1px solid var(--linie2); border-radius: 12px;
  background: rgba(6,22,49,.6); color: var(--text);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s, background .2s;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--hand); background: rgba(6,22,49,.85); }
.feld input::placeholder, .feld textarea::placeholder { color: #5D7598; }
.feld-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feld-fehler { color: #FF9C8A; font-size: .82rem; min-height: 1em; }
.einwilligung { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .86rem; color: var(--leise); }
.einwilligung input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--hand); }
.einwilligung a { color: var(--hell); }
.antrag-navigation { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; }
.antrag-ohne-js { color: var(--hell); }
.antrag-ohne-js a { color: var(--hand2); }

.bauplan {
  position: sticky; top: 100px; isolation: isolate;
  display: grid; gap: 0;
  border: 1px solid var(--linie2); border-radius: 22px;
  background: rgba(6,22,49,.7);
  overflow: hidden;
}
.bauplan-modell { width: 100%; height: 260px; border-bottom: 1px solid var(--linie); }
.bauplan-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 22px 6px; }
.bauplan-phase { font: 600 .72rem/1 var(--mono); color: var(--hand2); letter-spacing: .08em; }
.bauplan-liste { margin: 0; padding: 6px 22px 16px; display: grid; gap: 0; }
.bauplan-liste:empty::before { content: "Noch leer. Mit jeder Antwort wächst dein Bauplan."; color: var(--leise); font-size: .88rem; padding: 6px 0; }
.bauplan-liste div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--linie); animation: zeile-ein .5s var(--kurve); }
@keyframes zeile-ein { from { opacity: 0; transform: translateY(6px); } }
.bauplan-liste dt { font: 600 .64rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--leise); }
.bauplan-liste dd { margin: 0; font-size: .9rem; color: var(--text); }
.bauplan-tipps { display: grid; gap: 10px; padding: 0 22px 22px; }
.tipp { position: relative; padding: 14px 16px 14px 46px; border-radius: 14px; background: rgba(224,150,18,.09); border: 1px solid rgba(224,150,18,.32); font-size: .88rem; color: var(--hell); animation: zeile-ein .5s var(--kurve); }
.tipp::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5B544' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tipp b { display: block; color: var(--hand2); font-size: .74rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.tipp a { color: var(--text); }
.tipp--preis { background: rgba(36,135,255,.1); border-color: rgba(98,177,255,.4); }
.tipp--preis::before { filter: hue-rotate(170deg) saturate(2); }
.tipp--preis strong { font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; color: var(--text); }

.zusammenfassung { display: grid; gap: 16px; }
.erfolg { display: grid; gap: 18px; justify-items: start; }
.erfolg h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.erfolg p { color: var(--hell); max-width: 520px; }
.direkt { margin-top: 28px; color: var(--leise); font-size: .92rem; }
.direkt a { color: var(--hell); }

/* ── Mobil ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Oben die Stadt, darunter der Text: auf dem Handy nichts übereinander */
  .hero { padding: 46svh var(--rand) 44px; align-content: start; }
  .hero::after { background: linear-gradient(0deg, var(--grund) 0%, rgba(6,22,49,.88) 52%, rgba(6,22,49,0) 66%); }
  .hero-titel { margin-top: 14px; }
  .hero-masse { position: static; margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 6px; }
  .hero-runter { display: none; }

  .disziplin-raster { grid-template-columns: 1fr; }
  .disziplin { grid-template-rows: 270px auto; }
  .disziplin-modell { height: 270px; }

  .bauablauf { height: 800vh; }
  .bauablauf-buehne { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 84px var(--rand) 24px; }
  .bauablauf-kopf { gap: 10px; }
  .bauablauf-kopf h2 { font-size: 1.7rem; }
  .bauablauf-kopf .kennung { display: none; }
  .phasen { grid-row: 3; align-self: end; min-height: 210px; }
  .phase { padding: 18px; border: 1px solid var(--linie2); border-radius: 16px; background: rgba(6,22,49,.82); backdrop-filter: blur(8px); gap: 8px; top: auto; bottom: 0; }
  .phase-nr { font-size: 2.6rem; position: absolute; right: 16px; top: 12px; }
  .phase h3 { font-size: 1.7rem; }
  .phase p { font-size: .94rem; }
  .plankopf { display: none; }
  /* Handy: kompakter Editor über der Phasenkarte */
  .bauablauf-seite { left: var(--rand); right: var(--rand); width: auto; bottom: 252px; }
  .editor-code { height: 88px; padding: 8px 10px; font-size: .64rem; }
  .editor-code .z::before { width: 16px; margin-right: 8px; }
  .phasen-schiene { top: auto; bottom: auto; transform: none; grid-auto-flow: column; gap: 10px; position: relative; right: auto; grid-row: 2; align-self: start; justify-self: start; margin-top: 14px; }
  .phasen-schiene button { width: 10px; height: 10px; }

  .buero { grid-template-columns: 1fr; }
  .buero-bild { max-width: 420px; }

  .antrag { grid-template-columns: 1fr; }
  .bauplan { position: relative; top: 0; }
  .bauplan-modell { height: 200px; }
  .antrag-buehne { min-height: 0; }
  .feld-raster { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .optionen { grid-template-columns: 1fr; }
  .option label { min-height: 62px; }
  .hero-aktionen .knopf { width: 100%; justify-content: center; }
  .plankopf { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-auf] { opacity: 1; transform: none; }
  .hero-titel .wort > span { transform: none; }
}
