/* Main-Kinzig-Radio */

* {
  box-sizing: border-box;
}
:root {
  --red: #d40000;
  --ink: #24292c;
  --muted: #6d7b80;
  --line: #e5e9ea;
  --bg: #ddd;
  --radius: 3px;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  width: calc(100% - 28px);
  max-width: 1000px;
  margin: auto;
}
.site-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   Kompakter Header beim Scrollen
   ========================================================= */

.site-header,
.header-inner,
.brand-mark,
.brand-text b,
.brand-text small,
nav {
  transition:
    height 0.25s ease,
    padding 0.25s ease,
    gap 0.25s ease,
    font-size 0.25s ease,
    transform 0.25s ease;
}

.site-header.is-scrolled {
  height: 54px;
}

.site-header.is-scrolled .header-inner {
  height: 54px;
}

.site-header.is-scrolled .brand-mark {
  width: 44px;
  height: 38px;
}

.site-header.is-scrolled .brand-text b {
  font-size: 12px;
}

.site-header.is-scrolled .brand-text small {
  font-size: 8px;
  margin-top: 3px;
}

.site-header.is-scrolled nav {
  gap: 18px;
}

.site-header {
  overflow-anchor: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.brand-text b,
.brand-text small {
  display: block;
  line-height: 1;
}
.brand-text b {
  font-size: 14px;
  letter-spacing: 0.12em;
}
.brand-text small {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.3em;
  margin-top: 5px;
}
.brand-tagline {
  display: block;
  min-width: 235px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.brand-tagline.is-fading {
  opacity: 0;
  transform: translateY(-3px);
}
nav {
  display: flex;
  gap: 22px;
  color: #5d696e;
  font-weight: 400;
}
nav a {
  transition: color 0.15s ease;
}
nav a.active,
nav a.active:hover {
  color: var(--red);
}
nav a:hover:not(.active) {
  color: inherit;
}
.menu-button {
  display: none;
  border: 0;
  background: #fff;
  font-size: 23px;
}
.player-shell {
  position: relative;
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid #222;
  height: 280px;
  min-height: 280px;
  color: #fff;
}
.player-ambient-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.player-glow {
  position: absolute;
  inset: -90px;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(72px) saturate(1.9);
  transform: scale(1.28);
  opacity: 0.78;
  transition: background-image 0.8s ease, opacity 0.8s ease;
}
.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 9, 0.86) 0%,
    rgba(5, 7, 9, 0.58) 42%,
    rgba(5, 7, 9, 0.38) 70%,
    rgba(5, 7, 9, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.player-inner {
  position: relative;
  z-index: 2;
  height: 280px;
  display: flex;
  align-items: center;
  padding: 30px 0;
}
.player-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
}
.play-button,
.mini-play {
  border: 0;
  background: rgba(179, 0, 0, 0.12);
  color: #d40000;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}
.play-button {
  width: 75px;
  height: 75px;
  border: 2px solid #d40000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.75), 0 0 28px rgba(179, 0, 0, 0.42);
  transition: box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}
.play-button span {
  display: block;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 27px solid #d40000;
  margin-left: 5px;
}
.play-button.is-playing span {
  width: 20px;
  height: 20px;
  border: 0;
  background: #d40000;
  margin-left: 0;
}
.play-button.is-playing {
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.9), 0 0 34px rgba(255, 0, 0, 0.48);
}
.play-button.is-playing:hover {
  box-shadow: 0 0 18px rgba(255, 0, 0, 1), 0 0 42px rgba(255, 0, 0, 0.55);
}
.play-button:hover {
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.75), 0 0 30px rgba(255, 0, 0, 0.35);
  background: rgba(179, 0, 0, 0.18);
}
.song-info {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.player-details h1,
.player-details h2 {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
  color: #fff;
}
.player-details h1 {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.02em;
  padding: 0 0 3px !important;
  box-sizing: border-box;
}
.player-details h2 {
  font-style: italic;
  font-size: 25px;
  line-height: 1.3;
  margin-top: 4px !important;
  padding: 0 0 3px !important;
  box-sizing: border-box;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
}
.player-status {
  margin-top: 12px;
  font-size: 11px;
  color: #d40000;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.current-cover-container {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  z-index: 5;
  margin-left: auto;
  margin-right: 15px;
  position: relative;
}
.cover-large {
  width: 100%;
  height: 100%;
  background: #222 center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.ai-comment {
  display: none;
}
.home {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  padding: 15px 15px 30px;
}
.content-grid {
  max-width: none;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.card {
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 21px;
  min-width: 0;
}
.card-heading small,
.card > small,
.subpage > small {
  font-weight: 400;
  letter-spacing: 0.08em;
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.card h2 {
  margin: 4px 0 16px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.card p {
  color: var(--muted);
}
.history-list {
  display: grid;
  gap: 8px;
  min-height: 208px;
}
.history-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.history-cover {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.history-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.history-meta b,
.history-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-meta b {
  font-weight: 400;
}
.history-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.history-empty {
  color: var(--muted);
  padding: 6px 0;
}
.program-scale {
  position: relative;
  height: auto;
  border-left: 2px solid #edf0f0;
  padding-left: 15px;
  padding-bottom: 0;
}
.program-line {
  min-height: 0;
}
.program-line + .program-line {
  margin-top: 28px;
}
.program-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.program-line b {
  display: block;
  font-weight: 700;
}
.program-line small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.program-line-current {
  position: relative;
}
.program-pointer {
  position: absolute;
  left: -23px;
  top: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px #d4000018;
}
.next-program {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
}
.weather-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 2px 0 4px;
}
.weather-main span {
  font-size: 42px;
}
.weather-main strong {
  font-size: 36px;
  color: var(--red);
}
.weather-now {
  margin: 4px 0 12px;
}
.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.forecast div {
  text-align: center;
  background: #eef9fb;
  border-radius: 13px;
  padding: 13px 5px;
}
.forecast span,
.forecast strong,
.forecast small {
  display: block;
}
.forecast span {
  font-size: 27px;
  margin: 5px;
}
.forecast strong {
  font-size: 20px;
}
.forecast small {
  color: var(--muted);
}
.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 10px;
}
.info-list span {
  color: var(--muted);
}
.daily,
.green,
.red-card,
.excursion-tip {
  background: #fff;
}
.daily {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  gap: 24px;
  align-items: center;
}
.daily-image {
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: 3px;
}
.daily-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.daily-copy h2 {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 28px;
}
.daily-copy h3 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 400;
  color: var(--red);
}
.daily-copy p {
  margin: 0 0 14px;
}
.daily-copy p:last-child {
  margin-bottom: 0;
}

.red-line {
  border-left: 3px solid var(--red);
  padding-left: 14px;
}

.red-link {
  color: var(--red);
  font-weight: 400;
}
.ticker {
  min-height: 100px;
  display: flex;
  align-items: center;
  font-weight: 400;
}
.excursion-tip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.subpage {
  min-height: 65vh;
  padding: 70px 0;
}
.subpage .wrap,
.narrow {
  max-width: 1000px;
}
.subpage h1 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.subpage p {
  max-width: 700px;
  font-size: 17px;
  color: var(--muted);
}
body.is-sub-page .player-shell {
  display: none;
}
body.is-sub-page #miniPlayer {
  transform: translateY(0);
}
body.is-home-page #miniPlayer {
  transform: translateY(100%);
}

