@charset "UTF-8";

:root {
  --fg: #1b1b1b;
  --muted: #6a6a6a;
  --primary: #2a6ebb;
  --border: #e0e0e0;
  --radius: 10px;
  /* Breite des Hero-Logos: skaliert mit dem Viewport, damit es auf
     Tablets nicht mit dem Text kollidiert. */
  --hero-logo-w: min(460px, 38vw);
}

* {
  box-sizing: border-box;
}

/* Hintergrundfarbe als Fallback auf <html>; das Bild liegt in body::before
   (siehe unten), weil "background-attachment: fixed" auf iOS-Safari
   ignoriert wird und das Bild dort falsch skaliert. */
html {
  margin: 0;
  padding: 0;
  background: #009577;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/data/back.webp") center center / cover no-repeat;
  pointer-events: none;
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

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

.hero-band {
  position: relative;
  overflow: hidden;
  background: #06211d;
  padding: 64px 0 72px;
  color: #fff;
}

/* Der Textblock nutzt die volle Container-Breite (linksbündig mit dem
   Inhalt darunter). Rechts wird Platz für das Logo freigehalten, damit
   es den Text nie überlappt. */
.hero-inner {
  position: relative;
  z-index: 1;
  padding-right: calc(var(--hero-logo-w) - 20px);
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 560px;
  min-height: 2.3em;
  transition: opacity 1.2s ease;
}

.hero-title.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    transition: none;
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: #8fd6c2;
  margin: 0;
  max-width: 46ch;
}

.hero-rings {
  /* Logo (Puls-Linie + Sichelmond) mit wandernd animiertem Punkt.
     Referenziert zwei externe Dateien (statt Base64-Einbettung),
     damit diese CSS-Datei schlank bleibt:
       - logo-animated.svg  (Logo + animierter Punkt, SMIL-Animation)
       - logo-teal.png      (statisches Fallback-Bild, siehe unten)
     Beide Dateien muessen im selben Ordner liegen wie diese CSS-Datei
     (bzw. der Pfad unten muss entsprechend angepasst werden). */
  position: absolute;
  top: 50%;
  right: -20px;
  width: var(--hero-logo-w);
  height: calc(var(--hero-logo-w) / 2); /* 2:1 - identisches Seitenverhaeltnis wie das Original-Logo */
  transform: translateY(-50%);
  background-image: url("logo-animated.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rings {
    /* Die Punkt-Animation steckt im SVG selbst (SMIL) und laesst sich von
       aussen nicht per CSS stoppen. Bei reduzierter Bewegung wird daher
       nur das statische Logo (ohne Punkt) eingebunden. */
    background-image: url("logo-teal.png");
  }
}

@media (max-width: 640px) {
  .hero-rings { display: none; }
  .hero-inner { padding-right: 0; }
  .hero-band { padding: 40px 0 48px; }
}


.brand .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #333;
}

.logo-suffix {
  font-weight: normal;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: #333;
  padding: 6px 10px;
  background-color: rgba(143, 214, 194, 0.85);
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--primary);
}

.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;
}

.post-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

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

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

.post-excerpt {
  color: #333;
  line-height: 1.5;
  margin: 6px 0 12px;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto; /* braucht lang="de" am <html>-Element */
}

.post-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

/* Modifier: begrenzt ein einzelnes Post-Bild auf max. 1/3 der Artikelbreite,
   responsiv auf Laptop wie Mobilgerät. Wird gezielt zusätzlich zu
   .post-image vergeben, betrifft also nur die Bilder mit dieser Klasse und
   keine anderen Unterseiten/Artikel. */
.post-image--third {
  max-width: 33.333%;
}

.info-tile {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin: 16px auto;
  max-width: 340px;
}

.info-tile__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.info-tile__body {
  min-width: 0;
}

@media (max-width: 480px) {
  .info-tile {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-tile__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.read-more:hover {
  border-bottom-color: var(--primary);
}

.sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 90px; /* Abstand zum Header, der ja auch sticky ist */
  align-self: start;
}

.widget {
  line-height: 1.5; /* wie .post-excerpt */
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
}

.widget-show__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.consent-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.consent-embed[data-type="audio"] {
  aspect-ratio: auto;
  min-height: 0;
  background: #f0f0f0;
}
.consent-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.consent-embed[data-type="audio"] iframe {
  height: auto;
}
.consent-embed__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}
.consent-embed__overlay {
  position: relative;
  margin: auto;
  max-width: 420px;
  padding: 18px 20px;
  text-align: center;
  color: #fff;
  z-index: 1;
}
.consent-embed[data-type="audio"] .consent-embed__overlay {
  color: var(--fg);
}
.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;
}

.site-footer {
  background: rgba(17,17,17,0.92);
  color: #ddd;
  padding: 20px 0;
  margin-top: 40px;
}

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

/* Responsivität */

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

@media (max-width: 640px) {
  .header-inner {
    padding: 14px 0;
    justify-content: center;
  }

  .brand {
    display: none;
  }

  .main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .main-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .main-nav a {
    display: block;
    text-align: center;
  }
}
