/* dekodelux.de · Nachtfahrt
   Fast-Schwarz als Boden, Rot nur als Licht, Fahrbahnlinien als 1-px-Raster,
   Schilder (#141418 mit weißem Innenrand) tragen Navigation und Ziele. */

/* ---------- Schriften (selbst gehostet, OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variablen ---------- */
:root {
  /* Farben (Palette „Glut“) */
  --ground: #0A0A0C;
  --asphalt: #141418;
  --line: #26262C;
  --lane: #3A3A42;
  --lane-strong: #55555E;
  --sign-rule: #2E2E35;
  --text: #F4F4F5;
  --text-body: #C9C9CE;
  --text-2: #9C9CA3;
  --text-3: #85858D;
  --red: #E5222F;
  --red-press: #D41E2A;
  --red-light: #FF4D57;
  --red-hot: #FF7A80;

  /* Schrift */
  --font: "Archivo", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wide: 112%;

  /* Raster und Abstände */
  --maxw: 1296px;
  --gutter: clamp(16px, 6vw - 8px, 72px);
  --cg: clamp(16px, 2.2vw, 32px);
  --sy: clamp(64px, 6vw + 16px, 112px);
  --gantry-h: 72px;

  /* Größen */
  --h2-size: clamp(min(2.25rem, 10vw), 1.35rem + 3vw, 4rem); /* 10vw: „Zusammenarbeit“ passt auch auf 320 px */
  --h3-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
  --lead-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem);

  /* Einstieg: Werte für das Regler-Panel (Phase 6) */
  --hero-top: clamp(40px, 7svh, 88px);
  --hero-bottom: clamp(32px, 5svh, 48px);
  --h1-gap: clamp(28px, 4.5svh, 56px);
  --plate-w: 340px;
  --cta-y: 0px;

  /* Bewegung */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dash: linear-gradient(to right, var(--lane) 55%, transparent 0) 0 0 / 14px 1px repeat-x;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--ground);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--gantry-h); /* Abschnittskante landet genau auf der Linie der Schilderbrücke */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--lane) var(--ground);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--red-light);
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
strong { font-weight: 600; color: var(--text); }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; border-radius: 3px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--lane); border: 3px solid var(--ground); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--lane-strong); }

.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Fahrbahnränder: zwei durchgehende 1-px-Linien an den Rändern des Inhalts */
main > section > .wrap, .foot > .wrap { position: relative; padding-block: var(--sy); }
@media (min-width: 900px) {
  main > section > .wrap::before, main > section > .wrap::after,
  .foot > .wrap::before, .foot > .wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
    background: var(--line); pointer-events: none;
  }
  main > section > .wrap::before, .foot > .wrap::before { left: calc(-1 * min(var(--gutter) / 2, 36px)); }
  main > section > .wrap::after, .foot > .wrap::after { right: calc(-1 * min(var(--gutter) / 2, 36px)); }
}

.band { background-color: var(--asphalt); border-block: 1px solid var(--line); --sign-bg: var(--ground); }

/* ---------- Typo ---------- */
.h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  font-stretch: var(--wide);
  letter-spacing: -.032em;
  line-height: 1.02;
  text-wrap: balance;
}
.lead { font-size: var(--lead-size); line-height: 1.5; color: var(--text); }
section p { color: var(--text-body); }
section p.lead { color: var(--text); }

/* ---------- Schild ---------- */
.sign {
  position: relative;
  background: var(--sign-bg, var(--asphalt));
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 7px var(--sign-bg, var(--asphalt)),
    inset 0 0 0 9.5px var(--text),
    0 24px 60px -16px rgba(0, 0, 0, .75);
}

