/* bi consults, Hauptseite. Design und Aufbau von ai.bi-consults.com übernommen (27.10.2026).
   Abweichung: Text- und Button-Blau #2874A6 statt #2E86C1, damit Kontrast 4,5:1 auf Weiß erreicht wird. */

:root {
  --blau: #2E86C1;
  --blau-text: #2874A6;
  --blau-dunkel: #21618C;
  --blau-hell: #EBF5FB;
  --text: #2C3E50;
  --text-hell: #455565;
  --rand: #D6DBDF;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFB;
  --papier: #F9F6F1;
  --blau-rand: #AED6F1;
  --rot-hell: #FDF3F2;
  --rot-rand: #E6B0AA;
  --gruen-hell: #F1FAF4;
  --gruen-rand: #A9DFBF;
  --kontakt-flaeche: rgba(27, 79, 114, 0.88);
  --fuss-bg: #1B2631;
  --fuss-text: #AEB6BF;
  --fuss-link: #D5DBDB;
  --schrift-titel: "Poppins", "Poppins Fallback", "Segoe UI", Arial, sans-serif;
  --weiss: #fff;
  --kontakt-voll: #1b4f72;
  --papier-0: rgba(249,246,241,0);
  --schatten-farbe: rgba(33, 97, 140, 0.10);
  --weiss-12: rgba(255,255,255,0.12);
  --weiss-14: rgba(255,255,255,0.14);
  --weiss-40: rgba(255,255,255,0.4);
  --weiss-85: rgba(255,255,255,0.85);
  --weiss-90: rgba(255,255,255,0.9);
  --fs-xs: 0.85rem;
  --fs-s: 0.95rem;
  --fs-m: 1.05rem;
  --fs-l: 1.15rem;
  --fs-xl: 1.25rem;
  --fs-xxl: 1.6rem;
  --r-s: 6px;
  --r-m: 10px;
  --r-pill: 999px;
  --schrift-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* --akzent und --akzent-stark: Schrift und Linien (im Dunkeln heller). --blau-text und --blau-dunkel: Flächen mit weißer Schrift */
  --akzent: #2874A6;
  --akzent-stark: #21618C;
  --glas: rgba(255,255,255,0.92);
  --hero-1: rgba(255,255,255,0.97);
  --hero-2: rgba(255,255,255,0.94);
  --hero-3: rgba(255,255,255,0.62);
  --hero-4: rgba(255,255,255,0.18);
  --hero-oben: #fff;
  --hero-bild: url('../img/hero-bg-2.webp');
  color-scheme: light;
}
/* Überschriften in Poppins wie in den bi-consults-PDFs, Fließtext bleibt Systemschrift.
   Fallback mit angepassten Metriken, damit beim Laden der Schrift nichts springt */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); size-adjust: 112.2%; ascent-override: 93.6%; descent-override: 31.2%; line-gap-override: 8.9%; }
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Abstand für den festen Kopf in rem, damit er mit großer Browserschrift mitwächst */
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
@media (max-width: 60em) { html { scroll-padding-top: 7.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--schrift-text);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: var(--fs-m);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
main > section:nth-of-type(even) { background: var(--papier); }
h1, h2, h3 { font-family: var(--schrift-titel); line-height: 1.25; font-weight: 600; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
@media (max-width: 560px) { h1, h2, h3 { hyphens: auto; } }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2rem); margin-bottom: 12px; color: var(--text); }
h3 { font-size: var(--fs-xl); margin-bottom: 8px; }
p { margin-bottom: 16px; text-wrap: pretty; }
.lead { font-size: var(--fs-l); color: var(--text-hell); max-width: 65ch; margin-bottom: 32px; }
a { color: var(--akzent); text-underline-offset: .18em; }
a:hover { color: var(--akzent-stark); }
p, li { overflow-wrap: break-word; }
/* summary ist Flex-Container, break-word senkt die Mindestbreite des Textknotens nicht, anywhere schon */
summary { overflow-wrap: anywhere; }
@media (max-width: 560px) { p, li, summary { hyphens: auto; } }

