/* Startseite (pages/home.html) – baut auf site.css auf */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 38%, rgb(255 122 0 / 22%), transparent 70%),
    radial-gradient(35% 40% at 12% 0%, rgb(255 154 61 / 10%), transparent 70%);
}
.hero::after { /* Mittelstreifen am unteren Rand */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 34px, transparent 34px 64px);
  opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-pill { margin-bottom: 26px; }
.hero-title { font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.02em; margin: 0 0 24px; }
.hero-title span { display: block; }
.hero-title-accent {
  background: linear-gradient(92deg, #FF7A00 10%, #FFB15C 60%, #FF7A00 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero-lead { max-width: 560px; margin: 0 0 30px; }
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-message { margin-top: 18px; max-width: 560px; }
.hero-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 550; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--ok); width: 16px; height: 16px; }

/* Produktbild */
.hero-visual { position: relative; padding: 18px 8px 28px; }
.hv-window {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-3), 0 0 0 6px color-mix(in srgb, var(--surface) 40%, transparent);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transform-origin: 30% 50%;
}
.hv-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.hv-dots { display: inline-flex; gap: 6px; }
.hv-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.hv-dots i:first-child { background: #ff5f57; } .hv-dots i:nth-child(2) { background: #febc2e; } .hv-dots i:nth-child(3) { background: #28c840; }
.hv-title { font-size: 13px; font-weight: 600; color: var(--muted); flex: 1; }
.hv-live { gap: 6px; font-size: 11px; letter-spacing: .08em; }
.hv-live .dot { width: 6px; height: 6px; }
.hv-map { width: 100%; height: auto; aspect-ratio: 640 / 420; }
.hv-sea { fill: var(--map-bg); }
.hv-land { fill: var(--surface-2); }
.hv-land-2 { fill: var(--surface-3); opacity: .7; }
.hv-gridline { stroke: var(--grid-line); stroke-width: 1; }
.hv-road { fill: none; stroke: var(--road); stroke-width: 11; stroke-linecap: round; }
.hv-lane { fill: none; stroke: var(--road-mark); stroke-width: 1.4; stroke-dasharray: 7 9; opacity: .55; stroke-linecap: round; }
.hv-highway { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: .95; stroke-dasharray: 18 10; animation: hv-flow 2.4s linear infinite; }
.hv-highway-glow { fill: none; stroke: var(--accent); stroke-width: 8; opacity: .45; }
@keyframes hv-flow { to { stroke-dashoffset: -56; } }
.hv-city { fill: var(--text); stroke: var(--map-bg); stroke-width: 3; }
.hv-city-main { fill: var(--accent); }
.hv-ring { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hv-ring 2.6s ease-out infinite; }
@keyframes hv-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.hv-truck path { stroke: rgb(0 0 0 / 55%); stroke-width: 1.4; stroke-linejoin: round; }
.hv-t1 path { fill: #FFB15C; } .hv-t2 path { fill: #6CB2FF; } .hv-t3 path { fill: #3ECF8E; }
.hv-t4 path { fill: #F5B841; } .hv-t5 path { fill: #C792EA; } .hv-t6 path { fill: #FF8A80; }
.hv-pulse { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: hv-draw 4s cubic-bezier(.6, 0, .3, 1) infinite; opacity: .9; }
@keyframes hv-draw { 0% { stroke-dashoffset: 1000; opacity: 1; } 55%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.hv-hud {
  position: absolute; display: flex; gap: 6px; align-items: center;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 12px; box-shadow: var(--shadow-2);
}
.hv-hud-tl { top: 56px; left: 14px; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 14px; }
.hv-hud-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hv-hud b { font: 400 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.hv-hud-br { right: 14px; bottom: 14px; flex-direction: column; padding: 4px; gap: 2px; }
.hv-zoom { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 700; color: var(--text-2); }
.hv-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; box-shadow: var(--shadow-3); max-width: 260px;
  animation: hv-bob 6s ease-in-out infinite;
}
.hv-chip .icon-chip { width: 38px; height: 38px; border-radius: 11px; }
.hv-chip .icon-chip .icon { width: 19px; height: 19px; }
.hv-chip b { display: block; font-size: 14px; line-height: 1.25; }
.hv-chip small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.hv-chip-a { left: -26px; bottom: 6px; }
.hv-chip-b { right: -14px; top: -4px; animation-delay: -3s; }
@keyframes hv-bob { 50% { transform: translateY(-8px); } }

/* ---------- Live-Zahlen ---------- */
.stats-band { position: relative; z-index: 2; padding-top: 28px; }
.stats-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.kstat { padding: 22px 24px; position: relative; min-width: 0; }
.kstat + .kstat { border-left: 1px solid var(--border); }
.kstat .icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 10px; display: block; }
.kstat b { display: block; font: 400 clamp(26px, 3.2vw, 38px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kstat span { color: var(--muted); font-size: 14px; font-weight: 500; }
.stats-band.is-offline .kstat b { color: var(--faint); }

/* ---------- Abschnitte ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin: 0; }
.section-head-row { margin-bottom: 28px; align-items: flex-end; }
.section-head-row h2 { margin: 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 26px; position: relative; overflow: hidden; min-width: 0;
}
.bento-card h3 { margin: 16px 0 8px; font-size: 19px; }
.bento-card p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.bento-card.span-3 { grid-column: span 3; }
.bento-map { grid-column: span 4; grid-row: span 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: center; }
.bento-map::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 50%, rgb(255 122 0 / 14%), transparent 70%);
}
.bento-text { position: relative; }
.art-radar { position: relative; aspect-ratio: 1; max-width: 240px; width: 100%; justify-self: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.radar-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--accent-line); }
.radar-ring.r1 { width: 100%; height: 100%; } .radar-ring.r2 { width: 66%; height: 66%; } .radar-ring.r3 { width: 33%; height: 33%; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(255 122 0 / 45%), transparent 22%);
  animation: radar 4s linear infinite;
}
@keyframes radar { to { transform: rotate(1turn); } }
.radar-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgb(255 255 255 / 8%); }
.radar-dot.d1 { left: 30%; top: 28%; background: #6CB2FF; } .radar-dot.d2 { left: 62%; top: 40%; background: var(--accent); }
.radar-dot.d3 { left: 44%; top: 70%; background: #3ECF8E; } .radar-dot.d4 { left: 74%; top: 72%; background: #F5B841; }
.art-timeline { position: relative; height: 34px; margin-top: 6px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.art-timeline span { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; background: linear-gradient(90deg, transparent, var(--accent-soft)); border-right: 2px solid var(--accent); animation: tl 5s ease-in-out infinite; }
.art-timeline i { position: absolute; inset: 50% 10px auto; height: 2px; background: repeating-linear-gradient(90deg, var(--faint) 0 3px, transparent 3px 9px); }
@keyframes tl { 0% { width: 8%; } 70%, 100% { width: 92%; } }
.art-bars { display: flex; align-items: flex-end; gap: 8px; height: 54px; margin-top: 6px; }
.art-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--surface-3); }
.art-bars i:nth-child(1) { height: 40%; } .art-bars i:nth-child(2) { height: 75%; } .art-bars i:nth-child(3) { height: 100%; background: var(--accent); }
.art-bars i:nth-child(4) { height: 60%; } .art-bars i:nth-child(5) { height: 30%; }

/* ---------- Unterschiede ---------- */
.diff { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.diff-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.diff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.diff-list li { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }
.diff-list h3 { margin: 4px 0 6px; }
.diff-list p { color: var(--text-2); margin: 0; font-size: 15px; }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { /* Straße hinter den Nummern */
  content: ''; position: absolute; left: 34px; right: calc(25% - 22px); top: 27px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 14px, transparent 14px 26px);
}
.step { position: relative; display: flex; flex-direction: column; padding: 0 6px; }
.step-no {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent-text);
  font: 400 22px var(--font-display); box-shadow: 0 0 0 6px var(--bg);
}
.step-no .icon { display: none; width: 26px; height: 26px; }
.step.done .step-no { background: var(--ok); border-color: var(--ok); color: #0c2a1c; }
.step.done .step-no span { display: none; }
.step.done .step-no .icon { display: block; }
.step h3 { margin: 0 0 8px; }
.step p { color: var(--text-2); font-size: 15px; flex: 1; margin-bottom: 14px; }
.step .badge { align-self: flex-start; }
.step.done .step-link { display: none; }

/* ---------- Podest ---------- */
.podium { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; max-width: 920px; margin-inline: auto; }
.podium:empty { display: none; }
.podium-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0;
  padding: 34px 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  text-decoration: none; color: inherit;
}
a.podium-item:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
a.podium-item { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.podium > li { display: flex; min-width: 0; }
.podium > .place-1 { order: 2; } .podium > .place-2 { order: 1; } .podium > .place-3 { order: 3; }
.podium-item { flex: 1; }
.podium-item.place-1 { padding-top: 44px; border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 65%), var(--surface); }
.podium-item .medal { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; font-size: 15px; }
.podium-item.place-1 .medal { width: 40px; height: 40px; top: -20px; font-size: 17px; }
.podium-avatar { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--surface-3); margin-bottom: 8px; }
.place-1 .podium-avatar { width: 80px; height: 80px; border-radius: 22px; }
.podium-name { font-weight: 700; font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-km { font: 400 22px var(--font-display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.podium-sub { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* ---------- Abschluss ---------- */
.final-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(60% 90% at 50% 110%, rgb(255 122 0 / 28%), transparent 70%), var(--surface);
  border: 1px solid var(--accent-line);
}
.final-card .bg-grid { z-index: -1; }
.final-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; box-shadow: var(--glow); }
.final-card h2 { font-size: clamp(28px, 4vw, 46px); }
.final-card .lead { margin: 0 auto 28px; max-width: 520px; }
.center-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .hv-window { transform: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card, .bento-card.span-3 { grid-column: span 1; }
  .bento-map { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kstat:nth-child(3) { border-left: 0; }
  .kstat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .diff, .faq { grid-template-columns: 1fr; }
  .diff-copy { position: static; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(36px, 11.5vw, 52px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hv-chip { display: none; }
  .hero-visual { padding: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card.span-3, .bento-map { grid-column: auto; }
  .bento-map { grid-template-columns: 1fr; }
  .art-radar { max-width: 180px; }
  .steps { grid-template-columns: 1fr; }
  .kstat { padding: 16px; }
  .podium { grid-template-columns: 1fr; gap: 28px; }
  .podium > li { order: 0 !important; }
  .section-head-row .btn { width: 100%; }
}
@media (max-width: 380px) {
  .stats-row { grid-template-columns: 1fr; }
  .kstat + .kstat { border-left: 0; border-top: 1px solid var(--border); }
}

.podium:has(> li:only-child) { grid-template-columns: minmax(0, 320px); justify-content: center; }
.podium:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