/* ---------- Knöpfe und Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px 0 26px;
  border: 0; border-radius: 6px;
  background: var(--red); color: #fff;
  font-size: 1.125rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
  transition: background-color .2s, box-shadow .35s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover { background: var(--red-press); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--red-light); font-size: 1.125rem; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(255, 77, 87, .4);
  text-underline-offset: 9px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s, color .2s;
}
.textlink:hover { text-decoration-color: var(--red-light); color: var(--red-hot); }

/* Ausfahrt: kleiner Schild-Link zur Anfrage, wählt das Thema im Formular vor */
.exit {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; justify-self: start;
  min-height: 40px; padding: 0 12px 0 14px;
  border: 1px solid var(--lane); border-radius: 6px;
  font-size: .9375rem; font-weight: 600; color: var(--text); text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.exit svg { width: 14px; height: 14px; color: var(--red-light); transition: transform .35s var(--ease); }
.exit:hover { border-color: var(--text); background: rgba(244, 244, 245, .04); }
.exit:hover svg { transform: translate(2px, -2px); }

/* ---------- Schilderbrücke (Kopfzeile) ---------- */
.gantry {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.gantry__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--gantry-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; color: var(--red-light); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__word { font-size: 1.375rem; font-weight: 800; font-stretch: var(--wide); letter-spacing: -.02em; }
.brand__sub { display: none; margin-top: 4px; font-size: .75rem; font-weight: 500; color: var(--text-2); }

.dest { display: none; }
.dest ul { display: flex; gap: 22px; }
.dest a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  font-size: .9375rem; font-weight: 600; color: var(--text); text-decoration: none;
  transition: color .3s;
}
.dest__arr { position: relative; width: 14px; height: 14px; flex: none; }
.dest__arr svg { position: absolute; inset: 0; width: 14px; height: 14px; transition: opacity .3s, transform .35s var(--ease); }
.dest__arr .a-up { opacity: 0; transform: translateY(4px); }
.dest a:hover { color: #fff; }
.dest a:hover .a-ne { transform: translate(2px, -2px); }
.dest a.is-passed { color: var(--text-3); }
.dest a.is-current { color: var(--red-light); }
.dest a.is-current .a-ne { opacity: 0; }
.dest a.is-current .a-up { opacity: 1; transform: none; }
/* Pfeile nur an den drei Zielen; „Über mich“ und „Fragen“ stehen ohne Pfeil hinter einem Strich */
.dest__plain--first { display: flex; align-items: center; }
.dest__plain--first::before { content: ""; width: 1px; height: 18px; margin-right: 22px; background: var(--lane); }

.gantry__cta {
  display: none; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--lane); border-radius: 6px;
  font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.gantry__cta:hover { border-color: var(--text); background: rgba(244, 244, 245, .04); }
.gantry__cta.is-current { border-color: rgba(255, 77, 87, .7); color: var(--red-light); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--lane); border-radius: 6px; background: transparent;
  font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.menu-btn:hover { border-color: var(--text); }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 16px var(--gutter) 24px;
  background: var(--ground); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  min-height: calc(100svh - var(--gantry-h));
}
.menu__sign { display: flex; flex-direction: column; padding: 14px 20px; }
.menu__more { display: flex; gap: 28px; padding: 14px 6px 18px; }
.menu__more a {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: 1.125rem; font-weight: 600; text-decoration: none; color: var(--text);
}
.menu__more a.is-passed { color: var(--text-3); }
.menu__more a.is-current { color: var(--red-light); }
.menu__cta { position: relative; z-index: 1; } /* über dem Schatten des Schilds */
.menu__sign a {
  display: flex; align-items: center; gap: 14px; min-height: 52px;
  font-size: 1.25rem; font-weight: 700; font-stretch: 104%; text-decoration: none;
}
.menu__sign a + a { border-top: 1px solid var(--sign-rule); }
.menu__sign svg { width: 22px; height: 22px; }
.menu__sign a.is-passed { color: var(--text-3); }
.menu__sign a.is-current { color: var(--red-light); }

@media (min-width: 640px) {
  .gantry__cta { display: inline-flex; margin-left: auto; }
}
@media (min-width: 1240px) {
  .dest { display: block; }
  .menu-btn, .menu { display: none !important; }
}
@media (min-width: 1440px) {
  .brand__sub { display: block; }
}
@media (max-width: 719px) {
  :root { --gantry-h: 60px; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__word { font-size: 1.25rem; }
}

/* ---------- Einstieg ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--gantry-h));
  display: flex;
  isolation: isolate;
}
.hero__trails { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* Fahrbahnränder liegen unter dem Licht, nicht darüber */
.hero > .wrap::before, .hero > .wrap::after { z-index: -2; }
main > section.hero > .wrap { padding-block: var(--hero-top) var(--hero-bottom); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "sign" "lede" "cta" "facts";
  align-content: start;
}
.hero__head { grid-area: head; container-type: inline-size; }
.hero__h1 {
  font-size: var(--h1-size, min(6rem, 11.3cqi, 10.6svh));
  font-weight: 800;
  font-stretch: var(--wide);
  letter-spacing: -.035em;
  line-height: .94;
  max-width: var(--h1-measure, none);
}
.hero__h1 span { display: block; }
.hero__sign { grid-area: sign; margin-top: 32px; }
.wegweiser { display: flex; flex-direction: column; padding: 16px 22px; }
.wegweiser a {
  display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 4px 6px;
  font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); font-weight: 700; font-stretch: 104%;
  letter-spacing: -.01em; color: var(--text); text-decoration: none;
  transition: color .25s;
}
.wegweiser a + a { border-top: 1px solid var(--sign-rule); }
.wegweiser svg { width: 26px; height: 26px; flex: none; transition: transform .4s var(--ease); }
.wegweiser a:nth-child(1):hover svg { transform: translateY(-4px); }
.wegweiser a:nth-child(2):hover svg { transform: translate(3px, -3px); }
.wegweiser a:nth-child(3):hover svg { transform: translateX(4px); }
.wegweiser a:hover { color: var(--red-light); }
.coord { margin-top: 14px; padding-left: 6px; font-size: .8125rem; color: var(--text-3); }

.hero__lede { grid-area: lede; margin-top: 32px; max-width: 27em; font-size: clamp(1.125rem, .95rem + .6vw, 1.3125rem); line-height: 1.5; color: var(--text-body); }
.hero__cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; transform: translateY(var(--cta-y)); }
.hero__facts {
  grid-area: facts; align-self: end;
  display: flex; flex-wrap: wrap; gap: 6px 0;
  padding-top: 40px; font-size: .9375rem; color: var(--text-2);
  /* Auf flachen Laptop-Bildschirmen laufen die Spuren unter der Zeile durch: dunkler Rand hält sie lesbar */
  text-shadow: 0 0 3px var(--ground), 0 0 10px var(--ground), 0 0 18px var(--ground);
}
.hero__facts li { display: flex; align-items: center; }
.hero__facts li + li::before { content: ""; width: 14px; height: 1px; margin: 0 12px; background: var(--lane-strong); }

