@charset "UTF-8";

:root {
  --fg: #235973;         /* Dunkelblau/Grau für Text und Header-Hintergrund */
  --muted: #6a6a6a;
  --primary: #468fbc;    /* Akzentfarbe für Links/Buttons */
  --accent: #813c4e;     /* Zweite Akzentfarbe für Textlinks und Suchtreffer */
  --accent-soft: rgba(129, 60, 78, 0.15);
  --border: #e0e0e0;
  --radius: 10px;
  --bg-main: #f9f9f9;    /* Heller Haupt-Hintergrund */
  --header-bg: #e9f1f4;  /* Helle Farbe für Karten und Menü-Hintergründe */
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-main);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.widget-list a,
.post-excerpt a {
  color: var(--accent);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header-Bereich */
.site-header {
  background: var(--fg);
  color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 30px;
}

/* Linker Block: Titel oben, Navigation darunter */
.header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand h1 {
  font-size: 1.8rem;
  margin: 0;
}

/* Hauptnavigation linksbündig (etwas kompakter/kleiner) */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--fg);
  background-color: var(--bg-main);
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}


.main-nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.main-nav a:hover {
  color: #fff;
  background-color: var(--primary);
  text-decoration: none;
}

/* Rechter Block: Slogan und Logo nebeneinander */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.slogan {
  font-size: 0.9rem;
  margin: 0;
  text-align: right;
  line-height: 1.35;
}

/* Logo-Wrapper */
.header-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 130px;
}

/* SVG-Container */
.header-logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Wellen-Animation für die SVG-Balken */
.wave-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: soundWave 1.4s ease-in-out infinite alternate;
}

@keyframes soundWave {
  0% {
    transform: scaleY(0.7);
  }
  100% {
    transform: scaleY(1.25);
  }
}

/* Farbe und versetzter Animationsstart je Balken (Wellenmuster) */
.bar-1  { fill: #234a73; animation-delay: 0s; }
.bar-2  { fill: #468fbc; animation-delay: 0.2s; }
.bar-3  { fill: #8cbde5; animation-delay: 0.4s; }
.bar-4  { fill: #468fbc; animation-delay: 0.1s; }
.bar-5  { fill: #b3d7f0; animation-delay: 0.5s; }
.bar-6  { fill: #8cbde5; animation-delay: 0.3s; }
.bar-7  { fill: #fbdad0; animation-delay: 0.6s; }
.bar-8  { fill: #e87a5a; animation-delay: 0.15s; }
.bar-9  { fill: #fbdad0; animation-delay: 0.45s; }
.bar-10 { fill: #e0302b; animation-delay: 0.25s; }
.bar-11 { fill: #e0302b; animation-delay: 0.55s; }
.bar-12 { fill: #e87a5a; animation-delay: 0.05s; }
.bar-13 { fill: #a81c1c; animation-delay: 0.35s; }
.bar-14 { fill: #a81c1c; animation-delay: 0.5s; }

/* Layout Hauptinhalt und Sidebar */
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 28px 0 60px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Gemeinsames Kartendesign für Beiträge und Sidebar-Widgets */
.post-card,
.widget {
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.post-card {
  padding: 18px 18px 14px;
}

.post-title {
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.post-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.post-excerpt {
  line-height: 1.5;
  margin: 6px 0 12px;
  text-align: justify;
  hyphens: auto;
}

/* Suchtreffer: nur Markierung, kein Fett */
mark.search-highlight {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0;
  border-radius: 2px;
}

/* Consent Embed Styles */
.consent-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}

.consent-embed[data-type="audio"] {
  aspect-ratio: auto;
  min-height: 152px;
  background: #f0f0f0;
}

.consent-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Höhe des Audio-Players: Standard 352px, per --embed-height (aus data-height) überschreibbar */
.consent-embed[data-type="audio"] iframe {
  height: var(--embed-height, 352px);
}

.consent-embed__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
}

.consent-embed__overlay {
  margin: auto;
  max-width: 420px;
  padding: 18px 20px;
  text-align: center;
}

.consent-embed__overlay p {
  font-size: .9rem;
  line-height: 1.4;
  margin: 0 0 12px;
}

.consent-embed__btn {
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.consent-embed__btn:hover {
  opacity: .9;
}

.consent-embed__remember {
  display: block;
  margin-top: 10px;
  font-size: .8rem;
  cursor: pointer;
}

.consent-embed__remember input {
  margin-right: 6px;
}

/* Sidebar & Widgets */
/* Ohne JavaScript: Sidebar scrollt mit dem Inhalt, sobald ihr unterer
   Rand im Fenster erscheint, bleibt er 20px über dem Bildrand kleben. */
.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  bottom: 20px;
  align-self: end;
}

/* Mit sidebar.js: Das Skript setzt "top" je nach Scrollrichtung,
   die Sidebar wird beim Hoch- und Runterscrollen mitgenommen. */
.sidebar.smart-sticky {
  bottom: auto;
  align-self: start;
}

.widget {
  padding: 16px;
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: justify;
  hyphens: auto;
  line-height: 1.35;
}

.widget-list li {
  padding: 4px 0;
}

/* Suche in der Sidebar */
.search {
  margin-top: 16px;
}

.search-form input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--fg);
}

.search-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Footer */
.site-footer {
  background: var(--fg);
  padding: 20px 0;
  margin-top: 40px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: .9rem;
  color: #d5d5d5;
}

.site-footer a { color: #fff; }

/* Responsive Anpassungen */
@media (max-width: 980px) {
  .content-area {
    grid-template-columns: 1fr;
  }

  /* Eine Spalte: Sidebar steht nach den Beiträgen und klebt nicht */
  .sidebar,
  .sidebar.smart-sticky {
    position: static;
    align-self: start;
  }
}


img {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .wave-bar { animation: none; }
}
