/* ==========================================================================
   TILL.DE Startseite, Fassung V4 C, Entwurf 2026-11-19 (JS, Claude Code)
   Ergänzt startseite-b.css (wird davor geladen). Neu gegenüber B:
   erweitertes Menü wie auf allen Seiten, Kundenleiste der Coaching-Seiten,
   Themen in drei Bereichen mit Produktlogos, Praxischeck (GEO-Check) mit
   Grafik und Icon, Fragen im Raster 5 zu 7.
   Farben nur aus den Variablen des Masters. Keine neuen Töne.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hauptmenü: unter „Coaching und Schulung“ alle Themenseiten.
   Regeln unverändert aus relaunch-pages.css des Website-Repositorys
   (dort aus coaching-c.css), damit das Menü überall gleich aussieht.
   -------------------------------------------------------------------------- */
.nav-gruppe {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-auf {
  display: grid;
  place-items: center;
  width: 26px;
  height: 44px;
  margin-left: -8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

.nav-auf:hover {
  background: var(--paper-subtle);
}

.nav-auf svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-auf[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  display: none;
  width: min(700px, calc(100vw - 48px));
  padding: 14px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(29, 33, 33, 0.14);
}

.nav-panel-kompakt {
  width: min(300px, calc(100vw - 48px));
}

.nav-panel-wissen {
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 48px));
}

.nav-gruppe:hover .nav-panel,
.nav-gruppe.ist-offen .nav-panel {
  display: block;
}

.nav-panel-spalten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.nav-panel-spalten-direkt {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.nav-panel-titel {
  margin: 0 0 2px;
  padding: 0 10px;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.primary-nav .nav-panel a {
  display: flex;
  min-height: 44px;
  padding: 8px 10px;
  line-height: 1.3;
  white-space: normal;
}

.primary-nav .nav-panel .nav-panel-alle {
  font-weight: 600;
}

.mobile-drawer nav a.drawer-sub {
  min-height: 44px;
  padding-left: 28px;
  font-weight: 500;
}

/* Kopfzeile ohne Überbreite (wie relaunch-pages.css, Stand 2026-11-18) */
@media (min-width: 1024px) {
  .search-kbd { display: none; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .primary-nav { gap: 0; }
  .primary-nav a { font-size: var(--fs-small); padding: 8px 8px; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .search-trigger > span { display: none; }
  .search-trigger { padding-inline: 11px; }
  .cta-desktop-suffix { display: none; }
}
@media (min-width: 1440px) {
  .primary-nav { gap: 0; }
  .primary-nav a { padding: 8px 10px; }
}

/* --------------------------------------------------------------------------
   Kundenleiste wie auf den Coaching-Seiten V4 C: hellgrauer Streifen,
   Logos 35 statt 30 px, eng beschnittene Logos 26 px
   -------------------------------------------------------------------------- */
.client-bar {
  padding-block: 19px;
  background: var(--paper-panel);
  border-block: 1px solid var(--line);
}

.client-logos img {
  height: 35px;
  mix-blend-mode: multiply;
}

.client-logos img.ist-eng {
  height: 26px;
}

/* Aktuell-Leiste direkt über der grauen Kundenleiste: weiß, damit sich beide trennen */
.newsbar {
  background: var(--paper);
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Zusammenarbeit: Stufen nur noch mit Titel, einer Zeile und einem Weg
   -------------------------------------------------------------------------- */
.stufe-claim + a {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Themen: drei Bereiche wie im Menü, je Produktlogos, Titel und Wege
   -------------------------------------------------------------------------- */
.themen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.thema {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 18px;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.thema-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.thema-logos img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Das GEO-Icon steht als eigenes Zeichen neben den Produktlogos */
.thema-logos .geo-icon {
  width: 36px;
  height: 36px;
  color: var(--till-green-ink);
}

.thema h3 {
  margin-top: 16px;
  line-height: 1.25;
}

.thema ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.thema li {
  border-bottom: 1px solid var(--line);
}

.thema li:last-child {
  border-bottom: 0;
}

.thema li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.thema li a:hover {
  color: var(--till-green-ink);
}

.thema li a:hover span,
.thema li a:focus-visible {
  text-decoration: underline;
}

.thema .pfeil {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--till-green-ink);
}

.themen-mehr {
  margin-top: 22px;
  font-size: var(--fs-ui);
  color: var(--ink-secondary);
}

.themen-mehr a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Raster 5 zu 7 (wie Coaching V4 C): Praxischeck und Häufige Fragen
   -------------------------------------------------------------------------- */
.raster-57,
.geo-raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(32px, 5vw, 64px);
  align-items: start;
}

.geo-raster {
  align-items: center;
}

.raster-57 > .b-head {
  margin-bottom: 0;
}

/* Frage im summary als Text statt Überschrift (Leitfaden accordion), gleich gesetzt wie h3 im Master */
.faq-frage {
  min-width: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Praxischeck: GEO-Check mit Icon, Formular und Grafik
   -------------------------------------------------------------------------- */
.geo-zeichen .geo-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--till-green-ink);
}

.geo-text h2 {
  font-size: var(--fs-step);
  line-height: 1.15;
}

.geo-lead {
  margin-top: 12px;
  color: var(--ink-secondary);
}

.geo-form-note {
  margin: 14px 0 0;
  font-size: var(--fs-meta);
  color: var(--ink-secondary);
}

.geo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding-top: 0;
}

.geo-form .form-field {
  display: grid;
  gap: 4px;
}

.geo-form label {
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink);
}

.geo-hint {
  display: block;
  font-size: var(--fs-meta);
  line-height: 1.4;
  color: var(--ink-secondary);
}

.geo-form input[type="url"],
.geo-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: max(1rem, 1em);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--slate-ci);
  border-radius: var(--radius-sm);
}

