/* ==========================================================================
   Startseite – Fahrschul-Look (Führerschein-Karte, Ampel, Cockpit,
   Fahrzeug-Bento, Route mit Verkehrszeichen, Autobahn-Ausfahrt)
   Alle Regeln sind unter .home-* gekapselt und wirken nur auf der Startseite.
   Schilder, Kennzeichen, Ampel und Farben kommen aus dem globalen Baukasten
   (style.css: .sign, .plate, .traffic-light, --fs-*); hier nur Größe/Position.
   ========================================================================== */

/* ---------- Hero ---------- */

.home-hero { padding-bottom: clamp(6rem, 11vw, 9rem); }
.home-hero .row { --bs-gutter-y: 3.5rem; }

.home-hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: .98; letter-spacing: -.045em;
  max-width: 13ch; position: relative; padding-bottom: 1.1rem; margin-bottom: 1.4rem;
}
/* Fahrbahnmarkierung unter der Überschrift */
.home-hero-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(260px, 60%); height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--fs-primary) 0 34px, transparent 34px 50px);
}

/* Perspektivische Straße im Hintergrund */
.home-hero-road {
  position: absolute; left: 72%; bottom: -2px; width: 1100px; height: 520px;
  transform: translateX(-50%) perspective(380px) rotateX(64deg); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, transparent 6%, rgba(255, 255, 255, .45) 6% 6.6%, transparent 6.6% 93.4%, rgba(255, 255, 255, .45) 93.4% 94%, transparent 94%),
    linear-gradient(180deg, rgba(255, 255, 255, .01), rgba(255, 255, 255, .06));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  opacity: .55;
}
.home-hero-road-lines {
  position: absolute; left: 50%; top: -120px; bottom: 0; width: 14px; margin-left: -7px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .7) 0 60px, transparent 60px 120px);
  animation: home-road-lines 1.6s linear infinite;
}
@keyframes home-road-lines { to { transform: translate3d(0, 120px, 0); } }

/* CTA-Zeile mit Ampel */
.home-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.home-hero-cta .btn-brand i { display: inline-block; margin-left: .25rem; transition: transform .25s ease; }
.home-hero-cta .btn-brand:hover i { transform: translateX(3px); }

/* Ampel vor den Buttons: globale .traffic-light--cycle, nur größer */
.home-light { --tl-size: 13px; margin-right: .35rem; }