/* Sprunglink */
/* Versteckt über die eigene Höhe statt fester Pixel: bei 200 % Text bricht der Link um und wird höher */
.skip { position: absolute; left: 12px; top: 0; transform: translateY(-120%); background: var(--bg); padding: 8px 14px; border-radius: var(--r-s); z-index: 200; }
.skip:focus { transform: translateY(12px); }

/* Navigation */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rand);
}
/* Bei 400 % Zoom belegte der feste Kopf fast die halbe Fensterhöhe */
@media (max-height: 30rem), (max-height: 49rem) and (max-width: 60em) { .kopf { position: static; } html { scroll-padding-top: 1rem; } }
.kopf .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
.kopf .logo { flex-shrink: 0; display: flex; align-items: center; min-height: 44px; }
.kopf .logo img { height: 34px; width: auto; }
.kopf .links { display: flex; gap: 20px; margin-left: auto; align-items: center; list-style: none; }
.kopf .links a { text-decoration: none; color: var(--text); font-size: var(--fs-s); white-space: nowrap; }
.kopf .links a:hover { color: var(--akzent); }
.kopf a.cta {
  background: var(--blau-text); color: var(--weiss); padding: 8px 16px; border: 2px solid transparent; border-radius: var(--r-s); font-weight: 600; font-size: var(--fs-s); text-decoration: none; white-space: nowrap;
}
.kopf a.cta:hover { background: var(--blau-dunkel); color: var(--weiss); }
.kopf a.cta[aria-current] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--akzent); }
/* Unterseiten ohne Navigation: Button rechts */
.kopf .logo + a.cta { margin-left: auto; }
@media (max-width: 520px) { .kopf .wrap { column-gap: 12px; } .kopf a.cta { padding: 8px 12px; } .kopf .logo img { height: 28px; } }
@media (max-width: 360px) { .kopf .wrap { padding-left: 16px; padding-right: 16px; column-gap: 10px; } .kopf .logo img { height: 24px; } }
.kopf nav { margin-left: auto; }

/* Hero */
.hero {
  padding: 96px 0 84px;
  background:
    linear-gradient(90deg, var(--hero-1) 0%, var(--hero-2) 46%, var(--hero-3) 68%, var(--hero-4) 100%),
    var(--hero-bild) right center / cover no-repeat;
}
@media (max-width: 900px) {
  .hero {
    background:
      /* Bild entfällt schmal: unter der 90-prozentigen Aufhellung war es kaum sichtbar, kostete aber über die Hälfte des Ladegewichts */
      linear-gradient(180deg, var(--hero-oben) 0%, var(--papier) 100%);
  }
}
/* Breite Monitore: Bild nicht an den Rand kleben, sondern mittig begrenzen */
@media (min-width: 1760px) {
  .hero {
    background-size: auto, 1760px auto;
    background-position: center, center;
    background-color: var(--papier);
    position: relative;
  }
  .hero::after, .hero::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 260px; pointer-events: none;
  }
  .hero::after { right: 0; background: linear-gradient(90deg, var(--papier-0) 0%, var(--papier) 85%); }
  .hero::before { left: 0; background: linear-gradient(270deg, var(--papier-0) 0%, var(--papier) 85%); }
  .hero .wrap { position: relative; z-index: 1; }
}
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 820px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--akzent); }
/* Absender im Hero: wer hier spricht, mit echtem Foto (Impeccable Critique P0, 27.10.2026) */
.absender { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 6px 18px 6px 6px; border: 1px solid var(--rand); border-radius: var(--r-pill); background: var(--glas); color: var(--text); text-decoration: none; font-size: var(--fs-s); line-height: 1.35; max-width: 100%; }
.absender:hover { border-color: var(--akzent); }
@media (max-width: 30em) { .absender { border-radius: var(--r-m); } }
/* Foto wächst nicht über 12 % der Fensterbreite, Text darf bei großer Schrift umbrechen */
.absender img { width: min(3.5rem, 12vw); height: min(3.5rem, 12vw); border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.absender span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.absender b { display: block; color: var(--akzent-stark); hyphens: manual; }
#kontakt .absender { background: var(--weiss-12); border-color: var(--weiss-40); color: var(--weiss); margin: 0 0 20px; }
#kontakt .absender b { color: var(--weiss); }
.hero .sub { font-size: var(--fs-xl); color: var(--text-hell); max-width: 760px; margin-bottom: 36px; }
.hero .karte { background: var(--glas); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; background: var(--blau-text); color: var(--weiss); text-decoration: none;
  padding: 12px 28px; border: 2px solid transparent; border-radius: var(--r-s); font-weight: 600; font-size: var(--fs-m);
  transition: background-color 0.18s ease-out, transform 0.18s ease-out;
}
.btn:hover { background: var(--blau-dunkel); color: var(--weiss); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); padding: 12px 28px; }
.btn.ghost:hover { background: var(--blau-hell); }
/* Im Hero liegt der Ghost-Button über den Linien der Grafik, eigener Grund hält den Kontrast */
.hero .btn.ghost { background: var(--glas); }
.hero .btn.ghost:hover { background: var(--blau-hell); }
.hero .beleg { margin: 14px 0 0; }

