/* Frontend-spezifische Ergänzungen (Astro), bewusst klein gehalten.
   Das Design-System (tokens/base/components/sections) bleibt unangetastet. */

/* Lesbare Prosa auf statischen Seiten (Impressum/Datenschutz): Überschriften
   kleiner als die großen Section-H2 aus base.css. */
.legal { padding: 64px 0 90px; }
.legal .crumbs { margin-bottom: 30px; }
.legal h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.legal .prose { margin-top: 28px; }
.legal .prose h2 { font-size: clamp(22px, 3.2vw, 30px); }
.legal .prose h3 { font-size: clamp(19px, 2.6vw, 24px); }

/* Fallstudie-Inhalt aus dem Editor in der schmalen Lese-Spalte. */
.referenz-body .prose h2 { font-size: clamp(24px, 3.6vw, 34px); margin-top: 36px; }
.referenz-body .prose h3 { font-size: clamp(20px, 2.8vw, 26px); }
.referenz-body .prose blockquote { border-left: 3px solid var(--magenta); padding-left: 22px; }

/* Leistungs-Detail: Auszeichnungs-Sicherheit für lange Titel im Grid. */
.svc-grid .card h3 { hyphens: auto; }

/* „Über den Autor"-Streifen auf Interior-Seiten (M5): kompakte Author-Box. */
.autor { margin: 56px 0; padding: 28px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.autor .eyebrow { display: block; color: var(--magenta); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; margin-bottom: 14px; }
.autor-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.autor-info { max-width: 60ch; }
.autor-info strong { display: block; color: var(--heading); font-size: 19px; font-weight: 700; }
.autor-info .autor-rolle { display: block; color: var(--muted); font-family: var(--mono); font-size: 13px; margin-top: 2px; }
.autor-info p { color: var(--ink); margin-top: 10px; line-height: 1.6; }
.autor .btn { flex: none; }
/* Rechte Spalte: schlichtes Portrait ÜBER dem „Mehr über mich"-Button (kein Kreis). */
.autor-cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.autor-foto img { width: 96px; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
@media (max-width: 560px) { .autor-row { flex-direction: column; align-items: flex-start; } .autor-cta { align-items: flex-start; } }

/* Über-mich: Portrait + Biografie zweispaltig, stapelt auf Mobil. */
.ueber { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; margin: 36px 0 8px; }
.ueber-portrait { position: relative; }
.ueber-portrait img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); display: block; }
.ueber-portrait .ring { position: absolute; inset: -10px -10px auto auto; width: 90px; height: 90px; border: 1px solid var(--magenta); border-radius: 50%; opacity: 0.5; }
.ueber-bio p { line-height: 1.7; }
.ueber-bio blockquote { border-left: 3px solid var(--magenta); padding-left: 22px; margin-top: 22px; color: var(--heading); }
@media (max-width: 720px) {
  .ueber { grid-template-columns: 1fr; gap: 28px; }
  .ueber-portrait { max-width: 260px; }
}

/* Interior-Seitenkopf wie der Startseiten-Hero einblenden: gestaffeltes `rise`
   beim Laden (gleiche Technik & Keyframe wie der Hero in base.css/sections.css).
   Reines CSS → alle Browser, kein JS, kein FOUC (`both`-Fill startet bei opacity:0).
   Gilt für alle Interior-Seiten mit `.detail`-Kopf (Leistung/Referenz/Standort/
   Seite/Kontakt/Über-mich) — generell, kein Tagging pro Seite. */
.detail .crumbs { animation: rise 0.9s 0.05s both; }
.detail .h-ic { animation: rise 0.9s 0.1s both; }
.detail .h-num { animation: rise 0.9s 0.15s both; }
.detail .page-title { animation: rise 1s 0.18s both; }
.detail .lead { animation: rise 1s 0.32s both; }
@media (prefers-reduced-motion: reduce) {
  .detail .crumbs,
  .detail .h-ic,
  .detail .h-num,
  .detail .page-title,
  .detail .lead {
    animation: none;
  }
}

