/* Leitkante. — Welt "Die Leitkante": Asphalt, Markierungsfarbe, eine Kante, die führt. */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --asphalt: #0D2253;   /* Blueprint Dark900 */
  --asphalt-2: #12295E;
  --paint: #F4F4F2;
  --steel: #93A6CC;
  --signal: #F97316;
  --signal-ink: #0D2253;
  --line: #244079;

  --edge: 9vw;          /* Position der Leitkante auf dem Desktop */
  --gutter: clamp(20px, 4vw, 56px);
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;

  --step: clamp(96px, 13vh, 168px);
  --top: 58px;          /* Höhe der Protokollzeile */
  color-scheme: dark;
}

@media (max-width: 860px) { :root { --edge: 22px; --top: 54px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--paint);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
a { color: inherit; }

/* ---------- Die Kante: eine durchgehende Linie über die ganze Seite ---------- */

.edge {
  position: fixed;
  left: var(--edge);
  top: var(--top);
  bottom: 0;
  width: 2px;
  background: var(--line);
  z-index: 1;
  pointer-events: none;
}
/* Die Kante wird orange, so weit man gefahren ist — mit Leuchten. */
.edge::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: var(--signal);
  transform-origin: top;
  transform: scaleY(var(--edge-progress, 0));
  box-shadow: 0 0 8px 1px rgba(249, 115, 22, .4), 0 0 30px 6px rgba(249, 115, 22, .16);
}
/* Der Kopf der Kante: die hellste Stelle, direkt an der Spitze. */
.edge-head {
  position: absolute;
  left: -2px; right: -2px;
  height: 170px;
  top: calc(var(--edge-progress, 0) * 100%);
  transform: translateY(-170px);
  background: linear-gradient(to bottom, rgba(249,115,22,0) 0%, rgba(251,146,60,.5) 62%, rgba(253,186,116,.92) 100%);
  filter: blur(1.2px);
  box-shadow: 0 0 22px 4px rgba(249, 115, 22, .26);
  opacity: calc(var(--edge-progress, 0) * 5);
  pointer-events: none;
}

/* ---------- Protokollzeile oben ---------- */

.topline {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter) 14px calc(var(--edge) + 72px);
  background: var(--asphalt);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.03em; text-decoration: none;
}
.wordmark span { color: var(--signal); }
.topnav { display: flex; gap: 22px; font-size: 14px; }
.topnav a { color: var(--steel); text-decoration: none; }
.topnav a:hover { color: var(--paint); }
@media (max-width: 860px) {
  .topnav a { display: none; }
  .topnav a.nav-audit {
    display: inline-block; color: var(--signal-ink); background: var(--signal);
    font-weight: 700; padding: 8px 14px;
  }
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--signal); color: var(--signal-ink); padding: 10px 16px; z-index: 40;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Grundlayout: alles hängt rechts an der Kante ---------- */

main { position: relative; z-index: 2; }
section { padding: var(--step) var(--gutter) var(--step) calc(var(--edge) + 72px); position: relative; }
@media (max-width: 860px) { section { padding-left: calc(var(--edge) + 38px); } }

.wide { max-width: 1180px; }
.measure { max-width: 62ch; }

/* Leitpfosten: die Marke an der Kante */
.post {
  position: absolute;
  z-index: 3;
  left: calc(var(--edge) + 2px);
  width: 44px; height: 3px;
  border-radius: 2px;
  background: var(--line);
  transform-origin: left center;
  transform: scaleX(0.34);
  transition: background .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1),
              box-shadow .7s cubic-bezier(.16,1,.3,1);
}
.post.lit {
  background: var(--signal);
  transform: scaleX(1);
  box-shadow: 0 0 12px 1px rgba(249, 115, 22, .45);
}
.post.flare { animation: flare 1.1s cubic-bezier(.16,1,.3,1) both; }
@keyframes flare {
  0%   { background: #FB923C; box-shadow: 0 0 20px 3px rgba(253, 186, 116, .5); }
  100% { background: var(--signal); box-shadow: 0 0 12px 1px rgba(249, 115, 22, .45); }
}
@media (prefers-reduced-motion: reduce) { .post.flare { animation: none; } }
@media (max-width: 860px) { .post { width: 22px; } }
.post[data-mark]::after {
  content: attr(data-mark);
  position: absolute;
  right: calc(100% + 14px); top: -7px;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--steel);
  transition: color .25s ease;
}
.post.lit[data-mark]::after { color: var(--paint); }
@media (max-width: 860px) {
  .post[data-mark]::after { right: auto; left: 20px; top: 15px; font-size: 12px; }
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: 0.92; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(3.4rem, 11.5vw, 9rem); }
h2 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--paint); }
.muted { color: var(--steel); }
.small { font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(64px, 12vh, 140px);
  padding-bottom: 96px;
}
.hero h1 { margin-bottom: clamp(20px, 4vh, 40px); }
@media (min-width: 1100px) {
  .hero h1 { font-size: clamp(5rem, 9.2vw, 9.5rem); }
}
.hero h1 .l2 { display: block; color: var(--steel); }
.hero .lead { max-width: 54ch; margin-bottom: clamp(24px, 4vh, 40px); }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  margin-top: clamp(28px, 5vh, 64px);
  font-size: 14px; color: var(--steel);
}
.hero-foot .sep { width: 34px; height: 1px; background: var(--line); }
.hero-foot .mark { font-family: var(--display); font-weight: 700; letter-spacing: .16em; color: var(--paint); }