/* Handy: Wegweiser als Brückenschild mit drei Feldern, Lichtband zwischen Knopf und Fakten */
@media (max-width: 719px) {
  :root { --hero-top: 28px; --band-h: clamp(150px, 24svh, 210px); }
  .hero__sign { margin-top: 24px; }
  .wegweiser { flex-direction: row; padding: 16px 12px 14px; }
  .wegweiser a {
    flex: 1 1 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px;
    min-height: 0; padding: 4px 10px; font-size: 1.0625rem; line-height: 1.15;
  }
  .wegweiser a + a { border-top: 0; border-left: 1px solid var(--sign-rule); }
  .wegweiser svg { width: 22px; height: 22px; }
  .coord { margin-top: 10px; font-size: .75rem; }
  .hero__lede { margin-top: 24px; }
  .hero__cta { margin-top: 24px; margin-bottom: var(--band-h); }
  .hero__cta .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 4px; padding-top: 0; }
  .hero__facts li + li::before { display: none; }
}
/* Tablet: Schild neben der Einleitung */
@media (min-width: 720px) and (max-width: 1179px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, var(--plate-w));
    grid-template-areas: "head head" "lede sign" "cta sign" "facts facts";
    grid-template-rows: auto auto auto 1fr;
    column-gap: 48px;
  }
  .hero__sign { margin-top: var(--h1-gap); }
  .hero__lede { margin-top: var(--h1-gap); }
  .coord { display: none; }
}
/* Desktop: wie die Skizze */
@media (min-width: 1180px) {
  /* Feinjustierung aus dem Regler-Panel vom 12.10.2026, fest übernommen in Phase 6 */
  .hero {
    --hero-top: 72px;
    --h1-size: 80px;
    --h1-gap: 40px;
    --cta-y: -12px;
    --plate-w: 285px;
    --hero-bottom: 0px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) var(--plate-w);
    grid-template-areas: "head sign" "lede ." "cta ." "facts facts";
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(48px, 6vw, 120px);
  }
  .hero__sign { margin-top: -18px; }
  .hero__lede { margin-top: var(--h1-gap); }
}

