:root {
  font-family: Montserrat, "Avenir Next", Avenir, system-ui, -apple-system, sans-serif;
  --bg-night: #071a31;
  --ink-dark: #0d2541;
  --ink-light: #f7ebd6;
  --panel-day: rgba(7, 30, 53, 0.78);
  --panel-night: rgba(5, 18, 35, 0.84);
  --line-day: rgba(198, 226, 242, 0.35);
  --line-night: rgba(198, 226, 242, 0.28);
  --icon-day: #fff2dd;
  --icon-night: #efd3b0;
  --sky-blue: #bedef0;
  --wordmark-blue: #a8d1ea;
  --hg-accent: #9b6a82;
  --text-soft: rgba(241, 244, 247, 0.9);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg-night);
  color: var(--ink-light);
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8ec9f0;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}
.wall {
  position: fixed;
  inset: -28px;
  z-index: -2;
  background-image: url(day.jpg);
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(.8);
  opacity: .5;
  transition: background-image .7s ease, opacity .7s ease, filter .7s ease;
}
body[data-mode="night"] .wall {
  background-image: url(night.jpg);
  filter: blur(34px) saturate(.76) brightness(.52);
  opacity: .82;
}

.portal {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 660px;
  max-width: calc(100svh * 0.5625);
  overflow: hidden;
  background: #93bed0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 80px rgba(0,0,0,.25);
  isolation: isolate;
}
.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  transition: opacity 1.1s ease;
  z-index: -4;
}
.art-day { opacity: 1; }
.art-night { opacity: 0; }
body[data-mode="night"] .art-day { opacity: 0; }
body[data-mode="night"] .art-night { opacity: 1; }

.legibility {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 22, 39, .08), transparent 24%, transparent 65%, rgba(6,22,34,.12) 100%);
}
body[data-mode="night"] .legibility {
  background: linear-gradient(to bottom, rgba(0,5,18,.16), transparent 22%, transparent 56%, rgba(0,5,18,.22) 79%, rgba(0,5,18,.34) 100%);
}

.masthead {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(env(safe-area-inset-top) + 10px) 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}
/* L018: Der Header-Hintergrund reicht bis an alle Kanten und unter die Safe-Area.
   Gegenueber L017 ist er um 10 Prozentpunkte transparenter. */
.masthead::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(env(safe-area-inset-top) + 62px);
  border-radius: 0;
  background: rgba(8, 26, 44, 0.18);
  border: 0;
  border-bottom: 1px solid rgba(190, 222, 240, .14);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body[data-mode="day"] .masthead::before {
  background: rgba(248, 241, 223, 0.18);
  border-bottom-color: rgba(13, 47, 72, 0.10);
}
body[data-mode="night"] .masthead::before {
  background: rgba(8, 26, 44, 0.24);
  border-bottom-color: rgba(190, 222, 240, 0.12);
}
.masthead-logo {
  position: relative;
  grid-column: 2;
  justify-self: center;
  display: block;
  width: clamp(36px, 9vw, 40px);
  aspect-ratio: 386 / 332;
  filter: drop-shadow(0 2px 4px rgba(255,250,240,.25));
  transform: translateY(4px);
  z-index: 1;
}
.masthead-logo img,
.welcome-wordmark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity .75s ease, filter .75s ease;
}
.masthead-logo .logo-day,
.welcome-wordmark .logo-day { opacity: 1; }
.masthead-logo .logo-night,
.welcome-wordmark .logo-night { opacity: 0; }
body[data-mode="night"] .masthead-logo .logo-day,
body[data-mode="night"] .welcome-wordmark .logo-day { opacity: 0; }
body[data-mode="night"] .masthead-logo .logo-night,
body[data-mode="night"] .welcome-wordmark .logo-night { opacity: 1; }
body[data-mode="night"] .masthead-logo .logo-night {
  filter: brightness(0) saturate(100%) invert(84%) sepia(12%) saturate(848%) hue-rotate(169deg) brightness(93%) contrast(94%);
}

