/* ==========================================================================
   ruff_consult, css/style.css
   Quelle: DESIGN.md v1.3 (2026-09-10), Fassung der Lieferung
   docs/design-template/ruff-consult.html, Farbe seit D17 aus der Marke.
   Bei Widerspruch gilt DESIGN.md.
   Fundament, seit 2026-09-07 ohne Bausteine: Tokens, Basis, Typo-Rollen, Kopfzeile,
   Navigation, Buttons, Sektionsraster, Footer, Floating Button, Motion, Breakpoints.
   Bausteine liegen je Datei unter css/bausteine/ und werden im <head> nach dieser
   Datei geladen. Diese Datei ist während des Rebuilds gesperrt, Änderungen nur als
   eigener PR, siehe docs/entwicklung.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Schrift (D2): Manrope selbst gehostet unter fonts/, seit 2026-11-09.
      Drei Schnitte, statisch aus Manrope 4.505 (SIL OFL, fonts/OFL.txt).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens (D17 für Farbe, D6, D7, D8, D9)
      Palette der Marke seit 2026-09-10 (D17): fünf geliefert, zwei Verlaufsstopps
      abgeleitet. Gestrichen: --surface-tint, --surface-card, --carbon, --blue-dark,
      --cyan, --lav, --pink, --body-on-blue. Ersetzungstabelle in DESIGN.md, D17.
   -------------------------------------------------------------------------- */
:root {
  /* Flächen, D17, alle fünf geliefert */
  --paper: #eef0f2;   /* Grundfläche, "Hell" der Marke */
  --white: #ffffff;   /* Karten, Panels, zweite Sektionsfläche */
  --ink: #101113;     /* Text, Headlines, dunkle Buttons, dunkle Fläche */
  --blue: #384696;    /* Akzent: Kontakt-Panel, Hover-Ziel, Textlink, Ring auf hell */
  --yellow: #f1a910;  /* Signal auf --ink und --blue, sonst nur Fläche mit Ink-Text.
                         Nie Text, nie Linie auf --paper und --white (1.76 und 2.01) */

  /* Nur Verlaufsstopps nach D11, nie Text, nie Fläche eines Bedienelements */
  --blue-deep: #1f2a5c;
  --blue-light: #5b6cc0;

  /* Text auf hellen Flächen, D3 */
  --lead: #555653;
  --body: #636460;
  --muted: #6c6d6a;
  /* Text auf --ink, D3. Auf --blue gesperrt (3.62 und 2.72), dort Weiß und --paper */
  --body-dark: #a9aaa7;
  --muted-dark: #929292;

  /* Zustände, D9 */
  --danger: #b42318;
  --danger-face: #fef3f2;
  --success: #17692c;

  /* Linien, D8, Basis --ink */
  --line: rgba(16,17,19,.14);
  --line-card: rgba(16,17,19,.08);
  --line-strong: rgba(16,17,19,.46);

  /* Radien, D8 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;
  --r-section: 40px; /* D20: obere Ecken der Sektionsflächen, sonst nichts */

  /* Elevation, D8: nie auf Flächen, nur auf freigestellten Objekten */
  --shadow-1: 0 10px 24px rgba(40,45,85,.09);
  --shadow-2: 0 18px 45px rgba(0,0,0,.18);
  --shadow-3: 0 40px 75px rgba(4,26,116,.28);

  /* Raster, D7 */
  /* D21 (2026-09-14): Deckel statt fester Breite. Alle Nutzer setzen max-width in einem
     Elternteil mit --pad-x, der Inhalt ist also min(1520px, Fenster minus zwei Ränder):
     1253 px bei 1440, 1520 px ab 1728. Vorher fest 1240 px, das ließ auf 1920 px 340 px
     Rand je Seite. Fließtext bleibt über eigene max-width zwischen 480 und 720 px. */
  --container: 1520px;
  --pad-x: clamp(28px, 6.5vw, 104px);
  --pad-x-head: clamp(24px, 5vw, 84px); /* seit 2026-09-15 ohne Verwendung, die Kopfzeile folgt --pad-x, siehe .site-header */
  --gap: 10px;
  --gap-col: 80px;
  --header-h: 74px;

  /* Sektionsabstände, D7. Seit D20 eine Skala für alle Flächen, die Tint-Skala ist entfallen */
  --sec-top: 145px;
  --sec-bottom: 150px;

  /* Schrift, D2 (selbst gehostet, @font-face in Kapitel 0) */
  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Schriftgrößen der kleinen Rollen, eine Stelle für alle (Stand 2026-09-04).
     Display- und Heading-Rollen stehen als clamp() bzw. Festwert in Kapitel 3. */
  --fs-label: 11px;      /* Eyebrow, Kicker, Footer-Titel, Copyright, Header-CTA */
  --fs-label-cta: 12px;  /* Buttons, Pillen */
  --fs-body-s: 13px;     /* Navigation, Footer-Links, Rechtszeile, Telefon */
  --fs-body-m: 15px;     /* Nebentext, Ziffern, Wortmarke */
  --fs-body: 16px;       /* Fließtext, Basis */
  --fs-lead: 21px;       /* Lead-Absätze */
  --fs-menu: 38px;       /* Einträge im Mobile-Menü */

  /* Motion, D10 */
  --t: .25s;
  --ease-reveal: cubic-bezier(.2,.7,.2,1);
  /* Drücken (2026-10-13, Skill apple-design, Auftrag Christian Hansmann): Knöpfe geben im
     Moment des Herunterdrückens nach, nicht erst beim Loslassen. Auf 97 % in 100 ms,
     zurück mit --t. */
  --press: .97;
  --t-press: .1s;
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Focus, D9 und D17: Blau auf hell (7.40 und 8.45), Weiß auf --ink und --blue,
   weil Blau auf --ink nur 2.24 erreicht */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: inherit;
}
.contact-panel :focus-visible,
.on-ink :focus-visible,
.on-blue :focus-visible { outline-color: #ffffff; }

/* Skip-Link, D9 */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--pad-x); top: 8px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   3. Typografie-Rollen, D6, angehoben am 2026-09-04
      Vorgabe Christian Hansmann: die kleinen Rollen der Lieferung waren zu klein.
      Alle Rollen unter 20 px um eine Stufe angehoben, Hierarchie unverändert,
      siehe DESIGN.md, Offene Punkte. Display-Rollen und Headings bleiben.
   -------------------------------------------------------------------------- */
