/*
 * Aussehen nach Apples Human Interface Guidelines, abgestimmt auf das Portal: Systemschrift, Systemfarben,
 * gruppierte Flächen, Milchglas, Hell und Dunkel nach dem Gerät. Alle Farben stehen hier als Variablen.
 * light-dark() folgt dem color-scheme des Elements, deshalb reicht für Film und Vollbilder color-scheme: dark.
 */
:root {
  color-scheme: light dark;
  --hintergrund: light-dark(#f2f2f7, #000000);
  --karte: light-dark(#ffffff, #1c1c1e);
  --karte-2: light-dark(#ffffff, #2c2c2e);
  --leiste-glas: light-dark(rgb(246 246 250 / .72), rgb(28 28 30 / .62));
  --panel-glas: light-dark(rgb(250 250 252 / .93), rgb(38 38 40 / .82));
  --kante: light-dark(rgb(60 60 67 / .12), rgb(255 255 255 / .1));
  --lichtkante: light-dark(rgb(255 255 255 / .7), rgb(255 255 255 / .08));
  --trenner: light-dark(rgb(60 60 67 / .2), rgb(84 84 88 / .65));
  --fuellung: light-dark(rgb(118 118 128 / .12), rgb(118 118 128 / .24));
  --fuellung-leicht: light-dark(rgb(118 118 128 / .07), rgb(118 118 128 / .14));
  --label: light-dark(#000000, #ffffff);
  --label-2: light-dark(rgb(60 60 67 / .78), rgb(235 235 245 / .7));
  --label-3: light-dark(rgb(60 60 67 / .6), rgb(235 235 245 / .5));
  /* Akzent wie in den Portal-Ansichten, kräftig genug für Text auf hellem Grund. */
  --akzent: light-dark(#8f6a2e, #d6ae6e);
  --auf-akzent: light-dark(#ffffff, #000000);
  --blau: light-dark(#007aff, #0a84ff);
  --gruen: light-dark(#34c759, #30d158);
  --orange: light-dark(#ff9500, #ff9f0a);
  --rot: light-dark(#ff3b30, #ff453a);
  --lila: light-dark(#af52de, #bf5af2);
  --indigo: light-dark(#5856d6, #5e5ce6);
  --tuerkis: light-dark(#30b0c7, #40c8e0);
  --grau: #8e8e93;
  --schatten-karte: light-dark(0 1px 2px rgb(0 0 0 / .04), 0 1px 2px rgb(0 0 0 / .3));
  --schatten-schwebend: light-dark(0 18px 50px -12px rgb(0 0 0 / .3), 0 18px 50px -12px rgb(0 0 0 / .8));
  --bewegung: cubic-bezier(.32, .72, 0, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titel: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rand: clamp(16px, 3vw, 32px);
  --rand-l: max(var(--rand), env(safe-area-inset-left));
  --rand-r: max(var(--rand), env(safe-area-inset-right));
  --kopf: 52px;
}
:root[data-thema=hell] { color-scheme: light; }
:root[data-thema=dunkel] { color-scheme: dark; }

/* Film und Vollbilder sind immer dunkel, wie die Bildflächen auf Apples Produktseiten */
.film, .still, .compare-view, .nav:not(.solid):not(.menu-open) { color-scheme: dark; color: var(--label); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--hintergrund); }
body { margin: 0; background: var(--hintergrund); color: var(--label); font: 400 17px/1.47 var(--sans); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
canvas { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--akzent) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
html.js:not(.tastatur) :focus-visible { outline: none; }
section[id], [id="top"] { scroll-margin-top: var(--kopf); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 40; padding: 12px 18px; background: var(--karte); color: var(--label); border-radius: 12px; box-shadow: var(--schatten-schwebend); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--rand-l) var(--rand-r); }

/* Symbole aus dem Portal */
.sym { display: block; flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.symbolkasten { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; background: linear-gradient(180deg, rgb(255 255 255 / .22), transparent), var(--kasten, var(--blau)); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .3); font-size: 14px; }

/* Kopfleiste aus Milchglas. Der Weichzeichner liegt auf ::before, damit fixierte Kinder und das Menü frei bleiben. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 6px; min-height: var(--kopf); padding: 4px var(--rand-r) 4px var(--rand-l); padding-top: max(4px, env(safe-area-inset-top)); font-size: 14px; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--leiste-glas); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: .5px solid var(--kante); }
.nav a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-right: auto; font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -.022em; }
.brand strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.15; }
.brand small { display: block; font-size: 12px; font-weight: 400; line-height: 1.2; letter-spacing: -.005em; color: var(--label-2); }
/* Logo als Maske: Es nimmt die Textfarbe an und bleibt so auf Hell, Dunkel und über dem Film lesbar.
   Der Kamerakopf ist eine eigene Maske: Er schwenkt um sein Gelenk und dreht sich dann nach vorne.
   Dafür wird er schmaler, und die Vorderansicht blendet über ihm ein. So bleibt immer eine Kamera sichtbar */
.logo-kamera, .logo-voll { display: block; flex: none; position: relative; }
.logo-kamera::before, .logo-kamera::after, .logo-voll::before, .logo-voll::after, .logo-vorn { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: currentColor; -webkit-mask: url(logo/kamera-fuss.png) center / contain no-repeat; mask: url(logo/kamera-fuss.png) center / contain no-repeat; }
.logo-kamera::after, .logo-voll::after { -webkit-mask-image: url(logo/kamera-kopf.png); mask-image: url(logo/kamera-kopf.png); transform-origin: 33.6% 54.4%; will-change: transform, opacity; animation: kamera-schwenk 16s cubic-bezier(.45, 0, .55, 1) infinite; }
.logo-vorn { -webkit-mask-image: url(logo/kamera-vorn.png); mask-image: url(logo/kamera-vorn.png); transform-origin: 33.6% 54.4%; opacity: 0; will-change: transform, opacity; animation: kamera-vorn 16s cubic-bezier(.45, 0, .55, 1) infinite; }
.logo-kamera { width: 38px; height: 37px; }
.logo-voll { aspect-ratio: 800 / 206; }
.logo-voll::before { -webkit-mask-image: url(logo/logo-rest.png); mask-image: url(logo/logo-rest.png); }
.logo-voll::after, .logo-voll .logo-vorn { right: auto; width: 26.75%; }
@keyframes kamera-schwenk {
  0%, 3.75% { opacity: 1; transform: scaleX(1) rotate(0deg); }
  12.5%, 21.25% { opacity: 1; transform: scaleX(1) rotate(-10deg); }
  33.75%, 42.5% { opacity: 1; transform: scaleX(1) rotate(10deg); }
  51.25%, 54% { opacity: 1; transform: scaleX(1) rotate(0deg); }
  60% { opacity: 1; transform: scaleX(.45) rotate(0deg); animation-timing-function: linear; }
  62%, 88% { opacity: 0; transform: scaleX(.38) rotate(0deg); animation-timing-function: linear; }
  90% { opacity: 1; transform: scaleX(.45) rotate(0deg); }
  96%, 100% { opacity: 1; transform: scaleX(1) rotate(0deg); }
}
@keyframes kamera-vorn {
  0%, 58% { opacity: 0; transform: scaleX(.38); animation-timing-function: linear; }
  60% { opacity: 1; transform: scaleX(.45); }
  66%, 84% { opacity: 1; transform: scaleX(1); }
  90% { opacity: 1; transform: scaleX(.45); animation-timing-function: linear; }
  92%, 100% { opacity: 0; transform: scaleX(.38); }
}
.foot-logo { width: 248px; max-width: 100%; color: var(--label); }
.nav-tel { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; border-radius: 22px; font-weight: 500; white-space: nowrap; }
.nav-tel:hover { background: var(--fuellung); }
.rund { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--label); font-size: 16px; cursor: pointer; transition: background .2s, transform .2s var(--bewegung); }
.rund:hover { background: var(--fuellung); }
.rund:active { transform: scale(.92); }
.menu-toggle, .menu-kopf, .menu-scrim { display: none; }

/* Hauptmenü */
.menu-list, .menu-list ul { margin: 0; padding: 0; list-style: none; }
.menu-list { display: flex; align-items: center; gap: 2px; }
.menu-list > li { position: relative; }
.menu-list > li > a, .menu-list > li > button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 0; border-radius: 22px; color: var(--label); font: inherit; font-weight: 500; cursor: pointer; transition: background .2s; }
.menu-list > li > a:hover, .menu-list > li > button:hover, .has-sub.open > button { background: var(--fuellung); }
.menu-list > li > a > .sym, .menu-list > li > button > .sym { display: none; }
.has-sub > button::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .6; transform: rotate(45deg); transition: transform .3s var(--bewegung); }
.has-sub.open > button::after { margin-top: 3px; transform: rotate(-135deg); }
.has-sub > ul { position: absolute; left: 0; top: 100%; min-width: 250px; margin-top: 4px; padding: 6px; display: none; border: .5px solid var(--kante); border-radius: 14px; background: var(--panel-glas); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--schatten-schwebend); transform-origin: top left; }
.has-sub:last-child > ul { left: auto; right: 0; transform-origin: top right; }
.has-sub.open > ul { display: block; animation: aufspringen .28s var(--bewegung); }
@keyframes aufspringen { from { transform: scale(.94); } }
@media (hover: hover) and (min-width: 821px) {
  .has-sub:hover > ul { display: block; animation: aufspringen .28s var(--bewegung); }
  .has-sub:hover > button { background: var(--fuellung); }
  /* Brücke über den Abstand, damit das Menü beim Hinüberfahren offen bleibt */
  .has-sub:hover > ul::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
}
.has-sub > ul a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 9px; color: var(--label); line-height: 1.25; }
.has-sub > ul a:hover { background: var(--fuellung); }
.has-sub > ul a[aria-current=page] { color: var(--akzent); font-weight: 600; }

@media (max-width: 820px) {
  .nav { gap: 2px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .menu-toggle { display: flex; }
  .brand { gap: 7px; }
  .logo-kamera { width: 34px; height: 33px; }
  .nav-tel { width: 44px; justify-content: center; padding: 0; font-size: 16px; }
  .nav-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  /* Leiste wie auf dem iPad: schwebt und gleitet von links herein */
  .js .menu-scrim { display: block; position: fixed; inset: 0; z-index: 2; background: rgb(0 0 0 / .35); opacity: 0; visibility: hidden; transition: opacity .35s var(--bewegung), visibility 0s .35s; }
  .js .menu { position: fixed; z-index: 3; top: max(8px, env(safe-area-inset-top)); bottom: max(8px, env(safe-area-inset-bottom)); left: max(8px, env(safe-area-inset-left)); width: min(320px, calc(100vw - 48px)); padding: 8px 10px 16px; overflow-y: auto; overscroll-behavior: contain; font-size: 17px; border: .5px solid var(--kante); border-radius: 22px; background: var(--panel-glas); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--schatten-schwebend), inset 0 .5px 0 var(--lichtkante); transform: translateX(calc(-100% - 16px)); visibility: hidden; transition: transform .42s var(--bewegung), visibility 0s .42s; }
  .js .nav.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity .35s var(--bewegung), visibility 0s; }
  .js .nav.menu-open .menu { transform: none; visibility: visible; transition: transform .42s var(--bewegung), visibility 0s; }
  .menu-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 12px 8px; }
  .menu-kopf .logo-voll { width: 206px; color: var(--label); }
  .menu-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .menu-list > li > a, .menu-list > li > button { width: 100%; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; text-align: left; font-weight: 400; }
  .menu-list > li > a > .sym, .menu-list > li > button > .sym { display: block; color: var(--akzent); }
  .has-sub > button::after { margin-left: auto; margin-right: 4px; }
  .has-sub > ul, .has-sub:last-child > ul { position: static; min-width: 0; margin: 0; padding: 0 0 6px 40px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .has-sub.open > ul { animation: einblenden-kurz .3s var(--bewegung); }
  html:not(.js) .nav { position: absolute; flex-wrap: wrap; }
  html:not(.js) .menu { order: 4; width: 100%; }
  html:not(.js) .has-sub > ul { display: block; }
}
@keyframes einblenden-kurz { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 340px) { .nav-tel { display: none; } }

/* Film */
.film { position: relative; background: #000; }
.js .film { height: 640vh; height: 640svh; }
.film-stage { position: relative; overflow: hidden; background: linear-gradient(180deg, #16233f 0%, #5d5a7a 46%, #e59a58 68%, #15161a 74%); min-height: 100svh; }
.js .film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; background: #000; }
#filmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .34) 28%, rgb(0 0 0 / 0) 52%); }

.beats { position: absolute; left: var(--rand-l); right: var(--rand-r); bottom: clamp(52px, 8vh, 84px); }
.no-film .beats, html:not(.js) .beats { position: relative; left: auto; right: auto; bottom: auto; padding: 96px var(--rand-r) 48px var(--rand-l); display: grid; gap: 40px; }
.beat { max-width: 600px; }
.js .film-stage .beat { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.js.no-film .film-stage .beat { position: static; opacity: 1; visibility: visible; }
.beat-hero { max-width: 780px; }
.kicker { margin-bottom: 10px; font-size: 17px; font-weight: 600; color: var(--label-2); }
h1 { font-family: var(--titel); font-size: clamp(30px, 3.7vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.beat-title { margin-bottom: 8px; font-family: var(--titel); font-size: clamp(30px, 3.7vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.beat p:not(.beat-title):not(.kicker):not(.scroll-hint):not(.cta-row) { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--label-2); }
.scroll-hint { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; color: var(--label-2); }
.scroll-hint .sym { animation: wippen 2s var(--bewegung) infinite; }
@keyframes wippen { 50% { transform: translateY(4px); } }
html:not(.js) .scroll-hint, .no-film .scroll-hint { display: none; }

/* Sucher-Einblendung */
.hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; font: 400 12px/1.2 var(--mono); letter-spacing: 0; color: #fff; }
.no-film .hud, html:not(.js) .hud { display: none; }
.stamp, .hud-note { position: absolute; top: calc(var(--kopf) + 12px); display: flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: rgb(28 28 30 / .55); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.stamp { right: var(--rand-r); gap: 12px; }
.hud-note { left: var(--rand-l); font-family: var(--sans); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: rec 1.8s steps(2) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.hud-line { position: absolute; left: var(--rand-l); right: var(--rand-r); bottom: 24px; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .24); overflow: hidden; }
.hud-line span { display: block; height: 100%; width: 0; border-radius: 2px; background: #fff; }

/* Knöpfe sind Kapseln und geben beim Antippen nach */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 22px; font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .2s, background .2s, transform .2s var(--bewegung); }
.btn:active { transform: scale(.97); }
.btn-primary { color: var(--auf-akzent); background: linear-gradient(180deg, rgb(255 255 255 / .12), transparent), var(--akzent); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { color: var(--akzent); background: var(--fuellung); }
.btn-secondary:hover { background: color-mix(in srgb, var(--fuellung) 100%, var(--label) 6%); }
.btn-glas { color: #fff; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .25); }
.btn-glas:hover { background: rgb(255 255 255 / .26); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Bildvergleich */
.compare { position: relative; background: var(--karte); }
.compare-view { position: relative; height: 78vh; height: 78svh; min-height: 380px; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: #000; }
.compare-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#cmpBefore { clip-path: inset(0 50% 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / .4); pointer-events: none; }
.cmp-griff { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #000; background: #fff; box-shadow: 0 4px 18px rgb(0 0 0 / .35); font-size: 13px; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 16px var(--rand-r) 16px var(--rand-l); border-bottom: .5px solid var(--kante); background: var(--karte); }
.band h2 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.band p { font-size: 15px; color: var(--label-2); margin-top: 2px; }
.band .band-cta { margin: 0; flex: none; }
@media (max-width: 640px) { .band { flex-direction: column; align-items: flex-start; } }

/* Inhalt: große Titel auf dem Grauton, darauf gruppierte Flächen */
.block { padding: clamp(64px, 9vw, 120px) 0; }
.block + .block { padding-top: 0; }
.block h2, .still h2 { font-family: var(--titel); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.block-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.block-head p { color: var(--label-2); }
.block-head-solo { display: block; }
@media (max-width: 860px) { .block-head { grid-template-columns: 1fr; } }


.karte { border: .5px solid var(--kante); border-radius: 14px; background: var(--karte); box-shadow: inset 0 .5px 0 var(--lichtkante), var(--schatten-karte); }
.intro-lead { margin-top: 16px; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; letter-spacing: -.024em; color: var(--label-2); }
.intro-text { display: grid; gap: 14px; padding: 20px; color: var(--label-2); }
.intro-text strong { color: var(--label); }
.intro-ideal { display: flex; gap: 10px; margin: 2px -20px -6px; padding: 14px 20px 0; border-top: .5px solid var(--trenner); color: var(--label); font-weight: 600; }
.intro-ideal .sym { color: var(--akzent); }

/* Originalansichten des Portals: Seitenleiste wie im Portal selbst */
.tour { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.tour-tabs { display: grid; gap: 2px; padding: 8px; }
.tour-tabs button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: none; border: 0; border-radius: 12px; color: var(--label); font-size: 16px; text-align: left; cursor: pointer; transition: background .2s, transform .2s var(--bewegung); }
.tour-tabs button .sym { color: var(--akzent); }
.tour-tabs button:hover { background: var(--fuellung); }
.tour-tabs button:active { transform: scale(.98); }
.tour-tabs button[aria-selected=true] { color: var(--auf-akzent); font-weight: 500; background: linear-gradient(180deg, rgb(255 255 255 / .12), transparent), var(--akzent); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .35); }
.tour-tabs button[aria-selected=true] .sym { color: inherit; }
html:not(.js) .tour-tabs { display: none; }
html:not(.js) .tour { display: block; }
.tour-panels figure { margin: 0 0 32px; }
.js .tour-panels figure { margin: 0; animation: einblenden-tour .5s var(--bewegung); }
@keyframes einblenden-tour { from { opacity: .35; transform: translateY(6px); } }
.tour-panels figure[hidden] { display: none; }
.tour-panels img { display: block; width: 100%; height: auto; border: .5px solid var(--kante); border-radius: 14px; box-shadow: var(--schatten-schwebend); background: #e8e6e1; }
.tour-panels #p-handy img { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; border: 7px solid #1c1c1e; border-radius: 40px; }
.tour-panels figcaption { max-width: 68ch; margin-top: 20px; }
.tour-panels h3 { margin-bottom: 4px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.tour-panels figcaption p { color: var(--label-2); }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tour-tabs { display: flex; gap: 6px; margin-inline: calc(var(--rand) * -1); padding: 2px var(--rand) 6px; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: none; gap: 7px; padding: 8px 14px; border-radius: 22px; white-space: nowrap; font-size: 15px; background: var(--fuellung); }
}

/* Funktionen als gruppierte Listen */
.feat-gitter { columns: 2 420px; column-gap: 20px; }
.feat { break-inside: avoid; margin-bottom: 20px; padding: 16px 0 6px; }
.feat h3 { display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; font-size: 20px; font-weight: 600; line-height: 1.25; border-bottom: .5px solid var(--trenner); }
.feat li { position: relative; padding: 11px 16px; font-size: 15px; line-height: 1.4; color: var(--label-2); }
.feat li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--trenner); }
.feat li strong { color: var(--label); font-weight: 500; }

/* Module als Widgets */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mods li { padding: 16px; }
.mods .symbolkasten { margin-bottom: 12px; }
.mods h3 { margin-bottom: 4px; font-size: 17px; font-weight: 600; line-height: 1.25; }
.mods p { color: var(--label-2); font-size: 15px; line-height: 1.38; }
@media (max-width: 1000px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mods { grid-template-columns: 1fr; } }

/* Vollbilder */
.still { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.still-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.still-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .88) 0%, rgb(0 0 0 / .55) 40%, rgb(0 0 0 / 0) 74%); }
.still-copy { position: relative; padding-block: 88px clamp(40px, 6vw, 72px); }
.still-copy p { max-width: 60ch; margin-top: 12px; color: var(--label-2); }
.still-copy h2 { max-width: 18ch; }
.still-cta .cta-row { margin-top: 24px; max-width: none; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.split > div > p:not(.intro-lead) { margin-top: 16px; color: var(--label-2); max-width: 56ch; }
.big-list li { position: relative; display: flex; gap: 12px; padding: 12px 16px; line-height: 1.35; }
.big-list li + li::after { content: ""; position: absolute; top: 0; left: 46px; right: 0; border-top: .5px solid var(--trenner); }
.big-list .sym { margin-top: 1px; color: var(--gruen); }
.big-list-sm li { font-size: 15px; color: var(--label-2); }
.big-list-sm strong { color: var(--label); font-weight: 500; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Fußzeile mit Fußnotenschrift */
.foot { padding: 40px 0 max(32px, env(safe-area-inset-bottom)); font-size: 13px; letter-spacing: -.01em; line-height: 1.4; color: var(--label-2); }
/* Obere Zeile als festes Raster, damit sie nicht von der Textbreite des Browsers abhängt */
.foot-kopf { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 20px 28px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: .5px solid var(--trenner); }
.foot-recht { display: inline-flex; gap: 2px; }
.foot-recht a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; color: var(--label); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.foot-recht a:hover { background: var(--fuellung); color: var(--label); text-decoration: none; }
.foot-recht a[aria-current=page] { color: var(--akzent); font-weight: 600; }
.foot-recht a[aria-current=page]:hover { color: var(--akzent); }
.foot-anfrage { display: flex; align-items: center; justify-self: end; gap: 20px; }
.foot-anfrage h2 { margin-bottom: 2px; }
.foot-anfrage p span { display: block; white-space: nowrap; }
.foot-anfrage .btn { font-size: 15px; }
.foot-anfrage .sym { width: 18px; height: 18px; }
.foot .foot-kontakt a { display: inline-flex; align-items: center; gap: 8px; }
.foot-kontakt .sym { width: 15px; height: 15px; color: var(--akzent); }
@media (max-width: 1120px) {
  .foot-kopf { grid-template-columns: auto minmax(0, 1fr); }
  .foot-recht { justify-self: start; }
  .foot-anfrage { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--karte); border: .5px solid var(--kante); }
}
@media (max-width: 720px) {
  .foot-kopf { grid-template-columns: minmax(0, 1fr); }
  .foot-recht { justify-self: stretch; }
  .foot-recht a { flex: 1; justify-content: center; padding: 0 8px; }
  .foot-anfrage { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .foot-anfrage p span { display: inline; white-space: normal; }
  .foot-anfrage .btn { width: 100%; }
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 32px; }
.foot h2 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--label); }
.foot li a { display: inline-block; padding: 4px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--label); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; margin-top: 32px; padding-top: 16px; border-top: .5px solid var(--trenner); }
.foot-leistungen ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 640px) { .foot-grid, .foot-leistungen ul { grid-template-columns: minmax(0, 1fr); } }
@media (pointer: coarse) { .foot li a { display: flex; align-items: center; min-height: 44px; padding: 0; } }

/* Impressum und Datenschutz: Bild im Kopf, darunter Karten */
.recht-hero { min-height: clamp(380px, 54vh, 560px); }
.recht-hero h1 { max-width: 16ch; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.recht-hero .still-copy { padding-block: calc(var(--kopf) + 24px) clamp(32px, 5vw, 56px); }
.recht-hero .still-copy > p:first-child { margin: 0 0 20px; }
.recht-hero .still-copy .recht-lead { max-width: 56ch; margin-top: 12px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.38; }
.recht-zurueck { padding-inline: 14px 18px; font-size: 15px; }
.recht-zurueck .sym { width: 16px; height: 16px; }
.recht-inhalt { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.recht-inhalt a:not(.btn) { color: var(--akzent); text-decoration: none; }
.recht-inhalt a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.recht-titel { margin-bottom: 16px; font-family: var(--titel); font-size: clamp(28px, 3vw, 34px); font-weight: 700; letter-spacing: -.024em; line-height: 1.15; }
.recht-block { padding: 16px; }
.recht-block > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.recht-block > p { color: var(--label-2); line-height: 1.5; }
.recht-block > p + p { margin-top: 12px; }
.recht-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.recht-anschrift { font-style: normal; font-size: 17px; line-height: 1.5; color: var(--label-2); }
.recht-anschrift strong { color: var(--label); }
.recht-zeilen { margin: 0 -16px -16px; }
.recht-zeilen div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 16px; border-top: .5px solid var(--trenner); }
.recht-zeilen dt { font-weight: 500; }
.recht-zeilen dd { margin: 0; color: var(--label-2); text-align: right; }
.recht-zeilen a { display: inline-flex; align-items: center; min-height: 44px; }
.recht-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.recht-aktionen .sym { width: 18px; height: 18px; }
.recht-blick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(32px, 5vw, 48px); }
.recht-blick li { display: grid; align-content: start; gap: 4px; padding: 16px; }
.recht-blick .symbolkasten { margin-bottom: 8px; }
.recht-blick strong { font-size: 17px; line-height: 1.25; }
.recht-blick li > span:last-child { font-size: 15px; line-height: 1.35; color: var(--label-2); }
.recht-spalten { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.recht-leiste { position: sticky; top: calc(var(--kopf) + 16px); display: grid; gap: 2px; padding: 8px; }
.recht-inhalt .recht-leiste a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--label); font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .2s; }
.recht-leiste a .sym { color: var(--akzent); }
.recht-inhalt .recht-leiste a:hover { background: var(--fuellung); text-decoration: none; }
.recht-inhalt .recht-leiste a[aria-current] { color: var(--auf-akzent); font-weight: 500; background: linear-gradient(180deg, rgb(255 255 255 / .12), transparent), var(--akzent); }
.recht-leiste a[aria-current] .sym { color: inherit; }
.recht-text { display: grid; gap: 16px; }
.segmente { display: inline-flex; gap: 2px; margin-bottom: 20px; padding: 2px; border-radius: 24px; background: var(--fuellung); }
.segmente button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px; background: none; color: var(--label); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .25s var(--bewegung); }
.segmente button[aria-selected=true] { background: var(--karte-2); box-shadow: 0 1px 3px rgb(0 0 0 / .14), 0 0 0 .5px rgb(0 0 0 / .04); font-weight: 600; }
html:not(.js) .segmente { display: none; }
.recht-saeulen { display: block; columns: 2 380px; column-gap: 16px; }
.recht-saeulen[hidden] { display: none; }
.recht-saeulen > section { break-inside: avoid; margin-bottom: 16px; }
.recht-block > .big-list { margin: 8px -16px -8px; }
.recht-block .recht-aktionen { margin-top: 12px; }
.recht-abschnitt { scroll-margin-top: calc(var(--kopf) + 16px); }
.recht-text mark { display: inline; padding: 2px 6px; border-radius: 6px; color: var(--label); background: color-mix(in srgb, var(--orange) 28%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.recht-stand { padding-inline: 16px; font-size: 13px; color: var(--label-2); }
@media (max-width: 980px) { .recht-blick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .recht-spalten { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .recht-leiste { position: static; display: flex; gap: 6px; margin-inline: calc(var(--rand) * -1); padding: 2px var(--rand) 6px; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .recht-leiste::-webkit-scrollbar { display: none; }
  .recht-inhalt .recht-leiste a { flex: none; gap: 7px; padding: 8px 14px; border-radius: 22px; white-space: nowrap; background: var(--fuellung); }
}
@media (max-width: 680px) { .recht-raster { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .recht-blick { grid-template-columns: minmax(0, 1fr); } .recht-blick li { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; } .recht-blick .symbolkasten { grid-row: span 2; margin: 0; } }

/* Hinweis beim Verlassen: Aufbau wie eine Systemmeldung auf dem iPhone */
html:has(.hinweis[open]) { overflow: hidden; }
.hinweis { width: min(300px, calc(100vw - 48px)); padding: 0; border: 0; border-radius: 14px; color: var(--label); background: var(--panel-glas); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: var(--schatten-schwebend); }
.hinweis[open] { animation: hinweis-auf .28s var(--bewegung); }
.hinweis::backdrop { background: rgb(0 0 0 / .35); animation: hinweis-schleier .28s var(--bewegung); }
@keyframes hinweis-auf { from { transform: scale(1.05); } }
@keyframes hinweis-schleier { from { opacity: 0; } }
.hinweis-text { padding: 20px 16px 18px; text-align: center; }
.hinweis-text h2 { margin-bottom: 4px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.hinweis-text p { font-size: 13px; line-height: 1.38; letter-spacing: -.01em; }
.hinweis-knoepfe { display: grid; grid-template-columns: 1fr 1fr; border-top: .5px solid var(--trenner); }
.hinweis-knoepfe button { min-height: 44px; padding: 8px; background: none; border: 0; color: var(--akzent); font-size: 17px; cursor: pointer; transition: background .2s; }
.hinweis-knoepfe button + button { border-left: .5px solid var(--trenner); font-weight: 600; }
.hinweis-knoepfe button:hover, .hinweis-knoepfe button:active { background: var(--fuellung); }
.hinweis-knoepfe button:first-child { border-bottom-left-radius: 14px; }
.hinweis-knoepfe button:last-child { border-bottom-right-radius: 14px; }
.hinweis-knoepfe button:focus-visible { outline-offset: -3px; }

/* Inhalte gleiten beim Erscheinen ein */
.einblenden { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--bewegung), transform .7s var(--bewegung); transition-delay: var(--staffel, 0s); }
.einblenden.da { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .film-scrim { background: linear-gradient(0deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .62) 34%, rgb(0 0 0 / 0) 58%); }
  .stamp { font-size: 11px; gap: 8px; padding: 0 10px; }
  .hud-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* „Transparenz reduzieren“ am Gerät: Flächen statt Milchglas */
@media (prefers-reduced-transparency: reduce) {
  .nav::before, .js .menu, .has-sub > ul, .hinweis { background: var(--karte); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Ohne Scroll-Film: bei reduzierter Bewegung und ohne JavaScript steht alles untereinander */
.js.no-film .film { height: auto; }
.js.no-film .film-stage { position: relative; height: auto; min-height: 100svh; }
.no-film .film-scrim, html:not(.js) .film-scrim { background: rgb(0 0 0 / .62); }