.geo-form input[type="url"]:focus-visible,
.geo-form input[type="email"]:focus-visible,
.geo-check-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--till-green-ink);
  outline-offset: 2px;
}

.geo-form input[type="url"]:is(:user-invalid, .user-invalid-fallback),
.geo-form input[type="email"]:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger-ink);
  background: var(--danger-bg);
}

.geo-form input[type="url"]:user-valid,
.geo-form input[type="email"]:user-valid {
  border-color: var(--till-green-ink);
}

.geo-field-error {
  display: none;
  margin: 4px 0 0;
  font-size: var(--fs-meta);
  line-height: 1.4;
  font-weight: 600;
  color: var(--danger-ink);
}

.geo-error-prefix {
  font-weight: 700;
}

.geo-form input:is(:user-invalid, .user-invalid-fallback) + .geo-field-error,
.geo-form .form-field.is-invalid .geo-field-error,
.geo-consent-field:has(input:is(:user-invalid, .user-invalid-fallback)) .geo-field-error {
  display: block;
}

.geo-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.geo-check-label input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--till-green-ink);
  cursor: pointer;
}

.geo-check-label a {
  color: var(--till-green-ink);
  font-weight: 600;
}

/* Fallback für Browser ohne accent-color (Leitfaden brand-consistent-forms) */
@supports not (accent-color: #3f6308) {
  .geo-check-label {
    position: relative;
    padding-left: 30px;
  }

  .geo-check-label input[type="checkbox"] {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .geo-check-label input[type="checkbox"] + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--paper);
    border: 2px solid var(--slate-ci);
    border-radius: 4px;
    box-sizing: border-box;
  }

  .geo-check-label input[type="checkbox"]:checked + span::before {
    background: var(--till-green-ink);
    border-color: var(--till-green-ink);
  }

  .geo-check-label input[type="checkbox"]:checked + span::after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: 3px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
  }

  .geo-check-label input[type="checkbox"]:focus-visible + span::before {
    outline: 2px solid var(--till-green-ink);
    outline-offset: 2px;
  }
}

.geo-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.geo-form-actions .btn {
  min-height: 48px;
}

.geo-form-status.is-error {
  color: var(--danger-ink);
  font-weight: 600;
}

.geo-noscript {
  margin: 10px 0 0;
  font-size: var(--fs-meta);
  color: var(--ink-secondary);
}

.geo-sr-announcer:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (pointer: coarse) {
  .geo-form input[type="url"],
  .geo-form input[type="email"],
  .geo-form-actions .btn {
    min-height: 52px;
  }
}