/* ---------- Von hier ---------- */
.here__grid { display: grid; gap: 40px var(--cg); }
.here__text { display: grid; gap: 22px; max-width: 62ch; }
.here__sign { display: grid; gap: 6px; padding: 28px 32px 30px; align-self: start; }
.here__exit { width: 30px; height: 30px; color: var(--text); margin-bottom: 6px; }
.here__town {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 800; font-stretch: var(--wide);
  letter-spacing: -.03em; line-height: 1;
}
.here__parts { display: flex; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sign-rule); font-size: 1.0625rem; font-weight: 600; color: var(--text-body); }
.here__parts span + span::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 14px; vertical-align: -.1em; background: var(--lane-strong); }
@media (min-width: 960px) {
  .here__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 40px; }
  .here__h { grid-column: 1 / span 10; }
  .here__sign { grid-column: 1 / span 5; grid-row: 2; }
  .here__text { grid-column: 7 / span 6; grid-row: 2; }
}

/* ---------- Websites ---------- */
.websites { position: relative; }
.websites > .wrap { z-index: 1; }
.websites__head { display: grid; gap: 24px; align-items: start; }
.websites__head > p { max-width: 52ch; }
.proof { width: min(100%, 680px); margin-top: 36px; padding: 24px 28px 20px; }
.proof__h { font-size: .9375rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.proof__list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; background: var(--dash); }
.proof__list dt { font-size: .9375rem; color: var(--text-2); }
.proof__list dd { font-size: .9375rem; color: var(--text); text-align: right; white-space: nowrap; }
.proof__list dd:not(.mono) { max-width: 55%; white-space: normal; overflow-wrap: anywhere; }
.proof__note { margin-top: 14px; font-size: .8125rem; line-height: 1.6; color: var(--text-3); }

.lanes { margin-top: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.lane { display: grid; gap: 14px; padding: 30px 0 32px; background: var(--dash); }
.lane:first-child { background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.lane__h { font-size: var(--h3-size); font-weight: 700; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.25; }
.lane p { max-width: 58ch; }
.lane--lead .lane__h { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.03em; }
.lane--lead p { font-size: var(--lead-size); color: var(--text); }

@media (min-width: 960px) {
  .websites__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--cg); }
  .proof__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .lane { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); align-items: start; padding: 36px 0 38px; }
  .lane__h { grid-column: 1 / span 4; }
  .lane p { grid-column: 5 / span 6; }
  .lane .exit { grid-column: 11 / span 2; justify-self: end; }
  .lane--lead { padding: 44px 0 48px; }
  .lane--lead .lane__h { grid-column: 1 / span 4; }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .lane p { grid-column: 5 / span 5; }
  .lane .exit { grid-column: 10 / span 3; }
}

