/* Integraler Adventskalender – gemeinsame Stile für Kalender und Türchen-Seiten */
:root {
  --teal-dark: #0c4e54;
  --teal: #188082;
  --teal-mid: #36a8a8;
  --aqua: #82d6d2;
  --aqua-light: #cdf0ec;
  --yellow: #f4e45a;
  --gold: #e8b24a;
  --cream: #faf0d6;
  --wood: #eedcba;
  --red: #c43e4e;
  --ink: #0b3b40;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { background: var(--aqua-light); }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 8%, rgba(244,228,90,.55) 0 90px, transparent 91px),
    radial-gradient(circle at 6% 70%, rgba(244,228,90,.35) 0 60px, transparent 61px),
    radial-gradient(rgba(24,128,130,.16) 1.6px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(180deg, #bfe9e5 0%, #8fd7d1 45%, #2f9b9b 100%);
  background-attachment: fixed;
}

header.hero { position: relative; }
header.hero img {
  display: block; width: 100%; height: clamp(150px, 30vw, 420px);
  object-fit: cover; object-position: center 40%;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
header.hero.small img { height: clamp(110px, 18vw, 240px); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }

footer { text-align: center; color: var(--cream); font-size: .9rem; margin-top: 28px; }
footer a { color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 99px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--teal); color: #fff; font: 600 .95rem "Nunito Sans", sans-serif;
  transition: background .15s;
}
.btn:hover { background: var(--teal-dark); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.share { background: var(--gold); color: var(--ink); }
.btn.share:hover { background: var(--yellow); }

/* ---------- Adventsmail-Anmeldung ---------- */
.signup {
  margin: 0 0 24px; padding: 22px 20px; border-radius: 20px; text-align: center;
  background: var(--cream); box-shadow: 0 12px 30px rgba(8,50,55,.22);
}
.signup p { margin: 0 0 14px; font-size: 1.05rem; color: var(--teal-dark); }

/* ---------- Türchen-Seite ---------- */
main.tuer { max-width: 900px; }
.topnav { margin: -6px 0 14px; }
.topnav a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.topnav a:hover { text-decoration: underline; }

.card {
  background: var(--cream); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(8,50,55,.3);
}
.card-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal)); color: var(--cream);
}
.card-head .badge {
  background: var(--yellow); color: var(--ink); font-weight: 800; border-radius: 10px;
  padding: 4px 10px; font-size: 1.2rem;
}
.card-head h1 { margin: 0; font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 600; }

.media { padding: 20px; display: grid; place-items: center; min-height: 160px; }
.media img, .media video { display: block; max-width: 100%; max-height: 70vh; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.media video { width: auto; max-width: 100%; background: #000; }
.yt {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #0b3b40 center / cover; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: grid; place-items: center;
}
.yt::before { content: ""; position: absolute; inset: 0; background: rgba(8,40,44,.45); }
.yt-play { position: relative; border: 0; background: none; cursor: pointer; padding: 0; transition: transform .15s; }
.yt-play:hover, .yt-play:focus-visible { transform: scale(1.08); }
.yt-play svg { width: 84px; height: 60px; display: block; }
.yt-note { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: .85rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.yt-link { margin-top: 10px; color: var(--teal); font-weight: 600; font-size: .95rem; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio-card { width: 100%; display: grid; gap: 14px; justify-items: center; text-align: center; }
.audio-card img { width: min(260px, 60vw); }
.audio-card img.cover { width: auto; max-width: min(420px, 100%); max-height: 60vh; }
.audio-card audio { width: 100%; max-width: 480px; }
.msg { font-family: "Lora", serif; font-style: italic; font-size: 1.15rem; color: var(--teal-dark); text-align: center; }
.media .locked { padding: 40px 20px; text-align: center; }
.media .locked svg { width: 64px; height: 64px; stroke: var(--teal); }
.caption { margin: 0 20px 6px; font-family: "Lora", serif; font-style: italic; color: var(--teal-dark); text-align: center; }

/* Textbeitrag */
.beitrag { margin: 8px 20px 0; padding: 6px 6px 0; line-height: 1.65; font-size: 1.05rem; }
.beitrag h2 { margin: 6px 0 4px; font-size: clamp(1.25rem, 3.4vw, 1.6rem); color: var(--teal-dark); line-height: 1.25; }
.beitrag h3 { margin: 1.4em 0 .5em; font-size: 1.15rem; color: var(--teal-dark); }
.beitrag .sub { margin: 0 0 1em; font-family: "Lora", serif; font-style: italic; color: var(--teal); }
.beitrag p { margin: 0 0 .9em; }
.beitrag video {
  display: block; max-width: 100%; max-height: 70vh; margin: 0 auto 1.2em;
  border-radius: 12px; background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.beitrag blockquote {
  margin: 4px 0 1.2em; padding: 14px 18px; border-left: 5px solid var(--gold); border-radius: 0 12px 12px 0;
  background: #fff8e6; font-family: "Lora", serif; font-style: italic; font-size: 1.12rem; color: var(--teal-dark);
}
.beitrag cite { display: block; margin-top: 6px; font-style: normal; font-size: .95rem; color: var(--teal); }
.beitrag .signatur { text-align: right; font-style: italic; color: var(--teal); }
.beitrag a, .person .bio a { color: var(--teal); font-weight: 600; word-break: break-word; }
.media[hidden], .person[hidden] { display: none; }
.media[hidden] + .caption { margin-top: 20px; }

.person {
  display: flex; gap: 20px; align-items: flex-start; margin: 18px 20px 0; padding: 18px;
  border-radius: 16px; background: #fff8e6; border: 1px solid rgba(12,78,84,.12);
}
.person img {
  flex: none; width: 140px; height: 140px; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--aqua); box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.person h2 { margin: 0 0 6px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.person .bio h3 { margin: 0 0 .5em; font-size: 1.3rem; color: var(--teal-dark); }
.person .bio p { margin: 0 0 .7em; line-height: 1.55; }
.person .bio p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .person { flex-direction: column; align-items: center; text-align: center; }
}

.share-bar { padding: 18px 20px 22px; text-align: center; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pager a { background: rgba(250,240,214,.92); color: var(--teal-dark); }
.pager a:hover { background: var(--cream); }
.pager a[hidden] { display: none; }
.pager .spacer { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