#pageContent {
  position: relative;
  min-height: 500px;
  background: #ddd;
  overflow: hidden;
}

.card {
  border-radius: var(--radius);
}
.subpage {
  min-height: 65vh;
  padding: 38px 0 70px;
}
.subpage .wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 42px;
  box-shadow: 0 8px 30px rgba(20, 35, 40, 0.08);
}
.subpage h1 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.subpage p {
  max-width: 820px;
  font-size: 17px;
  color: var(--muted);
}
footer {
  background: transparent;
  border: 0;
  padding: 24px 0 90px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #aaa;
}
.footer-inner b {
  color: #aaa;
  font-weight: 400;
  font-size: 12px;
}
.footer-inner span {
  display: block;
}
.footer-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
}
.footer-links a.active {
  color: var(--red);
  font-weight: 400;
}
.footer-links a:hover {
  color: var(--red);
}
#miniPlayer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #111;
  border-top: 1px solid #2b2b2b;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  color: #fff;
}
body.compact-player #miniPlayer {
  transform: translateY(0);
}
.mini-player-inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 8px;
  padding-right: 8px;
}
.mini-play {
  width: 44px;
  height: 44px;
  border: 2px solid #d40000;
  background: rgba(179, 0, 0, 0.12);
  color: #d40000;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.75), 0 0 28px rgba(179, 0, 0, 0.42);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.mini-play-icon {
  display: block;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #d40000;
  margin-left: 3px;
}
.mini-play.is-playing .mini-play-icon {
  width: 13px;
  height: 13px;
  border: 0;
  background: #d40000;
  margin-left: 0;
}
.mini-play:hover {
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.75), 0 0 30px rgba(255, 0, 0, 0.35);
  background: rgba(179, 0, 0, 0.18);
}
.mini-cover {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: #222 center/cover no-repeat;
  flex: none;
}
.mini-track {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.mini-track b {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-track small {
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-field label {
  font-weight: 400;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d9dfe1;
  border-radius: 3px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: #aeb8bc;
  box-shadow: 0 0 0 3px #d4000012;
}
.form-field textarea {
  min-height: 180px;
  resize: vertical;
}
.contact-submit {
  justify-self: start;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  padding: 11px 20px;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}
.contact-submit:hover {
  background: #b80000;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-success,
.contact-error {
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: #fff;
  margin: 10px 0 20px;
}
.contact-error {
  color: var(--red);
}
@media (max-width: 800px) {
  nav {
    display: none;
  }
  .menu-button {
    display: block;
  }
  nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 30px #0001;
  }
  nav.open a {
    padding: 10px;
  }
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .span-2,
  .span-3 {
    grid-column: span 2;
  }
}
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .daily {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .daily-image {
    min-height: 240px;
    height: 300px;
  }
}
@media (max-width: 560px) {
  .brand-tagline {
    min-width: 0;
    max-width: 210px;
    letter-spacing: 0.18em;
  }
  .player-shell,
  .player-inner {
    height: 180px;
    min-height: 180px;
  }
  .player-inner {
    display: flex;
    padding: 15px 0;
  }
  .player-top-row {
    padding: 15px;
    gap: 12px;
  }
  .play-button {
    width: 55px;
    height: 55px;
    border-width: 1px;
  }
  .play-button span {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 20px;
    margin-left: 4px;
  }
  .play-button.is-playing span {
    width: 16px;
    height: 16px;
    margin-left: 0;
  }
  .current-cover-container {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    margin: 0;
  }
  .cover-large {
    width: 60px;
    height: 60px;
  }
  .player-details h1 {
    font-size: clamp(18px, 6vw, 28px);
  }
  .player-details h2 {
    font-size: clamp(15px, 4.5vw, 22px);
  }
  .player-status {
    margin-top: 7px;
    font-size: 9px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .span-2,
  .span-3 {
    grid-column: auto;
  }
  .forecast {
    gap: 5px;
  }
  .subpage h1 {
    font-size: 40px;
  }
  .footer-inner {
    display: grid;
  }
}

.history-cover-empty {
  background: #eee;
}
.history-placeholder .history-meta b,
.history-placeholder .history-meta span {
  display: block;
  width: 180px;
  height: 10px;
  background: #eef1f2;
  border-radius: 3px;
}
.history-placeholder .history-meta span {
  width: 120px;
  margin-top: 8px;
}

/* v27 */
.weather-main #weatherIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
}
.weather-main #weatherIcon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}
.forecast span img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.privacy-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.captcha-field {
  max-width: 220px;
}

/* Kontaktformular: Fehler direkt am betroffenen Feld, ohne Layout-Sprung */
.contact-feedback:empty {
  display: none;
}
.contact-feedback {
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: #fff;
  margin: 10px 0 20px;
  color: var(--red);
}
.contact-feedback.is-success {
  display: block !important;
  color: #198754;
  border-left-color: #198754;
  background: #f1fbf4;
  font-weight: 400;
}
.contact-feedback.is-error {
  display: block !important;
  color: var(--red);
  border-left-color: var(--red);
  background: #fff5f5;
}
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #d4000012;
}
.form-field-message {
  font-size: 13px;
  color: var(--red);
  margin-top: 0;
}
.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* v38: Kontakt-Erfolgsmeldung liegt ausserhalb des Formulars und bleibt sichtbar. */
.contact-feedback[hidden] {
  display: none !important;
}
.contact-feedback.is-sending {
  display: block !important;
  color: #5d696e;
  border-left-color: #5d696e;
  background: #f5f6f6;
}
.contact-feedback.is-success {
  display: block !important;
  color: #198754;
  border-left-color: #198754;
  background: #f1fbf4;
  font-weight: 400;
}
.contact-feedback.is-error {
  display: block !important;
  color: var(--red);
  border-left-color: var(--red);
  background: #fff5f5;
}

/* Musik-Ticker */
.music-ticker-card {
  padding: 18px 20px;
  overflow: hidden;
  border-color: #d40000;
  background: #f5f5f5;
}
.music-ticker-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}
.music-ticker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  min-height: 54px;
}
.music-ticker-label small {
  display: flex;
  align-items: center;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.music-ticker-label h2 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 400;
}
.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px #d4000014;
}
.music-ticker-items {
  display: flex;
  gap: 28px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.music-ticker-items::-webkit-scrollbar {
  display: none;
}
.music-news-item {
  min-width: 220px;
  max-width: 280px;
}
.music-news-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}
.music-news-item a {
  display: -webkit-box;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.music-news-item a:hover {
  color: var(--red);
}
.music-news-empty {
  color: var(--muted);
  font-size: 13px;
}
.music-ticker-more {
  white-space: nowrap;
  border: 1px solid var(--red);
  border-radius: 3px;
  padding: 7px 12px;
  color: var(--red);
  font-size: 12px;
  text-decoration: none;
}
.music-ticker-more:hover {
  background: var(--red);
  color: #fff;
}
@media (max-width: 800px) {
  .music-ticker-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .music-ticker-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .music-ticker-items {
    gap: 18px;
  }
  .music-ticker-more {
    justify-self: start;
  }
}

/* Meldungen */
.meldungen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.meldungen-head small {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.meldungen-head h2 {
  margin: 4px 0 0;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.meldungen-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.meldungen-content {
  display: grid;
  grid-template-columns: minmax(190px, 28%) 1fr;
  gap: 24px;
  align-items: center;
  padding-top: 16px;
}

.meldungen-image-wrap {
  min-width: 0;
}

.meldungen-image {
  max-height: 220px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  padding: 4px;
  background: #fff;
  box-sizing: border-box;
  line-height: 0;
}

.meldungen-image img {
  width: 100%;
  height: auto;
  max-height: 210px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.meldungen-image-copy {
  display: block;
  margin-top: 6px;
  padding-left: 2px;
  color: #8a9498;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 400;
}

.meldungen-copy p {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .meldungen-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .meldungen-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .meldungen-image {
    max-height: none;
  }

  .meldungen-image img {
    max-height: none;
  }
}

/* v45: KI-Moderation */
.ai-card {
  min-height: 100%;
}

/* v50 */
/* Weiße Cards sind bewusst rahmenlos. Helle Cards auf #f5f5f5 erhalten den dezenten Rahmen. */
.card-soft {
  border: 1px solid var(--line);
}

/* Die drei oberen Cards haben bewusst eine feste Höhe.
   Die erste Card gibt mit ihren drei History-Zeilen den Maßstab vor. */
.top-three-card {
  height: 297px;
  box-sizing: border-box;
  overflow: hidden;
}
.ai-card {
  min-height: 0;
}
.ai-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  min-height: 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ai-text.is-loading {
  opacity: 0.55;
}

/* Card mit grauem Hintergrund */
.card-grey {
  background: #f5f5f5;
	border: 1px solid #d9d9d9;
}


.reception-teaser p {
  margin-bottom: 14px;
}
.reception-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  max-width: 760px;
}
.reception-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.reception-row:first-child {
  border-top: 1px solid var(--line);
}
.reception-row span {
  color: var(--muted);
}

@media (max-width: 700px) {
  .reception-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .meldungen-image {
    max-height: none;
  }
  .meldungen-image img {
    max-height: none;
  }
}


/* =========================================================
   Universelles Text-Overlay / Modal
   ========================================================= */

.text-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.text-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.text-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.text-overlay-dialog {
  position: relative;
  z-index: 1;

  width: min(900px, 100%);
  max-height: calc(100vh - 40px);

  background: #fff;
  border-radius: 8px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);

  overflow: hidden;

  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.text-overlay.is-open .text-overlay-dialog {
  transform: translateY(0);
}

.text-overlay-content {
  padding: 32px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.text-overlay-content h2 {
  margin: 0 45px 25px 0;
  font-size: 1.8rem;
  line-height: 1.25;
}

.text-overlay-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.text-overlay-close {
  position: absolute;
  top: 12px;
  right: 15px;

  width: 36px;
  height: 36px;

  border: 0;
  background: transparent;

  font-size: 30px;
  line-height: 1;

  color: #777;
  cursor: pointer;

  z-index: 2;
}

.text-overlay-close:hover {
  color: #d40000;
}

body.overlay-open {
  overflow: hidden;
}

@media (max-width: 600px) {

  .text-overlay {
    padding: 10px;
  }

  .text-overlay-dialog {
    max-height: calc(100vh - 20px);
  }

  .text-overlay-content {
    padding: 24px 20px;
    max-height: calc(100vh - 20px);
  }

  .text-overlay-content h2 {
    font-size: 1.45rem;
  }
}


/* Wetter */

.weather-icon-sun {
  color: #fd7e14;
}

.weather-icon-moon {
  color: #f1c40f;
}

.weather-icon-partly {
  color: #ffbc00;
}

.weather-icon-cloud {
  color: #7f8c8d;
}

.weather-icon-rain-heavy {
  color: #3498db;
}

.weather-icon-rain {
  color: #2980b9;
}

.weather-icon-storm {
  color: #f1c40f;
}

.weather-icon-snow {
  color: #5dade2;
}

.weather-icon-fog {
  color: #bdc3c7;
}

.weather-icon-default {
  color: #555;
}


/* =========================================================
   Aktuelle Wetterwerte
   ========================================================= */

.weather-details {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px 28px;
    width: min(100%, 380px);
    margin-left: auto;
    margin-right: auto;
}

.weather-detail {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
    min-width: 0;
}

.weather-detail > i {
    font-size: 1.05rem;
    color: #7f8c8d;
    flex: 0 0 auto;
}

.weather-detail span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.weather-detail small {
    color: #8a8a8a;
    font-size: 0.68rem;
    line-height: 1.1;
}

.weather-detail strong {
    color: #202020;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .weather-details {
        width: 100%;
        max-width: 360px;
        gap: 10px 18px;
    }
}

.weather-disclaimer {
  display: block;
  margin-top: 10px;
  color: #aaa;
  font-size: 0.64rem;
}






/* =========================================================
   AKTUELLE NACHRICHTEN
   ========================================================= */

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card .card-heading {
	margin-top: -20px;
}

.news-card .card-heading small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #718096;
}

.news-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  column-gap: 12px;

  width: 100%;
  padding: 10px 0;

  color: inherit;
  text-decoration: none;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-row:last-child {
  border-bottom: 0;
}

.news-row-content {
  min-width: 0;
}

.news-row datum-ort {
  display: block;
  margin-bottom: 3px;

  font-size: 0.72rem;
  line-height: 1;
  font-weight: 500;

  color: #89939e;
}

.news-row span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  overflow: hidden;

  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
}

.news-row b {
  font-size: 1rem;
  font-weight: 400;
  color: #e00000;
  text-align: right;

  transition: transform 0.15s ease;
}

.news-row:hover span {
  color: #e00000;
}

.news-row:hover b {
  transform: translateX(3px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
	
	.news-card .card-heading {
	  margin-top: 10px;
  }

  .news-row {
    grid-template-columns: minmax(0, 1fr) 18px;
    column-gap: 9px;
    padding: 9px 0;
  }

  .news-row span {
    font-size: 0.92rem;
  }

}