/* Plus Jakarta Sans – selbst gehostet (SIL Open Font License, siehe assets/fonts/OFL.txt). Keine Verbindung zu Google. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* =========================================================
   PlanPlatte – Design Tokens
   Primary: deep green #284032. Orange #F15A2B only as a
   very subtle accent (logo, small highlights, warnings).
   ========================================================= */
:root {
  --primary: #284032;
  --primary-hover: #1C2E24;
  --primary-soft: #EAF0EC;
  --primary-tint: #F4F7F5;
  --accent: #F15A2B;          /* use sparingly */
  --ink: #1F2A23;
  --text: #33403A;
  --text-muted: #5B6B61;
  --bg: #FFFFFF;
  --surface-muted: #F6F8F6;
  --border: #E2E8E4;
  --on-dark: #F3F6F4;
  --on-dark-muted: #C9D6CE;
  --dark-line: rgba(255, 255, 255, .12);
  --danger: #DC2626;
  --success: #1F7A4A;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 35, .06);
  --shadow: 0 8px 24px rgba(31, 42, 35, .08);
  --shadow-lg: 0 24px 60px rgba(31, 42, 35, .16);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 200ms;

  --container: 1160px;
  --gutter: 16px;
  --header-h: 72px;
  --z-header: 40;
  --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: .3em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--primary); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 120ms var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: #C5D2CA; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #3A3A3A; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: #3A3A3A; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 999px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav-toggle { display: none; }