.sky-toggle {
  position: absolute;
  right: 18px;
  top: calc(env(safe-area-inset-top) + 10px);
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 47, 72, 0.26);
  border-radius: 999px;
  color: #2b3f5b;
  background: rgba(247, 240, 220, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 7px rgba(141, 197, 232, .10), 0 4px 15px rgba(2,22,35,.08);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  pointer-events: auto;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .2s ease;
}
.sky-toggle:hover { transform: scale(1.04); }
.sky-toggle:active { transform: scale(.97); }
body[data-mode="night"] .sky-toggle {
  background: rgba(9, 27, 50, 0.63);
  color: #f0d4b2;
  border-color: rgba(251, 216, 180, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 7px rgba(134, 205, 255, .14), 0 6px 20px rgba(0,0,0,.22);
}
.sky-toggle, .floating-lock, .dialog-close {
  overflow: visible;
  isolation: isolate;
}
.sky-toggle::before, .sky-toggle::after,
.floating-lock::before, .floating-lock::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.8px solid rgba(141, 197, 232, .72);
  pointer-events: none;
}
.sky-toggle::before,
.floating-lock::before {
  inset: 5px;
  opacity: .55;
}
.sky-toggle::after,
.floating-lock::after {
  inset: -5px;
  opacity: .32;
}
body[data-mode="night"] .sky-toggle::before, body[data-mode="night"] .sky-toggle::after,
body[data-mode="night"] .floating-lock::before, body[data-mode="night"] .floating-lock::after {
  border-color: rgba(134, 205, 255, .86);
}
.sky-toggle.is-pulsing::before,
.floating-lock.is-pulsing::before {
  animation: buttonRingPulseInner .95s ease-out forwards;
}
.sky-toggle.is-pulsing::after,
.floating-lock.is-pulsing::after {
  animation: buttonRingPulseOuter 1.05s ease-out .08s forwards;
}
.dialog-close::before, .dialog-close::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.65px solid rgba(141, 197, 232, .82);
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
}
body[data-mode="night"] .dialog-close::before,
body[data-mode="night"] .dialog-close::after {
  border-color: rgba(134, 205, 255, .92);
}
.dialog-close.is-pulsing::before, .dialog-close.is-pulsing::after {
  animation: navButtonPulse .9s ease-out forwards;
}
.dialog-close.is-pulsing::after { animation-delay: .14s; }
.sky-icon { width: 23px; height: 23px; }
.sky-toggle .sun-center,
.sky-toggle .sun-rays { display: none; }
.sky-toggle .moon-path { display: block; }
body[data-mode="night"] .sky-toggle .sun-center,
body[data-mode="night"] .sky-toggle .sun-rays { display: block; }
body[data-mode="night"] .sky-toggle .moon-path { display: none; }

.floating-lock {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 26, 44, 0.36);
  color: #fff2da;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 8px rgba(134,205,255,.08), 0 10px 36px rgba(2, 12, 28, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
  transition: transform .28s ease, background .38s ease, color .38s ease, box-shadow .38s ease;
}
body[data-mode="day"] .floating-lock {
  background: rgba(248, 241, 223, 0.5);
  color: #15324b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 0 8px rgba(141, 197, 232, .11), 0 10px 36px rgba(2, 12, 28, 0.12);
}
.floating-lock:hover { transform: translate(-50%, -50%) scale(1.04); }
.floating-lock:active { transform: translate(-50%, -50%) scale(.97); }
.lock-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.24);
}
body[data-mode="day"] .lock-ring { border-color: rgba(18, 44, 66, .22); }
.lock-graphic {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
}
.portal.panel-open .floating-lock {
  background: rgba(9, 31, 54, 0.74);
  color: #fff3dc;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 8px rgba(134,205,255,.10), 0 12px 42px rgba(2, 12, 28, 0.28);
}
body[data-mode="day"] .portal.panel-open .floating-lock {
  background: rgba(13, 46, 74, 0.86);
  color: #fff3dc;
}

