/* ==========================================================================
   TILL.DE Startseite, Alternative B, Entwurf 2026-11-15
   Ziel: weniger Text, klar getrennte Bereiche, Besucherverlauf als Bewegtbild im Hero.
   Farben, Schriften, Schaltflächen, Kopf, Kundenleiste, FAQ und Fuß kommen
   unverändert aus dem Master (../2026-11-14-layout-v4-antigravity/styles.css).
   Keine neuen Farben außer zwei Tönen für Text auf dem dunkelgrauen Band.
   ========================================================================== */

:root {
  --fs-display: clamp(1.85rem, 1.2rem + 2.4vw, 2.75rem); /* H1 der Startseite und Stufen-Ziffern */
  --fs-step: 1.85rem; /* entspricht der H2-Größe des Masters */
  --slate-band: #5b6464; /* Dunkelgrau des Fußes aus dem Master */
  --on-slate: #f4f7f7; /* 5,6:1 auf dem Band */
  --on-slate-green: #d6ecaa; /* helles Grün für große Schrift auf dem Band, 4,7:1 */
}

.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Bereiche: großzügiger Abstand, grüner Balken über jeder Überschrift,
   wechselnde Flächen
   -------------------------------------------------------------------------- */
.b-sec {
  padding: clamp(56px, 7vw, 88px) var(--wrap-pad);
  background: var(--paper);
}

.band-subtle {
  background: var(--paper-subtle);
  border-block: 1px solid var(--line);
}

.band-green {
  background: var(--till-green-soft);
  border-top: 1px solid var(--till-green-border);
}

.band-slate {
  background: var(--slate-band);
  color: var(--on-slate);
}

.band-slate h2,
.band-slate h3 {
  color: #ffffff;
}

.band-slate :focus-visible {
  outline: 2px solid var(--till-orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.28);
}

.b-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.b-head::before {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--till-green);
}

.b-head p {
  margin-top: 10px;
  color: var(--ink-secondary);
}

.band-slate .b-head::before {
  background: var(--on-slate-green);
}

.band-slate .b-head p {
  color: var(--on-slate);
}

.b-head-row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 20px;
  align-items: end;
}

.b-head-row::before {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.b-hero {
  padding: clamp(32px, 4.5vw, 56px) var(--wrap-pad);
  background: var(--paper);
}

.b-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.b-h1 {
  font-size: var(--fs-display);
  line-height: 1.12;
}

.b-h1-kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.b-h1-zusatz {
  display: block;
  margin-top: 0.12em;
  color: var(--till-green-ink);
}

.b-lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-secondary);
}

.b-lead strong {
  font-weight: 600;
  color: var(--ink);
}

.b-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.b-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: var(--fs-small);
  color: var(--ink-secondary);
}

.b-facts strong {
  margin-right: 4px;
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Besucherverlauf (Schaubild im Hero)
   -------------------------------------------------------------------------- */
.flow {
  margin: 0;
  padding: 20px 22px 16px;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.flow-titel {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.3;
}

.flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(44px, 1fr) auto minmax(32px, 0.55fr) auto;
  align-items: center;
  min-height: 236px;
  margin-top: 14px;
}

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Kontraste: Linien, Rahmen und Punkte mindestens 3:1 auf der Kastenfläche (WCAG 1.4.11) */
.flow-path {
  fill: none;
  stroke: var(--slate-ci); /* 4,0:1 */
  stroke-width: 2;
}

.flow-path.is-off {
  stroke-dasharray: 3 8; /* ausgeschaltet: gestrichelt statt blasser */
}

/* Punkte sind HTML-Elemente; bewegt werden nur Verschiebung und Deckkraft (läuft ohne Layout-Berechnung).
   Außen ein grauer Ring, innen der grüne Kern. Geht ein Besucher verloren, blendet der Kern aus:
   der Unterschied ist damit auch ohne Farbe erkennbar. */
.flow-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flow-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--paper);
  border: 2px solid var(--slate-ci);
  border-radius: 50%;
  will-change: transform, opacity;
}

.flow-dot-core {
  position: absolute;
  inset: -2px;
  background: var(--till-green);
  border: 2px solid var(--till-green-ink); /* 6,5:1 */
  border-radius: 50%;
}

.flow-mark {
  fill: var(--paper-subtle);
  stroke: var(--ink);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: flow-mark 1.6s ease-in-out infinite;
}