/* Lichtspur-Fragmente an Abschnittsgrenzen */
.frag { position: absolute; pointer-events: none; overflow: visible; z-index: 0; }
.frag--websites { right: 0; top: -84px; width: min(100%, 980px); height: 220px; }
.frag--arrival { left: 0; bottom: 0; width: min(58%, 900px); height: 54%; }
.frag--tools { left: 0; top: -70px; width: min(100%, 760px); height: 170px; }
.frag--about { right: 0; top: -76px; width: min(100%, 860px); height: 180px; }
.tools, .about { position: relative; }
.tools > .wrap, .about > .wrap { z-index: 1; }
.frag path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.frag.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); transition-delay: var(--d, 0s); }
@media (max-width: 959px) {
  .frag--websites { top: -64px; height: 128px; width: 100%; opacity: .8; }
  .frag--tools { top: -56px; height: 112px; width: 100%; opacity: .8; }
  .frag--arrival, .frag--about { display: none; }
}

/* ---------- Social Media ---------- */
/* Eigene Beispielentwürfe im jeweiligen Beitragsformat. */
.formats { display: grid; gap: 40px var(--cg); margin-top: clamp(32px, 4vw, 56px); --frame-h: 240px; }
.format { display: grid; gap: 14px; align-content: start; }
.format__fig { width: max-content; max-width: 100%; margin-bottom: 8px; }
.format__frame { display: block; height: var(--frame-h); width: auto; border: 1px solid var(--lane); border-radius: 4px; background: var(--ground); }
.sample-label { display: block; margin-top: 12px; font-size: .75rem; font-weight: 500; line-height: 1.3; color: var(--text-2); }
.format--post .format__frame { aspect-ratio: 4 / 5; }
.format--reel .format__frame { aspect-ratio: 9 / 16; }
.format--square .format__frame { aspect-ratio: 1 / 1; }
.format__h { font-size: var(--h3-size); font-weight: 700; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.25; }
.format p:not(.dim) { max-width: 46ch; }
.format .exit { margin-top: 6px; }
.dim {
  position: relative; display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 12px 6px 0; font-size: .75rem; color: var(--text-3);
}
section p.dim { color: var(--text-3); }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--lane-strong); }
.dim::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-inline: 1px solid var(--lane-strong); }
@media (min-width: 640px) {
  .formats { --frame-h: 280px; }
}
@media (min-width: 1024px) {
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); --frame-h: clamp(240px, 22vw, 300px); }
  .format__fig { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(var(--frame-h) + 66px); }
}