@media (min-width: 900px) { .main-nav { display: flex; align-items: center; gap: 16px; } }
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px;
    background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
    display: none; flex-direction: column; gap: 12px;
  }
  .main-nav.open { display: flex; animation: drop 200ms var(--ease); }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { width: 100%; font-size: 1.05rem; }
  .nav-cta { width: 100%; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero (dark green, Jahresplanung) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--primary); color: var(--on-dark-muted);
  padding: 48px 0 64px;
}
@media (min-width: 768px) { .hero { padding: 72px 0 88px; } }
@media (min-width: 1100px) { .hero { padding: 96px 0 112px; } }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 680px; height: 680px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(169, 199, 180, .22), transparent 65%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero-copy { max-width: 600px; }
@media (min-width: 768px) and (max-width: 1099px) { .hero-copy { max-width: 680px; margin-inline: auto; text-align: center; } }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: .88rem; font-weight: 700;
}
.hero-pill .icon { width: 18px; height: 18px; color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: .45em; }
.hl { position: relative; color: #CFE3D6; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--on-dark-muted); max-width: 52ch; margin-bottom: 0; }
@media (min-width: 768px) and (max-width: 1099px) { .lead { margin-inline: auto; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) and (max-width: 1099px) { .hero-actions, .hero-badges { justify-content: center; } }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }
.hero-badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--on-dark); font-size: .92rem; font-weight: 600; }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges .icon { width: 16px; height: 16px; color: #A9C7B4; stroke-width: 3; }

.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #EAF0EC; color: var(--primary); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }
.btn-white:focus-visible, .btn-ghost-light:focus-visible { outline-color: #fff; }

/* Jahresplanung-Schaubild */
.hero-visual { width: 100%; max-width: 620px; margin-inline: auto; }
.yp {
  padding: 20px; border-radius: 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.yp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; color: #fff; font-size: .92rem; }
.yp-legend { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--on-dark-muted); }
.yp-legend i { width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.yp-cols { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.yp-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.yp-col:nth-child(n+9) { display: none; }
.yp-stack {
  position: relative; height: 250px; padding: 4px; border-radius: 10px;
  display: flex; flex-direction: column-reverse; gap: 3px;
  background: rgba(255,255,255,.05);
  transition: background-color 300ms var(--ease);
}
.yp-cap {
  position: absolute; left: -3px; right: -3px; bottom: calc(var(--cap) * 1%); height: 3px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px rgba(241, 90, 43, .55); z-index: 3;
}
.yp-kw { text-align: center; font-size: .68rem; font-weight: 700; color: var(--on-dark-muted); white-space: nowrap; transition: color 300ms; }
.yp-col.over .yp-stack { background: rgba(241, 90, 43, .16); }
.yp-col.over .yp-kw { color: #FFB49C; }

.yb {
  position: relative; flex-shrink: 0; height: calc(var(--h) * 1% - 3px);
  border-radius: 6px; padding: 5px 4px; display: flex; align-items: flex-start; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.yb em { font-style: normal; font-size: .58rem; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.yb.c1 { background: #fff; color: var(--ink); }
.yb.c2 { background: #CFE3D6; color: var(--ink); }
.yb.c3 { background: #A9C7B4; color: var(--ink); }
.yb.c4 { background: #6F8F7B; color: #fff; }
.yb.c5 { background: rgba(255,255,255,.28); color: #fff; }
.yb.dragging { z-index: 5; box-shadow: 0 14px 28px rgba(0,0,0,.35); outline: 2px solid #fff; }
.cursor {
  position: absolute; right: -10px; bottom: -14px; width: 22px; height: 22px; z-index: 6;
  fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round;
  opacity: 0; transition: opacity 200ms;
}
.dragging .cursor, .fly .cursor { opacity: 1; }

.yp-status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px;
  border-radius: 999px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700;
}
.yp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: background-color 300ms; }
.yp-status.ok .yp-dot { background: #2F8A57; }

@media (max-width: 599px) {
  .yp { padding: 14px; border-radius: 18px; }
  .yp-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .yp-col:nth-child(n+7) { display: none; }
  .yp-stack { height: 200px; }
  .yp-kw { font-size: .62rem; }
  .yb em { font-size: .55rem; }
  .yp-status { font-size: .78rem; }
}

/* ---------- Facts band ---------- */
.facts { border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.facts-grid { display: grid; }
.fact { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.fact + .fact { border-top: 1px solid var(--border); }
@media (min-width: 640px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 20px; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--border); }
}
@media (min-width: 1024px) { .fact { flex-direction: row; align-items: center; gap: 16px; padding: 32px 28px; } }
.fact div { display: grid; line-height: 1.4; }
.fact strong { color: var(--ink); font-size: 1rem; }
.fact span:not(.fact-icon) { color: var(--text-muted); font-size: .9rem; }
.fact-award img { width: 52px; height: 52px; flex-shrink: 0; }
.fact-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.fact-icon .icon { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.section-muted { background: var(--surface-muted); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); } /* dezenter Orange-Akzent */
.eyebrow .icon { width: 16px; height: 16px; }
.eyebrow-light { color: var(--on-dark-muted); }
.eyebrow-light:has(.icon)::before { display: none; }

/* ---------- Features ---------- */
.tag {
  display: inline-block; align-self: flex-start; margin-bottom: 16px; padding: 4px 10px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); border-radius: 999px;
}
.tag-light { color: #fff; background: rgba(255, 255, 255, .14); }

/* Direction highlight */
.direction {
  display: grid; gap: 40px; align-items: center;
  padding: 40px 28px; margin-bottom: 24px; border-radius: 28px;
  background: var(--primary); color: var(--on-dark-muted);
  position: relative; overflow: hidden;
}
.direction::after { /* dezenter Orange-Akzent */
  content: ""; position: absolute; right: 32px; top: 32px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
@media (min-width: 960px) { .direction { grid-template-columns: 1fr 1.1fr; padding: 56px; gap: 56px; } }
.direction h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.direction-text > p { max-width: 46ch; }
.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 8px;
  background: rgba(0, 0, 0, .2); border-radius: 999px;
}
.seg-btn {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--on-dark-muted); background: transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed="true"] { background: #fff; color: var(--primary); }
.seg-btn:focus-visible { outline-color: #fff; }
.direction-caption { margin: 16px 0 0; font-size: .95rem; color: var(--on-dark); min-height: 3em; }

/* Wochenplanung-Schaubild (Monteur- oder Projektzeilen + Vorrat rechts) */
.direction { grid-template-columns: 1fr !important; }
.direction-text { max-width: 760px; }
.wb {
  display: grid; gap: 16px; padding: 16px; border-radius: 20px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.22);
}
@media (min-width: 1024px) { .wb { grid-template-columns: minmax(0, 1fr) 190px; padding: 20px; gap: 20px; } }
.wb-grid { display: grid; grid-template-columns: 128px repeat(6, minmax(0, 1fr)); gap: 6px; }
.wb-h { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-align: center; align-self: end; padding-bottom: 2px; }
.wb-h:first-child { text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.wb-lane { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .82rem; font-weight: 700; }
.wb-lane b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av, .dot-p {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  font-style: normal; font-size: .64rem; font-weight: 800; background: var(--primary-soft); color: var(--primary);
}
.dot-p { border-radius: 8px; }
.wb-cell {
  min-height: 54px; min-width: 0; padding: 4px; border-radius: 10px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px;
  background: var(--surface-muted); border: 1.5px dashed transparent;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
}
.wb-cell.target { border-color: #A9BFB1; background: #fff; }
.wb-cell.landed { background: var(--primary-soft); }
.wb-cell.off {
  font-size: .66rem; font-weight: 700; color: var(--text-muted);
  background: repeating-linear-gradient(45deg, #EEF2EF, #EEF2EF 6px, #E2E8E4 6px, #E2E8E4 12px);
}
/* Projekt-Chip */
.pc {
  display: flex; align-items: center; width: 100%; min-height: 40px; padding: 4px 8px; border-radius: 8px;
  font-size: .72rem; font-weight: 700; line-height: 1.2; min-width: 0;
}
.pc .full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .short { display: none; }
.pc.c1, .dot-p.c1 { background: var(--primary); color: #fff; }
.pc.c2, .dot-p.c2 { background: #6F8F7B; color: #fff; }
.pc.c3, .dot-p.c3 { background: #A9C7B4; color: var(--ink); }
.pc.c4, .dot-p.c4 { background: #DDE6E0; color: var(--ink); }
/* Monteur-Chip */
.mc { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; }
.mc .av { background: var(--primary); color: #fff; }
.wb-cell .mc .name { display: none; }
.wb-cell .mc .av { width: 26px; height: 26px; font-size: .6rem; }
/* Vorrat */
.wb-pool { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-muted); }
.wb-pool-title { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.wb-pool .pc { cursor: grab; }
.wb-pool .mc { padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.wb-pool .used { opacity: .35; }
.wb-pool-hint { margin-top: auto; padding-top: 6px; font-size: .72rem; color: var(--text-muted); }
/* Flug-Animation */
.fly { position: relative; z-index: 5; display: flex; justify-content: center; width: 100%; }
.fly > .pc, .fly > .mc { box-shadow: 0 12px 24px rgba(0,0,0,.18); }

@media (max-width: 1023px) {
  .wb-pool { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .wb-pool-title { width: 100%; }
  .wb-pool .pc { width: auto; min-height: 36px; }
  .wb-pool-hint { display: none; }
}
@media (max-width: 599px) {
  .wb { padding: 12px; }
  .wb-grid { grid-template-columns: 34px repeat(6, minmax(0, 1fr)); gap: 4px; }
  .wb-h:first-child { visibility: hidden; }
  .wb-lane b { display: none; }
  .wb-cell { min-height: 44px; padding: 3px; border-radius: 8px; }
  .wb-cell .pc { min-height: 34px; padding: 2px; justify-content: center; font-size: .58rem; }
  .wb-cell .pc .full { display: none; }
  .wb-cell .pc .short { display: inline; }
  .wb-cell .mc .av { width: 20px; height: 20px; font-size: .5rem; }
  .wb-cell.off { font-size: 0; }
}

@media (max-width: 560px) {
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 16px; }
  .seg-btn { padding: 8px 10px; font-size: .85rem; border-radius: 12px; line-height: 1.25; }
}

/* Bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } .tile-wide { grid-column: span 2; } }
.tile {
  display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius-lg); background: var(--surface-muted); border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover { border-color: #B9CBBF; box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tile-head h4 { margin: 0; font-size: 1.12rem; }
.tile-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--primary); color: #fff; }
.tile-icon .icon { width: 20px; height: 20px; }
.tile > p { margin: 0 0 20px; color: var(--text-muted); font-size: .97rem; }
.tile > div:last-child { margin-top: auto; }
.tile-dark { background: var(--primary); border-color: var(--primary); }
.tile-dark h4 { color: #fff; }
.tile-dark > p { color: var(--on-dark-muted); }
.tile-dark .tile-icon { background: rgba(255, 255, 255, .14); }
.tile-dark:hover { border-color: var(--primary); }

/* mini visuals */
.viz-year { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 96px; }
.viz-year span {
  position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--text-muted);
}
.viz-year span::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 20px;
  height: calc(var(--h) * .76); border-radius: 6px; background: #CBD9D0;
}
.viz-year span.now::before { background: var(--primary); }
.viz-year span.now { color: var(--primary); }
.viz-cap { display: grid; gap: 8px; }
.viz-cap span { font-size: .85rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.viz-cap-track { position: relative; height: 12px; border-radius: 99px; background: #DDE6E0; }
.viz-cap-track > div { height: 100%; width: var(--v); border-radius: inherit; background: var(--primary); }
.viz-cap-track::after { content: ""; position: absolute; left: 92%; top: -5px; bottom: -5px; width: 2px; border-radius: 2px; background: var(--accent); }
.viz-avatars { display: flex; }
.viz-avatars i, .viz-avatars b {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-right: -4px; border-radius: 50%;
  border: 3px solid var(--surface-muted); font-style: normal; font-size: .75rem; font-weight: 800;
  background: var(--primary); color: #fff;
}
.viz-avatars i:nth-child(2) { background: #4A6B57; }
.viz-avatars i:nth-child(3) { background: #6F8F7B; }
.viz-avatars i:nth-child(4) { background: #97B2A1; }
.viz-avatars b { background: #fff; color: var(--primary); border-color: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--border); }
.viz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--border);
}
.st .icon { width: 14px; height: 14px; stroke-width: 3; }
.st-wait { color: var(--text-muted); }
.st-ok { background: var(--primary); color: #fff; border-color: var(--primary); }
.st-add { border-style: dashed; color: var(--primary); background: transparent; border-color: #A9BFB1; }
.viz-docs { display: grid; gap: 8px; }
.viz-docs span { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--ink); }
.viz-docs i { width: 14px; height: 18px; border-radius: 3px; background: #DDE6E0; flex-shrink: 0; }
.viz-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viz-flow span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1.5px dashed rgba(255,255,255,.4); color: #fff; }
.viz-flow span.pp { background: #fff; color: var(--ink); border: 1.5px solid #fff; }
.viz-flow i { display: inline-grid; place-items: center; color: #fff; }
.viz-flow .icon { width: 18px; height: 18px; }

/* ---------- KI (dark green) ---------- */
.section-dark { background: var(--primary); color: var(--on-dark-muted); }
.section-dark h2 { color: #fff; }
.lead-light { font-size: 1.1rem; color: var(--on-dark-muted); max-width: 56ch; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); font-weight: 500; }
.checklist .icon { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; stroke-width: 3; }

.capacity-panel { background: rgba(0, 0, 0, .16); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); padding: 28px; }
.cap-panel-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: #fff; font-weight: 700; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--on-dark-muted); }
.lg-limit { width: 2px; height: 16px; background: #fff; display: inline-block; }
.weeks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.weeks li { display: grid; grid-template-columns: 56px 1fr 72px; gap: 14px; align-items: center; font-size: .92rem; }
.wk { color: var(--on-dark-muted); font-weight: 600; }
.bar { position: relative; height: 12px; background: rgba(255,255,255,.1); border-radius: 99px; }
.bar::after { content: ""; position: absolute; top: -5px; bottom: -5px; left: 92%; width: 2px; background: #fff; border-radius: 2px; }
.bar > div { height: 100%; width: var(--v); background: #A9C7B4; border-radius: inherit; transform-origin: left; }
.reveal.in .bar > div { animation: grow .9s var(--ease) both; }
.weeks li:nth-child(2) .bar > div { animation-delay: 60ms; }
.weeks li:nth-child(3) .bar > div { animation-delay: 120ms; }
.weeks li:nth-child(4) .bar > div { animation-delay: 180ms; }
.weeks li:nth-child(5) .bar > div { animation-delay: 240ms; }
.val { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.over .bar > div { background: var(--accent); }         /* Orange nur als Warnsignal */
.over .val { color: #FFB49C; }
.over .val .icon { width: 16px; height: 16px; }
.cap-note { margin: 20px 0 0; font-size: .9rem; color: var(--on-dark-muted); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Setup options ---------- */
.options { display: grid; gap: 20px; }
@media (min-width: 860px) { .options { grid-template-columns: 1fr 1fr; gap: 24px; } }
.option { padding: 36px 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; }
.option h3 { font-size: 1.3rem; }
.option > p { color: var(--text-muted); }
.option-featured { background: var(--primary); border-color: var(--primary); }
.option-featured h3 { color: #fff; }
.option-featured > p { color: var(--on-dark-muted); }
.option-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.option-icon .icon { width: 24px; height: 24px; }
.option-featured .option-icon { background: rgba(255,255,255,.12); color: #fff; }
.option-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.option-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.option-list .icon { margin-top: 2px; width: 20px; height: 20px; color: var(--primary); stroke-width: 2.5; }
.option-featured .option-list li { color: var(--on-dark); }
.option-featured .option-list .icon { color: #A9C7B4; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; }
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { margin: 0; color: var(--text-muted); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.1rem;
}

/* Platforms strip */
.platforms {
  margin-top: 56px; padding: 32px; border-radius: var(--radius-lg); background: var(--primary-tint);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .platforms { grid-template-columns: 1.4fr 1fr; padding: 40px 48px; gap: 48px; } }
.platforms h3 { font-size: 1.3rem; }
.platforms p { margin: 0; color: var(--text-muted); }
.platform-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform-list li {
  display: grid; justify-items: center; gap: 8px; padding: 20px 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 700; color: var(--ink); font-size: .95rem;
}
.platform-list .icon { width: 28px; height: 28px; color: var(--primary); stroke-width: 1.75; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-head p:last-child { color: var(--text-muted); }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color var(--dur) var(--ease); }
.faq details[open] { border-color: #A9BFB1; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 16px 20px; font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur) var(--ease); color: var(--primary); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text-muted); }

/* ---------- CTA + Form ---------- */
.cta-section { background: var(--primary); }
.cta-section h2 { color: #fff; }
.cta-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.demo-form { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.field label span[aria-hidden] { color: var(--danger); }
.opt { font-weight: 500; color: var(--text-muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #C5D2CA; border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(40, 64, 50, .15); }
.field.invalid input { border-color: var(--danger); }
.err { margin: 6px 0 0; font-size: .875rem; color: var(--danger); }
.err:empty { display: none; }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--text-muted); }
.form-success { margin: 12px 0 0; font-weight: 700; color: var(--success); }
.form-success:empty { display: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: auto 1fr auto auto; gap: 32px; } }
.brand-footer img { width: 130px; height: auto; }
.footer-claim { margin: 0; color: var(--text-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--primary); }
.copy { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Smartphone & Tablet refinements ---------- */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; text-align: left; }
  .section-head p:last-child { font-size: 1rem; }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .direction { padding: 28px 20px; border-radius: 22px; gap: 28px; }
  .direction h3 { font-size: 1.5rem; }
  .tile { padding: 22px; }
  .tile > p { font-size: .94rem; }
  .capacity-panel { padding: 20px; }
  .weeks li { grid-template-columns: 48px 1fr 64px; gap: 10px; font-size: .85rem; }
  .option { padding: 26px 22px; }
  .platforms { padding: 24px 20px; }
  .platform-list li { padding: 16px 4px; font-size: .85rem; }
  .demo-form { padding: 24px 20px; }
  .faq summary { font-size: 1rem; padding: 14px 16px; }
  .faq details p { padding: 0 16px 16px; }
  .site-footer { padding-bottom: 112px; } /* room for sticky CTA */
}
@media (min-width: 680px) and (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide, .tile-dark { grid-column: span 2; }
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%); transition: transform 260ms var(--ease);
}
.mobile-cta.show { transform: none; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* =========================================================
   Aufwertung Schaubilder
   ========================================================= */
/* --- Jahresplanung --- */
.yp {
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 55%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 40px 90px rgba(0,0,0,.32);
}
.yp-title { display: grid; line-height: 1.3; }
.yp-title strong { font-size: 1rem; }
.yp-title span { font-size: .76rem; font-weight: 600; color: var(--on-dark-muted); }
.yp-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.22); }
.yp-tabs i { font-style: normal; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--on-dark-muted); }
.yp-tabs i.on { background: #fff; color: var(--primary); }
.yp-col { gap: 6px; }
.yp-pct {
  justify-self: center; min-width: 40px; padding: 3px 6px; border-radius: 999px; text-align: center;
  font-size: .66rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(255,255,255,.12);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.yp-col.over .yp-pct { background: var(--accent); color: #fff; }
.yp-stack {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.06);
}
.yp-stack.drop { background: rgba(207,227,214,.16); border: 1px dashed rgba(207,227,214,.7); }
.yp-cap::before, .yp-cap::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent);
}
.yp-cap::before { left: -2px; } .yp-cap::after { right: -2px; }
.yb {
  border-radius: 7px; border: 1px solid rgba(255,255,255,.35);
  background-image: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 55%);
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
  overflow: visible;
}
.yb::before { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 3px; border-radius: 2px; background: currentColor; opacity: .18; }
.yb em { padding-top: 4px; }
.yb.c4 { border-color: rgba(255,255,255,.2); }
.yb.c5 { background-color: rgba(255,255,255,.22); border-color: rgba(255,255,255,.25); }
.yb.dragging { outline: 2px solid #fff; outline-offset: 1px; box-shadow: 0 18px 34px rgba(0,0,0,.45); filter: brightness(1.05); }
.yp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.yp-foot .yp-status { margin-top: 0; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.yp-status.ok .yp-dot { box-shadow: 0 0 0 4px rgba(47,138,87,.18); }
.yp-dot { box-shadow: 0 0 0 4px rgba(241,90,43,.2); }
@media (max-width: 599px) {
  .yp-tabs { display: none; }
  .yp-pct { min-width: 0; width: 100%; font-size: .58rem; padding: 2px 0; }
  .yp-foot .yp-legend { display: none; }
}

/* --- Wochenplanung --- */
.wb { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 40px 80px rgba(0,0,0,.28); }
.wb-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.wb-week { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .95rem; color: var(--ink); padding-bottom: 12px; }
.wb-week .nav { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); font-style: normal; font-size: .9rem; }
.wb-week small { font-weight: 600; color: var(--text-muted); font-size: .8rem; }
.wb-mode { padding-bottom: 12px; font-size: .74rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.wb-h { display: grid; gap: 1px; line-height: 1.2; padding: 6px 0; border-radius: 10px; }
.wb-h small { font-size: .64rem; font-weight: 600; color: var(--text-muted); opacity: .8; }
.wb-h.today { background: var(--primary-soft); color: var(--primary); }
.wb-h:first-child { padding: 6px 0; }
.wb-lane { gap: 10px; }
.wb-lane .lane-txt { display: grid; min-width: 0; line-height: 1.25; }
.wb-lane .lane-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-lane .lane-txt small { font-size: .68rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-lane .av { width: 32px; height: 32px; font-size: .68rem; color: #fff; }
.av.a1 { background: var(--primary); } .av.a2 { background: #4A6B57; } .av.a3 { background: #6F8F7B; } .av.a4 { background: #97B2A1; }
.wb-cell { background: #fff; border: 1px solid var(--border); }
.wb-cell.today { background: #F6FAF7; }
.wb-cell.target { border: 1.5px dashed #8FAE9B; background: #F4F8F5; }
.wb-cell.target::after { content: "Hier ablegen"; font-size: .6rem; font-weight: 700; color: #6F8F7B; text-align: center; line-height: 1.1; }
.wb-cell.target:has(.fly)::after { display: none; }
.wb-cell.landed { animation: land 520ms cubic-bezier(.3, 1.5, .5, 1); background: var(--primary-soft); border-color: #A9BFB1; }
@keyframes land { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.pc {
  position: relative; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  box-shadow: 0 2px 6px rgba(31,42,35,.12);
}
.pc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.55); }
.pc.c3::before, .pc.c4::before { background: rgba(40,64,50,.35); }
.wb-pool { background: linear-gradient(180deg, #F6F8F6, #EEF3EF); border: 1px solid var(--border); }
.wb-pool-title { display: flex; justify-content: space-between; align-items: center; }
.wb-pool-title em { font-style: normal; font-size: .66rem; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--primary); letter-spacing: 0; }
.pool-item { display: flex; align-items: center; gap: 6px; }
.pool-item .grip { width: 10px; height: 16px; flex-shrink: 0; opacity: .45;
  background-image: radial-gradient(circle, var(--ink) 1.2px, transparent 1.4px); background-size: 5px 5px; }
.pool-item > .pc, .pool-item > .mc { flex: 1; min-width: 0; }
.pool-item .pc { justify-content: space-between; gap: 6px; }
.pool-item .pc small { font-size: .62rem; font-weight: 700; opacity: .8; white-space: nowrap; }
.wb-cell .pc small { display: none; }
.wb-pool .mc small { margin-left: auto; font-size: .62rem; font-weight: 700; color: var(--text-muted); }
.wb-cell .mc small { display: none; }
@media (max-width: 1023px) {
  .pool-item { flex: 0 1 auto; }
  .pool-item .pc small, .wb-pool .mc small { display: none; }
}
@media (max-width: 599px) {
  .wb-top { padding-bottom: 0; }
  .wb-week { font-size: .85rem; padding-bottom: 10px; }
  .wb-week small, .wb-mode { display: none; }
  .wb-h small { display: none; }
  .wb-lane .lane-txt { display: none; }
  .wb-lane .av, .wb-lane .dot-p { width: 28px; height: 28px; }
  .wb-cell.target::after { content: "+"; font-size: .9rem; }
  .pool-item .grip { display: none; }
}
@media (min-width: 600px) {
  .wb-cell .pc .full { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
}
@media (min-width: 1024px) { .wb { grid-template-columns: minmax(0, 1fr) 220px; } }

/* ---------- Preise ---------- */
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 640px) and (max-width: 899px) { .plans { grid-template-columns: 1fr 1fr; } .plan-featured { grid-column: 1 / -1; order: -1; } }
.plan {
  display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-head { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--border); }
.plan h3 { font-size: 1.6rem; margin-bottom: 2px; }
.plan-size { margin: 0; color: var(--text-muted); font-weight: 600; }
.plan-price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.plan-price strong { font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { font-weight: 600; color: var(--text-muted); }
.plan-label { margin: 0 0 12px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.plan-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.plan-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); stroke-width: 3; }
.plan-addon {
  justify-content: space-between; margin-left: 28px; padding: 8px 12px; border-radius: 10px;
  background: var(--primary-tint); font-size: .9rem; font-weight: 600 !important;
}
.plan-addon em { font-style: normal; font-weight: 800; color: var(--primary); white-space: nowrap; }
.plan-cta { margin-top: auto; }

.plan-featured { background: var(--primary); border-color: var(--primary); box-shadow: 0 24px 50px rgba(40,64,50,.28); }
.plan-featured h3, .plan-featured .plan-price, .plan-featured .plan-list li { color: #fff; }
.plan-featured .plan-size, .plan-featured .plan-price span, .plan-featured .plan-label { color: var(--on-dark-muted); }
.plan-featured .plan-head { border-color: rgba(255,255,255,.18); }
.plan-featured .plan-list .icon { color: #A9C7B4; }
.plan-featured .plan-addon { background: rgba(255,255,255,.1); }
.plan-featured .plan-addon em { color: #FFB49C; } /* dezenter Orange-Akzent für Aufpreis */

.plans-note { margin: 28px 0 0; text-align: center; color: var(--text-muted); }
@media (max-width: 767px) { .plans-note { text-align: left; } .plan { padding: 26px 22px; } }

/* ---------- Rechtliche Seiten ---------- */
.legal-actions { display: flex; align-items: center; gap: 8px; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 999px; }
.legal-back:hover { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 520px) { .legal-actions .btn { display: none; } }
.legal { padding: 56px 0 80px; }
@media (min-width: 768px) { .legal { padding: 80px 0 112px; } }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 32px; color: var(--ink); }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; overflow-wrap: anywhere; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 4px; }
.legal .addr { padding: 16px 20px; border-radius: var(--radius); background: var(--surface-muted); border: 1px solid var(--border); }
.legal .sub { font-weight: 700; margin-bottom: .4em; }
.legal a { overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 12px 0 0; font-weight: 600; color: var(--danger); }
.form-error:empty { display: none; }

/* ---------- Erfolgsanimation Demo-Formular ---------- */
.demo-success {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-lg);
  text-align: center; color: var(--text); outline: none;
}
.demo-success[hidden] { display: none; }
@media (max-width: 767px) { .demo-success { padding: 28px 20px; } }
.ds-title { font-size: 1.6rem; margin-bottom: 8px; }
.ds-text { max-width: 40ch; margin: 0 auto 24px; color: var(--text-muted); }
.demo-success.play .ds-title, .demo-success.play .ds-text { animation: dsUp 500ms var(--ease) 1300ms both; }
@keyframes dsUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Papierflieger */
.ds-scene { position: relative; width: 340px; height: 150px; margin: -8px auto 12px; }
@media (max-width: 420px) { .ds-scene { transform: scale(.82); margin: -18px auto -6px; } }
.ds-trail { position: absolute; inset: 0; overflow: visible; }
.ds-trail-path { fill: none; stroke: #A9BFB1; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.ds-trail-reveal { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 420; stroke-dashoffset: 420; }
.demo-success.play .ds-trail-reveal { animation: dsTrail 1500ms cubic-bezier(.45, 0, .25, 1) 150ms forwards; }
@keyframes dsTrail { to { stroke-dashoffset: 0; } }
.ds-plane {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  offset-path: path("M20 125 C 80 130, 100 55, 160 70 S 250 135, 318 28");
  offset-rotate: auto 45deg; offset-distance: 0%; offset-anchor: center;
  opacity: 0;
}
.ds-plane svg { width: 40px; height: 40px; fill: #fff; stroke: var(--primary); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 6px 8px rgba(40,64,50,.25)); }
.demo-success.play .ds-plane { animation: dsFly 1500ms cubic-bezier(.45, 0, .25, 1) 150ms forwards, dsAway 500ms var(--ease) 1650ms forwards; }
@keyframes dsFly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 100% { offset-distance: 100%; opacity: 1; } }
@keyframes dsAway { from { offset-distance: 100%; opacity: 1; translate: 0 0; } to { offset-distance: 100%; opacity: 0; translate: 26px -22px; } }
.ds-burst circle { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.demo-success.play .ds-burst circle { animation: dsBurst 650ms var(--ease) 1650ms forwards; }
.ds-burst circle:nth-child(1) { --bx: 18px; --by: -10px; }
.ds-burst circle:nth-child(2) { --bx: 22px; --by: 12px; fill: var(--primary); }
.ds-burst circle:nth-child(3) { --bx: -4px; --by: -20px; fill: #A9C7B4; }
.ds-burst circle:nth-child(4) { --bx: 6px; --by: 22px; fill: #A9C7B4; }
.ds-burst circle:nth-child(5) { --bx: 26px; --by: -2px; fill: var(--primary); }
@keyframes dsBurst { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.2); } }

.ds-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.ds-steps::before { content: ""; position: absolute; top: 15px; left: 16.6%; right: 16.6%; height: 2px; background: var(--border); }
.ds-steps li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.ds-steps li > span {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border); color: var(--text-muted); font-size: .8rem;
}
.ds-steps li.done > span { background: var(--primary); border-color: var(--primary); color: #fff; }
.ds-steps li.done > span .icon { width: 16px; height: 16px; stroke-width: 3; }
.ds-steps li.done, .ds-steps li.next { color: var(--ink); }
.ds-steps li.next > span { border-color: var(--primary); color: var(--primary); }
.demo-success.play .ds-steps li.next > span { animation: dsPulse 1.6s ease-in-out 2s infinite; }
@keyframes dsPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(40,64,50,.3); } 50% { box-shadow: 0 0 0 7px rgba(40,64,50,0); } }
.demo-success.play .ds-steps { animation: dsUp 500ms var(--ease) 1600ms both; }

@media (prefers-reduced-motion: reduce) {
  .ds-trail-reveal { stroke-dashoffset: 0; }
  .ds-plane { offset-distance: 100%; opacity: 1; }
}
.turnstile-box:not(:empty) { margin: 4px 0 16px; min-height: 65px; }

/* ---------- Jahresplanung: eigener Abschnitt bei den Funktionen (alle Geräte) ---------- */
.year-block {
  display: grid; gap: 28px; align-items: center; margin-bottom: 24px;
  padding: 40px 28px; border-radius: 28px;
  background: var(--primary); color: var(--on-dark-muted);
}
.year-block h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.year-block .year-text p { margin: 0; max-width: 46ch; }
.year-block .yp { box-shadow: none; width: 100%; }
@media (min-width: 960px) {
  .year-block { grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 56px; }
}
@media (max-width: 767px) {
  .hero-visual { display: none; }
  .year-block { padding: 28px 20px; border-radius: 22px; gap: 24px; }
}

/* ---------- Kein horizontales Scrollen (auch iOS Safari) ---------- */
html { overflow-x: hidden; }
body { overflow-x: visible; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
.hero, .direction, .year-block, .section-dark, .cta-section, .demo-success, .wb, .yp { max-width: 100%; }
.demo-success { overflow: hidden; }
@media (max-width: 420px) {
  .ds-scene { margin-left: calc((100% - 340px) / 2); }
}
img, svg, video { max-width: 100%; }
.ds-scene svg, .ds-plane svg { max-width: none; }

/* Einrichtungspauschale – Container unter den drei Paketen */
.setup-fee {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  margin-top: 24px; padding: 24px 28px; border-radius: var(--radius-lg);
  background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-sm);
}
.setup-fee-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: #fff; }
.setup-fee-icon .icon { width: 24px; height: 24px; }
.setup-fee-text h3 { font-size: 1.2rem; margin-bottom: 4px; }
.setup-fee-text p { margin: 0; color: var(--text-muted); }
.setup-fee-price { display: grid; justify-items: end; line-height: 1.1; }
.setup-fee-price strong { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.setup-fee-price span { font-weight: 600; color: var(--text-muted); }
@media (max-width: 640px) {
  .setup-fee { grid-template-columns: auto 1fr; padding: 22px 20px; gap: 14px 16px; }
  .setup-fee-icon { align-self: start; width: 44px; height: 44px; }
  .setup-fee-price { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--border); }
}