/* Tiefere Interior-Sektionen beim Hineinscrollen einblenden (Headline + Text +
   Listen gemeinsam) — wie die unteren Sektionen der Startseite
   (IntersectionObserver in Effects setzt `.in`, alle Browser). Versteckt NUR
   unter `html.js` (Inline-Skript im <head>) → kein FOUC; ohne JS sichtbar. Der
   Seitenkopf (`.detail`) ist ausgenommen (gestaffelt beim Laden, siehe oben);
   `.process` als Ganzes ebenso (dessen `.step`-Karten reven selbst). */
@media (prefers-reduced-motion: no-preference) {
  html.js .body-sec,
  html.js .process .sec-head,
  html.js .related,
  html.js .ueber,
  html.js .cta-inline {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  html.js .body-sec.in,
  html.js .process .sec-head.in,
  html.js .related.in,
  html.js .ueber.in,
  html.js .cta-inline.in {
    opacity: 1;
    transform: none;
  }
}

/* 404 „Signal verloren" — Mission-Control-Fehlerseite. Übergroßer Fehlercode +
   Telemetrie-Konsole (mono) mit blinkendem Cursor. Die gestaffelte Einblendung
   erbt der `.lost`-Kopf vom `.detail`-Block oben; `.status` bringt sein eigenes
   `fade` mit. Nur 404-spezifische Ergänzungen, `prefers-reduced-motion`-sicher. */
.lost .lost-code { font-size: clamp(96px, 22vw, 220px); line-height: 0.9; letter-spacing: -0.04em; max-width: none; }
.lost .lead { max-width: 48ch; }
.lost .telemetry {
  margin-top: 36px; max-width: 560px; overflow-x: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.95;
  color: var(--muted); white-space: pre; tab-size: 2;
  box-shadow: inset 0 0 0 1px rgba(238, 51, 124, 0.05), 0 30px 60px -34px rgba(0, 0, 0, 0.6);
  animation: rise 1s 0.42s both;
}
.lost .telemetry .caret {
  display: inline-block; width: 9px; height: 15px; margin-left: 6px; vertical-align: -2px;
  background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.1s steps(1) infinite;
}
.lost-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: rise 1s 0.54s both; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lost .telemetry, .lost-cta { animation: none; }
  .lost .telemetry .caret { animation: none; }
}

/* Cookie-Consent-Banner — „Mission-Control"-Konsole, fest am unteren Rand.
   Erscheint nur, wenn das CMS eine optionale Kategorie aktiviert hat (sonst
   rendert die Komponente nichts). prefers-reduced-motion-sicher. */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: center; padding: 18px clamp(14px, 4vw, 28px);
  pointer-events: none;
}
.cc-panel {
  pointer-events: auto; width: min(620px, 100%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px clamp(20px, 4vw, 28px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(238, 51, 124, 0.05);
  animation: rise 0.5s 0.05s both;
}
.cc-panel h2 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.cc-panel p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 8px; }
.cc-panel a { color: var(--magenta-soft); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cc-actions .btn { flex: 1 1 160px; justify-content: center; text-align: center; }
.cc-toggle {
  margin-top: 14px; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--magenta-soft);
}
.cc-toggle:hover { color: var(--magenta); }
.cc-cats { margin: 16px 0 4px; display: grid; gap: 12px; }
.cc-cat {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.cc-cat input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--magenta); }
.cc-cat--locked input { accent-color: var(--muted); }
.cc-cat strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.cc-cat span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.cc-cat .cc-fixed { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--green); }
/* Footer-Trigger zum erneuten Öffnen */
.cc-reopen { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.cc-reopen:hover { color: var(--magenta-soft); }
@media (prefers-reduced-motion: reduce) {
  .cc-panel { animation: none; }
}