.home-hero-stats { gap: 1rem 2rem; }
.home-hero-stats strong { font-size: clamp(1.2rem, 2vw, 1.5rem); color: #fff; white-space: nowrap; }
.home-hero-stats > div:first-child strong { color: #ff8a95; }
@media (min-width: 992px) { .home-hero-stats { flex-wrap: nowrap; } }

/* ---------- Führerschein-Karte ---------- */

.home-license-wrap { position: relative; max-width: 470px; margin-inline: auto; }

.home-license {
  position: relative; margin: 0; color: #2a1d22;
  border-radius: 20px; padding: 1.1rem 1.2rem 1rem;
  background:
    repeating-radial-gradient(circle at 85% 120%, rgba(200, 16, 46, .055) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(115deg, rgba(160, 60, 100, .05) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #fff6f7 0%, #fbe3e8 45%, #f2dbe6 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .15);
  transform: rotate(-2.5deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.home-license:not(.is-tilting):hover { transform: rotate(0deg) translateY(-4px); }

.home-license-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.home-license-logo { flex: none; width: 40px; height: 40px; border-radius: var(--fs-radius-xs); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .5); }
.home-license-title { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.home-license-title b {
  font-family: var(--fs-font-display); font-weight: 800; font-size: 1.12rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--fs-primary-dark);
}
.home-license-title small { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7a5d66; }

.home-license-body { display: grid; grid-template-columns: 34% 1fr; gap: 1rem; align-items: start; }
.home-license-photo {
  border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: #d8c4cb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.home-license-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 4% 30%; display: block;
  filter: saturate(.85) contrast(1.02);
}
.home-license-fields { margin: 0; display: grid; gap: .32rem; font-size: .86rem; }
.home-license-fields > div { display: flex; gap: .5rem; align-items: baseline; border-bottom: 1px dashed rgba(122, 93, 102, .22); padding-bottom: .28rem; }
.home-license-fields dt { flex: none; width: 1.9rem; font-weight: 700; font-size: .7rem; color: #9a7884; }
.home-license-fields dd { margin: 0; color: #2a1d22; font-weight: 600; line-height: 1.3; }
.home-license-fields strong { font-family: var(--fs-font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }

.home-license-classes {
  display: flex; align-items: center; gap: .6rem; margin-top: .9rem; padding-top: .8rem;
  border-top: 1px solid rgba(122, 93, 102, .2);
}
.home-license-label { font-weight: 700; font-size: .7rem; color: #9a7884; }
.home-license-classes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.home-license-classes li {
  font-family: var(--fs-font-display); font-weight: 800; font-size: .8rem; letter-spacing: .02em;
  padding: .22rem .55rem; border-radius: 6px; background: #fff; color: var(--fs-ink);
  border: 1px solid rgba(122, 93, 102, .25);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.home-license-classes li:first-child { background: var(--fs-primary); border-color: var(--fs-primary); color: #fff; }
.home-license:hover .home-license-classes li { transform: translateY(-1px); }

.home-license-seal.hero-seal { top: -38px; right: -22px; width: 96px; height: 96px; z-index: 5; color: var(--fs-primary); }
.home-license-seal .seal-big { fill: var(--fs-primary-dark); }

/* WhatsApp-Kachel unter der Karte */
.home-hero-wa {
  display: flex; align-items: center; gap: .85rem; margin-top: 1.4rem;
  padding: .8rem 1rem; border-radius: var(--fs-radius); text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.home-hero-wa:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.home-hero-wa-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #25d366; color: #0b2e17; font-size: 1.25rem;
}
.home-hero-wa span:not(.home-hero-wa-icon) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.home-hero-wa strong { font-size: .95rem; }
.home-hero-wa small { font-size: .8rem; color: rgba(255, 255, 255, .65); }
.home-hero-wa > .bi-arrow-up-right { margin-left: auto; opacity: .7; transition: transform .25s ease; }
.home-hero-wa:hover > .bi-arrow-up-right { transform: translate(2px, -2px); opacity: 1; }

/* ---------- Cockpit-Band ---------- */

.home-dash { position: relative; z-index: 3; margin-top: clamp(-5rem, -7vw, -3.5rem); }
.home-dash-panel {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--fs-radius-lg); color: #fff;
  background:
    radial-gradient(600px 200px at 15% 0%, rgba(200, 16, 46, .22), transparent 70%),
    linear-gradient(180deg, var(--fs-asphalt), var(--fs-asphalt-2));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -30px rgba(20, 23, 27, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.home-gauges { display: flex; gap: 1.5rem; }
.home-gauge { display: flex; flex-direction: column; align-items: center; text-align: center; width: 140px; }
.home-gauge-dial { width: 120px; height: 70px; overflow: visible; }
.home-gauge-track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 7; stroke-linecap: round; }
.home-gauge-fill {
  fill: none; stroke: var(--fs-primary); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s cubic-bezier(.3, .9, .3, 1) .2s;
  filter: drop-shadow(0 0 6px rgba(200, 16, 46, .55));
}
.home-gauge-ticks line { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linecap: round; }
.home-gauge-needle {
  transform-box: view-box; transform-origin: 60px 62px; transform: rotate(-90deg);
  transition: transform 1.4s cubic-bezier(.3, 1.3, .4, 1) .2s;
}
.home-gauge-needle line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.home-gauge-needle circle { fill: #fff; stroke: var(--fs-asphalt); stroke-width: 2; }
.home-dash-panel.is-visible .home-gauge-fill { stroke-dashoffset: 50; }
.home-dash-panel.is-visible .home-gauge-fill.is-full { stroke-dashoffset: 0; }
.home-dash-panel.is-visible .home-gauge-needle { transform: rotate(0deg); }
.home-dash-panel.is-visible .home-gauge-needle.is-full { transform: rotate(90deg); }
.home-gauge-text { margin-top: .35rem; display: flex; flex-direction: column; }
.home-gauge-text strong { font-family: var(--fs-font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.home-gauge-text span { font-size: .8rem; color: rgba(255, 255, 255, .68); }

.home-telltales {
  list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 1px solid rgba(255, 255, 255, .1);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
}
.home-telltales li { display: flex; gap: .8rem; align-items: center; font-size: .9rem; color: rgba(255, 255, 255, .75); line-height: 1.35; }
.home-telltales strong { color: #fff; display: block; font-size: .98rem; }
.home-telltale {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .35); font-size: 1.25rem;
  transition: color .4s ease, border-color .4s ease, box-shadow .4s ease, background-color .4s ease;
}
/* Kontrollleuchten gehen nacheinander an – wie beim Motorstart */
.home-dash-panel.is-visible .home-telltale { color: #ffd34d; border-color: rgba(255, 211, 77, .55); background: rgba(255, 211, 77, .08); box-shadow: 0 0 18px -4px rgba(255, 211, 77, .5); }
.home-dash-panel.is-visible .home-telltales li:nth-child(1) .home-telltale { transition-delay: .6s; }
.home-dash-panel.is-visible .home-telltales li:nth-child(2) .home-telltale { transition-delay: .85s; }
.home-dash-panel.is-visible .home-telltales li:nth-child(3) .home-telltale { transition-delay: 1.1s; }

/* ---------- Gemeinsame Abschnitts-Elemente ---------- */

.home-split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.home-split-head .section-head { margin-bottom: 0; }
.home-link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none;
  color: var(--fs-primary-dark); padding: .55rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--fs-line);
  transition: border-color .2s ease, gap .2s ease, box-shadow .2s ease;
}
.home-link:hover { color: var(--fs-primary-dark); border-color: rgba(200, 16, 46, .4); gap: .7rem; box-shadow: 0 10px 22px -16px rgba(200, 16, 46, .6); }

/* ---------- Vorteile (Verkehrszeichen-Icons) ---------- */

.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.home-feature {
  position: relative; background: #fff; border: 1px solid var(--fs-line); border-radius: var(--fs-radius-lg);
  padding: 1.6rem 1.6rem 1.5rem; overflow: hidden;
}
.home-feature::after {
  content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 4px; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, var(--fs-primary) 0 18px, transparent 18px 30px);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.home-feature.is-revealed:hover { transform: translateY(-4px); border-color: rgba(200, 16, 46, .25); box-shadow: 0 24px 44px -30px rgba(28, 31, 36, .45); }
.home-feature:hover::after { transform: scaleX(1); }
.home-feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
/* Rundes Vorschriftzeichen (globales .sign--round) */
.home-feature-sign { --sign-size: 3.5rem; transition: transform .5s var(--fs-ease-spring); }
.home-feature:hover .home-feature-sign { transform: rotate(-12deg) scale(1.06); }
/* Kilometerstein-Nummer */
.home-feature-km {
  font-family: var(--fs-font-display); font-weight: 800; font-size: .8rem; letter-spacing: .04em;
  padding: .3rem .55rem; border-radius: 7px 7px 3px 3px; background: var(--fs-soft); color: var(--fs-muted);
  border-top: 3px solid var(--fs-primary);
}
.home-feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.home-feature p { color: var(--fs-muted); font-size: .95rem; margin: 0; }
.home-feature:first-child { background: var(--fs-asphalt); border-color: var(--fs-asphalt); }
.home-feature:first-child h3 { color: #fff; }
.home-feature:first-child p { color: rgba(255, 255, 255, .72); }
.home-feature:first-child .home-feature-km { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); }

/* ---------- Klassen-Bento mit Fahrzeugen ---------- */

.home-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; grid-auto-flow: dense; }
.home-class {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--fs-line); border-radius: var(--fs-radius-lg);
}
.home-class.is-wide { grid-column: span 2; }
.home-class.is-revealed:hover { transform: translateY(-4px); border-color: rgba(200, 16, 46, .25); box-shadow: 0 30px 50px -34px rgba(28, 31, 36, .5); }

.home-class-stage {
  position: relative; height: 150px; overflow: hidden;
  background:
    radial-gradient(160px 160px at 78% 22%, rgba(200, 16, 46, .1), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #fff 0%, transparent 70%),
    linear-gradient(180deg, #eef1f4, #e3e7eb);
}
.home-class-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(180deg, var(--fs-asphalt), var(--fs-asphalt-2));
}
.home-class-road::before {
  content: ""; position: absolute; left: 0; top: 50%; width: calc(100% + 44px); height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--fs-marking) 0 22px, transparent 22px 44px);
}
.home-class:hover .home-class-road::before { animation: home-road-dash .5s linear infinite; }
@keyframes home-road-dash { to { transform: translate3d(-44px, 0, 0); } }

.home-vehicle {
  position: absolute; left: 50%; bottom: 14px; width: min(260px, 76%); height: auto;
  transform: translateX(-50%); overflow: visible;
}
.home-class--trailer .home-vehicle { width: min(300px, 86%); }

/* Fahrzeugteile */
.home-vehicle .v-shadow { fill: rgba(0, 0, 0, .28); }
.home-vehicle .v-paint { fill: var(--fs-primary); }
.home-vehicle .v-glass { fill: #dfe8f2; }
.home-vehicle .v-line { stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; fill: none; }
.home-vehicle .v-light { fill: #ffe9a3; }
.home-vehicle .v-rear { fill: #7a0a1b; }
.home-vehicle .v-sign { fill: var(--fs-sign-yellow); stroke: #1a1d21; stroke-width: 1.2; }
.home-vehicle .v-stroke-thin { stroke: #1a1d21; stroke-width: 2; }
.home-vehicle .v-sign-text { font: 800 7.4px var(--fs-font-body); letter-spacing: .04em; fill: #1a1d21; }
.home-vehicle .v-tyre { fill: #16191d; }
.home-vehicle .v-rim { fill: #c9ced4; }
.home-vehicle .v-spokes { stroke: #6c737b; stroke-width: 1.6; }
.home-vehicle .v-stroke { fill: none; stroke: #2a2f36; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.home-vehicle .v-seat { fill: #1a1d21; }
.home-vehicle .v-engine { fill: #8a9097; }
.home-vehicle .v-trailer { fill: #fff; stroke: #2a2f36; stroke-width: 3; }
.home-vehicle .v-trailer-line { stroke: var(--fs-primary); stroke-width: 4; }
.home-vehicle .v-dark { fill: #2a2f36; }
.home-vehicle .v-face { fill: #fff; }
.home-vehicle .v-ticks { stroke: #2a2f36; stroke-width: 2; stroke-linecap: round; }
.home-vehicle .v-arc { fill: none; stroke: rgba(200, 16, 46, .35); stroke-width: 5; }
.home-vehicle .v-hand path { stroke: var(--fs-primary-dark); stroke-width: 3; stroke-linecap: round; }
.home-vehicle .v-speed path { stroke: rgba(42, 47, 54, .35); stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .5s ease; }
.home-class--intensiv .home-vehicle { bottom: 4px; width: min(220px, 70%); }
.home-class--intensiv .home-class-road { display: none; }

/* Animationen beim Hover: Auto fährt an, Räder drehen, Uhr läuft */
.home-vehicle .v-move { transition: transform .7s cubic-bezier(.3, .7, .3, 1); }
.home-vehicle .v-wheel { transform-box: fill-box; transform-origin: center; }
.home-vehicle .v-hand { transform-box: view-box; transform-origin: 130px 56px; transform: rotate(0deg); transition: transform 1.2s cubic-bezier(.3, .7, .3, 1); }
.home-class:hover .v-move { transform: translateX(14px); }
.home-class:hover .v-wheel { animation: home-wheel .6s linear infinite; }
.home-class--bike:hover .v-move { transform: translateX(14px) rotate(-3deg); transform-box: fill-box; transform-origin: 20% 100%; }
.home-class:hover .v-hand { transform: rotate(270deg); }
.home-class:hover .v-speed path { stroke-dashoffset: 0; }
@keyframes home-wheel { to { transform: rotate(360deg); } }

.home-class-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.home-class-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.home-class-sub { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fs-primary-dark); }
.home-class h3 { font-size: 1.4rem; margin-bottom: .45rem; }
.home-class p { color: var(--fs-muted); font-size: .95rem; margin-bottom: 1rem; }
.home-class-points { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--fs-line); display: flex; flex-wrap: wrap; gap: .4rem; }
.home-class-points li {
  font-size: .82rem; font-weight: 600; color: var(--fs-ink);
  padding: .3rem .7rem; border-radius: 999px; background: var(--fs-soft); border: 1px solid var(--fs-line);
}

/* Foto-Bühne (Klasse B, A, Intensiv): echtes Foto statt Illustration */
.home-class-stage.has-photo { height: 200px; background: var(--fs-asphalt); }
.home-class-stage.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 23, 27, .35));
}
.home-class-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
  transition: transform .8s cubic-bezier(.3, .7, .3, 1);
}
.home-class--car .home-class-photo { object-position: 62% 72%; }
.home-class--bike .home-class-photo { object-position: 64% 62%; }
.home-class:hover .home-class-photo { transform: scale(1.045); }
/* Intensivkurs: kleine Stoppuhr als Abzeichen auf dem Foto */
.home-class-badge {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.home-class-badge .home-vehicle { position: static; transform: none; width: 92px; height: auto; margin-left: -34px; margin-top: 6px; }
.home-class-badge .v-speed { display: none; }

/* Breite Kacheln: Bühne rechts, Text links (sobald das Raster breit genug ist) */
.home-bento { container-type: inline-size; }
@container (min-width: 640px) {
  .home-class.is-wide .home-class-stage.has-photo { min-height: 300px; }
  .home-class--intensiv.is-wide .home-class-badge .home-vehicle { position: static; transform: none; width: 92px; bottom: auto; }
  .home-class.is-wide { flex-direction: row-reverse; }
  .home-class.is-wide .home-class-stage { width: 52%; height: auto; min-height: 280px; flex: none; }
  .home-class.is-wide .home-class-road { height: 42px; }
  .home-class.is-wide .home-class-body { padding: 1.8rem 2rem; }
  .home-class.is-wide .home-vehicle { width: 90%; bottom: 22px; }
  .home-class--trailer.is-wide .home-vehicle { width: 94%; }
  .home-class--intensiv.is-wide .home-vehicle { bottom: 50%; transform: translate(-50%, 50%); width: 80%; }
}

/* ---------- Unsere Fahrschule: Foto-Bento (öffnet die Lightbox) ---------- */

.home-gallery-section .section-head[data-num]::before { box-shadow: 0 0 0 1.5px #fff, 0 6px 14px -8px rgba(0, 0, 0, .8); }
.home-gallery-section .kicker { color: var(--fs-primary-light); }
.home-link--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.home-link--dark:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 138, 149, .5); }
.home-link--dark .bi-geo-alt { color: var(--fs-primary-light); }

.home-gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 220px); grid-auto-flow: dense;
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.home-gallery-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--fs-radius); background: var(--fs-asphalt);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8);
  color: #fff; text-decoration: none;
}
.home-gallery-tile.is-xl { grid-column: span 2; grid-row: span 2; }
.home-gallery-tile.is-wide { grid-column: span 2; }
.home-gallery-tile picture, .home-gallery-tile img {
  display: block; width: 100%; height: 100%;
}
.home-gallery-tile img { object-fit: cover; transition: transform .7s cubic-bezier(.3, .7, .3, 1), filter .4s ease; }
.home-gallery-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(14, 16, 19, .62));
  transition: opacity .3s ease;
}
.home-gallery-tile:hover img { transform: scale(1.05); }
.home-gallery-tile:focus-visible { outline: 3px solid var(--fs-primary-light); outline-offset: 3px; }
.home-gallery-label {
  position: absolute; left: .85rem; bottom: .75rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.home-gallery-label::before {
  content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--fs-primary-light);
}
/* Lupe erscheint beim Hover/Fokus */
.home-gallery-tile:not(.home-gallery-more)::before {
  content: "\F62C"; /* bi-zoom-in */
  font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1;
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14, 16, 19, .55); color: #fff;
  opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease;
}
.home-gallery-tile:hover::before, .home-gallery-tile:focus-visible::before { opacity: 1; transform: none; }

.home-gallery-more img { filter: saturate(.6) brightness(.55); }
.home-gallery-more::after { background: rgba(200, 16, 46, .35); }
.home-gallery-more:hover img { filter: saturate(.8) brightness(.5); }
.home-gallery-more-text {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  font-weight: 700; font-size: .92rem; text-align: center;
}
.home-gallery-more-text strong { font-family: var(--fs-font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.03em; }
.home-gallery-more-text i { font-size: .85rem; margin-top: .25rem; opacity: .85; }

@media (max-width: 767.98px) {
  .home-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 132px; }
  .home-gallery-tile { border-radius: var(--fs-radius-sm); }
  .home-gallery-tile.is-xl { grid-row: span 2; }
  .home-gallery-label { left: .65rem; bottom: .55rem; font-size: .76rem; }
}
@media (hover: none) {
  .home-gallery-tile:not(.home-gallery-more)::before { opacity: 1; transform: none; width: 30px; height: 30px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-gallery-tile:hover img, .home-class:hover .home-class-photo { transform: none; }
}

/* ---------- Route: vier Etappen mit Verkehrszeichen ---------- */

.home-route { position: relative; --sign: 64px; --post: 22px; --road: 30px; }
.home-route-road {
  position: absolute; left: 0; right: 0; top: calc(var(--sign) + var(--post)); height: var(--road);
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, var(--fs-asphalt), var(--fs-asphalt-2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(255, 255, 255, .5);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1) .1s;
}
.home-route-road::before {
  content: ""; position: absolute; left: 0; right: 40px; top: 50%; height: 3px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 18px, transparent 18px 36px);
}
.home-route.is-visible .home-route-road { transform: scaleX(1); }
.home-route-finish {
  position: absolute; right: 0; top: 0; bottom: 0; width: 30px;
  background: conic-gradient(#fff 25%, #1a1d21 0 50%, #fff 0 75%, #1a1d21 0) 0 0 / 10px 10px;
}
/* Spur für das Auto: endet 90px vor dem Ziel. Bewegt wird die Spur per transform
   (100 % = eigene Breite) – kein Layout pro Frame wie bei einer left-Animation. */
.home-route-car { position: absolute; top: 50%; left: 0; right: 90px; height: 0; opacity: 0; }
.home-route-car svg { display: block; width: 56px; height: auto; transform: translate(-10%, -58%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.home-route.is-visible .home-route-car { animation: home-route-drive 10s cubic-bezier(.45, 0, .55, 1) 1.2s infinite both; }
@keyframes home-route-drive {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  5% { opacity: 1; }
  90% { transform: translate3d(100%, 0, 0); opacity: 1; }
  100% { transform: translate3d(100%, 0, 0); opacity: 0; }
}

.home-route-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
.home-route-step { position: relative; padding-top: calc(var(--sign) + var(--post) + var(--road) + 1.4rem); }
/* Pfosten zwischen Schild und Straße */
.home-route-step::before {
  content: ""; position: absolute; left: calc(var(--sign) / 2 - 2px); top: calc(var(--sign) - 4px);
  width: 4px; height: calc(var(--post) + 6px); border-radius: 2px;
  background: linear-gradient(90deg, #9aa1a8, #c9ced4 50%, #8a9097);
}
.home-route-sign {
  --sign-size: var(--sign);
  position: absolute; left: 0; top: 0; width: var(--sign); height: var(--sign);
  transform: translateY(-14px) scale(.6); opacity: 0;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
  filter: drop-shadow(0 10px 12px rgba(28, 31, 36, .22));
}
.home-route.is-visible .home-route-sign { transform: none; opacity: 1; }
.home-route-step:nth-child(1) .home-route-sign { transition-delay: .2s; }
.home-route-step:nth-child(2) .home-route-sign { transition-delay: .45s; }
.home-route-step:nth-child(3) .home-route-sign { transition-delay: .7s; }
.home-route-step:nth-child(4) .home-route-sign { transition-delay: .95s; }
.home-route-step:hover .home-route-sign { transform: rotate(-6deg) scale(1.05); transition-delay: 0s; }

/* Ziel: Zielflagge */
.home-sign-flag {
  display: grid; place-items: center; font-size: 1.05rem;
  border-radius: calc(var(--sign) * .16); color: var(--fs-primary); border: 3px solid #fff; box-shadow: 0 0 0 1.5px #1a1d21;
  background: conic-gradient(#fff 25%, #1a1d21 0 50%, #fff 0 75%, #1a1d21 0) 0 0 / 16px 16px;
}
.home-sign-flag i {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); font-size: 1.05rem;
}

.home-route-stage {
  display: inline-block; margin-bottom: .45rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--fs-muted);
}
.home-route-step.is-finish .home-route-stage { color: var(--fs-primary-dark); }
.home-route-step h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.home-route-step p { font-size: .94rem; color: var(--fs-muted); margin: 0; }
.home-route-step p strong { color: var(--fs-ink); }
.home-route-step > :is(.home-route-stage, h3, p) { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.home-route.is-visible .home-route-step > :is(.home-route-stage, h3, p) { opacity: 1; transform: none; }
.home-route-step:nth-child(1) > :is(.home-route-stage, h3, p) { transition-delay: .3s; }
.home-route-step:nth-child(2) > :is(.home-route-stage, h3, p) { transition-delay: .55s; }
.home-route-step:nth-child(3) > :is(.home-route-stage, h3, p) { transition-delay: .8s; }
.home-route-step:nth-child(4) > :is(.home-route-stage, h3, p) { transition-delay: 1.05s; }

/* ---------- FAQ ---------- */

.home-faq-aside { position: sticky; top: 110px; }
.home-faq-aside .section-head { margin-bottom: 1.75rem; }
.home-faq.faq { max-width: none; }
.home-faq-help {
  display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--fs-radius);
  background: #fff; border: 1px solid var(--fs-line);
}
.home-faq-help div { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.home-faq-help strong { font-size: .98rem; }
.home-faq-help a { color: var(--fs-primary-dark); font-weight: 600; }
.home-faq-sign { --sign-size: 3.25rem; font-size: 1.6rem; }

/* ---------- CTA: Autobahn-Ausfahrt ---------- */

.home-exit { max-width: 980px; margin-inline: auto; }
.home-exit-sign {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--fs-radius-lg); padding: clamp(1.4rem, 3.5vw, 2.4rem);
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(255, 255, 255, .12), transparent 70%),
    linear-gradient(160deg, #1468bd, var(--fs-sign-blue) 50%, var(--fs-sign-blue-dark));
  box-shadow: inset 0 0 0 6px var(--fs-sign-blue), inset 0 0 0 9px #fff, 0 40px 70px -40px rgba(7, 60, 121, .8);
}
.home-exit-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem;
  padding: .4rem .4rem 1.3rem; margin-bottom: 1.4rem; border-bottom: 3px solid rgba(255, 255, 255, .9);
}
.home-exit-badge {
  font-family: var(--fs-font-display); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 6px; border: 2px solid #fff;
}
.home-exit-next { font-family: var(--fs-font-display); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; }
.home-exit-next b { font-weight: 800; }
.home-exit-arrow { width: 44px; height: 44px; margin-left: auto; flex: none; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.home-exit:hover .home-exit-arrow { transform: translate(4px, -4px); }
.home-exit-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 .4rem .3rem; }
.home-exit-body h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.home-exit-body p { color: rgba(255, 255, 255, .85); margin: 0; }
.home-exit-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.home-exit .btn-light { color: var(--fs-sign-blue-dark); }
.home-exit .btn-outline-light { border-color: rgba(255, 255, 255, .6); }
.home-exit .btn-outline-light:hover { background: #fff; color: var(--fs-sign-blue-dark); }
.home-exit-posts { display: flex; justify-content: space-around; padding-inline: 18%; height: 54px; }
.home-exit-posts span {
  width: 12px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #8a9097, #d5d9de 45%, #7c838b);
}

/* ---------- Responsiv ---------- */

@media (max-width: 1199.98px) {
  .home-dash-panel { grid-template-columns: 1fr; }
  .home-gauges { justify-content: center; }
  .home-telltales { padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}

@media (max-width: 991.98px) {
  .home-hero-road { left: 50%; opacity: .35; }
  .home-license-wrap { margin-top: .5rem; }
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-class.is-wide { grid-column: span 2; }
  .home-route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .home-route-road { display: none; }
  .home-route-step { padding-top: calc(var(--sign) + 1.1rem); }
  .home-route-step::before { display: none; }
  .home-faq-aside { position: static; }
}

@media (max-width: 767.98px) {
  .home-hero-title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .home-hero-cta { display: grid; grid-template-columns: auto 1fr; }
  .home-hero-cta .btn-outline-light { grid-column: 1 / -1; }
  .home-light { margin-right: 0; }
  .home-hero-stats { gap: 1.25rem 1.75rem; }
  .home-license { transform: rotate(-1.5deg); padding: .95rem 1rem .9rem; }
  .home-license-title b { font-size: .98rem; }
  /* Platz für das Siegel oben rechts */
  .home-license-head { padding-right: 3.6rem; }
  /* Perspektiv-Straße wirkt auf schmalen Screens nur wie ein Fleck */
  .home-hero-road { display: none; }
  .home-license-fields { font-size: .8rem; }
  .home-license-fields strong { font-size: .95rem; }
  .home-license-seal.hero-seal { width: 78px; height: 78px; top: -30px; right: -6px; }

  .home-gauges { gap: .5rem; justify-content: space-around; }
  .home-gauge { width: auto; flex: 1; }
  .home-telltales { grid-template-columns: 1fr; gap: .9rem; }

  .home-features { grid-template-columns: 1fr; gap: 1rem; }
  .home-bento { grid-template-columns: 1fr; gap: 1rem; }
  .home-class.is-wide { grid-column: auto; }

  /* Route vertikal: Straße links, Schilder darauf */
  .home-route { --sign: 52px; }
  .home-route-road {
    display: block; top: 0; bottom: 0; left: calc(var(--sign) / 2 - 13px); right: auto; width: 26px; height: auto;
    box-shadow: inset 2px 0 0 rgba(255, 255, 255, .5), inset -2px 0 0 rgba(255, 255, 255, .5);
    transform: scaleY(0); transform-origin: top;
  }
  .home-route.is-visible .home-route-road { transform: scaleY(1); }
  .home-route-road::before {
    left: 50%; right: auto; top: 0; bottom: 30px; width: 3px; height: auto; transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .85) 0 14px, transparent 14px 28px);
  }
  .home-route-finish { top: auto; left: 0; right: 0; width: auto; height: 26px; }
  .home-route-car { display: none; }
  .home-route-list { grid-template-columns: 1fr; row-gap: 2rem; }
  .home-route-step { padding: 0 0 0 calc(var(--sign) + 1.1rem); min-height: var(--sign); }
  .home-route-step.is-finish { padding-bottom: 2.4rem; }

  .home-exit-sign { box-shadow: inset 0 0 0 5px var(--fs-sign-blue), inset 0 0 0 7px #fff, 0 30px 60px -40px rgba(7, 60, 121, .8); }
  .home-exit-arrow { width: 34px; height: 34px; }
  .home-exit-next { order: 3; flex-basis: 100%; }
  .home-exit-actions, .home-exit-actions .btn { width: 100%; }
  .home-exit-posts { height: 36px; }
}

@media (max-width: 399.98px) {
  .home-license-body { grid-template-columns: 30% 1fr; gap: .75rem; }
  .home-license-classes li { font-size: .74rem; padding: .2rem .45rem; }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .home-hero-road-lines,
  .home-route-car,
  .home-class:hover .home-class-road::before,
  .home-class:hover .v-wheel { animation: none !important; }
  .home-route-car { display: none; }
  .home-route-road, .home-route.is-visible .home-route-road { transform: none; }
  .home-route-sign, .home-route-step > :is(.home-route-stage, h3, p) { opacity: 1; transform: none; }
  .home-license, .home-license:not(.is-tilting):hover { transform: none; }
  .home-class:hover .v-move, .home-class--bike:hover .v-move, .home-class:hover .v-hand { transform: none; }
  .home-gauge-needle.is-full { transform: rotate(90deg); }
  .home-gauge-needle:not(.is-full) { transform: rotate(0deg); }
}

/* ==========================================================================
   Hero: Fahrlehrer-Fotos im Hintergrund (.home-hero-bg, JS in app.js)
   Ohne JS bzw. bei reduzierter Bewegung steht das erste Foto still.
   Die Karte zeigt fest das erste Profil (Inhaber).
   ========================================================================== */

/* Ebene unter Deko/Inhalt (z-index 0); ::after des Hero (Rot-Licht) liegt darüber */
.home-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home-hero-bg-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease;
}
.home-hero-bg-slide.is-active { opacity: 1; }
.home-hero-bg-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: var(--bg-pos, 50% 30%);
  filter: saturate(.8) contrast(1.05);
  transform: scale(1.02); transform-origin: var(--bg-pos, 50% 30%);
}
/* Ken Burns: langsames Heranzoomen, solange das Bild sichtbar ist */
.home-hero-bg.is-animated .home-hero-bg-slide.is-active img,
.home-hero-bg.is-animated .home-hero-bg-slide.is-leaving img {
  transform: scale(1.1); transition: transform 9s linear;
}
/* Lesbarkeit: links (Überschrift) dunkel, rechts heller; unten Übergang ins Navy */
.home-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 31, 36, .94) 0%, rgba(28, 31, 36, .86) 32%, rgba(28, 31, 36, .55) 62%, rgba(28, 31, 36, .42) 100%),
    linear-gradient(180deg, rgba(28, 31, 36, .35) 0%, transparent 30%, transparent 70%, rgba(28, 31, 36, .75) 100%);
}

/* Desktop: Fotos rechtsbündig, links weich ins Navy ausgeblendet –
   so landen die (links im Bild stehenden) Gesichter zwischen Text und Karte */
@media (min-width: 992px) {
  .home-hero-bg-slide {
    left: 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  }
}

/* Bild-Hinweis oben rechts (wechselt mit dem Bild; unten rechts sitzt der WhatsApp-Button) */
.home-hero-caption {
  position: absolute; z-index: 2; right: clamp(1rem, 3vw, 2rem); top: clamp(1rem, 2.2vw, 1.5rem);
  display: inline-flex; align-items: center; gap: .45rem; max-width: calc(100% - 2rem); margin: 0;
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .85);
  background: rgba(28, 31, 36, .55); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .5s ease;
}
.home-hero-caption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-hero-caption.is-fading { opacity: 0; }

@media (max-width: 991.98px) {
  /* Inhalt liegt untereinander über dem Foto: kräftiger abdunkeln */
  .home-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(28, 31, 36, .74) 0%, rgba(28, 31, 36, .8) 45%, rgba(28, 31, 36, .9) 100%);
  }
}
@media (max-width: 767.98px) {
  .home-hero-caption { top: .7rem; right: .75rem; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-bg-slide, .home-hero-caption { transition: none; }
  .home-hero-bg-slide img { transform: none !important; transition: none !important; }
}

.home-license-info { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.home-license-info .home-license-classes { margin: 0; padding: 0; border: 0; align-items: flex-start; gap: .5rem; }
.home-license-info .home-license-label { padding-top: .3rem; flex: none; width: 1.9rem; }

/* Platzhalter, wenn (noch) kein Foto hinterlegt ist */
.home-license-photo.is-initial {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #ecd6dd 0%, #d9bcc6 100%);
}
.hero-team-initial { display: grid; place-items: center; gap: .3rem; color: var(--fs-primary-dark); }
.hero-team-initial b {
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  font-family: var(--fs-font-display); font-size: 2rem; font-weight: 800; line-height: 1;
  background: rgba(255, 255, 255, .7); box-shadow: 0 6px 16px -10px rgba(122, 20, 40, .6);
}
.hero-team-initial i { font-size: 1rem; opacity: .5; }

/* ==========================================================================
   Start: Teaser Kostenrechner (.home-calc)
   ========================================================================== */

.home-calc {
  margin-top: 2rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center;
  gap: 1.1rem 1.75rem; padding: 1.25rem 1.5rem; border-radius: var(--fs-radius-lg);
  background: #fff; border: 1px solid var(--fs-line); color: var(--fs-ink); text-decoration: none;
  box-shadow: var(--fs-shadow-sm);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.home-calc:hover { color: var(--fs-ink); transform: translateY(-3px); border-color: rgba(200, 16, 46, .35); box-shadow: var(--fs-shadow); }
.home-calc:focus-visible { outline: 3px solid var(--fs-focus); outline-offset: 3px; }
.home-calc-sign { --sign-size: 3.4rem; font-size: 1.45rem; }
.home-calc-copy { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.home-calc-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fs-primary); }
.home-calc-copy strong { font-family: var(--fs-font-display); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.home-calc-copy > span:last-child { color: var(--fs-muted); font-size: .95rem; }
.home-calc-receipt {
  display: grid; gap: .4rem; width: 118px; padding: .65rem .7rem 1rem;
  background: #fffdf8; border-top: 3px solid var(--fs-primary);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
  filter: drop-shadow(0 8px 10px rgba(28, 31, 36, .14));
  transform: rotate(3deg); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.home-calc:hover .home-calc-receipt { transform: rotate(-1deg) translateY(-3px); }
.home-calc-row, .home-calc-sum { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.home-calc-receipt b, .home-calc-receipt i { display: block; height: 5px; border-radius: 3px; background: #dfe2e6; }
.home-calc-row b { width: 55%; }
.home-calc-row i { width: 24%; background: #c9ced4; }
.home-calc-sum { margin-top: .15rem; padding-top: .4rem; border-top: 3px double #cfd3d8; }
.home-calc-sum b { width: 30%; background: #9aa1a9; }
.home-calc-sum i { width: 38%; height: 8px; background: var(--fs-primary); }
.home-calc-cta {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 700;
  background: var(--fs-primary); color: #fff; transition: gap .2s ease, background-color .2s ease;
}
.home-calc:hover .home-calc-cta { gap: .7rem; background: var(--fs-primary-dark); }

@media (max-width: 991.98px) {
  .home-calc { grid-template-columns: auto minmax(0, 1fr) auto; }
  .home-calc-receipt { display: none; }
}
@media (max-width: 575.98px) {
  .home-calc { grid-template-columns: auto minmax(0, 1fr); padding: 1.15rem; }
  .home-calc-sign { --sign-size: 2.8rem; font-size: 1.2rem; align-self: start; }
  .home-calc-cta { grid-column: 1 / -1; justify-content: center; }
}

/* ==========================================================================
   Preise: Kostenrechner (.calc-*, JS in app.js – Preise kommen aus der DB
   über data-calc-prices, nichts ist hart codiert)
   ========================================================================== */

.calc-hero-link { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; }
.calc-section { scroll-margin-top: 1rem; }

.calc-nojs {
  display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: 1rem 1.25rem;
  border-radius: var(--fs-radius); background: #fff; border: 1px solid var(--fs-line); color: var(--fs-muted);
}
.calc-nojs i { color: var(--fs-primary); }

.calc-form { display: grid; gap: 1.1rem; }
.calc-group {
  margin: 0; min-width: 0; padding: 1.2rem 1.35rem 1.3rem;
  border: 1px solid var(--fs-line); border-radius: var(--fs-radius); background: #fff; box-shadow: var(--fs-shadow-sm);
}
.calc-group[hidden] { display: none; }
.calc-legend {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .85rem; padding: 0;
  font-family: var(--fs-font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: var(--fs-ink);
}
.calc-legend-no {
  display: grid; place-items: center; flex: none; width: 1.65rem; height: 1.65rem; border-radius: 50%;
  background: var(--fs-primary); color: #fff; font-size: .85rem; font-weight: 800;
}
.calc-hint { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .9rem; font-size: .86rem; color: var(--fs-muted); }
.calc-hint i { color: var(--fs-amber); }

/* Klassen-Auswahl */
.calc-seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-seg-opt { position: relative; }
.calc-seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.calc-seg-opt label {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--fs-line); background: var(--fs-soft); font-weight: 700; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.calc-seg-opt input:hover + label { border-color: rgba(200, 16, 46, .4); }
.calc-seg-opt input:checked + label { background: var(--fs-primary); border-color: var(--fs-primary); color: #fff; }
.calc-seg-opt input:focus-visible + label { outline: 3px solid var(--fs-focus); outline-offset: 2px; }

/* Mengen-Zeilen (Stepper + Schieberegler) */
.calc-drives { display: grid; gap: .25rem; }
.calc-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem 1rem;
  padding: .75rem 0; border-top: 1px dashed var(--fs-line);
}
.calc-row:first-child { border-top: 0; padding-top: .2rem; }
.calc-row-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.calc-row-label { font-weight: 700; }
.calc-row-price { font-size: .82rem; color: var(--fs-muted); }
.calc-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--fs-line); border-radius: 999px;
  background: #fff; overflow: hidden;
}
.calc-step {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0;
  background: none; color: var(--fs-ink); font-size: 1.15rem; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.calc-step:hover:not(:disabled) { background: var(--fs-primary-soft); color: var(--fs-primary-dark); }
.calc-step:disabled { opacity: .35; cursor: default; }
.calc-step:focus-visible { outline: 3px solid var(--fs-focus); outline-offset: -3px; border-radius: 999px; }
.calc-num {
  width: 3rem; height: 2.4rem; border: 0; border-inline: 1px solid var(--fs-line); text-align: center;
  font-family: var(--fs-font-display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  color: var(--fs-ink); background: #fff; -moz-appearance: textfield; appearance: textfield;
}
.calc-num::-webkit-outer-spin-button, .calc-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-num:focus-visible { outline: 3px solid var(--fs-focus); outline-offset: -3px; }
.calc-range {
  grid-column: 1 / -1; width: 100%; height: 6px; margin: .55rem 0 .2rem; border-radius: 999px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, var(--fs-primary) var(--fill, 0%), #e3e6ea var(--fill, 0%));
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--fs-primary); box-shadow: 0 2px 6px rgba(28, 31, 36, .25);
  transition: transform .15s ease;
}
.calc-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--fs-primary);
  box-shadow: 0 2px 6px rgba(28, 31, 36, .25);
}
.calc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-range:focus-visible { outline: 3px solid var(--fs-focus); outline-offset: 6px; }

/* Einmalige Posten als Schalter */
.calc-toggles { display: grid; gap: .25rem; }
.calc-toggle {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem;
  padding: .65rem .5rem; margin: 0 -.5rem; border-radius: var(--fs-radius-xs); cursor: pointer;
  transition: background-color .15s ease;
}
.calc-toggle:hover { background: var(--fs-soft); }
.calc-switch {
  position: relative; width: 2.6rem; height: 1.5rem; margin: 0; flex: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 999px; background: #cfd4da;
  transition: background-color .2s ease;
}
.calc-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.calc-switch:checked { background: var(--fs-primary); }
.calc-switch:checked::before { transform: translateX(1.1rem); }
.calc-switch:focus-visible { outline: 3px solid var(--fs-focus); outline-offset: 2px; }
.calc-toggle-text { font-weight: 600; line-height: 1.3; }
.calc-toggle-price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--fs-muted); white-space: nowrap; }
.calc-switch:checked ~ .calc-toggle-price { color: var(--fs-ink); }

.calc-reset {
  justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .2rem;
  border: 0; background: none; color: var(--fs-muted); font-size: .9rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.calc-reset:hover { color: var(--fs-primary-dark); }

/* Kassenbon (nutzt .pg-receipt aus pages.css) */
.calc-receipt-wrap { filter: drop-shadow(0 18px 22px rgba(28, 31, 36, .16)); }
@media (min-width: 992px) { .calc-receipt-wrap { position: sticky; top: 6.5rem; } }
.calc-lines {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem;
}
.calc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .75rem; }
.calc-line-label { display: flex; gap: .4rem; min-width: 0; }
.calc-line-label::after { content: ""; flex: 1; min-width: .75rem; border-bottom: 1.5px dotted #c9ced4; transform: translateY(-.25em); }
.calc-line-qty { flex: none; color: var(--fs-primary); font-weight: 700; }
.calc-line-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-line-empty { color: var(--fs-muted); font-style: italic; }
.calc-line.is-new { animation: calcLineIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes calcLineIn { from { opacity: 0; transform: translateX(-6px); background: rgba(255, 210, 0, .35); } to { opacity: 1; transform: none; background: transparent; } }
.calc-receipt .calc-amount { font-size: clamp(2.1rem, 4.5vw, 2.7rem); display: inline-block; transition: transform .25s ease; }
.calc-amount.is-bump { transform: scale(1.04); }
.calc-disclaimer { margin-bottom: 1.1rem; }
.calc-cta { display: flex; justify-content: center; align-items: center; gap: .5rem; width: 100%; }

@media (max-width: 575.98px) {
  .calc-group { padding: 1rem 1rem 1.1rem; }
  .calc-step { width: 2.2rem; }
  .calc-num { width: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-calc, .home-calc-receipt, .home-calc:hover, .home-calc:hover .home-calc-receipt { transition: none; transform: none; }
  .calc-line.is-new { animation: none; }
  .calc-amount, .calc-switch::before { transition: none; }
}