.welcome-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 26px));
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.portal.panel-open .welcome-sheet {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sheet-inner {
  border-radius: 0;
  padding: 18px 18px 16px;
  background: var(--panel-day);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--ink-light);
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}
body[data-mode="day"] .sheet-inner {
  background: rgba(248, 241, 223, 0.18);
  border-color: rgba(13, 47, 72, 0.10);
  color: #17324b;
  box-shadow: 0 22px 60px rgba(0,0,0,.16);
}
body[data-mode="night"] .sheet-inner {
  background: var(--panel-night);
  border-color: rgba(190, 222, 240, .16);
}
.welcome-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(241, 244, 247, .86);
  margin-bottom: 10px;
}
.eyebrow-line {
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.welcome-wordmark {
  position: relative;
  width: min(100%, 325px);
  aspect-ratio: 1067 / 266;
  margin: 0 auto 10px;
}
.welcome-wordmark .logo-day,
.welcome-wordmark .logo-night {
  filter: brightness(0) saturate(100%) invert(84%) sepia(12%) saturate(848%) hue-rotate(169deg) brightness(93%) contrast(94%);
}
body[data-mode="day"] .welcome-wordmark .logo-day {
  filter: none;
}
.welcome-copy {
  margin: 0 auto;
  max-width: 355px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(241, 244, 247, .86);
}
body[data-mode="day"] .welcome-eyebrow,
body[data-mode="day"] .welcome-copy {
  color: rgba(0, 0, 0, 0.82);
}
body[data-mode="day"] .eyebrow-line {
  opacity: .42;
}
.entry-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.icon-action {
  position: relative;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(190, 222, 240, .34);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.12), rgba(255,255,255,.05) 58%, rgba(255,255,255,.03) 100%);
  color: var(--icon-day);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 7px rgba(168, 209, 234, .10), 0 8px 24px rgba(0,0,0,.16);
  transition: transform .18s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease;
  overflow: visible;
  isolation: isolate;
}
.icon-action::before,
.icon-action::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.8px solid rgba(141, 197, 232, .78);
  pointer-events: none;
  z-index: 0;
}
.icon-action::before {
  inset: 5px;
  opacity: .58;
}
.icon-action::after {
  inset: -5px;
  opacity: .34;
}
body[data-mode="day"] .icon-action {
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.18), rgba(255,255,255,.08) 62%, rgba(255,255,255,.04) 100%);
  color: #f8e7cf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 7px rgba(141,197,232,.12), 0 8px 24px rgba(0,0,0,.14);
}
body[data-mode="night"] .icon-action {
  color: var(--icon-night);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 7px rgba(134,205,255,.12), 0 8px 24px rgba(0,0,0,.22);
}
body[data-mode="night"] .icon-action::before,
body[data-mode="night"] .icon-action::after {
  border-color: rgba(134, 205, 255, .88);
}
.icon-action:hover { transform: translateY(-1px) scale(1.02); }
.icon-action:active { transform: translateY(0) scale(.96); }
.nav-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.icon-action svg {
  width: 31px;
  height: 31px;
}
#key-trigger svg { width: 36px; height: 16px; }
.nav-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(168, 209, 234, .9);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.pulse-a { inset: 5px; }
.pulse-b { inset: -5px; }
body[data-mode="day"] .nav-pulse {
  border-color: rgba(141, 197, 232, .82);
}
body[data-mode="night"] .nav-pulse {
  border-color: rgba(134, 205, 255, .92);
}
.icon-action.is-pulsing .pulse-a {
  animation: buttonRingPulseInner .95s ease-out forwards;
}
.icon-action.is-pulsing .pulse-b {
  animation: buttonRingPulseOuter 1.05s ease-out .08s forwards;
}
@keyframes buttonRingPulseInner {
  0% { opacity: .85; transform: scale(1); }
  60% { opacity: .38; }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes buttonRingPulseOuter {
  0% { opacity: .65; transform: scale(1); }
  65% { opacity: .28; }
  100% { opacity: 0; transform: scale(1.62); }
}
@keyframes navButtonPulse {
  0% { opacity: .95; transform: scale(.85); }
  65% { opacity: .45; }
  100% { opacity: 0; transform: scale(1.65); }
}

.entry-dialog {
  border: none;
  padding: 0;
  border-radius: 28px;
  width: min(92vw, 430px);
  background: transparent;
  color: inherit;
}
.entry-dialog::backdrop {
  background: rgba(1, 10, 20, .64);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dialog-body {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 25, 47, .97), rgba(5, 18, 35, .96));
  border: 1px solid rgba(190, 222, 240, .18);
  color: #f4ecdf;
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}
.dialog-close {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(190, 222, 240, .2);
  background: rgba(255,255,255,.04);
  color: #f4ecdf;
  display: grid;
  place-items: center;
}
.dialog-close svg,
.dialog-emblem svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dialog-emblem {
  width: 52px;
  height: 52px;
  margin: 2px auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.05);
  color: #f1d2ae;
  border: 1px solid rgba(190, 222, 240, .16);
}
.dialog-number {
  text-align: center;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(232, 242, 250, .6);
  margin-bottom: 10px;
}
.dialog-body h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 27px;
  line-height: 1.12;
}
.dialog-body p {
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.45;
  color: rgba(243, 239, 232, .88);
}
.dialog-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  background: #e5b78c;
  color: #0d2640;
  margin-top: 4px;
}
.dialog-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(229, 236, 242, .7);
}
.request-form {
  display: grid;
  gap: 8px;
}
.request-form label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 242, 250, .7);
  margin-top: 3px;
}
.request-form label span {
  opacity: .7;
}
.request-form input,
.request-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(190, 222, 240, .18);
  background: rgba(255,255,255,.04);
  color: #f4ecdf;
  padding: 13px 14px;
  resize: vertical;
}
.request-form input::placeholder,
.request-form textarea::placeholder {
  color: rgba(241, 244, 247, .42);
}
.request-status {
  min-height: 22px;
  font-size: 14px;
  line-height: 1.4;
  color: #f3e7d7;
}
.request-status[data-error="true"] { color: #ffcab8; }
.privacy-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(232, 242, 250, .58);
}
.trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}
.turnstile-slot {
  min-height: 0;
}