/* Karten */
.karte { background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-m); padding: 24px; }
.karte h3 { color: var(--text); }
.karte p { font-size: var(--fs-s); margin-bottom: 0; }

/* Icons (Lucide, Inline-SVG, dekorativ). Strich 1.5 laut Design-System, Größen in rem/em, damit sie mit der Schrift wachsen */
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.karte > .ico, .paket > .ico { display: block; width: 1.75rem; height: 1.75rem; color: var(--akzent); margin-bottom: 12px; }
.paket > .ico-ecke { position: absolute; top: 24px; right: 18px; margin: 0; }
/* Platz für das Eck-Icon freihalten, sonst überdeckt es bei großer Schrift die Pille */
.paket .tag { max-width: calc(100% - 2.5rem); }
/* Druck: Karten und Bilder nicht über den Seitenumbruch zerreißen */
@media print { .frage-karte, .paar, .paket, .karte, figure { break-inside: avoid; } }
.ico-text { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; margin-right: 0.45em; }
summary .ico-text { color: var(--akzent); margin-right: 0; }
summary span { flex: 1; min-width: 0; }
/* FAQ-Fragen als Überschriften, für Screenreader anspringbar, optisch wie bisher */
.faq-h { font: inherit; color: inherit; margin: 0; flex: 1; min-width: 0; hyphens: manual; }
.fall .art .ico { color: var(--akzent); }

