/* Original mark above the actual aerial world. One scene, no spatial cut. */
html[data-intro="loading"], html[data-intro="ready"], html[data-intro="preparing"], html[data-intro="entering"] { overflow: hidden; }
.intro {
  --intro-graphite: #111216;
  --intro-white: #f7f7f8;
  --intro-red: var(--ci-interaction-red, #EA0313);
  position: fixed; inset: 0; z-index: 1000; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; gap: 20px;
  padding: max(24px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  overflow: auto; overscroll-behavior: contain;
  color: var(--intro-white); background: transparent;
  font-family: var(--ci-font-family, "Montserrat", system-ui, sans-serif);
  -webkit-tap-highlight-color: transparent;
}
.intro-wall {
  position: absolute; inset: 0; z-index: 1; isolation: isolate; box-sizing: border-box;
  display: grid; grid-template-rows: 16.5px 1fr 44px; gap: inherit; padding: inherit;
  overflow: hidden; background: transparent;
}
.intro::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #080a0e url('../shared/media/intro-aerial.webp') center / cover no-repeat;
  filter: blur(2px); transform: scale(1.012);
}
.intro--prepared::before { opacity: 0; transition: opacity 320ms ease-out; }
.intro--loading::before { background: #080a0e; opacity: 1; }
.intro:focus { outline: none; }
.intro-skip[hidden] { display: none; }
.intro-wall::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 43%, rgba(8,10,14,.77) 0%, rgba(8,10,14,.58) 34%, rgba(8,10,14,.18) 76%),
    linear-gradient(0deg, rgba(8,10,14,.75), transparent 24%, transparent 80%, rgba(8,10,14,.5));
}
.intro-mute { background: rgba(9,11,15,.86); }
.intro-mute[hidden] { display: none; }
.intro > .intro-mute { position: absolute; z-index: 4; right: max(32px, env(safe-area-inset-right)); top: max(24px, env(safe-area-inset-top)); }
/* V19.17 (Owner 24.10., Lesbarkeit): die dunkle Fläche des Ton-Knopfs gilt in jeder Phase. Bisher hob .media-toggle
   (css/settings.css, lädt später, gleiche Spezifität) sie vor dem Flug auf: das graue Symbol „lädt/aus“ stand dann direkt auf
   hellen Bauteilen (gemessen 2,3–2,7:1 im ungünstigsten Zehntel bei 820/1920). */