@media (min-width: 950px) {
  .portal {
    border-left: 1px solid rgba(255,255,255,.28);
    border-right: 1px solid rgba(255,255,255,.28);
  }
}
@media (max-height: 740px) {
  .portal { min-height: 590px; }
  .floating-lock { top: 50%; width: 68px; height: 68px; }
  .sheet-inner { padding: 16px 15px 14px; }
  .welcome-eyebrow { margin-bottom: 8px; }
  .welcome-wordmark { width: min(100%, 286px); margin-bottom: 8px; }
  .entry-actions { margin-top: 13px; }
  .icon-action { width: 64px; height: 64px; }
}
@media (max-width: 360px) {
  .masthead { padding: calc(env(safe-area-inset-top) + 14px) 10px 0; }
  .masthead::before { left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top) + 72px); border-radius: 0; }
  .sky-toggle { width: 42px; height: 42px; }
  .masthead-logo { width: 34px; transform: translateY(6px); }
  .welcome-sheet { left: 8px; right: 8px; }
  .sheet-inner { border-radius: 0; }
  .welcome-eyebrow { font-size: 10px; gap: 8px; }
  .eyebrow-line { width: 24px; }
  .icon-action { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* L017: Minimalistische Navigation. JE Button exakt zwei Ringe, keine Flaechen. */
.sky-toggle,
.floating-lock,
.icon-action {
  background: transparent !important;
  border: 0 !important;
  outline-offset: 11px;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
  isolation: isolate;
}
.sky-toggle::before, .sky-toggle::after,
.floating-lock::before, .floating-lock::after,
.icon-action::before, .icon-action::after {
  content: none !important;
  display: none !important;
}
/* Kein weiterer sichtbarer Rahmen um Schloss oder Einlass-Symbole. */
.lock-ring, .nav-pulse { display: none !important; }
.sky-toggle .sky-icon,
.floating-lock .lock-graphic,
.icon-action .nav-icon {
  position: relative;
  z-index: 2;
}
/* Flache, saubere, echte hellblaue Konturlinien. */
.ripple-ring {
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  border: 2px solid #a4daff;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  will-change: transform, opacity;
  z-index: 1;
}
.ripple-ring.ring-inner {
  width: 51px;
  height: 51px;
  opacity: .86;
}
.ripple-ring.ring-outer {
  width: 72px;
  height: 72px;
  opacity: .59;
}
body[data-mode="day"] .ripple-ring { border-color: var(--hg-accent); }
body[data-mode="night"] .ripple-ring { border-color: #a4daff; }
body[data-mode="day"] .sky-toggle,
body[data-mode="day"] .floating-lock,
body[data-mode="day"] .icon-action { color: var(--hg-accent); }
body[data-mode="night"] .sky-toggle,
body[data-mode="night"] .floating-lock { color: #d1ecff; }
body[data-mode="night"] .icon-action { color: #bddfff; }
/* Die beiden bereits sichtbaren Ringe atmen nach aussen und zurueck. */
.is-pulsing > .ripple-ring.ring-inner {
  animation: hg-inner-ring 1.05s cubic-bezier(.28,.06,.22,1) both;
}
.is-pulsing > .ripple-ring.ring-outer {
  animation: hg-outer-ring 1.13s cubic-bezier(.28,.06,.22,1) .11s both;
}
@keyframes hg-inner-ring {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: .86; }
  49%  { transform: translate(-50%,-50%) scale(1.40); opacity: .20; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: .86; }
}
@keyframes hg-outer-ring {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: .59; }
  50%  { transform: translate(-50%,-50%) scale(1.45); opacity: .12; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: .59; }
}
/* Auf dem iPhone mit "Bewegungen reduzieren" bleiben die explizit angeforderten
   sanften Ring-Interaktionen vorhanden; alle anderen Effekte bleiben reduziert. */
@media (prefers-reduced-motion: reduce) {
  .is-pulsing > .ripple-ring.ring-inner {
    animation-duration: 1.05s !important;
    animation-delay: 0ms !important;
  }
  .is-pulsing > .ripple-ring.ring-outer {
    animation-duration: 1.13s !important;
    animation-delay: .11s !important;
  }
}

/* L019: Tagesmodus an HG-Farbwelt angeglichen; Umschalter ohne Pulseringe */
.sky-toggle > .ripple-ring {
  display: none !important;
}
body[data-mode="day"] .masthead-logo .logo-day {
  filter: none;
}
@media (max-width: 360px) {
  .masthead { padding: calc(env(safe-area-inset-top) + 8px) 10px 0; }
  .masthead::before { height: calc(env(safe-area-inset-top) + 58px); }
  .sky-toggle { top: calc(env(safe-area-inset-top) + 8px); }
  .masthead-logo { transform: translateY(3px); }
}