/* ---------- Software und KI ---------- */
.tools__grid { display: grid; gap: 48px var(--cg); }
.tools__text { display: grid; gap: 26px; align-content: start; }
.tools__note { padding-top: 22px; border-top: 1px solid var(--line); max-width: 56ch; }
.tools__sign { padding: 26px 32px 18px; align-self: start; }
.tools__sign-h { font-size: .9375rem; font-weight: 600; color: var(--text-2); padding-bottom: 6px; }
.tools__list li {
  display: flex; gap: 16px; padding: 14px 0;
  font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--text);
}
.tools__list li + li { border-top: 1px solid var(--sign-rule); }
/* Rücklicht als Aufzählungszeichen */
.tools__list li::before {
  content: ""; flex: none; width: 14px; height: 3px; margin-top: .62em; border-radius: 2px;
  background: var(--red-light);
}
.tools__close { display: grid; gap: 28px; padding-top: 40px; background: var(--dash); }
.statement {
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.875rem); font-weight: 700; font-stretch: 108%;
  letter-spacing: -.022em; line-height: 1.15; color: var(--text); max-width: 28ch; text-wrap: balance;
}
section p.statement { color: var(--text); }
.statement em { font-style: normal; color: var(--red-light); }
@media (min-width: 960px) {
  .tools__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tools__text { grid-column: 1 / span 6; }
  .tools__sign { grid-column: 8 / span 5; margin-top: calc(var(--h2-size) * 2.4); }
  .tools__close { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ---------- Ablauf ---------- */
.route__steps { display: grid; margin-top: clamp(32px, 4vw, 56px); --rgap: 32px; }
.step { position: relative; padding: 0 0 44px 72px; }
.step:last-child { padding-bottom: 0; }
.step__km {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--ground); color: var(--text-3); font-size: 1rem;
  box-shadow: inset 0 0 0 3px var(--ground), inset 0 0 0 4.5px var(--lane-strong);
  transition: color .4s, box-shadow .4s;
}
.step.is-lit .step__km { color: var(--text); box-shadow: inset 0 0 0 3px var(--ground), inset 0 0 0 4.5px var(--text); }
.step__seg {
  position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--lane) 55%, transparent 0) 0 0 / 2px 14px repeat-y;
}
.step__seg span {
  position: absolute; inset: 0; border-radius: 2px;
  background: var(--red-light);
  transform-origin: top; transform: scaleY(var(--f, 0));
}
.step__h { font-size: var(--h3-size); font-weight: 700; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.25; margin: 6px 0 12px; }
.step p { max-width: 34ch; }
@media (min-width: 820px) {
  .route__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--rgap); }
  .step { padding: 76px 0 0; }
  .step__seg {
    left: 52px; top: 21px; bottom: auto; width: calc(100% + var(--rgap) - 60px); height: 2px;
    background: linear-gradient(to right, var(--lane) 55%, transparent 0) 0 0 / 14px 2px repeat-x;
  }
  .step__seg span { transform-origin: left; transform: scaleX(var(--f, 0)); }
  .step__h { margin-top: 0; }
}

/* ---------- Über mich ---------- */
.about__grid { display: grid; gap: 48px var(--cg); }
.about__contact { display: grid; gap: 12px; padding: 32px; align-self: start; }
.about__contact .brand__mark { width: 42px; height: 42px; margin-bottom: 10px; }
section p.about__contact-name { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--text); }
.about__contact > p:not(.about__contact-name) { max-width: 24ch; }
.about__contact > a { width: fit-content; max-width: 100%; margin-top: 10px; color: var(--red-light); font-size: 1rem; overflow-wrap: anywhere; text-decoration-color: rgba(255, 77, 87, .45); }
.about__contact > a:hover { text-decoration-color: var(--red-light); }
.about__contact > a + a { margin-top: 0; }
/* Porträt: KI-Bild aus Dennis' eigenen Fotos, Hintergrund auf Asphalt gesetzt, Herkunft in assets/img/dennis-kock.webp.json */
.about__photo { margin: 0 0 8px; }
.about__photo img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--asphalt); }
.about__photo figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.4; color: var(--text-3); }