/* Weg von der Pein, hin zur Freude: zehn Vorher/Nachher-Paare */
.paare { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.paare.drei { margin-top: 48px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 68em) { .paare.drei { grid-template-columns: 1fr; } }
.paar { display: flex; flex-direction: column; gap: 10px; }
.paar > .ico { margin-bottom: 2px; }
.paar p { margin: 0; }
.paar .marke { display: block; font-size: var(--fs-xs); font-weight: 700; margin-bottom: 2px; }
.paar .vorher { color: var(--text-hell); }
.paar .vorher .marke { color: var(--text-hell); }
.paar .nachher { padding-top: 10px; border-top: 1px solid var(--rand); color: var(--akzent-stark); font-weight: 600; }
.paar .nachher .marke { color: var(--akzent); }

/* Beispiel-Dashboard unter den beiden Spuren */
.dashboard-bild { margin: 36px 0 0; }
.dashboard-bild img { display: block; width: 100%; height: auto; border: 1px solid var(--rand); border-radius: var(--r-m); box-shadow: 0 6px 24px var(--schatten-farbe); }
.dashboard-bild figcaption { max-width: 68ch; margin-top: 10px; font-size: var(--fs-xs); color: var(--text-hell); }

/* Fallbilder: randlos oben in der Frage-Karte (Karte hat 24px Innenabstand und 10px Radius) */
.frage-karte .fallbild { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 3 / 2; margin: -24px -24px 4px; border-radius: calc(var(--r-m) - 1px) calc(var(--r-m) - 1px) 0 0; border-bottom: 1px solid var(--rand); background: var(--papier); }

/* KI-Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; list-style: none; }
.person-karte { position: relative; background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
/* Sichtbar KI: die Porträts sind keine Angestellten */
.person-karte::before { content: "KI"; content: "KI" / ""; position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--blau-dunkel); color: var(--weiss); font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--r-m); }
.person-karte img { filter: grayscale(1) sepia(0.25) hue-rotate(175deg) saturate(1.6) contrast(0.92) brightness(1.06); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-alt); }
.person-karte .text { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.person-karte h3 { margin: 0; font-size: var(--fs-l); color: var(--text); }
.person-karte .rolle { font-size: var(--fs-xs); font-weight: 700; color: var(--text-hell); margin: 0; }
.person-karte p { font-size: var(--fs-s); margin: 0; }
.person-karte .grenze { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rand); color: var(--text-hell); font-size: var(--fs-xs); }
.person-karte .grenze b { font-weight: 400; color: var(--text-hell); }
@media (max-width: 560px) {
  .team { gap: 12px; }
  .person-karte { flex-direction: row; align-items: stretch; }
  .person-karte img { width: 96px; flex: 0 0 96px; aspect-ratio: 4 / 5; height: auto; align-self: flex-start; margin: 14px 0 14px 14px; border-radius: var(--r-s); }
  .person-karte .text { padding: 14px 16px 14px 14px; }
  .person-karte::before { top: 18px; left: 18px; }
}

/* Schritte-Liste für Pakete */
/* Drei Schritte, die aufeinander aufbauen: nebeneinander mit Pfeil nach rechts, schmal untereinander mit Pfeil nach unten.
   Keine Zwischenstufe mit 2 Spalten, sonst zeigt ein Pfeil am Zeilenende ins Leere.
   Umbruchpunkt in em, nicht px: Bei größerer Browserschrift wird die Spalte nie schmaler als das längste Wort,
   drei Spalten würden die Seite dann breiter als das Fenster machen (code-checkup 27.10.2026). */
.pakete { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 32px; }
.paket { position: relative; background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-m); padding: 24px 18px; display: flex; flex-direction: column; }
/* right/bottom zählen ab der Innenkante des Rahmens, -31px/-33px setzt den Pfeil mittig in die Lücke */
.paket:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -31px; width: 24px; height: 24px; margin-top: -12px;
  background: var(--blau);
  /* Lucide arrow-right */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 68em) {
  .pakete { grid-template-columns: 1fr; gap: 40px; }
  .paket:not(:last-child)::after { top: auto; right: auto; bottom: -33px; left: 50%; margin: 0 0 0 -12px; transform: rotate(90deg); }
}
/* Windows-Kontrastmodus zwingt Hintergründe auf Weiß, ohne diese Zeile wären die Pfeile unsichtbar */
@media (forced-colors: active) { .paket:not(:last-child)::after { background: CanvasText; } }
.paket.start { border: 2px solid var(--blau); }
.paket .tag {
  align-self: flex-start; font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; background: var(--rand); color: var(--text);
}
.paket.start .tag { background: var(--blau-text); color: var(--weiss); }
.paket h3 { color: var(--text); }
.paket p { font-size: var(--fs-s); }
.paket .ergebnis { margin-top: auto; margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--rand); color: var(--text-hell); font-size: var(--fs-s); }

/* Zwei Spalten */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; align-items: start; }
@media (max-width: 800px) { .zweispaltig { grid-template-columns: 1fr; } }
/* Prüf-Argument als eigener Kasten: weiße Fläche, Akzentstreifen oben (Gerald 28.10.2026) */
.zweispaltig.stimmt { margin-top: 48px; background: var(--bg); border: 1px solid var(--rand); border-top: 4px solid var(--akzent); border-radius: var(--r-m); padding: 32px; box-shadow: 0 2px 10px var(--schatten-farbe); }
@media (max-width: 560px) { .zweispaltig.stimmt { padding: 24px 18px; } }
.stimmt h3 .ico-text { color: var(--akzent); width: 1.2em; height: 1.2em; }
.stimmt .vergleich > div:first-child { background: var(--bg-alt); }
.vergleich .pfeil { display: flex; justify-content: center; margin: -4px 0; color: var(--akzent); }
.vergleich .pfeil svg { width: 22px; height: 22px; }

