:root {
  color-scheme: dark;
  --navy: #0a1a2f;
  --navy-2: #0f2a44;
  --panel: #14233c;
  --panel-2: #1f3a56;
  --line: #4a90e2;
  --blue: #1e90ff;
  --blue-light: #63a4ff;
  --gold: #ffc107;
  --green: #28a745;
  --red: #e74c3c;
  --text: #fff;
  --muted: #c1cad5;
  --radius: 6px;
  --shadow: 0 4px 12px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  padding-top: 60px;
  background: var(--navy);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--blue-light); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }
.muted, .footer-note { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Kopfzeile wie auf dem bisherigen Popradio-Auftritt */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  background: #001f3f;
  box-shadow: 0 4px 10px rgb(0 0 0 / 35%);
}
.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #001f3f, #003c8f, #001f3f);
  content: "";
  pointer-events: none;
}
.nav-inner { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: auto; max-width: 210px; max-height: 60px; object-fit: contain; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: .4rem;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 23px; height: 2px; border-radius: 2px; background: #fff; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.main-nav a {
  display: block;
  padding: 10px 9px;
  border-radius: 5px;
  color: #fff;
  font-size: .95rem;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a:hover { background: rgb(255 255 255 / 9%); color: var(--blue-light); text-decoration: none; }
.main-nav a.active { background: transparent; color: #fff; }
.nav-badge { display: inline-block; margin-left: .2rem; padding: .08rem .35rem; border-radius: 999px; background: #28a745; color: #fff; font-size: .58rem; vertical-align: top; }

/* Gemeinsames Bild und Titelband auf allen Unterseiten */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 0 1.5rem;
  background: url("../../img/AdobeStock_223605406-scaled.jpeg") center / cover no-repeat;
  text-align: center;
}
.hero { min-height: 300px; }
.page-hero { min-height: 180px; }
.hero::before, .page-hero::before { position: absolute; z-index: 0; inset: 0; background: rgb(0 0 0 / 60%); content: ""; }
.hero::after, .page-hero::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--navy));
  content: "";
}
.hero-content, .page-heading { position: relative; z-index: 1; width: 100%; padding: 1.5rem 0; }
.hero-content { transform: translateY(-10px); }
.hero h1, .page-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 750;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgb(0 0 0 / 70%);
}
.page-heading p { margin: .45rem auto 0; color: #e0e7ef; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 1.55rem; }
.hero-action { display: flex; flex-direction: column; align-items: center; }
.button, .radio-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .58rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #0879d1;
  box-shadow: 0 3px 9px rgb(0 0 0 / 22%);
  color: #fff;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.button:hover, .radio-button:hover { background: #0667b2; color: #fff; text-decoration: none; transform: translateY(-1px); }
.radio-button { min-height: 45px; padding: .65rem 1.25rem; border-radius: 25px; background: var(--green); font-size: 1.08rem; }
.radio-button:hover { background: #218838; }
.radio-button.wishbox { background: #007bff; }
.radio-button.wishbox:hover { background: #0056b3; }
.button.secondary { border: 1px solid rgb(255 255 255 / 30%); background: transparent; box-shadow: none; }
.button.secondary:hover { background: rgb(255 255 255 / 10%); }
.popup-link { margin-top: .15rem; color: rgb(255 255 255 / 85%); font-size: .84rem; }
.popup-link:hover { color: #fff; }
.popup-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; vertical-align: -2px; }

/* Inhalt, Status, Slider und Sendeplan */
.section { padding: 1.25rem 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.section-heading h2, .section-heading h3 { margin: 0; font-size: 1.45rem; font-weight: 700; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-pad, .page-content { padding: 20px; }
.box { display: flex; min-height: 320px; flex-direction: column; justify-content: space-between; padding: 15px; }
.box.next-schedule { min-height: 0; padding: 15px; }
.box h2, .box h3 { margin: 0 0 1rem; color: #fff; text-align: center; }
.home-feature-grid { margin-top: .25rem; }
.radio-status { text-align: center; }
.radio-card { display: flex; flex-direction: column; align-items: center; padding: 0; text-align: center; }
.radio-card .mod-image { width: 100px; height: 100px; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 4px 10px rgb(0 0 0 / 20%); object-fit: cover; }
.radio-card h2 { margin: .6rem 0 .2rem; font-size: 1.4rem; }
.radio-card .show-time { margin: .25rem 0; color: var(--gold); font-weight: 750; }
.track-title { margin: .65rem 0 0; color: var(--gold); font-weight: 750; }
.next-schedule-heading { justify-content: center; }
.slider { position: relative; width: min(960px, 100%); margin: 2.5rem auto; overflow: visible; }
.slider-section { padding: 0; }
.slide { display: none; width: 100%; margin-inline: auto; overflow: hidden; border-radius: 9px; background: #061321; box-shadow: var(--shadow); }
.slide.active { display: block; animation: fade-in .35s ease; }
.slide a, .slide img { display: block; width: 100%; }
.slide img { height: auto; object-fit: cover; }
.slider-control { position: absolute; top: 50%; display: grid; width: 42px; height: 48px; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: rgb(255 255 255 / 75%); font-size: 2.25rem; cursor: pointer; }
.slider-control:hover { background: transparent; color: #fff; }
.slider-control.prev { left: -85px; }
.slider-control.next { right: -85px; }

.stream-buttons { display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.stream-option { padding: 14px; border-left: 5px solid #e74c3c; border-radius: 6px; background: var(--panel-2); }
.stream-option.stream-aac { border-left-color: #3498db; }
.stream-option h3 { margin: 0 0 .8rem; font-size: 1.08rem; text-align: center; }
.stream-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.btn-player { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid #fff; border-radius: 7px; color: #fff; font-size: .9rem; }
.btn-player:hover { border-color: var(--line); background: rgb(255 255 255 / 10%); color: #fff; text-decoration: none; }
.reception-more { margin-top: 1rem; text-align: center; }
.today-schedule { display: grid; gap: 12px; }
.today-schedule-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); box-shadow: var(--shadow); }
.today-schedule-copy { min-width: 0; }
.today-schedule-item img { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.schedule-time { color: var(--gold); font-weight: 800; white-space: nowrap; }
.schedule-title { font-weight: 750; }
.schedule-mod { color: var(--muted); font-size: .9rem; }
.onair-badge, .badge { display: inline-flex; align-items: center; margin-left: .35rem; padding: .2rem .5rem; border-radius: 4px; background: #28a745; color: #fff; font-size: .75rem; font-weight: 800; }
.badge { background: #176aa9; }
.live-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; background: rgb(40 167 69 / 20%); color: #7ee19a; font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.live-pill::before { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; content: ""; }

/* Woche: klassische Tabs und Sendungen als volle Zeilen */
.day-tabs { display: flex; justify-content: center; gap: 0; overflow-x: auto; margin: 0 0 2rem; padding: .25rem 0 0; border-bottom: 1px solid #8a98a7; scrollbar-width: thin; }
.schedule-main-heading { justify-content: center; margin: .5rem 0 .6rem; }
.schedule-main-heading h2 { font-size: 2.2rem; }
.program-content, .team-section { width: min(1100px, calc(100% - 2rem)); }
.team-section { padding-top: 0; }
.team-page-heading h1 { transform: translateY(-14px); }
.day-tab { flex: 0 0 103px; min-width: 103px; padding: .5rem .35rem; border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; background: transparent; color: #1e6fe8; text-align: center; cursor: pointer; }
.day-tab strong, .day-tab span { display: block; }
.day-tab strong { font-weight: 500; }
.day-tab span { color: #2477db; font-size: .84rem; }
.day-tab[aria-selected="true"] { border-color: #d0d4da; background: #fff; color: #27313b; }
.day-tab[aria-selected="true"] span { color: #384657; }
.program-day[hidden] { display: none; }
.program-day .section-heading { justify-content: center; margin-bottom: 1.2rem; }
.program-show-list { display: grid; gap: 1.25rem; }
.program-show-list > .show-card { display: grid; grid-template-columns: minmax(130px, 2fr) minmax(0, 7fr) minmax(145px, 3fr); grid-template-areas: "title title title" "time description moderator" "progress progress progress"; align-items: center; gap: .8rem 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); box-shadow: var(--shadow); }
.show-card.current { border-color: #5ca9e8; }
.show-card-head { display: flex; grid-area: title; align-items: center; justify-content: center; gap: .5rem; text-align: center; }
.show-card-head h3 { margin: 0; color: #287be8; font-size: 1.15rem; }
.program-show-list .schedule-time { grid-area: time; text-align: center; }
.show-card-description { grid-area: description; color: #f0f2f5; }
.show-card-description p:last-child { margin-bottom: 0; }
.show-card-description img { max-width: min(100%, 240px); max-height: 150px; object-fit: contain; }
.show-card-mod { display: flex; grid-area: moderator; flex-direction: column; align-items: center; gap: .35rem; margin: 0; text-align: center; }
.show-card-mod img { width: 100px; height: 100px; border: 2px solid var(--line); border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.progress-wrap { grid-area: progress; width: min(100%, 520px); margin: .25rem auto 0; text-align: left; }
.progress-label { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; color: var(--muted); font-size: .8rem; }
.progress-track { height: 10px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 15%); }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1e90ff, #28a745); transition: width .4s ease; }

/* Teamkarten und redaktionelle Inhalte */
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-card { padding: 1rem; text-align: center; }
.team-card img { width: 164px; height: 164px; border: 3px solid var(--line); border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.team-card h3 { margin: .85rem 0 .15rem; font-size: 1.1rem; }
.team-card p { margin: 0; color: var(--muted); font-size: .9rem; font-style: italic; }
.team-apply { margin-top: .7rem; }
.blog-grid { align-items: stretch; }
.blog-card { overflow: hidden; }
.blog-card > img { display: block; width: 100%; height: 180px; object-fit: cover; }
.blog-card-content { display: flex; flex-direction: column; align-items: flex-start; padding: 1rem; }
.blog-card h2 { margin: 0 0 .35rem; color: #fff; font-size: 1.2rem; }
.blog-card time { color: var(--muted); font-size: .85rem; }
.blog-card p { flex: 1; color: #e1e5ea; }
.blog-empty p { margin: 0; text-align: center; }
.blog-entry-image { display: block; max-width: min(100%, 760px); max-height: 420px; margin: 0 auto 1.25rem; object-fit: contain; }
.gallery-content { padding: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 7px; box-shadow: var(--shadow); }
.gallery-grid img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .2s ease; }
.gallery-grid a:hover img { transform: scale(1.025); }
.page-content { min-height: 120px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: #f3f5f7; line-height: 1.75; overflow-wrap: anywhere; }
.page-content h2, .page-content h3, .page-content h4 { margin-top: 1.35rem; color: #fff; }
.page-content img { max-width: 100%; height: auto; border-radius: 5px; }
.page-content table { width: 100%; border-collapse: collapse; }
.page-content th, .page-content td { padding: .55rem; border: 1px solid rgb(255 255 255 / 20%); text-align: left; }
.page-content a { overflow-wrap: anywhere; }

/* Formulare, Meldungen und Fußzeile */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #50657d; border-radius: 5px; background: #0b1d32; color: #fff; }
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field input[type="checkbox"] { width: auto; margin-right: .35rem; accent-color: var(--blue); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.custom-alert, .alert { margin: 0 0 1rem; padding: 1rem 1.15rem; border: 1px solid rgb(74 144 226 / 45%); border-left: 6px solid #3498db; border-radius: 8px; background: #1f3a56; color: #fff; }
.custom-alert h2, .custom-alert p { margin: 0; }
.custom-alert h2 { margin-bottom: .25rem; font-size: 1.05rem; }
.custom-alert.error, .alert.error { border-color: rgb(231 76 60 / 55%); border-left-color: #e74c3c; background: #482732; }
.alert.success { border-color: rgb(40 167 69 / 55%); border-left-color: #28a745; background: #1b3c36; }
.empty-state { padding: 1.5rem; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); text-align: center; }
.site-footer { margin-top: 2.5rem; padding: 10px 0; background: var(--navy-2); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.footer-links a { color: #fff; }
.footer-note { margin: 0; font-size: .88rem; }
.footer-heart { color: #e64a19; }
.footer-coffee { color: #ff5722; }

@keyframes fade-in { from { opacity: .65; } to { opacity: 1; } }
@media (max-width: 1199px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; order: 3; width: 100%; align-items: stretch; flex-direction: column; padding: .25rem 0 .75rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem; text-align: left; }
  .slider-control.prev { left: .35rem; }
  .slider-control.next { right: .35rem; }
}
@media (max-width: 900px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 1.25rem, 1140px); }
  .hero { min-height: 265px; }
  .page-hero { min-height: 155px; }
  .hero h1, .page-heading h1 { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .hero-actions { gap: .8rem; }
  .radio-button { padding: .6rem 1rem; font-size: 1rem; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .box { min-height: 0; }
  .box.next-schedule { padding: 15px; }
  .program-show-list > .show-card { grid-template-columns: 1fr; grid-template-areas: "title" "time" "moderator" "description" "progress"; gap: .6rem; }
  .program-show-list .schedule-time { text-align: center; }
  .show-card-mod img { width: 82px; height: 82px; }
  .day-tabs { justify-content: flex-start; margin-bottom: 1.2rem; }
  .day-tab { flex-basis: 98px; min-width: 98px; }
  .section { padding: .9rem 0; }
  .panel-pad, .page-content { padding: 15px; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card img { width: 150px; height: 150px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-inner { width: calc(100% - 1rem); }
}
@media (max-width: 430px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
