/* Einstieg der Startseite: Vollbild mit Fotos und Bildschirmansicht, darunter die Auswahl „Was möchten Sie planen?“ */
.b { --dunkel: #0e1d24; }
.b .reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--v, 0ms); }
.b.js .reveal { opacity: 0; transform: translateY(26px); }
.b.js .reveal.sichtbar { opacity: 1; transform: none; }

/* Bilder blenden über, langsamer Zoom, leichte Tiefenverschiebung */
.b-hero { position: relative; overflow: hidden; background: var(--dunkel); color: #fff; height: calc(100svh - 68px - 122px); min-height: 560px; max-height: 900px; display: flex; align-items: flex-end; }
.b-hero { touch-action: pan-y; }
.b-bilder { position: absolute; inset: -6% 0 -6% 0; will-change: transform; }
.b-bild { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.b-bild.aktiv { opacity: 1; }
.b-bild > img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.b-bild.aktiv > img { animation: b-zoom 11s ease-out forwards; }
@keyframes b-zoom { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.b-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,22,28,.9) 0%, rgba(10,22,28,.62) 42%, rgba(10,22,28,.08) 78%), linear-gradient(0deg, rgba(10,22,28,.85) 0%, rgba(10,22,28,0) 38%); }
.b-hero > .innen { position: relative; z-index: 2; width: 100%; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
.b-hero .ueber { color: var(--tuerkis-hell); margin-bottom: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; font-size: 14px; }
.b-hero h1 { color: #fff; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.05; letter-spacing: -.03em; max-width: 100%; margin-bottom: 16px; font-weight: 750; text-shadow: 0 2px 30px rgba(0,0,0,.35); overflow-wrap: break-word; hyphens: manual; }
.b-hero h1 b { font-weight: inherit; color: var(--akzent); }
.b-hero .lead { font-size: clamp(16px, 1.5vw, 19px); color: #eaf3f6; max-width: 31em; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.b-hero .knoepfe { margin-top: 22px; }
.b-hero .knopf { padding: 15px 28px; border-radius: 14px; font-size: 18px; }
.b-text { min-width: 0; }
.b-zugang { margin-top: 14px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.88); max-width: 560px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.b-leiste { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 0 22px; }
.b-leiste .innen { padding-bottom: 0; display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; align-items: center; }
.b-unter { margin: 0; font-size: 15px; color: #dbe8ec; min-height: 2.6em; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.b-unter small { display: block; color: rgba(219,232,236,.65); font-size: 12.5px; margin-top: 2px; }
.b-punkte { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.b-punkte li { margin: 0; }
.b-punkte button { display: block; width: 100%; height: 22px; padding: 9px 0; background: none; border: 0; cursor: pointer; position: relative; }
.b-punkte button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); }
.b-punkte button::after { content: ""; position: absolute; left: 0; top: 9px; height: 3px; border-radius: 3px; background: #fff; width: 0; }
.b-punkte button.getan::after { width: 100%; }
.b-punkte button.aktiv::after { animation: b-fuell var(--dauer, 6500ms) linear forwards; }
.b.manuell .b-punkte button.aktiv::after { animation: none; width: 100%; }
@keyframes b-fuell { to { width: 100%; } }

.b-punkte button:focus-visible, .b-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.b.pause .b-bild.aktiv > img, .b.pause .b-punkte button.aktiv::after { animation-play-state: paused; }
/* Taste zum Anhalten des Bildwechsels */
.b-pause { position: absolute; z-index: 4; top: 14px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(10,22,28,.55); cursor: pointer; }
.b-pause::before { content: ""; display: block; box-sizing: content-box; width: 4px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.b-pause[aria-pressed="true"]::before { width: 0; height: 0; border-left: 12px solid #fff; border-right: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.b-pause:hover { background: rgba(10,22,28,.8); }

/* Bildschirmansicht: Laptop, Tablet und Handy */
.b-bild.geraete { background: radial-gradient(1000px 600px at 70% 45%, #2f8ba3 0%, #1c4452 38%, #0e1d24 80%); }
.b-bild.geraete > img { opacity: .22; filter: blur(3px); }
.b-geraete { position: relative; justify-self: start; width: calc(100% + max(0px, (100vw - 1120px) / 2 - 2vw)); max-width: 780px; aspect-ratio: 1.42 / 1; pointer-events: none; opacity: 0; transition: opacity .6s ease .1s; }
.b-geraete.aktiv { opacity: 1; }
.b-geraete .dev { position: absolute; background: #0a1319; box-shadow: 0 34px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); opacity: 0; transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.b-geraete .dev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; background: #fff; }
.b-geraete.aktiv .dev { opacity: 1; transform: none; }
.b-geraete .laptop { left: 6%; top: 0; width: 88%; padding: 2.2% 2.2% 2.4%; border-radius: 14px 14px 4px 4px; transform: translateY(46px); transition-delay: .15s; }
.b-geraete .laptop img { aspect-ratio: 16 / 10; border-radius: 3px; }
.b-geraete .laptop::before { content: ""; position: absolute; left: 50%; top: 0.7%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #25343c; }
.b-geraete .laptop::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -13px; height: 13px; border-radius: 0 0 18px 18px; background: linear-gradient(#d6dde1, #98a3a9); box-shadow: 0 18px 30px rgba(0,0,0,.45); }
.b-geraete .tablet { left: 0; bottom: 4%; width: 40%; padding: 2.6%; border-radius: 16px; transform: translateY(60px) translateX(-24px); transition-delay: .45s; }
.b-geraete .tablet img { aspect-ratio: 4 / 3; border-radius: 8px; }
.b-geraete .handy { right: 0; bottom: -2%; width: 17%; padding: 1.8% 1.6%; border-radius: 22px; transform: translateY(70px) translateX(24px); transition-delay: .7s; }
.b-geraete .handy img { aspect-ratio: 9 / 18.5; border-radius: 16px; }
.b-geraete .handy::before { content: ""; position: absolute; left: 50%; top: 1.6%; width: 28%; height: 1.2%; margin-left: -14%; border-radius: 4px; background: #25343c; z-index: 1; }

/* Auswahl „Was möchten Sie planen?“ */
.a-band { background: #fff; border-bottom: 1px solid #dbe7ea; box-shadow: 0 -10px 30px rgba(10, 22, 28, .18); position: relative; z-index: 3; padding: 16px 0 14px; }
.a-innen { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 10px; align-items: baseline; }
.a-frage { grid-row: 1; grid-column: 1; margin: 0; font-weight: 700; font-size: 17px; color: var(--petrol-2, #17495a); }
.a-fach { grid-row: 1; grid-column: 2; margin: 0; font-size: 14px; text-align: right; }
.a-fach a { color: var(--petrol-2, #17495a); }
.a-liste { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.a-liste li { margin: 0; }
.a-liste a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 46px; padding: 9px 7px; border: 1px solid #c9dde2; border-radius: 12px; background: #f3f9fa; color: var(--petrol-2, #17495a); font-weight: 650; font-size: 14px; line-height: 1.2; text-align: center; text-decoration: none; hyphens: manual; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.a-liste a .symbol { flex: none; }
.a-liste a:hover, .a-liste a:focus-visible { background: var(--petrol-2, #17495a); border-color: var(--petrol-2, #17495a); color: #fff; transform: translateY(-1px); }

@media (max-width: 1180px) {
  .b-hero { height: calc(100svh - 68px - 150px); }
  .a-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .b-hero { height: auto; min-height: 0; max-height: none; }
  .b-hero > .innen { display: block; padding-top: calc(min(76vw, 420px) / 1.42 + 56px); padding-bottom: 28px; }
  .b-hero::before { background: linear-gradient(0deg, rgba(10,22,28,.95) 0%, rgba(10,22,28,.65) 50%, rgba(10,22,28,.25) 100%); }
  .b-hero .lead { font-size: 16px; }
  .b-hero .knoepfe { margin-top: 18px; }
  .b-hero { flex-direction: column; justify-content: flex-end; }
  .b-leiste { position: static; padding: 0 0 10px; }
  .b-leiste .innen { display: block; }
  .b-punkte { margin-top: 4px; }
  .b-unter { min-height: 0; font-size: 0; }
  .b-unter small { font-size: 12px; margin: 0; color: rgba(219,232,236,.8); }
  .b-geraete { position: absolute; right: auto; left: 50%; top: 18px; width: min(76vw, 420px); max-width: none; transform: translateX(-50%); }
  .b-geraete.aktiv { transform: translateX(-50%); }
  .b-geraete .laptop::after { bottom: -9px; height: 9px; }
  .a-band { padding: 10px 0 8px; }
  .a-innen { display: block; }
  .a-frage { margin-bottom: 6px; font-size: 15px; }
  .a-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .a-liste a { flex-direction: column; gap: 3px; min-height: 64px; padding: 8px 4px; font-size: 13px; }
  .a-fach { margin-top: 2px; font-size: 13px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .b.js .reveal { opacity: 1; transform: none; }
  .b-bild { transition: none; }
  .b-bild.aktiv > img { animation: none; }
  .b-punkte button.aktiv::after { animation: none; width: 100%; }
  .b-geraete, .b-geraete .dev { transition: none; }
}