/* Vergleich mit und ohne Datenbeschreibung */
.vergleich { display: grid; gap: 12px; }
.vergleich > div { background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-m); padding: 18px 20px; }
.vergleich .titel { font-size: var(--fs-xs); font-weight: 700; color: var(--text-hell); margin-bottom: 4px; }
.vergleich .antwort { font-weight: 600; margin-bottom: 4px; }
.vergleich .anm { font-size: var(--fs-xs); color: var(--text-hell); margin: 0; }
.vergleich .falsch { border-color: var(--rot-rand); background: var(--rot-hell); }
.vergleich .richtig { border-color: var(--gruen-rand); background: var(--gruen-hell); }

/* Beispielfragen */
.fragen-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 32px; }
.frage-karte { background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-m); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.frage-karte p { margin: 0; }
.frage-karte .bereich { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); background: var(--blau-text); color: var(--weiss); }
.frage-karte .frage { font-family: var(--schrift-titel); font-weight: 600; font-size: var(--fs-m); color: var(--text); hyphens: manual; margin: 0; }
.ki-antwort { background: var(--blau-hell); border: 1px solid var(--blau-rand); border-radius: var(--r-s); padding: 14px 16px; font-size: var(--fs-s); }
.ki-antwort .quelle { margin-top: 8px; font-size: var(--fs-xs); color: var(--text-hell); }
.frage-karte .bruecke { margin-top: auto; font-size: var(--fs-s); font-weight: 600; }

/* Projektfälle */
.faelle { display: grid; gap: 16px; margin-top: 32px; }
.fall {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; background: transparent;
  border: 0; border-top: 1px solid var(--rand); border-radius: 0; padding: 24px 0;
}
@media (max-width: 44em) { .fall { grid-template-columns: 1fr; gap: 12px; } }
.fall .art { font-size: var(--fs-xs); font-weight: 700; color: var(--text-hell); margin-bottom: 6px; }
.fall h3 { color: var(--text); }
.fall p { font-size: var(--fs-s); margin-bottom: 0; }
.fall .wert { font-family: var(--schrift-titel); font-size: var(--fs-xxl); font-weight: 600; color: var(--akzent-stark); line-height: 1.2; align-self: start; order: -1; }
.fall .wert small { font-family: var(--schrift-text); display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-hell); margin-top: 4px; }

/* Person */
.person { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .person { grid-template-columns: 1fr; } }
.portrait-bild { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); background: var(--bg-alt); }

/* FAQ */
details { background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-s); margin-top: 10px; }
summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
/* Zweite content-Zeile mit leerem Alternativtext: Screenreader lesen das Plus nicht als Teil der Frage vor */
summary::after { content: "+"; content: "+" / ""; font-size: var(--fs-xl); color: var(--akzent); flex-shrink: 0; }
details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
details .inhalt { padding: 0 20px 18px; color: var(--text-hell); font-size: var(--fs-s); }
details .inhalt p:last-child { margin-bottom: 0; }