/* Handschrift von Dennis: vektorisiert aus seiner Schriftprobe (handschrift/), nur als Unterschrift */
.hand {
  width: auto; aspect-ratio: 257 / 88; overflow: visible; color: var(--text);
  stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round;
  transform: rotate(-2deg); transform-origin: left center;
}
.hand--card { height: clamp(54px, 5vw, 72px); margin: 4px 0 2px -4px; }
.hand--sign { height: clamp(44px, 3.6vw, 52px); margin-top: -4px; stroke-width: 2; }
.about__text { display: grid; gap: 22px; align-content: start; }
.about__text .h2 { margin-bottom: 6px; }
.honest {
  margin-top: 10px; padding: 26px 30px;
  border-radius: 12px; background: var(--asphalt);
  box-shadow: inset 0 0 0 7px var(--asphalt), inset 0 0 0 9.5px var(--text), 0 24px 60px -16px rgba(0, 0, 0, .75);
}
.name { padding-top: 56px; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; }
.name__word {
  display: flex; white-space: nowrap;
  font-size: clamp(2.75rem, 13.2vw, 13.5rem); font-weight: 800; font-stretch: var(--wide);
  letter-spacing: -.04em; line-height: .9;
}
.name__part { position: relative; }
.name__part--de { color: var(--text-3); }
.name__part--lux { color: var(--red-light); text-shadow: 0 0 .25em rgba(229, 34, 47, .55), 0 0 .08em rgba(255, 122, 128, .5); }
.name__tag {
  position: absolute; left: .04em; right: .08em; top: 100%; margin-top: 18px; padding-top: 18px;
  font-size: .9375rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; line-height: 1.3;
  color: var(--text-2); text-shadow: none; white-space: nowrap;
}
.name__tag::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border: 1px solid var(--lane-strong); border-top: 0; }
.name__part--lux .name__tag { color: var(--red-light); }
.name__part--lux .name__tag::before { border-color: rgba(255, 77, 87, .6); }
.name figcaption { margin-top: 84px; font-size: 1.0625rem; color: var(--text-2); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(48px, 6vw, 80px); }
  .about__contact { grid-column: 1 / span 4; }
  .about__text { grid-column: 6 / span 7; }
  .name { grid-column: 1 / -1; }
}

/* ---------- Fragen ---------- */
.faq__grid { display: grid; gap: 40px var(--cg); }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); font-weight: 600; line-height: 1.3; color: var(--text);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--text-3); transition: transform .45s var(--ease), color .2s; }
.faq summary:hover svg { color: var(--text); }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--red-light); }
.faq details p { padding: 0 0 30px; max-width: 64ch; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq { interpolate-size: allow-keywords; } }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .faq__h { grid-column: 1 / span 4; position: sticky; top: calc(var(--gantry-h) + 40px); align-self: start; }
  .faq__list { grid-column: 6 / span 7; }
}

/* ---------- Anfrage ---------- */
.inquiry { position: relative; overflow: clip; }
.inquiry > .wrap { z-index: 1; }
.inquiry__grid { display: grid; gap: 40px var(--cg); }
.inquiry__text { display: grid; gap: 22px; align-content: start; container-type: inline-size; }
/* „Erstgespräch“ ist das längste Wort: Größe an die Spaltenbreite koppeln, damit es nie ins Formular ragt */
.inquiry__h { font-size: min(clamp(2.5rem, 1.4rem + 3.8vw, 4.75rem), 13cqi); }
.inquiry__alt { color: var(--text-2); }
.inquiry__alt a { color: var(--red-light); font-weight: 600; text-decoration-color: rgba(255, 77, 87, .45); }
.inquiry__alt a:hover { text-decoration-color: var(--red-light); }
.inquiry__panel { padding: 30px 24px 28px; }

.fields { display: grid; gap: 22px 20px; }
.field { min-width: 0; }
.field label, .topics legend { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; color: var(--text); }
.opt { margin-left: 6px; font-weight: 500; color: var(--text-3); }
.field input, .field textarea, .field select {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--lane); border-radius: 6px;
  background: var(--ground); color: var(--text); font-size: 1.0625rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6' fill='none' stroke='%239C9CA3' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field select option { background: var(--asphalt); color: var(--text); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--lane-strong); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 77, 87, .45); }
.field__hint { margin-top: 7px; font-size: .875rem; color: var(--text-3); }
.field__error { display: none; margin-top: 8px; font-size: .9375rem; font-weight: 500; color: var(--red-light); }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: var(--red-light); }

.topics { margin: 0; padding: 0; border: 0; }
.topics legend { padding: 0; }
.topics__grid { display: grid; gap: 8px; margin-top: 2px; }
.field label.chip {
  position: relative; display: flex; margin: 0; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--lane); border-radius: 6px; background: var(--ground);
  font-size: 1rem; font-weight: 500; line-height: 1.25; color: var(--text-body); cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .4s;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip__box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 1.5px solid var(--lane-strong); border-radius: 4px; transition: background-color .2s, border-color .2s; }
