/* ============================================================
   RadioStation – Haupt-CSS
   Primärfarbe wird via PHP inline als CSS-Variable gesetzt.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #f0c000;
  --primary-dark: #1a1a1a;
  --text:         #1a1a1a;
  --text-muted:   #666;
  --bg:           #f5f5f5;
  --white:        #ffffff;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,.1);
  --transition:   .22s ease;
  --font-head:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- SERVICE BAR (Wetter & Verkehr) ---- */
.service-bar {
  background: var(--primary-dark);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 3px solid var(--primary);
}
.service-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .45rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.service-bar__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: default;
}
.service-bar__item strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.service-bar__item b,
.service-bar__item strong b { color: #fff; font-size: 1rem; }
.service-bar__icon { font-size: 1.3rem; }
.service-bar__divider { width: 1px; height: 1.4rem; background: rgba(255,255,255,.2); }
.service-bar__loading { opacity: .5; font-style: italic; }
.service-bar__spacer { flex: 1; }
.service-bar__ticker { font-size: .82rem; overflow: hidden; white-space: nowrap; max-width: 420px; }
.service-bar__ticker span { display: inline-block; animation: ticker 20s linear infinite; }
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ---- HEADER ---- */
.site-header {
  background: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-logo { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.site-logo img { height: 48px; width: auto; }
.site-logo__text { line-height: 1.2; }
.site-logo__name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--primary);
}
.site-logo__slogan { font-size: .72rem; opacity: .65; letter-spacing: .05em; }

/* ---- NAVIGATION ---- */
.site-nav { flex: 1; }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}
.site-nav__item { position: relative; }
.site-nav__link {
  display: block;
  padding: .55rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--white);
  transition: color var(--transition);
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__item:hover > .site-nav__link { color: var(--primary); }

/* Dropdown */
.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-dark);
  min-width: 200px;
  list-style: none;
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow);
  z-index: 500;
}
.site-nav__item:hover .site-nav__dropdown { display: block; }
.site-nav__dropdown a {
  display: block;
  padding: .55rem 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  transition: background var(--transition), color var(--transition);
}
.site-nav__dropdown a:hover { background: rgba(255,255,255,.08); color: var(--primary); }

/* ---- PLAYER BAR ---- */
.player-bar {
  background: #222;
  color: var(--white);
  padding: .55rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 2px solid var(--primary);
  position: sticky;
  top: 56px; /* Höhe des Headers */
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.player-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.player-bar__live {
  background: #e30;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 3px;
  letter-spacing: .06em;
  flex-shrink: 0;
  animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:.6} }
.player-bar__info { flex: 1; min-width: 0; }
.player-bar__onair { font-size: .72rem; opacity: .55; text-transform: uppercase; letter-spacing: .06em; }
.player-bar__title { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__controls { display: flex; align-items: center; gap: .7rem; }
.btn-play {
  background: var(--primary);
  color: var(--primary-dark);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
  flex-shrink: 0;
}
.btn-play:hover { transform: scale(1.08); background: #ffd200; }
.player-volume { width: 90px; accent-color: var(--primary); cursor: pointer; }

/* ---- HERO SLIDER ---- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  height: 420px;
}
.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.77,0,.18,1);
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero-slide__img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.hero-slide__bg-color {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.hero-slide__content {
  position: relative;
  padding: 2rem 3rem;
  max-width: 700px;
  color: var(--white);
}
.hero-slide__category {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .4rem;
}
.hero-slide__title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .7rem;
}
.hero-slide__subtitle { font-size: 1rem; opacity: .8; margin-bottom: 1.2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary);
  color: var(--primary-dark);
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition);
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); }

/* Slider Navigation */
.hero-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.hero-slider__btn:hover { background: rgba(255,255,255,.32); }
.hero-slider__btn--prev { left: 1.2rem; }
.hero-slider__btn--next { right: 1.2rem; }
.hero-slider__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.hero-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-slider__dot.active { background: var(--primary); transform: scale(1.3); }

/* ---- MAIN LAYOUT ---- */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}
@media(max-width:900px) { .site-main { grid-template-columns: 1fr; } }

/* ---- SECTION HEADINGS ---- */
.section-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.3rem;
}
.section-head__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.section-head__line { flex: 1; height: 3px; background: var(--primary); border-radius: 2px; }
.section-head__more { font-size: .8rem; font-weight: 600; color: var(--primary-dark); opacity: .6; }
.section-head__more:hover { opacity: 1; }