/* ---------- Aktion ---------- */

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--signal); color: var(--signal-ink);
  font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.15rem);
  text-transform: uppercase; letter-spacing: -0.01em; text-decoration: none;
  padding: 20px 28px; border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease;
}
.cta:hover { transform: translateX(6px); }
.cta:active { transform: translateX(2px); }
.cta .arrow { transition: transform .18s cubic-bezier(.2,.7,.3,1); }
.cta:hover .arrow { transform: translateX(4px); }
.cta[disabled] { background: var(--steel); cursor: not-allowed; transform: none; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--paint); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color .2s ease;
}
.link:hover { border-color: var(--signal); }

/* ---------- Gegenüberstellung Ist / Soll ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: 56px; }
.split h3 { margin-bottom: 14px; }
.split .col + .col h3 { color: var(--paint); }

/* ---------- Arbeit: großformatig, ohne Bedienelement ---------- */

.work { margin-top: 56px; }
.work-head { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 40px; }
.work-head dt { font-size: 13px; color: var(--steel); letter-spacing: .1em; text-transform: uppercase; }
.work-head dd { margin: 4px 0 0; font-family: var(--display); font-size: 17px; }
.shots { display: grid; gap: clamp(14px, 2vw, 26px); }
.shots img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  background: var(--asphalt-2);
}
.shots .pair { display: grid; gap: inherit; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.shot-note { font-size: 14px; color: var(--steel); margin-top: 10px; }

/* ---------- Bausteine ---------- */

.blocks { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.block {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 9fr);
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(32px, 5vh, 56px) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .block { grid-template-columns: 1fr; } }
.block h3 { margin-bottom: 12px; }
.block ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
@media (max-width: 760px) { .block ul { columns: 1; } }
.block li { font-size: 15px; color: var(--steel); padding: 7px 0 7px 18px; position: relative; break-inside: avoid; }
.block li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--steel); }

/* ---------- Ablauf ---------- */

.steps { margin-top: 56px; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: 32px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 0.9; color: var(--steel); transition: color .25s ease; }
.step.on .n { color: var(--signal); }
@media (max-width: 560px) { .step { grid-template-columns: 64px minmax(0, 1fr); } }

/* ---------- Arbeitsweise / Zahlen ---------- */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 56px; }
.fact .v { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.05em; }
.fact .k { color: var(--steel); font-size: 15px; margin-top: 8px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 16px; height: 2px; background: var(--steel); flex: none; transition: transform .2s ease, background .2s ease; }
.faq details[open] summary::after,
.faq summary:hover::after { background: var(--paint); }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq .a { padding: 0 0 26px; color: var(--steel); max-width: 62ch; }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 80px); margin-top: 56px; }
.dl { display: grid; gap: 18px; margin: 0; }
.dl dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.dl dd { margin: 2px 0 0; font-family: var(--display); font-size: 17px; }
.dl a { text-decoration: none; border-bottom: 1px solid var(--line); }
.dl a:hover { border-color: var(--signal); }