.chip__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.topics .chip:hover { border-color: var(--lane-strong); color: var(--text); }
.chip:has(input:checked) { border-color: var(--text); color: var(--text); }
.chip:has(input:checked) .chip__box { background: var(--red); border-color: var(--red); }
.chip:has(input:checked) .chip__box svg { opacity: 1; transform: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--red-light); outline-offset: 2px; }
.chip.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 87, 0); }
  20% { box-shadow: 0 0 0 4px rgba(255, 77, 87, .6); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 87, 0); }
}

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__privacy { margin: 26px 0 20px; font-size: .9375rem; color: var(--text-2); }
.form__privacy a { color: var(--red-light); text-decoration-color: rgba(255, 77, 87, .45); }
#inquiry-form .btn { width: 100%; }
.form__status { margin-top: 14px; font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--red-light); }
.form__status a { color: var(--text); }
#form-wrap.is-sent form { display: none; }
.form__done { display: grid; gap: 14px; padding: 16px 8px 8px; }
.form__done:focus { outline: none; }
.form__done-mark { width: 44px; height: 44px; padding: 10px; border-radius: 8px; background: var(--red); color: #fff; }
.form__done h3 { font-size: var(--h3-size); font-weight: 700; font-stretch: 106%; letter-spacing: -.015em; line-height: 1.2; }
.form__done p:empty { display: none; }

@media (min-width: 560px) {
  .inquiry__panel { padding: 38px 40px 34px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
  .topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #inquiry-form .btn { width: auto; }
}
@media (min-width: 960px) {
  .inquiry__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .inquiry__text { grid-column: 1 / span 5; position: sticky; top: calc(var(--gantry-h) + 40px); align-self: start; }
  .inquiry__panel { grid-column: 6 / span 7; }
}

/* ---------- Fußzeile ---------- */
.foot { border-top: 1px solid var(--line); background: var(--ground); font-size: .9375rem; color: var(--text-2); }
main > section:last-child { border-bottom: 0; }
.foot > .wrap { padding-block: 56px 48px; }
.foot__grid { display: grid; gap: 28px var(--cg); }
.foot__brand { display: flex; gap: 12px; align-items: flex-start; }
.foot__brand .brand__mark { width: 26px; height: 26px; margin-top: 2px; }
.foot__brand p { display: flex; flex-direction: column; gap: 4px; }
.foot__brand .brand__word { color: var(--text); font-size: 1.25rem; line-height: 1.1; }
.foot__addr { font-style: normal; line-height: 1.7; }
.foot__addr a, .foot__legal a { color: var(--text); text-decoration-color: var(--lane-strong); }
.foot__addr a:hover, .foot__legal a:hover { text-decoration-color: var(--text); }
.foot__legal { display: flex; gap: 20px; align-items: flex-start; }
.foot__legal a { display: inline-flex; align-items: center; min-height: 32px; }
.foot__made { padding-top: 22px; background: var(--dash); color: var(--text-3); }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / span 4; }
  .foot__addr { grid-column: 5 / span 4; }
  .foot__legal { grid-column: 9 / span 4; justify-content: flex-end; }
  .foot__made { grid-column: 1 / -1; margin-top: 12px; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page > .wrap { padding-block: clamp(56px, 7vw, 112px); }
.page__body { max-width: 68ch; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.page__body h1 { font-size: var(--h2-size); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.032em; line-height: 1.02; margin-bottom: 18px; hyphens: auto; overflow-wrap: break-word; }
.page__body h2 { font-size: 1.375rem; font-weight: 700; font-stretch: 106%; margin-top: 22px; }
.page__body p, .page__body address { color: var(--text-body); font-style: normal; }
.page__body a { color: var(--red-light); }
.page__note { padding: 22px 26px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.back svg { width: 16px; height: 16px; transform: rotate(180deg); color: var(--red-light); }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