/* overflow-wrap greift nur, wenn ein Wort nicht in die Zeile passt (lange Komposita, Platzhalter) */
.display-1, .display-2, .display-3, .display-4 { overflow-wrap: anywhere; }
.display-1 { font-size: clamp(54px, 7.2vw, 108px); line-height: .92; letter-spacing: -.065em; font-weight: 500; }
.display-2 { font-size: clamp(48px, 5.6vw, 82px);  line-height: .92; letter-spacing: -.065em; font-weight: 500; }
.display-3 { font-size: clamp(46px, 4.6vw, 70px);  line-height: .95; letter-spacing: -.05em;  font-weight: 400; }
.display-4 { font-size: clamp(54px, 6.2vw, 96px);  line-height: .95; letter-spacing: -.05em;  font-weight: 400; }
.heading-l  { font-size: 27px; line-height: 1.15; letter-spacing: -.035em; font-weight: 400; }
.heading-m  { font-size: 25px; line-height: 1.2;  letter-spacing: -.03em;  font-weight: 400; }
.heading-s  { font-size: 22px; line-height: 1.15; letter-spacing: -.03em;  font-weight: 400; }
.heading-xs { font-size: 18px; line-height: 1.35; font-weight: 400; }
.lead       { font-size: var(--fs-lead); line-height: 1.4; color: var(--lead); }
.lead-hero  { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--lead); }
.body-l     { font-size: var(--fs-body); line-height: 1.6; color: var(--body); }
.body-m     { font-size: var(--fs-body-m); line-height: 1.55; color: var(--body); }
.body-s     { font-size: var(--fs-body-s); line-height: 1.5; }
.label      { font-size: var(--fs-label); line-height: 1.2; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.label-cta  { font-size: var(--fs-label-cta); line-height: 1; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.label-nav  { font-size: var(--fs-label); line-height: 1; letter-spacing: .1em; font-weight: 400; text-transform: uppercase; }

/* Zweiter Headline-Teil, ersetzt das <em> der Vorlage (D6) */
.soft { font-weight: 400; letter-spacing: -.055em; }

/* Kursive Ziffern, nur für diese Rollen (D6) */
.index, .feature-no, .expertise-code { font-style: italic; }
.index { font-size: var(--fs-body-m); color: var(--muted); }

/* Eyebrow: entfallen mit D20 (2026-09-14). Sektionsköpfe tragen kein Etikett mehr,
   die Rolle label bleibt für Kicker, Buttons und Kachel-Beschriftungen. */

/* Textlink im Fließtext, D5 */
a.inline { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
a.inline:hover { color: var(--ink); } /* D17: kein dunkleres Blau mehr */

/* --------------------------------------------------------------------------
   4. Kopfzeile, Marke, Navigation (Bausteine Kopfzeile, Marke,
      Mehrseiten-Navigation, Mobile-Menü)
   -------------------------------------------------------------------------- */
.site-header {
  /* klebt nicht, Vorgabe Christian Hansmann 2026-09-04 */
  position: relative; z-index: 20;
  height: var(--header-h);
  /* Kante der Kopfzeile gleich Kante des Hero-Inhalts (Weisung Christian Hansmann,
     2026-09-15, DEV-1584): Marke links und Button rechts stehen auf derselben Linie wie
     Kicker und E-Mail-Feld. Der Hero-Inhalt liegt in .hero-inner (max --container, mittig)
     hinter --pad-x, seine Kante ist also max(--pad-x, (Fenster minus --container) / 2),
     100 % ist hier die Fensterbreite. Geliefert war --pad-x-head (bewusst schmaler, D7),
     Abweichung von der Bauvorschrift "Kopfzeile", Nachtrag Phase 4. */
  padding: 0 max(var(--pad-x), calc((100% - var(--container)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  /* D20, Nachtrag 2026-09-14: Kopfzeile weiß ohne Haarlinie, sie geht in den weißen
     Hero über (Christian Hansmann, nach Vergleich). Geliefert war --paper mit .9 und
     border-bottom 1px --line. */
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Ausnahme für Seiten mit Aurora-Hintergrund im Hero (2026-09-18, Weisung Christian Hansmann:
   "the navbar background color overlaps the aurora, that needs fixing"). Die Kopfzeile steht
   im Fluss über dem Hero, nicht darauf, und trägt Weiß mit .9 vor dem --paper des body. Der
   Aurora-Hintergrund beginnt aber erst an der Oberkante des Hero, deshalb stand über der Farbe
   ein weißes Band und darunter setzte die Tönung hart ein. Lösung: Die Fläche .hero-aurora
   reicht seit demselben Tag um --header-h nach oben und bringt ihr eigenes Weiß mit, die
   Kopfzeile wird dafür durchsichtig. Sie liegt mit z-index 20 weiter über dem Hero, die Farbe
   scheint also durch, die Navigation bleibt darüber lesbar.
   Über :has() nur auf Seiten mit Aurora, alle anderen Seiten behalten Weiß mit .9 und die
   Unschärfe. Bei offenem Mobil-Menü kommt das Weiß zurück, sonst steht die Menüleiste über
   der Farbfläche.
   Die Datei ist während des Rebuilds gesperrt (CLAUDE.md, Repo-Konventionen), diese Regel
   gehört als eigener Punkt in den PR. */
body:has(.hero-aurora) .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:has(.hero-aurora).menu-open .site-header {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: var(--fs-body-m); font-weight: 700; letter-spacing: -.02em;
  width: max-content;
  color: var(--blue); /* Wortmarke in Blau wie im Logo, 7.40 auf --paper (DEV-1586) */
}
/* Bildmarke: die nachgezeichnete ruff_consult-Marke aus dem alten Stand
   (favicon.svg, Vorgabe Christian Hansmann 2026-09-04), nicht die CSS-Marke
   der Vorlage. Inline-SVG, damit sie die Textfarbe erbt. */
.brand-mark { height: 20px; width: auto; flex: none; display: block; }
/* Logo in Farbe (DEV-1586, 2026-09-14): der erste Pfad ist der Bogen, der zweite das
   Kachelfeld. Auf dunklen Flächen werden Kachelfeld und Wortmarke weiß, Blau erreicht
   auf --ink nur 2.24. Gelb auf --paper ist als Logo von WCAG 1.4.11 ausgenommen,
   die einzige Ausnahme von Auflage 1 in D17. */
.brand-mark path:first-child { fill: var(--yellow); }
.brand-mark path:last-child  { fill: var(--blue); }
.on-ink .brand, .surface--ink .brand, .surface--blue .brand { color: #fff; }
.on-ink .brand-mark path:last-child,
.surface--ink .brand-mark path:last-child,
.surface--blue .brand-mark path:last-child { fill: #fff; }

.desktop-nav {
  display: flex; align-items: center; gap: 32px; font-size: var(--fs-body-s);
  /* mittig zwischen Marke und CTA, mit garantiertem Abstand zu beiden */
  justify-self: center; margin: 0 32px;
}
.desktop-nav a { position: relative; white-space: nowrap; }
/* Die Linie wächst von links. Seit 2026-10-13 über scaleX statt über right: Bewegt werden
   nur transform und opacity, die laufen ohne Layout in jedem Frame (Skill apple-design). */
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t) ease;
}
.desktop-nav a:hover::after { transform: none; }
.desktop-nav a[aria-current="page"] { font-weight: 700; }
.desktop-nav a[aria-current="page"]::after { transform: none; }

/* Haarlinie vor den zwei Absprüngen */
.nav-divider { width: 1px; height: 24px; background: var(--line); }

/* Externe Ziele: --muted plus Pfeil, Pfeil ist Pflicht */
.nav-ext { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.nav-ext::after { background: var(--muted); }
.nav-ext .ext-mark { font-size: var(--fs-label-cta); }

/* Pfeil an Links und Knöpfen (2026-10-12, Weisung Christian Hansmann): überall dasselbe
   Icon, ein Kasten mit Pfeil nach rechts oben, statt der Textzeichen → und ↗. Gezeichnet
   als Maske in currentColor, damit es Farbe und Hover des Links übernimmt. Die Grafik steht
   als data-URI hier, kein Request. Größe 1em, sie folgt der Schrift des Elternelements. */
.icon-pfeil {
  display: inline-block; flex-shrink: 0;
  width: 1em; height: 1em; vertical-align: -0.14em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/><path d='M14 4h6v6M20 4l-9 9'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/><path d='M14 4h6v6M20 4l-9 9'/></svg>") center / contain no-repeat;
}

.header-cta {
  justify-self: end;
  padding: 12px 17px;
  background: var(--ink); color: #fff;
  font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; font-weight: 400;
  border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
}
.header-cta:hover { background: var(--blue); }

.menu-button {
  display: none; background: none; border: 0; padding: 0;
  width: 44px; height: 44px; justify-self: end; cursor: pointer;
  transition: transform var(--t);
}
/* Drücken, wie .button (Kapitel 5) */
.header-cta:active,
.menu-button:active {
  transform: scale(var(--press));
  transition-duration: var(--t-press);
  transition-timing-function: ease-out;
}
.menu-button span {
  display: block; height: 1px; width: 23px; background: var(--ink);
  margin: 6px auto; transition: transform .3s;
}
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* --------------------------------------------------------------------------
   5. Buttons (geliefert, plus Active und Disabled aus D9)
   -------------------------------------------------------------------------- */
.button {
  height: 48px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 28px;
  font-size: var(--fs-label-cta); letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
}
/* Flach, ohne Hub bei Hover (seit 2026-11-05, DEV-1673, wie .button-tab auf work-zone.html):
   Hover wechselt nur die Fläche, siehe Varianten unten. Vorher 2 px Hub (translateY(-2px)). */
/* Drücken (2026-10-13, Skill apple-design): Die Rückmeldung kommt beim Herunterdrücken und
   sofort, in --t-press statt --t. Der Knopf gibt auf --press nach.
   Zurück läuft er mit --t. Vorher nur translateY(0) in .25 s. */
.button:active {
  transform: scale(var(--press));
  transition-duration: var(--t-press);
  transition-timing-function: ease-out;
}
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: var(--blue); border-color: var(--blue); }
.button-light { background: transparent; }
.button-light:hover { background: #fff; }
.button-white { background: #fff; color: var(--ink); border-color: #fff; }
.button-white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button[disabled], .button[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none;
}
.button[disabled]:hover, .button[aria-disabled="true"]:hover { transform: none; background: inherit; }

/* --------------------------------------------------------------------------
   6. Sektionsraster (D7)
   -------------------------------------------------------------------------- */
.section-pad { padding-left: var(--pad-x); padding-right: var(--pad-x); }
/* Unten kommt der Radius dazu: die nächste Fläche liegt um --r-section über dieser (D20) */
.section { padding: var(--sec-top) var(--pad-x) calc(var(--sec-bottom) + var(--r-section)); }
.container { max-width: var(--container); margin: 0 auto; }

/* Sektionsflächen, D20 (2026-09-14, DEV-1586, Vorlage awesomic.com).
   Jede Sektion ist eine Fläche von Fensterkante zu Fensterkante. Ab der zweiten
   liegt sie mit gerundeter oberer Kante auf der vorherigen: Verschiebung um den
   Radius nach oben, die spätere Sektion liegt oben, allein über die
   Dokumentreihenfolge (position: relative, kein z-index). Kein overflow: hidden
   an der Fläche, der Sticky-Stapel stirbt daran (D15). Flächenfolge der
   Startseite: DESIGN.md D20. */
.surface { position: relative; background: var(--paper); }
.surface--white { background: var(--white); }
.surface--ink   { background: var(--ink); color: #fff; }
.surface--blue  { background: var(--blue); color: #fff; }
.surface:not(.surface--first):not(.surface--continued) {
  border-radius: var(--r-section) var(--r-section) 0 0;
  margin-top: calc(-1 * var(--r-section));
}
/* Fortsetzung derselben Fläche (Referenzen nach der Kundennamen-Leiste):
   keine Kante, kein Versatz, Kopfabstand statt Sektionspolster */
.section.surface--continued { padding-top: 72px; }

/* Textfarben je Fläche, Werte aus D17. Bausteine setzen ihre eigenen Klassen,
   das hier fängt die Rollen aus dieser Datei. Auf --blue kein Grau. */
.surface--ink h1, .surface--ink h2, .surface--ink h3, .surface--ink h4,
.surface--blue h1, .surface--blue h2, .surface--blue h3, .surface--blue h4 { color: #fff; }
.surface--ink .lead, .surface--ink .lead-hero { color: var(--paper); }
.surface--ink .body-l, .surface--ink .body-m { color: var(--body-dark); }
.surface--ink .label, .surface--ink .index { color: var(--muted-dark); }
.surface--blue .lead, .surface--blue .body-l, .surface--blue .body-m, .surface--blue .label { color: var(--paper); }

/* Sektionskopf, D20: kein Eyebrow, display-2 linksbündig über die Containerbreite
   (keine Kappung, Vorgabe 2026-09-08 für die Referenzen gilt jetzt überall).
   Mittig nur Hero und Kontakt, die setzen es in ihren Bausteinen. */
.section-head { display: block; }

/* Split-Kopf: Display links, Lead plus Absatz rechts */
.split-head { display: grid; grid-template-columns: 1.35fr .65fr; gap: var(--gap-col); align-items: end; }
.split-head .copy-column { padding-bottom: 7px; }
.split-head .copy-column .lead { color: var(--ink); margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   7. Footer mit vier Inhaltsspalten (abgeleitet, Inhalte nach N18)
   -------------------------------------------------------------------------- */
.site-footer {
  /* D20: Fläche --paper mit gerundeter Kante (Klassen im Markup), die Haarlinie
     oben und die 70 px Abstand entfallen, die Kante trennt */
  padding: 72px var(--pad-x) 32px;
  font-size: var(--fs-body-s);
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .brand { font-size: var(--fs-body-m); }
.footer-brand p { max-width: 320px; }
.footer-col h2 { color: var(--ink); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* DEV-1669: Die Trefferfläche war 18 px hoch. Polster plus negativer Rand heben sie auf
   30 px, ohne eine Zeile zu verschieben: die 10 px Abstand aus .footer-col ul werden
   beidseitig mitgenutzt, benachbarte Flächen stoßen damit genau aneinander, ohne sich
   zu überlappen. Als Block deckt der Link zusätzlich die Spaltenbreite ab. */
.footer-col a { color: var(--body); display: block; padding-block: 5px; margin-block: -5px; }
.footer-col a:hover { text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--body); line-height: 1.5; }
.footer-col address + address { margin-top: 10px; }
.footer-legal {
  max-width: var(--container); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-legal .copyright { color: var(--muted); }
.footer-legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal nav a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. Floating Button (abgeleitet)
   -------------------------------------------------------------------------- */
.floating-cta {
  position: fixed; right: var(--pad-x); bottom: 24px; z-index: 18;
  height: 48px; padding: 0 24px; gap: 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
  transition: transform var(--t), background var(--t), border-color var(--t), opacity var(--t), visibility var(--t);
}
.floating-cta .cta-short { display: none; }
.floating-cta.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* --------------------------------------------------------------------------
   9. Motion (D10) und Cursor-Licht
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s var(--ease-reveal); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* Seit 2026-10-13 fest oben links, js/main.js setzt die Zeigerlage als transform statt als
   left und top: kein Layout bei jeder Mausbewegung (Skill apple-design). */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(56,70,150,.08), rgba(56,70,150,0) 68%);
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}

/* --------------------------------------------------------------------------
   10. Mobile-Menü ab 1200 px (Baustein Mehrseiten-Navigation: sieben Punkte
       plus Button passen darunter nicht mehr. Einzige Schwelle neben 980/640)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: block; }
  .mobile-menu {
    position: fixed; z-index: 19;
    inset: var(--header-h) 0 auto 0;
    /* DEV-1669: 100vh rechnet auf iOS Safari ohne die eingeblendete Adressleiste, das
       Menü reicht dort unter den Bildschirmrand. 100dvh folgt der Leiste. Die vh-Zeile
       bleibt als Rückfall für Browser ohne dvh, die zweite überschreibt sie. */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--paper); padding: 35px 24px;
    flex-direction: column; gap: 0; overflow-y: auto;
  }
  .mobile-menu a {
    font-size: var(--fs-menu); font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
    padding: 17px 0; border-bottom: 1px solid var(--line);
    display: flex; align-items: baseline; gap: 12px;
  }
  .mobile-menu a[aria-current="page"] { font-weight: 700; }
  .mobile-menu .nav-ext { color: var(--muted); }
  .mobile-menu .nav-ext .ext-mark { font-size: 20px; }
  .mobile-menu .nav-divider { width: 100%; height: 1px; margin: 18px 0 0; }
  /* DEV-1669: Absprung im Menü. .header-cta ist ab 1200 px ausgeblendet, und der
     Floating Button wird erst sichtbar, wenn der Hero durchgescrollt ist (js/main.js).
     Ohne diesen Knopf hat die erste Bildschirmseite auf dem Handy keinen Weg zum
     Kontakt. Die Regeln von .mobile-menu a greifen auch hier, deshalb stellt diese
     Regel die Optik aus .button wieder her. */
  .mobile-menu .mobile-menu-cta {
    margin-top: 28px; height: 48px; padding: 0 20px; gap: 28px;
    align-items: center; justify-content: center;
    border: 1px solid var(--ink); border-radius: var(--r-sm);
    font-size: var(--fs-label-cta); font-weight: 700;
    letter-spacing: .1em; line-height: 1;
  }
  /* Footer: vier Spalten sind unter 1200 px zu eng für 13-px-Einträge, die Marke steht darüber.
     Seit 2026-11-05 (DEV-1673) drei Inhaltsspalten, die Spalte "Angebote" ist entfallen. */
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   11. Breakpoint 980 px
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  :root {
    /* abgeleitet, D7: Tablet-Abstände */
    --sec-top: 110px; --sec-bottom: 115px;
  }
  .split-head { grid-template-columns: 1fr; gap: 42px; }
  .split-head .copy-column { max-width: 650px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* --------------------------------------------------------------------------
   12. Breakpoint 640 px
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --header-h: 68px;
    --sec-top: 100px; --sec-bottom: 100px;
  }
  /* 18 px der Vorlage entfallen, die Kopfzeile bleibt auf der Kante des Hero-Inhalts (28 px) */
  .display-1 { font-size: clamp(50px, 15vw, 70px); }
  .display-2 { font-size: clamp(44px, 12.5vw, 64px); }
  .display-4 { font-size: clamp(52px, 14vw, 72px); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .floating-cta { right: 16px; bottom: 16px; }
  .floating-cta .cta-long { display: none; }
  .floating-cta .cta-short { display: inline; }
}

/* --------------------------------------------------------------------------
   13. Reduzierte Bewegung (geliefert, vollständig)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}

/* --------------------------------------------------------------------------
   14. Weniger Transparenz, mehr Kontrast (2026-10-13, Skill apple-design)
       Nur auf Wunsch des Systems, ohne diese Einstellungen bleibt alles, wie es ist.
       Glas wird deckend und verliert die Unschärfe, bei mehr Kontrast werden die
       Linien kräftig (--line-strong, 3.06 auf --paper). Die durchsichtige Kopfzeile
       auf Seiten mit Aurora ist kein Glas, sie bleibt. Glasflächen der Bausteine
       regeln ihre Dateien.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header,
  body:has(.hero-aurora).menu-open .site-header {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --line: var(--line-strong);
    --line-card: var(--line-strong);
  }
}