.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: 14px; color: var(--steel); margin-bottom: 8px; }
.input {
  width: 100%; font: 400 16px/1.5 var(--sans);
  color: var(--paint); background: var(--asphalt-2);
  border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px;
}
.input::placeholder { color: #A7B8D8; }
.input:focus { outline: none; border-color: var(--signal); }
textarea.input { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--steel); margin-top: 16px; }
.form-status { margin-top: 14px; font-size: 15px; }
.form-status[data-state="ok"] { color: var(--signal); }
.form-status[data-state="err"] { color: #FF8A7A; }

/* ---------- Fuß ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 64px calc(var(--edge) + 72px);
  color: var(--steel); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between;
  position: relative; z-index: 2; background: var(--asphalt);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--paint); }

/* ---------- Bewegung: ein orchestrierter Moment ---------- */

.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js [data-rise].in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .edge::after { transform: scaleY(1); }
  .cta, .cta .arrow { transition: none; }
}

figure { margin: 0; }
.shots figure + figure { margin-top: 0; }

/* Luft unter den großen Überschriften: mehr Raum über einer Überschrift als darunter,
   aber der Fließtext darf nicht an der Grundlinie kleben. */
.wide > h2 { margin-bottom: clamp(24px, 3.2vw, 44px); }
.wide > h2 + .lead { margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- Rechtsseiten ---------- */
.legal h1 { font-size: clamp(2.1rem, 6.4vw, 4.4rem); margin-bottom: clamp(24px, 3vw, 40px); overflow-wrap: anywhere; hyphens: auto; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: clamp(40px, 5vh, 64px) 0 14px; }
.legal p, .legal li { max-width: 68ch; color: var(--steel); }
.legal p strong, .legal li strong { color: var(--paint); font-weight: 600; }
.legal address { font-style: normal; color: var(--paint); }
.legal ul { padding-left: 18px; }
.legal li { padding: 3px 0; }
.legal a { color: var(--paint); text-decoration: none; border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--signal); }
.legal .cta { color: var(--signal-ink); border-bottom: 0; }
.legal dl { margin: 0; }


/* ---------- Der Knick: die Kante biegt ab und führt zur Aktion ---------- */
.elbow {
  position: absolute;
  left: var(--edge);
  height: 2px;
  background: linear-gradient(to right, var(--signal) 0%, var(--signal) 52%, #FDBA74 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 0 10px 1px rgba(249, 115, 22, .55), 0 0 28px 5px rgba(249, 115, 22, .2);
  pointer-events: none;
}
.elbow.on { transform: scaleX(1); }
/* Nach der Ankunft beruhigt sich die Linie zu ruhigem Orange. */
.elbow.settled { background: var(--signal); transition: transform .9s cubic-bezier(.16,1,.3,1), background .6s ease; }
.cta.lit { box-shadow: 0 0 26px 2px rgba(249, 115, 22, .4), 0 0 70px 12px rgba(249, 115, 22, .16); }

/* Die Kante läuft in den Knopf hinein und füllt ihn aus. */
.cta.wired {
  position: relative;
  background: transparent;
  color: var(--signal);
  box-shadow: inset 0 0 0 2px var(--signal);
  transition: color .28s ease .62s, box-shadow .45s ease;
}
.cta.wired::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--signal) 0%, var(--signal) 58%, #FDBA74 100%);
  box-shadow: 0 0 26px 6px rgba(253, 186, 116, .3);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .7s cubic-bezier(.16,1,.3,1), background .55s ease, box-shadow .55s ease;
}
.cta.wired.settled::before { background: var(--signal); box-shadow: none; }
/* Während die Füllung durchläuft, wird die Beschriftung kurz weiß:
   so bleibt sie sowohl auf Blau als auch auf Orange lesbar. */
.cta.wired .label, .cta.wired .arrow { position: relative; z-index: 1; }
.cta.wired.filled .label, .cta.wired.filled .arrow { animation: labelDurchlauf .8s ease forwards; }
@keyframes labelDurchlauf {
  0%   { color: var(--signal); }
  22%  { color: #FFFFFF; }
  68%  { color: #FFFFFF; }
  100% { color: var(--signal-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .cta.wired.filled .label, .cta.wired.filled .arrow { animation: none; }
}
.cta.wired.filled { color: var(--signal-ink); }
.cta.wired.filled::before { transform: scaleX(1); }
/* An der Kante angeschlossen: der Knopf bleibt stehen, nur der Pfeil bewegt sich. */
#kontakt .cta:hover { transform: none; }
#kontakt .cta:active { transform: none; }
#kontakt .cta.lit:hover { box-shadow: 0 0 34px 3px rgba(249, 115, 22, .55), 0 0 90px 16px rgba(249, 115, 22, .2); }
@media (prefers-reduced-motion: reduce) {
  .elbow { transition: none; }
  .edge-head { display: none; }
}