/* Regeln der Grafik zwischen den Marken werden auch in die Vorschauseite übernommen (build.py) */
/* VORSCHAU-ANFANG */
.geo-karte {
  margin: 0;
  padding: 22px 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.geo-titel {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.3;
}

.geo-grafik svg {
  display: block;
  width: 100%;
  height: auto;
}

.geo-schritte {
  list-style: none;
  counter-reset: schritt;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.35;
}

.geo-schritte li {
  counter-increment: schritt;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.geo-schritte li::before {
  content: counter(schritt);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--till-green-soft);
  border: 1px solid var(--till-green-border);
  color: var(--till-green-ink);
  font-size: var(--fs-meta);
}

/* Zeichnung: Grundformen. Konturen mindestens 3:1 (Dunkelgrau 4,4:1, Textgrün 7,1:1). */
.geo-svg .gf-papier { fill: var(--paper); stroke: var(--slate-ci); stroke-width: 2.5; }
.geo-svg .gf-papier-fuge { fill: var(--paper); stroke: var(--slate-ci); stroke-width: 2.5; stroke-linejoin: round; }
.geo-svg .gf-rahmen { fill: none; stroke: var(--slate-ci); stroke-width: 2; }
.geo-svg .gf-knopf { fill: var(--line-strong); }
.geo-svg .gf-zeile { fill: var(--line); }
.geo-svg .gf-zeile-stark { fill: var(--line-strong); }
.geo-svg .gf-zeile-gruen { fill: var(--till-green-border); }
.geo-svg .gf-zeile-tinte { fill: var(--till-green-ink); }
.geo-svg .gf-bild { fill: var(--paper-panel); }
.geo-svg .gf-funke { fill: var(--till-green-ink); }
.geo-svg .gf-lupe-glas { fill: rgba(255, 255, 255, 0.86); stroke: var(--till-green-ink); stroke-width: 6; }
.geo-svg .gf-lupe-griff { fill: none; stroke: var(--till-green-ink); stroke-width: 10; stroke-linecap: round; }
.geo-svg .gf-pfeil { fill: none; stroke: var(--till-green-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.geo-svg .gf-antwort { fill: var(--till-green-soft); stroke: var(--till-green-ink); stroke-width: 2.5; }
.geo-svg .gf-quelle { fill: var(--paper); stroke: var(--till-green-ink); stroke-width: 2.5; }
.geo-svg .gf-quelle-seite { fill: none; stroke: var(--till-green-ink); stroke-width: 2; }
.geo-svg .gf-favicon { fill: var(--till-green-soft); stroke: var(--till-green-ink); stroke-width: 2; }
.geo-svg .gf-haken-grund { fill: var(--till-green-ink); }
.geo-svg .gf-haken { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.geo-svg .gf-logo-grund { fill: var(--paper); stroke: var(--slate-ci); stroke-width: 2; }
.geo-svg .gf-markierung { fill: var(--till-green-soft); stroke: var(--till-green-border); stroke-width: 1.5; }
.geo-svg .gf-verbindung { fill: none; stroke: var(--till-green-ink); stroke-width: 2.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.geo-svg .gf-verbindung-fein { fill: none; stroke: var(--slate-ci); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.geo-svg .gf-ring-grund { fill: none; stroke: var(--paper-panel); stroke-width: 22; }
.geo-svg .gf-ring { fill: none; stroke: var(--till-green); stroke-width: 22; stroke-linecap: round; stroke-dasharray: 78 100; rotate: -90deg; }
.geo-svg .gf-pruefpunkt { fill: var(--paper); stroke: var(--till-green-ink); stroke-width: 2.5; }
.geo-svg .gf-glyphe { fill: none; stroke: var(--till-green-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.geo-svg .gf-glyphe-voll { fill: var(--till-green-ink); }
.geo-svg .ga { transform-box: fill-box; transform-origin: center; }

/* Bewegung: einmal in rund drei Sekunden, sobald die Grafik ins Bild kommt.
   Grundzustand ist das fertige Bild (ohne Skript und bei reduzierter Bewegung).
   Das Skript setzt „wartet“ (Teile ausgeblendet) und beim Sichtbarwerden „laeuft“. */
@media (prefers-reduced-motion: no-preference) {
  .geo-grafik.wartet .ga { opacity: 0; }

  .geo-grafik.laeuft .ga { animation: geo-auf 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

  /* Vorschlag A: Lupe fährt über die Seite, dann Pfeil, Antwort, Quelle, Haken */
  .geo-grafik-a.laeuft .ga-lupe { animation: geo-lupe 1.3s cubic-bezier(0.45, 0, 0.25, 1) both; }
  .geo-grafik-a.laeuft .ga-pfeil { animation: geo-strich 0.4s ease-out 1.35s both; stroke-dasharray: 40; }
  .geo-grafik-a.laeuft .ga-pfeilspitze { animation-delay: 1.7s; }
  .geo-grafik-a.laeuft .ga-karte { animation-delay: 1.8s; }
  .geo-grafik-a.laeuft .ga-quelle { animation: geo-hoch 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) 2.3s both; }
  .geo-grafik-a.laeuft .ga-haken { animation: geo-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 2.8s both; }

  /* Vorschlag B: Logos, Antwort baut sich auf, Markierung, Verweis, Quelle */
  .geo-grafik-b.laeuft .ga-logo-2 { animation-delay: 0.15s; }
  .geo-grafik-b.laeuft .ga-zeile-1 { animation: geo-zeile 0.5s ease-out 0.5s both; transform-origin: left center; }
  .geo-grafik-b.laeuft .ga-zeile-2 { animation: geo-zeile 0.5s ease-out 0.8s both; transform-origin: left center; }
  .geo-grafik-b.laeuft .ga-zeile-3 { animation: geo-zeile 0.5s ease-out 1.1s both; transform-origin: left center; }
  .geo-grafik-b.laeuft .ga-markierung { animation-delay: 1.6s; }
  .geo-grafik-b.laeuft .ga-verweis { animation: geo-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 1.9s both; }
  .geo-grafik-b.laeuft .ga-linie { animation: geo-auf 0.35s ease-out 2.25s both; }
  .geo-grafik-b.laeuft .ga-quelle { animation: geo-hoch 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) 2.5s both; }

  /* Vorschlag C: Seite, Ring füllt sich, Prüfpunkte mit Haken */
  .geo-grafik-c.laeuft .ga-ring { animation: geo-ring 1.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
  .geo-grafik-c.laeuft .ga-punkt-1 { animation-delay: 0.7s; }
  .geo-grafik-c.laeuft .ga-punkt-2 { animation-delay: 1.2s; }
  .geo-grafik-c.laeuft .ga-punkt-3 { animation-delay: 1.7s; }
  .geo-grafik-c.laeuft .ga-haken-1 { animation: geo-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 1.1s both; }
  .geo-grafik-c.laeuft .ga-haken-2 { animation: geo-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 1.6s both; }
  .geo-grafik-c.laeuft .ga-haken-3 { animation: geo-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) 2.1s both; }
}

@keyframes geo-auf {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes geo-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes geo-hoch {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes geo-zeile {
  from { opacity: 0; transform: scaleX(0.1); }
  to { opacity: 1; transform: none; }
}

@keyframes geo-strich {
  from { opacity: 1; stroke-dashoffset: 40; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes geo-lupe {
  0% { opacity: 0; transform: translate(-120px, -112px); }
  15% { opacity: 1; transform: translate(-120px, -112px); }
  45% { transform: translate(-10px, -80px); }
  75% { transform: translate(-110px, -40px); }
  100% { opacity: 1; transform: none; }
}

@keyframes geo-ring {
  from { opacity: 1; stroke-dasharray: 0 100; }
  to { opacity: 1; stroke-dasharray: 78 100; }
}

/* Schmale Karte: Begriffe untereinander */
@container (max-width: 380px) {
  .geo-schritte { grid-template-columns: minmax(0, 1fr); }
}
.geo-karte { container-type: inline-size; }
/* VORSCHAU-ENDE */

/* --------------------------------------------------------------------------
   Schmale Fenster
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .themen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .geo-raster,
  .raster-57 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .themen {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-frage {
    font-size: var(--fs-body);
    line-height: 1.38;
  }

  .geo-karte {
    padding: 16px 14px 14px;
  }
}