/* Kontakt */
#kontakt { background: var(--kontakt-voll); color: var(--weiss); }
/* Bild erst kurz vor dem Abschnitt (das Skript setzt .bild), ohne JS sofort. Schmal trägt es unter der Fläche nichts */
@media screen and (min-width: 901px) and (forced-colors: none) {
  #kontakt.bild, html:not(.js) #kontakt {
    background:
      linear-gradient(var(--kontakt-flaeche), var(--kontakt-flaeche)),
      url('../img/kontakt-bg-2.webp') center / cover no-repeat;
  }
}
#kontakt h2 { color: var(--weiss); }
#kontakt .lead { color: var(--weiss-90); }
#kontakt .btn { background: var(--weiss); color: var(--kontakt-voll); }
#kontakt .btn:hover { background: var(--weiss-90); }
#kontakt .btn.ghost { background: transparent; color: var(--weiss); border-color: var(--weiss); }
#kontakt .btn.ghost:hover { background: var(--weiss-14); }
#kontakt address { font-style: normal; margin-top: 28px; line-height: 1.9; color: var(--weiss-90); }
#kontakt a { color: var(--weiss); }
#kontakt .sozial { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 4px 0 0; }
#kontakt .sozial a { display: inline-flex; align-items: center; min-height: 44px; }
@media screen { html.js #kontakt .mail-hinweis .kopieren { display: block; } }

/* Fuß */
.fuss { background: var(--fuss-bg); color: var(--fuss-text); padding: 32px 0; font-size: var(--fs-xs); }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
.fuss ul { list-style: none; display: flex; gap: 20px; }
.fuss a { color: var(--fuss-link); display: inline-block; padding: 11px 0; }

.klein { font-size: var(--fs-xs); color: var(--text-hell); }

/* Rechtsseiten und 404 */
.recht { padding: 56px 0 72px; }
.recht .wrap { max-width: 780px; }
.recht h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2rem); color: var(--text); margin-bottom: 24px; }
.recht h2 { font-size: var(--fs-xl); margin: 28px 0 8px; }

/* Tastatur-Fokus */
:focus-visible { outline: 3px solid var(--akzent-stark); outline-offset: 2px; }
#kontakt :focus-visible, .fuss :focus-visible { outline-color: var(--weiss); }

/* Scroll-Einblendungen (nur mit JS aktiv, nur am Bildschirm, damit der Druck nichts verschluckt) */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .karte, html.js .paket, html.js .person-karte, html.js .fall, html.js .frage-karte {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  html.js .sichtbar { opacity: 1; transform: none; }
  /* Im ersten Bild ohne Einblendung */
  html.js .hero .karte { opacity: 1; transform: none; transition: none; }
}