/* ---- NEWS GRID ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.news-card--featured { grid-column: 1 / -1; flex-direction: row; }
.news-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  background: var(--primary-dark);
  flex-shrink: 0;
  display: block;
}
.news-card--featured .news-card__img { width: 340px; height: auto; min-height: 220px; }
.news-card__img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.3);
}
.news-card--featured .news-card__img-placeholder { width: 340px; height: auto; min-height: 220px; }
.news-card__body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.news-card__cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #f0c000;
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 3px;
  margin-bottom: .5rem;
}
.news-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .4rem;
  color: var(--text);
}
.news-card--featured .news-card__title { font-size: 1.5rem; }
.news-card__excerpt { font-size: .88rem; color: var(--text-muted); flex: 1; }
.news-card__footer {
  margin-top: .9rem;
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-card__readmore { color: var(--primary-dark); font-weight: 600; }
.news-card__readmore:hover { text-decoration: underline; }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sidebar-widget__head {
  background: var(--primary-dark);
  color: #ffffff;
  padding: .7rem 1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sidebar-widget__body { padding: 1rem; }

/* Wetter-Widget Sidebar */
.weather-widget__today {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: .8rem;
}
.weather-widget__temp { font-size: 2.2rem; font-weight: 800; }
.weather-widget__desc { font-size: .85rem; color: var(--text-muted); }
.weather-widget__icon { font-size: 2.5rem; }
.weather-widget__tomorrow {
  background: var(--bg);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem;
}
.weather-widget__tomorrow strong { font-weight: 700; }

/* Traffic Widget Sidebar */
.traffic-list { list-style: none; }
.traffic-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--bg);
  font-size: .85rem;
  display: flex; gap: .5rem; align-items: flex-start;
}
.traffic-list li:last-child { border-bottom: none; }
.traffic-list__icon { flex-shrink: 0; font-size: 1rem; margin-top: .1rem; }
.traffic-summary {
  display: flex; gap: 1rem; margin-bottom: .8rem;
}
.traffic-badge {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius);
  padding: .5rem;
  text-align: center;
}
.traffic-badge__num { font-size: 1.6rem; font-weight: 800; }
.traffic-badge__label { font-size: .72rem; color: var(--text-muted); }
.traffic-badge--blitzer .traffic-badge__num { color: #e30; }

/* RSS News Widget */
.rss-list { list-style: none; }
.rss-item {
  padding: .65rem 0;
  border-bottom: 1px solid var(--bg);
}
.rss-item:last-child { border-bottom: none; }
.rss-item a { display: block; }
.rss-item__title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .2rem;
  color: var(--text);
  transition: color var(--transition);
}
.rss-item a:hover .rss-item__title { color: var(--primary-dark); text-decoration: underline; }
.rss-item__date { font-size: .74rem; color: var(--text-muted); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  margin-top: 3rem;
}
.site-footer__top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-col__head {
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  padding: .2rem 0;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-social { display: flex; gap: .7rem; margin-top: .5rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
  padding: 0;
}
.footer-social a:hover { background: var(--primary); color: var(--primary-dark); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: .8rem;
  opacity: .55;
}

/* ---- HAMBURGER / MOBILE ---- */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: .2rem;
  margin-left: auto;
}
@media(max-width:768px) {
  .hamburger { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 1rem; }
  .site-nav.open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav__dropdown { position: static; box-shadow: none; border-top: none; padding-left: 1rem; display: block; }
  .hero-slider { height: 280px; }
  .hero-slide__title { font-size: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { flex-direction: column; }
  .news-card--featured .news-card__img,
  .news-card--featured .news-card__img-placeholder { width: 100%; }
}

/* ---- ALLGEMEIN / SEITEN ---- */
.page-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2rem 1.5rem;
}
.page-header__inner { max-width: 1280px; margin: 0 auto; }
.page-header__title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}
.page-header__cat { font-size: .8rem; opacity: .55; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }

.article-body { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.article-body h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 1.2rem 0 .5rem; }
.article-body p { margin-bottom: .8rem; }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }

.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-list-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: transform var(--transition);
}
.news-list-item:hover { transform: translateY(-2px); }
.news-list-item__img { width: 160px; height: 110px; object-fit: cover; flex-shrink: 0; }
.news-list-item__img-ph {
  width: 160px; height: 110px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  position: relative; overflow: hidden;
}
.news-list-item__body { padding: .9rem 1.1rem; }
.news-list-item__cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--primary-dark); background: var(--primary); display: inline-block; padding: .1rem .45rem; border-radius: 3px; margin-bottom: .4rem; }
.news-list-item__title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.news-list-item__excerpt { font-size: .85rem; color: var(--text-muted); }

/* ---- ADMIN NOTICE ---- */
.flash { padding: .8rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; }
.flash--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
