@font-face {
  font-family: "Elbe Serif";
  src: url("/static/garamond.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #eaf0e8;
  --muted: #b4c0b8;
  --past-text: #a5afaf;
  --past-muted: #879393;
  --past-background: #172224;
  --canvas: #142123;
  --deep: #0e1a1d;
  --line: #d0e5d332;
  --accent: #d5edac;
  --accent-ink: #203018;
  --serif: "Elbe Serif", Georgia, serif;
  font-family: system-ui, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 78px);
  min-height: 70px;
  gap: 24px;
  background: #101b1d;
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 31px; letter-spacing: -.04em; white-space: nowrap; }
.brand span { color: var(--accent); margin-left: 2px; }
.primary-nav, .header-side { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 36px); }
.primary-nav > a, .apps-link { font-size: .87rem; padding: 11px 3px; white-space: nowrap; color: var(--muted); }
.primary-nav > a[aria-current] { color: var(--ink); box-shadow: inset 0 -1px var(--accent); }
.primary-nav > a:hover, .apps-link:hover, .text-action:hover { color: var(--accent); }
.apps-link span { color: var(--accent); margin-left: 4px; }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}

.hero { isolation: isolate; position: relative; background: #223c3c; }
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/static/elbe.webp") center 58% / cover no-repeat;
  filter: saturate(.93);
  transition: filter 2s;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b1519df 0%, #17262462 48%, transparent 75%),
    linear-gradient(0deg, #142123 0%, #0b161966 16%, transparent 58%);
}
[data-light="morgens"] .hero-scene { filter: saturate(1.1) sepia(.13); }
[data-light="morgens"].login-page { --login-start: #3a281faa; --login-end: #1b1d22b8; }
[data-light="abends"].login-page { --login-start: #2c2117bc; --login-end: #142027b8; }
[data-light="nachts"].login-page { --login-start: #091624c7; --login-end: #111b2bb8; }
[data-light="abends"] .hero-scene { filter: saturate(.86) brightness(.82) sepia(.09); }
[data-light="nachts"] .hero-scene { filter: saturate(.76) brightness(.69) hue-rotate(11deg); }
[data-light="abends"] .hero::after { background-color: #4a38252d; }
[data-light="nachts"] .hero::after { background-color: #121f3c4d; }
.hero-content {
  max-width: 1700px;
  margin: 0 auto;
  min-height: clamp(490px, 64vh, 790px);
  padding: clamp(58px, 9vw, 126px) clamp(24px, 7vw, 112px) 70px;
  display: grid;
  grid-template-columns: 1.3fr minmax(255px, .7fr);
  align-items: end;
  gap: min(5vw, 80px);
}
.hero-title { align-self: center; }
.place { display: flex; align-items: center; gap: 10px; color: #d5e0d5; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.place-dot { display: inline-block; width: 7px; height: 7px; margin-right: 2px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px #d5edac9a; }
.place-divider { opacity: .58; }
.hero h1, .login-title h1 {
  font-family: var(--serif);
  margin-top: 21px;
  font-size: clamp(75px, 9.2vw, 156px);
  letter-spacing: -.061em;
  line-height: .8;
  text-shadow: 0 8px 40px #10141263;
  color: #f8f6e9;
}
.hero h1 span { color: var(--accent); }
.hero-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.primary-button, .secondary-button, .ghost-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
  padding: 10px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 620;
}
.primary-button { background: var(--accent); color: var(--accent-ink); }
.primary-button:not(:disabled):hover { background: #e5f6ca; }
.ghost-button, .secondary-button { background: #142123bc; border-color: #e0ebdd54; color: var(--ink); }
.ghost-button:hover, .secondary-button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.memory {
  width: min(100%, 380px);
  justify-self: end;
  border-radius: 14px;
  background: #111e21dd;
  border: 1px solid #d1e0d170;
  padding: 7px;
  box-shadow: 0 15px 55px #0b101b5e;
  backdrop-filter: blur(12px);
}
.memory-image {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1.75;
  background: #162626;
}
.memory-placeholder {
  position: absolute;
  inset: 0;
  background: url("/static/elbe.webp") center / cover;
  opacity: .44;
}
.memory-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.memory-photo.active { opacity: 1; z-index: 1; }
.memory-photo.arriving { z-index: 3; animation: photo-in 7s ease-in-out both; }
.memory-photo.leaving { z-index: 2; animation: photo-out 7s ease-in-out both; }
@keyframes photo-in {
  0% { opacity: 0; filter: grayscale(1); }
  32% { opacity: .3; filter: grayscale(.92); }
  100% { opacity: 1; filter: grayscale(0); }
}
@keyframes photo-out {
  0% { opacity: 1; filter: grayscale(0); }
  52% { opacity: .85; filter: grayscale(.68); }
  100% { opacity: 0; filter: grayscale(1); }
}
.memory figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 6px 4px; font-size: .76rem; }
.memory figcaption span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memory figcaption a { color: var(--accent); white-space: nowrap; }

.today { max-width: 1700px; margin: 0 auto; padding: 0 clamp(24px, 7vw, 112px) 40px; }
.section-label { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 12px; gap: 16px; }
.section-label h2 { font: 500 2rem/.95 var(--serif); }
.section-label span { color: var(--muted); font-size: .75rem; }
.today-lines { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.today-item {
  min-width: 0;
  padding: 19px 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}
.today-item + .today-item { border-left: 1px solid var(--line); }
.today-item:hover { background: #b7e0bc0d; }
.fact-icon { color: var(--accent); font-size: 21px; line-height: 1; }
.fact-type, .today-item > span:last-child { color: var(--muted); font-size: .76rem; }
.today-item strong, .today-item > span:last-child { grid-column: 2; }
.today-item strong { font-size: clamp(.85rem, 1.3vw, 1.02rem); font-weight: 620; line-height: 1.2; overflow-wrap: anywhere; }

.today-agenda { margin-top: clamp(23px, 4vw, 36px); }
.today-agenda .section-label h2 { font-size: clamp(1.55rem, 3vw, 1.8rem); }
.today-agenda .section-label a { flex: none; white-space: nowrap; }
.today-agenda .section-label a span { color: inherit; }
.today-agenda-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  column-gap: 20px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line);
}
.today-agenda-list li { display: flex; align-items: baseline; gap: 11px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.today-appointment-time { color: var(--accent); font-size: .81rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-appointment-name { min-width: 0; font-size: .9rem; overflow-wrap: anywhere; }
.today-agenda-note { padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }

.site-footer {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(24px, 7vw, 112px) 105px;
  color: var(--muted);
  font-size: .77rem;
}
.signature { display: inline-flex; align-items: center; white-space: nowrap; gap: 4px; font-size: 10px; }
.signature img { width: 19px; height: 19px; }
.player {
  position: fixed;
  inset: auto 50% 13px auto;
  translate: 50% 0;
  z-index: 10;
  width: min(calc(100% - 24px), 570px);
  display: grid;
  grid-template-columns: 42px auto minmax(67px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #0e1a1df0;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px #0b1318b0;
}
.player-play { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.player-title { display: grid; min-width: 0; gap: 2px; }
.player-title strong { font-size: .88rem; }
.player-title span { font-size: .73rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wave { height: 22px; display: flex; gap: 3px; align-items: center; color: #bfd6a48f; }
.wave i { width: 2px; height: 7px; border-radius: 2px; background: currentColor; }
.wave i:nth-child(2n) { height: 12px; }
.wave i:nth-child(3n) { height: 18px; }
.player.playing .wave i { animation: wave .7s ease-in-out alternate infinite; color: var(--accent); }
.player.playing .wave i:nth-child(2n) { animation-delay: -.35s; }
.player.playing .wave i:nth-child(3n) { animation-delay: -.12s; }
@keyframes wave { from { scale: 1 .48; } to { scale: 1 1.18; } }
.station-switch { border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin: 0; min-width: 0; display: flex; gap: 2px; }
.station-switch label { cursor: pointer; position: relative; }
.station-switch input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 6px; cursor: pointer; }
.station-switch span { padding: 7px 9px; display: block; font-size: .75rem; border-radius: 5px; font-weight: 630; }
.station-switch input:checked + span { background: #d5edac22; color: var(--accent); }
.station-switch input:focus-visible { outline-offset: 0; }

.detail-view { margin: 0 auto; max-width: 1300px; min-height: 66vh; padding: 45px clamp(22px, 6vw, 65px) 25px; }
.detail-heading { margin-bottom: 24px; animation: rise .55s ease-out both; }
.detail-heading h1 { font: 500 clamp(54px, 8vw, 98px)/.96 var(--serif); letter-spacing: -.055em; margin-top: 6px; }
.detail-heading > .text-action { font-size: .86rem; }
@keyframes rise { from { translate: 0 12px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.text-action { color: var(--accent); display: inline-block; padding: 6px 0; }
.message { line-height: 1.5; color: var(--muted); margin-block: 15px; }
.detail-view h2, dialog h2 { font: 500 2.1rem/1.05 var(--serif); }
.journey-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) .8fr; gap: clamp(20px, 4vw, 55px); }
.journey-form { position: relative; border-left: 1px solid var(--accent); display: grid; gap: 14px; padding-left: 21px; max-width: 680px; }
.journey-form::before, .journey-form::after { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: absolute; left: -5px; top: 29px; }
.journey-form::after { top: 99px; }
.journey-form > button { justify-self: start; }
.field { min-width: 0; display: grid; gap: 7px; }
.field label { color: var(--muted); font-size: .78rem; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 7px; min-height: 47px; padding: 8px 10px; background: #0f1a1d; }
.journey-time { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 10px; }
.journey-aside { display: flex; flex-direction: column; justify-content: end; gap: 12px; }
.journey-aside > span { color: var(--muted); font-size: .83rem; }
.record-list, .index-list { border-top: 1px solid var(--line); }
.record-list > *, .index-list > * { border-bottom: 1px solid var(--line); padding: 13px 8px; }
.record-list > .data-row { display: flex; justify-content: space-between; align-items: start; gap: 12px; line-height: 1.5; }
.record-list .data-row > :last-child { text-align: right; color: var(--muted); }
.weather-day + .weather-day { margin-top: clamp(24px, 4vw, 40px); }
.weather-day-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.weather-day-heading time, .weather-range, .weather-stale { color: var(--muted); font-size: .82rem; }
.weather-stale { margin-bottom: 16px; }
.weather-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.weather-period {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1a2b2c;
}
.weather-period:only-child { grid-template: 1fr / 1.65fr 1fr; }
.weather-art {
  position: relative;
  aspect-ratio: 2.15;
  overflow: hidden;
  background: linear-gradient(175deg, #3f575d, #263b3b);
}
.weather-period:only-child .weather-art { aspect-ratio: auto; min-height: 198px; }
.weather-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.weather-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #102b2f38, var(--sky-tone, transparent)); }
[data-part="nacht"] { --sky-tone: #1b305b50; }
[data-part="nacht"] .weather-art img { filter: brightness(.55) saturate(.66) hue-rotate(11deg); }
[data-part="vormittag"] { --sky-tone: #ffefd224; }
[data-part="abend"] { --sky-tone: #bb714b4a; }
[data-part="abend"] .weather-art img { filter: brightness(.83) saturate(.86) sepia(.14); }
.weather-content { align-self: center; min-width: 0; padding: clamp(11px, 2vw, 23px); }
.weather-content h3 { font: 500 clamp(24px, 2.8vw, 36px)/1.03 var(--serif); margin: 0; }
.weather-range { margin-top: 5px; font-variant-numeric: tabular-nums; }
.weather-values { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 11px 7px; margin: 13px 0 0; }
.weather-values dt { color: var(--muted); font-size: .74rem; }
.weather-values dd { margin: 2px 0 0; }
.weather-temperature dd, .weather-rain dd { font-size: 1.19rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.weather-rain { text-align: right; }
.weather-clouds { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }
.weather-clouds dd { font-size: .88rem; }
.ferry-notice { white-space: pre-line; line-height: 1.55; }
.ferry-art { margin: clamp(18px, 3vw, 31px) 0 0; }
.ferry-art img { width: 100%; aspect-ratio: 2.22; object-fit: cover; object-position: center 55%; border-radius: 10px; background: #263b3b; }
.ferry-art figcaption { margin-top: 10px; font: 500 1.55rem/1.15 var(--serif); }
.radar-stage { width: min(100%, 760px); margin-bottom: 24px; }
#radar-map { aspect-ratio: 1.12; min-height: 265px; border: 1px solid var(--line); border-radius: 10px; background: #223434; }
.radar-timeline { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 10px; }
.radar-slider { display: grid; gap: 5px; min-width: 0; }
.radar-slider input { width: 100%; accent-color: var(--accent); }
.radar-slider time { color: var(--accent); font-variant-numeric: tabular-nums; }
.radar-slider time[data-kind="forecast"] { color: #adc9f8; }
.radar-slider time[data-kind="missing"] { color: var(--muted); }
.canvas-map { position: relative; overflow: hidden; }
.map-canvas { position: absolute; width: 100%; height: 100%; inset: 0; }
.radar-legend, .radar-legend > span { display: flex; align-items: center; gap: 6px; }
.radar-legend { flex-wrap: wrap; gap: 8px 13px; margin-top: 11px; color: var(--muted); font-size: .78rem; }
.radar-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 3px; }
.radar-legend span:nth-child(2) i { background: #7dbfdf; }
.radar-legend span:nth-child(3) i { background: #469ed5; }
.radar-legend span:nth-child(4) i { background: #5573d4; }
.radar-legend span:nth-child(5) i { background: #995fc9; }
.radar-legend span:nth-child(6) i { background: #c65b9c; }
.radar-legend .radar-site-legend i { border: 2px solid #176f59; box-shadow: 0 0 0 1px #f4f5e4; border-radius: 1px; }
.journey-result { line-height: 1.6; }
.journey-result summary { cursor: pointer; min-height: 29px; }
.journey-result > summary > strong { margin-right: 12px; }
.journey-result > summary > span { color: var(--muted); font-size: .86rem; }
.journey-legs { display: grid; gap: 10px; margin: 10px 0 3px; }
.journey-leg { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #192b2c; }
.journey-endpoint { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.journey-endpoint-time { display: flex; gap: 6px; align-items: baseline; color: var(--accent); font-variant-numeric: tabular-nums; }
.journey-endpoint-time > span, .journey-endpoint small, .journey-stops small { color: var(--muted); font-size: .8rem; }
.journey-line { margin: 6px 0 6px 15px; padding-left: 12px; border-left: 2px solid #d5edac64; }
.journey-line summary { color: var(--accent); }
.journey-with-map { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
.journey-stops-panel > button { border: 0; background: transparent; text-align: left; padding: 5px 0 8px; }
.journey-stops { margin: 4px 0; padding: 0; list-style: none; max-height: clamp(150px, 38vw, 298px); overflow-y: auto; }
.journey-stops li { display: grid; grid-template-columns: 55px 1fr; column-gap: 6px; margin: 3px 0; }
.journey-stops time { color: var(--muted); }
.journey-stop-outside, .journey-stops .journey-stop-outside time { color: #889191; }
.journey-map-panel > summary { color: var(--muted); font-size: .9rem; }
.journey-map-panel > summary:hover, .journey-map-panel[open] > summary { color: var(--accent); }
.journey-map { width: 100%; height: clamp(205px, 45vw, 370px); margin-top: 8px; border-radius: 7px; background: #223434; }
.gallery-grid { display: grid; gap: 13px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery-grid a, .gallery-grid button { width: 100%; padding: 0; text-align: left; color: var(--ink); background: transparent; border: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 1.36; object-fit: cover; border-radius: 7px; background: #1d3335; }
.gallery-grid span { display: block; margin-block: 7px 3px; overflow-wrap: anywhere; }
.gallery-grid small, .index-list span { color: var(--muted); }
.gallery-grid .gallery-video-card {
  display: grid; position: relative; min-width: 0; place-items: center; width: 100%; aspect-ratio: 1.36; margin: 0;
  background: radial-gradient(ellipse at 40% 0, #365d58, #172b30 78%); border: 1px solid var(--line); border-radius: 7px;
}
.gallery-grid .gallery-video-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); margin: 0; }
.gallery-video-card small { position: absolute; bottom: 7px; right: 8px; padding: 3px 6px; border-radius: 4px; background: #0d191de0; }
.more-line { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.radio-feature { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0 25px; }
.home-control { display: grid; grid-template-columns: 1.18fr 1fr; gap: 35px; }
.home-control h2 { margin-bottom: 12px; }
.radio-content { max-width: 980px; }
#radio-tabs, #view-familie > .family-tabs {
  position: sticky; top: 0; z-index: 3; background: #142123fa; backdrop-filter: blur(10px);
}
.radio-days {
  position: sticky; top: 42px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 10px; padding: 5px 0 8px; background: #142123fa;
}
.radio-days a[aria-current] { border-color: var(--accent); background: #d5edac20; color: var(--accent); }
.radio-list { display: grid; gap: 8px; }
.programme-row, .news-row {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 78px; padding: 6px 13px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: #192a2b;
  scroll-margin-block: 90px;
}
.programme-entry { position: relative; }
.programme-row { width: 100%; text-align: left; }
.programme-row:hover, .programme-row[aria-expanded="true"] { border-color: #bed4b65c; }
.programme-row .programme-hours { display: flex; align-items: center; gap: 10px; }
.programme-arrow { color: var(--muted); font-size: 1rem; line-height: 1; }
.programme-row[aria-expanded="true"] .programme-arrow { rotate: 180deg; }
.programme-current { border-color: #d5edac8a; background: linear-gradient(100deg, #30483c, #1d3030); }
.programme-past { color: var(--past-text); background: var(--past-background); border-color: #d5ded51f; }
.programme-past .radio-art { filter: grayscale(.9) brightness(.84); opacity: .72; }
.radio-art { width: 70px; height: 66px; border-radius: 6px; object-fit: cover; background: #263b3b; }
.programme-copy h2, .programme-title { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1; overflow-wrap: anywhere; }
.programme-title { display: block; font-weight: 500; }
.programme-copy p, .programme-copy small, .programme-hosts, .programme-hours { color: var(--muted); font-size: .83rem; }
.programme-copy p, .programme-hosts { margin-top: 5px; }
.programme-hosts { display: block; }
.programme-hours { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.programme-past .programme-hosts, .programme-past .programme-hours { color: var(--past-muted); }
.programme-live { color: var(--accent); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.programme-hint { position: absolute; bottom: 9px; right: 9px; z-index: 1; pointer-events: none; }
.programme-hint:not(:empty) {
  max-width: calc(100% - 18px); padding: 6px 10px; border: 1px solid #d5edac64; border-radius: 7px;
  background: #253b31; color: var(--accent); font-size: .83rem;
}
.programme-playlist { margin: 4px 0 3px; padding: 0 10px; border-left: 1px solid var(--line); }
.programme-playlist > p { padding: 8px 2px; color: var(--muted); font-size: .86rem; }
.programme-songs { max-height: min(55vh, 25rem); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.programme-songs:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.programme-songs li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 9px; align-items: baseline; padding: 7px 2px; }
.programme-songs li + li { border-top: 1px solid var(--line); }
.programme-songs time { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.programme-song-planned time { color: var(--accent); }
.programme-song-name { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.programme-song-name strong { font-weight: 600; }
.programme-song-name small { color: var(--muted); font-size: .8rem; }
.news-row { grid-template-columns: 95px minmax(0, 1fr) auto; }
.news-row .radio-art { width: 95px; height: 78px; }
.news-controls { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.news-switch { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .83rem; }
.news-switch input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.news-controls button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.home-control section { border-top: 1px solid var(--line); padding: 16px 0; }
.home-control section > p { padding-bottom: 12px; }
.home-control video { width: 100%; aspect-ratio: 16/9; display: block; background: #060d12; border-radius: 8px; margin-bottom: 12px; }
.camera-controls { display: grid; justify-items: start; gap: 12px; margin-top: 12px; }
.camera-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(112px, 100%), 1fr)); width: 100%; gap: 8px; }
.camera-presets:empty, #camera-control-status:empty { display: none; }
.camera-preset {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; min-height: 48px;
  padding: 4px 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #1c2d2d;
  font-size: .83rem; overflow-wrap: anywhere;
}
.camera-preset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.camera-preset:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.camera-light {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 13px 6px 9px;
  color: var(--muted); background: #142123; border: 1px solid var(--line); border-radius: 24px;
  font: 700 .78rem/1 system-ui, sans-serif; letter-spacing: .06em;
}
.camera-light svg { width: 25px; height: 25px; }
.camera-light-rays { opacity: 0; }
.camera-light[aria-pressed="true"] { color: #f7d88d; background: #403520; border-color: #aa854b; }
.camera-light[aria-pressed="true"] .camera-light-rays { opacity: 1; }
.camera-light:not(:disabled):hover { border-color: currentColor; }
.index-list > a, .index-list > div { display: grid; grid-template-columns: minmax(140px, .7fr) 1fr auto; align-items: center; gap: 12px; min-height: 57px; }
.index-list > a:hover { background: #bad9bb11; color: var(--accent); }
.index-list > a > :last-child { color: var(--accent); }
.app-identity { display: inline-flex; gap: 10px; align-items: center; }
.app-identity img { width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line); }
.frame-view { max-width: 1700px; }
.frame-view iframe { border: 1px solid var(--line); border-radius: 9px; width: 100%; height: max(630px, 72vh); background: #eaece8; }
.family-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.family-tabs a { padding: 11px 2px; color: var(--muted); }
.family-tabs a[aria-current] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.family-content h2 { margin-bottom: 12px; }
.family-content > p { color: var(--muted); }
.family-month { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 11px; margin: 9px 0 18px; }
.family-month { position: sticky; top: 43px; z-index: 2; background: #142123fa; padding: 5px 0; }
.family-month-control { display: flex; align-items: center; gap: 11px; }
.family-month a { display: inline-grid; place-items: center; font-size: 23px; }
.family-month strong { font-size: .92rem; }
.family-event { display: grid; grid-template-columns: minmax(85px, .26fr) 1fr; gap: 18px; }
.family-event-main { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 8px; }
.family-event-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.family-event-actions .secondary-button { font-size: .77rem; padding: 5px 9px; min-height: 30px; }
.family-event-past { color: #929898; background: var(--past-background); }
.family-event-past .secondary-button { color: inherit; border-color: #d5d8da26; }
.family-event-past .secondary-button:hover { color: var(--accent); border-color: var(--accent); }
.family-event-today { background: #d5edac13; border-left: 2px solid var(--accent); }
.family-event { scroll-margin-block: 85px; }
.family-event time, .family-event span { color: var(--muted); }
.family-event-past time, .family-event-past span { color: #848b8b; }
.family-event-today time { color: var(--accent); }
.family-event span { display: block; font-size: .84rem; margin: 4px 0; }
.family-event p { font-size: .9rem; line-height: 1.5; margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.family-breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; padding: 2px 5px 14px; }
.family-breadcrumb a { color: var(--accent); overflow-wrap: anywhere; }
.family-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.family-file:hover { background: #bad9bb11; }
.family-file strong, .family-contact strong { overflow-wrap: anywhere; }
.family-file span { color: var(--muted); white-space: nowrap; }
.family-search { padding: 10px 12px; width: min(100%, 28rem); min-height: 45px; border: 1px solid var(--line); border-radius: 7px; background: #0f1a1d; }
.family-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.family-filters select { width: auto; }
.family-contact summary { cursor: pointer; }
.family-contact summary span { margin-left: 10px; color: var(--muted); font-size: .83rem; }
.family-contact dl { margin: 9px 0 3px; }
.family-contact dt { color: var(--muted); font-size: .8rem; margin-top: 10px; }
.family-contact dd { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog { max-width: min(600px, 100% - 28px); color: var(--ink); background: #172829; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
dialog::backdrop { background: #060e13bc; }
dialog p { margin-top: 14px; line-height: 1.4; }
.dialog-actions { display: flex; gap: 10px; margin-top: 17px; flex-wrap: wrap; }
#calendar-editor { width: min(590px, 100% - 24px); }
#calendar-form { display: grid; gap: 9px; margin-top: 12px; }
#calendar-form label { display: grid; gap: 4px; color: var(--muted); font-size: .84rem; }
#calendar-form input:not([type="checkbox"]), #calendar-form textarea {
  width: 100%; min-width: 0; padding: 7px 9px; color: var(--ink); font: inherit;
  background: var(--deep); border: 1px solid var(--line); border-radius: 5px; min-height: 39px;
}
#calendar-form .calendar-all-day { display: flex; align-items: center; gap: 6px; }
.calendar-all-day input { accent-color: var(--accent); }
.calendar-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
#calendar-attachment-list { margin-top: 12px; }
#calendar-attachment-list > a { display: block; overflow-wrap: anywhere; }
#photo-dialog { width: min(1120px, 100% - 28px); max-width: 100%; padding: 12px; }
#photo-dialog form { position: absolute; right: 10px; top: 10px; }
.gallery-viewer { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
.gallery-viewer-media { display: grid; place-items: center; min-height: 110px; }
#photo-dialog img, #photo-dialog video { max-width: 100%; max-height: 76vh; height: auto; width: auto; object-fit: contain; }
.gallery-viewer-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: .83rem; }
#photo-dialog .dialog-close { position: relative; z-index: 1; }
.dialog-close { background: #101d23e0; border: 1px solid var(--line); color: var(--ink); border-radius: 50%; width: 44px; height: 44px; font-size: 25px; }

.login-page {
  min-height: 100svh;
  background: linear-gradient(90deg, var(--login-start, #09181bb8), var(--login-end, #101a1dad) 84%), url("/static/elbe.webp") center / cover no-repeat;
  display: grid;
  align-items: center;
  padding: 25px;
}
.login-layout { display: grid; align-items: center; grid-template-columns: 1fr minmax(248px, 325px); gap: clamp(24px, 8vw, 110px); width: min(100%, 1050px); margin: 0 auto; }
.login-title { justify-self: start; }
.login-title h1 { font-size: clamp(74px, 9.4vw, 150px); }
.login-form { border-radius: 17px; padding: 20px; background: #142326db; border: 1px solid #dcead34f; backdrop-filter: blur(12px); box-shadow: 0 12px 58px #11192478; }
.login-form label { display: block; font-size: 1rem; font-weight: 620; }
.code-entry { border: 1px solid var(--line); border-radius: 8px; position: relative; margin: 13px 0; height: 49px; }
.code-entry:focus-within { box-shadow: 0 0 0 1px var(--accent); }
.code-entry input { border: 0; position: absolute; inset: 0; width: 100%; border-radius: 8px; background: transparent; color: transparent; caret-color: transparent; }
.code-entry input:focus-visible { outline: 0; }
.code-progress { display: flex; gap: 15px; justify-content: center; align-items: center; height: 100%; pointer-events: none; }
.code-progress i { width: 10px; height: 10px; border: 1px solid #cfe6ce77; border-radius: 50%; }
.code-progress i.filled { background: var(--accent); border-color: var(--accent); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keypad button { min-height: 49px; border-radius: 8px; border: 1px solid var(--line); background: #ecf5e00d; font-size: 1.15rem; }
.keypad button:not(:disabled):hover { background: #e4f1d327; }
.keypad .code-submit { background: var(--accent); color: var(--accent-ink); }
.keypad .code-submit:not(:disabled):hover { background: #e5f6ca; }
.form-alert { min-height: 1em; margin-top: 12px; font-size: .78rem; color: #ffe0b9; }
.login-signature { position: absolute; right: 24px; bottom: 20px; }

@media (max-width: 780px) {
  .site-header { padding: 6px 19px 0; min-height: 68px; row-gap: 0; display: grid; grid-template-columns: 1fr auto; }
  .header-side { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; justify-content: space-between; gap: 7px; }
  .primary-nav > a { padding-block: 10px; }
  .hero-content { grid-template-columns: 1fr minmax(210px, .65fr); padding-inline: 22px; min-height: 450px; column-gap: 16px; }
  .hero h1 { font-size: clamp(63px, 11vw, 96px); }
  .today { padding-inline: 22px; }
  .today-lines { grid-template-columns: repeat(2, 1fr); }
  .today-item:nth-child(3) { border-left: 0; }
  .today-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .journey-layout, .home-control { grid-template-columns: 1fr; }
  .journey-aside { gap: 5px; }
  .weather-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-period:only-child { grid-column: 1 / -1; }
}

@media (max-width: 525px) {
  .place { letter-spacing: .1em; font-size: .68rem; }
  .site-header { padding-inline: 12px; }
  .primary-nav > a { font-size: .74rem; }
  .hero-content { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 24px; align-items: start; row-gap: 24px; }
  .hero h1 { font-size: clamp(67px, 15.8vw, 91px); }
  .hero-links { margin-top: 25px; }
  .hero-scene { background-position: 54% 47%; }
  .hero::after { background: linear-gradient(90deg, #0b1519d1, #17262419), linear-gradient(0deg, #142123 0%, #18262a19 81%); }
  .memory { justify-self: stretch; margin-left: auto; width: min(100%, 350px); }
  .memory-image { aspect-ratio: 2.05; }
  .today-item { padding: 12px 8px; gap: 6px; }
  .today-item strong { font-size: .87rem; }
  .player { gap: 9px; grid-template-columns: 42px minmax(0, 1fr) auto; width: calc(100% - 14px); bottom: 7px; padding: 7px; }
  .player .wave { display: none; }
  .station-switch span { padding: 9px 7px; }
  .detail-view { padding-top: 27px; }
  .weather-period:only-child { grid-template: auto 1fr / 1fr; }
  .weather-period:only-child .weather-art { min-height: 0; aspect-ratio: 2.5; }
  .ferry-art img { aspect-ratio: 1.65; }
  .radar-timeline { grid-template-columns: 1fr; }
  .radar-timeline button { justify-self: start; }
  .journey-with-map { grid-template-columns: 1fr; }
  .journey-with-map .journey-map-panel { grid-row: 1; }
  .index-list > a, .index-list > div { grid-template-columns: 1fr auto; }
  .index-list > a > span:nth-child(1), .index-list > div > span:nth-child(1) { grid-column: 1; grid-row: 2; }
  .index-list > a > :last-child, .index-list > div > :last-child { grid-column: 2; grid-row: 1 / span 2; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programme-row, .news-row { grid-template-columns: 58px minmax(0, 1fr); gap: 6px 10px; }
  .programme-hours, .news-controls { grid-column: 2; text-align: left; }
  .programme-row .programme-hours { justify-content: space-between; }
  .programme-row .radio-art, .news-row .radio-art { width: 58px; height: 57px; grid-row: 1 / span 2; }
  .login-page { padding: 25px 20px 38px; }
  .login-layout { max-width: 310px; grid-template-columns: 1fr; gap: 26px; }
  .login-title h1 { font-size: clamp(65px, 15.5vw, 100px); margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