/* ===== P1-Umbau nach Impeccable Critique (27.10.2026) ===== */
/* Lesbare Zeilenlänge für Fließtext */
main p { max-width: 68ch; }
/* "So startet ihr": drei Schritte mit Pfeil, darunter zwei gleichrangige Spuren */
.spuren { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 40px; }
.spur { background: var(--bg); border: 1px solid var(--rand); border-radius: var(--r-m); padding: 24px; }
.spur h3 { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 12px; }
.spur h3 .ico { width: 1.6rem; height: 1.6rem; color: var(--akzent); }
.spur ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spur li { font-size: var(--fs-s); color: var(--text-hell); padding-top: 14px; border-top: 1px solid var(--rand); }
.spur li:first-child { padding-top: 0; border-top: 0; }
.spur li b { display: block; color: var(--text); margin-bottom: 2px; }
/* Aufklappbare Zusatzinhalte (Paare, KI-Team): ohne Kasten, Schalter als Textzeile */
details.mehr { background: transparent; border: 0; margin-top: 16px; }
details.mehr > summary { display: inline-flex; gap: 10px; padding: 8px 0; color: var(--akzent); font-weight: 600; }
details.mehr > summary span { flex: 0 1 auto; min-width: 0; }
details.mehr:not([open]) .auf, details.mehr[open] .zu { display: none; }
details.mehr .paare, details.mehr .team, details.mehr .fragen-raster { margin-top: 8px; }
/* Zwischenaufruf nach den Fällen und Projekten */
.zwischen { margin-top: 32px; padding: 22px 24px; border-radius: var(--r-m); background: var(--blau-hell); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.zwischen p { margin: 0; font-weight: 600; color: var(--akzent-stark); flex: 1 1 22rem; }
.zwischen .aktionen { flex: 0 1 auto; min-width: 0; }
.zwischen .mail-hinweis { flex: 1 1 100%; font-weight: 400; color: var(--text-hell); }
@media (max-width: 400px) { .zwischen { padding: 18px 14px; } }
#kontakt .mail-hinweis { margin-top: 12px; color: var(--weiss-85); }
.zwischen .btn, #kontakt .btn { padding: 10px 20px; }
.zwischen .btn.ghost:hover { background: var(--bg); border-color: var(--akzent-stark); }
#kontakt .aktionen { margin-top: 8px; }


/* ===== Paket 2 nach Impeccable (27.10.2026): Navigation, mobiler Hero ===== */
/* Bild im mobilen Hero, am Desktop liegt es im Hintergrund */
.hero-bild-mobil { display: none; }
@media (max-width: 900px) { .hero-bild-mobil { display: block; width: 100%; height: auto; margin-top: 28px; border-radius: var(--r-m); border: 1px solid var(--rand); } }
.kopf .logo picture { display: block; }
/* Logo mit Innenabstand in beiden Themen, im Dunkeln liegt die helle Plakette darauf. Der negative Rand hält das Bild bündig */
.kopf .logo { padding: 2px 8px; margin-left: -8px; }
@media (max-width: 360px) { .kopf .logo { padding: 2px 5px; margin-left: -5px; } }
/* Aktiver Abschnitt in der Navigation */
.kopf .links a[aria-current] { color: var(--akzent); box-shadow: inset 0 -2px 0 var(--akzent); }
/* Mobil: Abschnittsleiste zum Wischen statt ausgeblendeter Navigation */
@media (max-width: 60em) {
  .kopf nav { order: 3; margin-left: 0; }
  .kopf a.cta { margin-left: auto; }
  .kopf .links { margin-left: 0; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .kopf .links::-webkit-scrollbar { display: none; }
  .kopf .links a { display: inline-block; padding: 10px 4px; }
  .kopf .links.am-ende { -webkit-mask-image: none; mask-image: none; }
  .kopf .links a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 900px) { .hero { padding-top: 40px; } }

@media (min-width: 60.0625em) { .kopf .links a { display: inline-block; padding: 12px 0; } }
/* Abstand für Hinweise unter Rastern */
.klein.abstand { margin-top: 16px; }

.kopieren { font: inherit; color: var(--akzent); background: none; border: 0; padding: 12px 0; min-height: 44px; text-decoration: underline; cursor: pointer; }
#kontakt .kopieren { color: var(--weiss); }
html:not(.js) .kopieren { display: none; }
.nowrap { white-space: nowrap; }
/* Unterseiten: Fußzeile unten, auch bei kurzem Inhalt */
body:has(main.recht) { min-height: 100dvh; display: flex; flex-direction: column; }
body:has(main.recht) main { flex: 1; }

/* Mobil: Handlung über die Falz, Deko und unlesbares Dashboard weg */
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 360px) { .hero .absender .zeile2 { display: none; } }
@media (max-width: 560px) { .hero { padding-top: 24px; } .hero .sub { font-size: var(--fs-l); margin-bottom: 24px; } .hero .absender { margin-bottom: 16px; } .hero-bild-mobil { display: none; } }
@media (max-width: 700px) { .dashboard-bild { display: none; } }

@media (forced-colors: active) {
  .kopf .links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
  .hero, #kontakt { background: Canvas; }
  .paket .tag, .frage-karte .bereich, .person-karte::before, .zwischen { border: 1px solid transparent; }
}

/* Dunkel: das Kopf-Skript setzt data-thema aus der gespeicherten Wahl oder der Systemeinstellung.
   Ohne JavaScript bleibt die Seite hell. Das Logo steht auf einer hellen Fläche (Gerald 27.10.2026).
   Nur am Bildschirm: gedruckt wird immer hell */
@media screen {
:root[data-thema="dunkel"] {
  --bg: #131A21;
  --bg-alt: #18212A;
  --papier: #0A0F14;
  --papier-0: rgba(10,15,20,0);
  --text: #E4E9EE;
  --text-hell: #AEB9C4;
  --rand: #2C3945;
  --blau-hell: #16283A;
  --blau-rand: #2A4A63;
  --rot-hell: #2A1716;
  --rot-rand: #7A3A33;
  --gruen-hell: #12261A;
  --gruen-rand: #2E6142;
  --akzent: #7DBDE8;
  --akzent-stark: #A9D2EE;
  --glas: rgba(19,26,33,0.92);
  --hero-1: rgba(15,21,27,0.97);
  --hero-2: rgba(15,21,27,0.93);
  --hero-3: rgba(15,21,27,0.6);
  --hero-4: rgba(15,21,27,0.2);
  --hero-oben: #131A21;
  --hero-bild: url('../img/hero-bg-2-dunkel.webp');
  --schatten-farbe: rgba(0,0,0,0.35);
  color-scheme: dark;
}
:root[data-thema="dunkel"] .kopf .logo { background: var(--weiss); border-radius: var(--r-s); align-self: center; }
:root[data-thema="dunkel"] .frage-karte .fallbild, :root[data-thema="dunkel"] .hero-bild-mobil { filter: invert(1) hue-rotate(180deg); }
:root[data-thema="dunkel"] .dashboard-bild img { border-color: var(--rand); filter: brightness(0.85); box-shadow: none; }
:root[data-thema="dunkel"] .frage-karte .fallbild { border-bottom: 0; }
:root[data-thema="dunkel"] .person-karte img { filter: grayscale(1) sepia(0.25) hue-rotate(175deg) saturate(1.6) contrast(0.92) brightness(0.8); }
:root[data-thema="dunkel"] .thema .mond { display: none; }
:root[data-thema="dunkel"] .thema .sonne { display: block; }
}

/* Hell/Dunkel-Schalter im Kopf */
.thema { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; background: transparent; color: var(--text); border: 1px solid var(--rand); border-radius: var(--r-s); cursor: pointer; }
.thema:hover { color: var(--akzent); border-color: var(--akzent); }
.thema svg { width: 20px; height: 20px; }
.thema .sonne { display: none; }
html:not(.js) .thema { display: none; }
/* Mobil: Schalter am Ende der Wischleiste, Logo und Erstgespräch bleiben in Zeile 1 */
@media (max-width: 60em) {
  .kopf nav + .thema { order: 4; }
  .kopf nav { width: auto; flex: 1 1 calc(100% - 72px); min-width: 0; }
}
/* Unterseiten: Logo links, Schalter und Erstgespräch rechts nebeneinander, in jeder Breite */
.kopf .logo + .thema { margin-left: auto; }
.kopf .logo + .thema + a.cta { margin-left: 0; }
@media (max-width: 440px) {
  .kopf .wrap:has(.logo + .thema) { column-gap: 8px; }
  .kopf .wrap:has(.logo + .thema) .logo img { height: 22px; }
  .kopf .logo + .thema + a.cta { padding: 8px 10px; }
}

/* Kontrastmodus: Icons in Systemfarbe. Steht am Dateiende, damit es gegen die gleich spezifischen Farbregeln gewinnt */
@media (forced-colors: active) { .ico, .karte > .ico, .paket > .ico, summary .ico-text, .fall .art .ico, .spur h3 .ico { color: CanvasText; } }

/* Druck: Bedienelemente weg, Knöpfe und Kontakt dunkel auf weiß. Steht am Dateiende, damit es gegen gleich spezifische Regeln gewinnt */
@media print {
  .kopf nav, .thema, .kopieren, .skip, details.mehr > summary, .hero-bild-mobil { display: none; }
  #kontakt .btn.ghost { background: none; color: var(--akzent); border-color: currentColor; }
  #kontakt a { color: var(--text); }
  .btn, #kontakt .btn, .kopf a.cta { background: none; color: var(--akzent); border: 1px solid currentColor; }
  #kontakt, #kontakt *, #kontakt h2, #kontakt .lead, #kontakt .absender, #kontakt .absender b, #kontakt .mail-hinweis, #kontakt address, .fuss, .fuss *, .fuss a { color: var(--text); background: none; }
}