.intro > .intro-mute { background: rgba(9,11,15,.86); }
html[data-theme="light"] .intro > .intro-mute { background: rgb(242 244 247 / 90%); }   /* Hell-Modus (derzeit abgeschaltet) wie theme.css beim Flug */
.intro-skip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  z-index: 4; flex: none; color: #b7bbc3; font-size: 12px; font-weight: 400; line-height: 1.5;
  text-decoration: underline; text-decoration-color: #81848d; text-underline-offset: 5px;
  transition: color 160ms, text-decoration-color 160ms;
}
.intro-center {
  position: relative; grid-row: 2; align-self: center; justify-self: center; width: min(100%, 850px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 15px 0 35px;
}
.intro-title { margin: 0; width: min(540px, 55vw); line-height: 1; }
.intro-title:focus { outline: none; box-shadow: none; }
.intro-logo { display: block; width: 100%; height: auto; max-width: none; }
.intro-destination { display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  color: #eceef1; font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: .38em; }
.intro-destination::before, .intro-destination::after { content: ""; width: 30px; height: 1px; background: var(--intro-red); }
.intro-hint {
  margin: 30px 0 27px; max-width: 30em; font-size: clamp(17px, 1.05vw + 9px, 23px);
  line-height: 1.5; font-weight: 300; letter-spacing: .015em; color: #eceef1;
}
/* V19.4: Claim in Versalien wie „SOLUTIONS“, Leistungszeile leise darunter */
.intro-claim { display: block; font-size: clamp(15px, .9vw + 7px, 20px); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.intro-claim > span { white-space: nowrap; }
.intro-claim-sub { display: block; margin-top: 8px; font-size: clamp(13px, .5vw + 8px, 16px); letter-spacing: .04em; opacity: .78; }
.intro-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.intro-choice { color: var(--intro-white); font-size: 18px; }
.intro .intro-choice--sound {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 62px; padding: 17px 30px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
  background: var(--intro-red); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.5;
  letter-spacing: .015em; text-shadow: none; box-shadow: none; filter: none; backdrop-filter: none;
  cursor: pointer; transition: background-color 180ms, transform 180ms;
}
.intro .intro-choice--sound::after { display: none; }
.intro .intro-choice--sound svg { flex: none; }
.intro .intro-choice--sound:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.intro .intro-choice--sound:active { transform: translateY(1px); }
.intro-choice[aria-disabled="true"] { cursor: default; }
.intro-status, .intro-progress-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro-status--waiting { left: 50%; bottom: 0; transform: translateX(-50%); width: max-content; max-width: 100%; height: auto; overflow: visible; clip-path: none; white-space: normal; padding: 10px 18px; color: #eceef1; background: #111216; font-size: 13px; line-height: 1.5; }

@media (hover: hover) and (pointer: fine) {
  .intro-skip:hover { color: #fff; text-decoration-color: var(--intro-red); }
  .intro .intro-choice--sound:hover { background-color: var(--intro-red); box-shadow: none; }
}

/* Completed preparation steps; 100% is reserved for a warmed frame or settled fallback. */
.intro-choice-label { display: inline-flex; align-items: center; justify-content: center; gap: 13px; opacity: 0; transition: opacity 160ms ease-out; }
.intro .intro-choice--sound .intro-loader { background: transparent; }
.intro-loader { position: absolute; inset: 8px 24px 10px; display: grid; grid-template-rows: 1fr 3px; gap: 5px; align-items: center; opacity: 1; transition: opacity 160ms ease-out; pointer-events: none; }
.intro-loader[hidden] { display: none !important; }
.intro-loader-percent { color: #fff; font-size: 18px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; }
.intro-loader-track { display: block; width: 100%; height: 3px; overflow: hidden; background: rgba(255,255,255,.25); }
.intro-loader-line { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.intro--loader-out .intro-loader { opacity: 0; }
/* V19.4.1: bei 100 % blinkt die Zahl zweimal, dann öffnet der Eingang (intro.js HUNDERT_MS) */
.intro--hundert .intro-loader-percent { animation: intro-hundert 450ms ease-in-out 2; }
@keyframes intro-hundert { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .intro--hundert .intro-loader-percent { animation: none; } }
.intro--label-in .intro-choice-label { opacity: 1; }
.intro--reduced :is(.intro-loader, .intro-choice-label) { transition: none; }
.intro--loading .intro-wall::before { display: none; }

.intro--entering .intro-wall { animation: intro-foreground-out 420ms ease-out both; }
.intro--entering::before { opacity: 0; }
.intro--entering .intro-mute {
  border-radius: 3px;
  color: #f7f7f8; background: rgba(9,11,15,.86); text-shadow: none;
}
.intro--paused *, .intro--paused { animation-play-state: paused !important; }
@keyframes intro-foreground-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 700px) {
  .intro::before { background-image: url('../shared/media/intro-aerial-phone.webp'); }
  .intro { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); gap: 18px; }
  .intro-wall { grid-template-rows: 26.5px 1fr 44px; }
  .intro-mute { font-size: 10px; }
  .intro > .intro-mute { right: max(22px, env(safe-area-inset-right)); top: max(22px, env(safe-area-inset-top)); }
  .intro-center { padding: 0 0 24px; }
  .intro-destination { margin-bottom: 18px; font-size: 10px; }
  .intro-title { width: min(100%, 460px); }
  .intro-hint { margin: 30px 0 22px; max-width: 22em; padding: 0 5px; font-size: 17px; }
  .intro-choices { flex-direction: column; gap: 9px; align-items: center; }
  .intro-choice { font-size: 18px; }
}
@media (max-height: 580px) and (min-width: 701px) {
  .intro { padding-top: 12px; padding-bottom: 12px; gap: 5px; }
  .intro-center { padding: 0 0 6px; }
  .intro-title { width: min(380px, 44vw); }
  .intro-hint { margin: 12px 0 6px; font-size: 17px; }
}
@media (max-height: 560px) and (max-width: 700px) {
  .intro { gap: 8px; padding-top: 10px; padding-bottom: 12px; }
  .intro-title { width: min(70%, 300px); }
  .intro-center { padding-bottom: 6px; }
  .intro-hint { margin: 15px 0 8px; }
  .intro-choices { gap: 0; }
}
.intro--reduced .intro-wall { animation: none; }
.intro--reduced.intro--entering { animation: intro-reduced-exit 120ms linear both; }
@keyframes intro-reduced-exit { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .intro :is(.intro-loader, .intro-choice-label) { transition: none; }
  .intro-wall { animation: none !important; }
  .intro--entering { animation: intro-reduced-exit 120ms linear both; }
  .intro :is(button, a, button::after) { transition: none; }
}

.intro-bottom {
  position: absolute; z-index: 4;
  left: max(32px, env(safe-area-inset-left)); right: max(32px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; letter-spacing: normal; white-space: nowrap;
}
.intro-legal { display: flex; gap: 18px; color: #e1e4e8; }
.intro-legal a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; text-underline-offset: 4px; }
.intro-bottom :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) {
  .intro-bottom { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); gap: 8px; font-size: 11px; }
  .intro-legal { gap: 10px; }
  .intro-skip { font-size: inherit; }
}

/* V19: silent entrance as a visible second choice under the main button (Fremdblick P1-3) */
.intro-choices { flex-direction: column; align-items: center; gap: 10px; }
.intro-choices .intro-skip { font-size: 15px; color: #dfe2e7; text-decoration-color: rgba(255,255,255,.55); padding: 8px 12px; }

/* Telefon quer (z. B. 852×393, 667×375): Titel kleiner, die beiden Eingänge nebeneinander, damit „Ohne Sound betreten“ im Bild bleibt.
   Reicht selbst das nicht (400 % Zoom), scrollt die Fläche, statt am Rand abzuschneiden. */
@media (max-height: 500px) and (orientation: landscape) {
  .intro-wall { overflow-y: auto; overscroll-behavior: contain; grid-template-rows: 6px 1fr 44px; }
  .intro-center { padding-bottom: 6px; }
  .intro-destination { margin-bottom: 8px; }
  .intro-title { width: min(250px, 34vw); }
  .intro-hint { margin: 12px 0 6px; }
  .intro-choices { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
  .intro .intro-choice--sound { min-height: 52px; padding: 11px 26px; }
  .intro-bottom { bottom: max(10px, env(safe-area-inset-bottom)); }
}