@keyframes flow-mark {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.flow-sources {
  position: relative;
  z-index: 1;
  grid-column: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.flow-chip {
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--slate-ci);
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.flow-chip.is-off {
  background: transparent;
  border-style: dashed;
  color: var(--ink-secondary);
}

.flow-site,
.flow-goal {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.flow-site {
  grid-column: 3;
  max-width: 6.5em;
  padding: 18px 14px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-md);
}

.flow-goal {
  grid-column: 5;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  background: var(--till-green-soft);
  border: 2px solid var(--till-green-ink);
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.flow-goal.is-hit {
  transform: scale(1.07);
}

.flow-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.flow:not(.flow-ready) .flow-controls {
  display: none;
}

.flow-tab,
.flow-pause {
  min-height: 40px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
}

.flow-tab {
  background: var(--paper);
  border: 1px solid var(--slate-ci); /* 4,4:1 */
  border-radius: var(--radius-sm);
}

.flow-tab:hover {
  border-color: var(--ink);
}

.flow-tab[aria-pressed="true"] {
  background: var(--till-green-soft);
  border-color: var(--till-green-ink);
  color: var(--till-green-ink);
}

.flow-pause {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--ink-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.flow-pause:hover {
  color: var(--ink);
}

.flow-caption {
  min-height: 4.2em;
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink);
}

.flow-hint {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-meta);
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   Aktuell-Leiste
   -------------------------------------------------------------------------- */
.newsbar {
  padding: 14px var(--wrap-pad);
  background: var(--paper-panel);
  border-block: 1px solid var(--line);
}

.newsbar-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
}

.newsbar-item {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-ui);
  line-height: 1.45;
}

.newsbar-label {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 4px;
  font-size: var(--fs-meta);
  font-weight: 600;
  white-space: nowrap;
}

.newsbar a {
  color: var(--ink);
  font-weight: 600;
}

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

.newsbar time {
  font-size: var(--fs-small);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.newsbar a.newsbar-more {
  margin-left: 10px;
  color: var(--till-green-ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Zusammenarbeit: drei Stufen auf dem dunkelgrauen Band
   -------------------------------------------------------------------------- */
.stufen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stufe {
  position: relative;
  padding: 4px 36px;
}

.stufe:first-child {
  padding-left: 0;
}

.stufe + .stufe {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.stufe + .stufe::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -8px;
  width: 15px;
  height: 15px;
  background: var(--slate-band);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
}

.stufe-nr {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1;
  color: var(--on-slate-green);
}

.stufe h3 {
  margin-top: 10px;
  font-size: var(--fs-step);
  line-height: 1.15;
}

.stufe-claim {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-slate-green);
}

.stufe-claim + p {
  margin-top: 10px;
}

.stufe a {
  display: inline-block;
  margin-top: 14px;
  color: #ffffff;
  font-size: var(--fs-ui);
  font-weight: 600;
}

.stufe a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   Themen: fünf Kacheln mit Links
   -------------------------------------------------------------------------- */
.felder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.feld {
  padding: 22px 20px 20px;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feld-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--till-green-ink);
}

.feld h3 {
  margin-top: 14px;
  line-height: 1.25;
}

.feld ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: var(--fs-ui);
  font-weight: 600;
}

.feld li a {
  display: inline-block;
  padding-block: 2px;
}

/* --------------------------------------------------------------------------
   Werkzeuge
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tool {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.tool h3 {
  font-size: var(--fs-step);
  line-height: 1.15;
}

.tool h3 + p {
  margin-top: 8px;
  color: var(--ink-secondary);
}

.tool-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: auto;
  padding-top: 20px;
}

.tool-status {
  min-height: 1.5em;
  margin-top: 10px;
  font-size: var(--fs-small);
  color: var(--ink-secondary);
}

.tools-next {
  margin-top: 18px;
  font-size: var(--fs-ui);
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   Selbst erprobt
   -------------------------------------------------------------------------- */
.erprobt {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.erprobt article {
  padding-top: 16px;
  border-top: 1px solid var(--slate-ci);
}

.erprobt h3 {
  line-height: 1.25;
}

.erprobt p {
  margin-top: 8px;
  font-size: var(--fs-ui);
  line-height: 1.55;
  color: var(--ink-secondary);
}

.erprobt a {
  display: block;
  margin-top: 6px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.post-img {
  display: block;
}

.post-img img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.post-meta {
  margin-top: 12px;
  font-size: var(--fs-meta);
  color: var(--ink-secondary);
}

.post-card h3 {
  margin-top: 2px;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}

.post-card h3 a:hover {
  color: var(--till-green-ink);
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   Abschluss: Ansprechpartner
   -------------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.person {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--till-green-border);
  border-radius: var(--radius-lg);
}

.person > img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper-panel);
}

.person h3 a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}

.person-role {
  font-size: var(--fs-small);
  color: var(--ink-secondary);
}

.person .btn {
  margin-top: 12px;
}

.kontakt-zeile {
  margin-top: 22px;
  font-size: var(--fs-ui);
}

.kontakt-zeile a {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Schmale Fenster
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cta-desktop-suffix {
    display: none;
  }
}

@media (max-width: 1100px) {
  .felder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .erprobt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .flow {
    max-width: 600px;
  }
}

@media (max-width: 860px) {
  .newsbar-inner,
  .tools-grid,
  .people-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stufen {
    grid-template-columns: minmax(0, 1fr);
  }

  .stufe,
  .stufe:first-child {
    padding: 22px 0;
  }

  .stufe:first-child {
    padding-top: 0;
  }

  .stufe + .stufe {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  .stufe + .stufe::before {
    top: -8px;
    left: 28px;
    transform: rotate(135deg);
  }
}

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

  .feld {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 14px;
    padding: 18px 16px;
  }

  .feld h3 {
    margin-top: 2px;
  }

  .feld ul {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .erprobt,
  .posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-head-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    justify-items: start;
  }

  .newsbar-item {
    flex-direction: column;
    gap: 4px;
  }

  .tool {
    padding: 22px;
  }

  .tool-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .b-actions .btn {
    flex: 1 1 100%;
  }

  .flow {
    padding: 16px 12px 14px;
  }

  .flow-stage {
    grid-template-columns: auto minmax(26px, 1fr) auto minmax(22px, 0.6fr) auto;
    min-height: 214px;
  }

  .flow-chip {
    padding: 7px 9px;
  }

  .flow-site {
    padding: 14px 8px;
  }

  .flow-goal {
    width: 78px;
    height: 78px;
    font-size: var(--fs-meta);
  }

  .flow-pause {
    margin-left: 0;
  }

  .person {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .person > img {
    width: 72px;
    height: 72px;
  }
}

/* Sehr schmale Fenster: Kurzform der Quellen (Suche, Ads, KI, Maps), damit das Schaubild in die Breite passt */
@media (max-width: 359px) {
  .flow-long {
    display: none;
  }

  .flow-chip {
    padding: 7px 12px;
  }
}
