/* Aurora – Standardtemplate für Autorinnen-Webseiten */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--page-bg, none);
  background-size: cover;
  background-position: center;
  opacity: .35;
  pointer-events: none;
  z-index: -1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--c-primary); margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }
p { margin: 0 0 1.1em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--c-primary); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Header */
.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: calc(var(--space) * .9) 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; justify-content: space-between;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--c-primary); }
.brand-logo { max-height: 54px; width: auto; }
.brand-name { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; letter-spacing: .02em; }
.brand-tagline { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); margin-top: .25rem; }
body.header-centered .header-inner { flex-direction: column; text-align: center; gap: .5rem; }
body.header-centered .brand { align-items: center; }
body.header-minimal .brand-tagline { display: none; }
body.header-split .header-inner { justify-content: center; }

/* ---------------------------------------------------------------- Navigation */
.site-nav { margin-left: auto; }
.nav-main, .nav-footer, .nav-mobile, .nav-side { list-style: none; margin: 0; padding: 0; }
.nav-main { display: flex; gap: .25rem; align-items: center; }
.nav-main > li { position: relative; }
.nav-main a {
  display: block; padding: .5rem .8rem; text-decoration: none; color: var(--c-text);
  font-size: .95rem; border-radius: var(--radius); letter-spacing: .02em;
}
.nav-main > li > a:hover, .nav-main > li.is-active > a { color: var(--c-primary); background: rgba(0, 0, 0, .04); }
.nav-item.has-children > .sub-toggle {
  position: absolute; right: -.1rem; top: .35rem; background: none; border: 0; cursor: pointer;
  color: var(--c-muted); font-size: .8rem; padding: .2rem;
}
.nav-main .submenu {
  position: absolute; left: 0; top: 100%; min-width: 200px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: .4rem; display: none; z-index: 60;
}
.nav-main .submenu a { padding: .5rem .7rem; }
.nav-main li:hover > .submenu, .nav-main li:focus-within > .submenu { display: block; }
.nav-main .submenu .submenu { top: 0; left: 100%; }

body.nav-side .site-body {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: calc(var(--space) * 2);
  max-width: var(--content-width); margin: 0 auto; padding: calc(var(--space) * 1.6) 1.25rem;
}
.site-side { position: sticky; top: 6rem; align-self: start; }
.nav-side > li > a {
  display: block; padding: .55rem .75rem; text-decoration: none; color: var(--c-text);
  border-left: 3px solid transparent; border-radius: 0 var(--radius) var(--radius) 0;
}
.nav-side > li > a:hover, .nav-side > li.is-active > a { border-left-color: var(--c-accent); background: rgba(0, 0, 0, .04); color: var(--c-primary); }
.nav-side .submenu { list-style: none; margin: 0; padding-left: 1rem; }
.nav-side .submenu a { padding: .35rem .75rem; }

.mobile-nav { display: none; border-top: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(0, 0, 0, .15); border-radius: var(--radius);
  padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--c-text); position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------------------------------------------------------------- Layout */
.site-body { max-width: var(--content-width); margin: 0 auto; padding: calc(var(--space) * 2) 1.25rem; }
body.nav-side .site-body { padding-top: calc(var(--space) * 1.6); }
.site-main { min-width: 0; }
.page-inner { max-width: 780px; margin: 0 auto; }
.page-bg {
  position: fixed; inset: 0; background-size: cover; background-position: center;
  opacity: .45; pointer-events: none; z-index: -1;
}
.page:has(.page-bg) .page-inner,
.page:has(.page-bg) .advent-head {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .08);
}
.page { position: relative; }
.page-head { margin-bottom: calc(var(--space) * 1.2); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--c-accent); font-weight: 600; margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: #3a3a3a; }
.subtitle { font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; color: var(--c-muted); margin-top: -.3rem; }
.page-hero { margin: 0 0 calc(var(--space) * 1.4); }
.page-hero img { border-radius: var(--radius); width: 100%; }

/* ---------------------------------------------------------------- Prose */
.prose { font-size: 1.06rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: .6em 1.4em; border-left: 3px solid var(--c-accent);
  font-family: var(--font-heading); font-style: italic; font-size: 1.12rem; color: #444;
  background: rgba(176, 141, 87, .07);
}
.prose img { border-radius: var(--radius); margin: 1.4em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid rgba(0, 0, 0, .12); padding: .55em .7em; text-align: left; }
.prose th { background: rgba(0, 0, 0, .04); }
.prose a { text-decoration: underline; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-block; padding: .7em 1.4em; background: var(--c-primary); color: #fff;
  border-radius: var(--radius); text-decoration: none; border: 1px solid var(--c-primary);
  font-size: .95rem; letter-spacing: .02em; transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
}
.btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }

/* ---------------------------------------------------------------- Hörbuch */
.audiobook-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: calc(var(--space) * 1.6); align-items: start; }
.audiobook-cover img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); width: 100%; }
.audiobook-main { min-width: 0; }
.hint { font-size: .85rem; color: var(--c-muted); }

/* ---------------------------------------------------------------- Audio player */
.audio-player {
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  padding: 1.05rem 1.25rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
  display: flex; flex-direction: column; gap: .75rem;
}
.ap-head { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ap-badge {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  color: var(--c-accent); background: rgba(176, 141, 87, .14); padding: .15rem .5rem; border-radius: 999px;
}
.ap-title { font-family: var(--font-heading); font-size: .96rem; color: var(--c-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-main { display: flex; align-items: center; gap: .95rem; }
.ap-btn {
  border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 68%, var(--c-accent)));
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  box-shadow: 0 8px 20px rgba(31, 58, 95, .28); transition: transform .16s, box-shadow .16s, filter .16s;
}
.ap-btn:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.08); box-shadow: 0 12px 24px rgba(31, 58, 95, .34); }
.ap-btn:active { transform: scale(.98); }
.ap-svg-pause { display: none; }
.ap-btn.is-playing .ap-svg-play { display: none; }
.ap-btn.is-playing .ap-svg-pause { display: block; }
.ap-track { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.ap-seek, .ap-vol {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; cursor: pointer; outline: none;
}
.ap-seek { background: linear-gradient(to right, var(--c-accent) var(--ap-pct, 0%), rgba(0, 0, 0, .14) var(--ap-pct, 0%)); }
.ap-vol { width: 82px; height: 5px; background: linear-gradient(to right, var(--c-primary) var(--ap-vol-pct, 100%), rgba(0, 0, 0, .14) var(--ap-vol-pct, 100%)); }
.ap-seek::-webkit-slider-thumb, .ap-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-primary); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .28); transition: transform .12s;
}
.ap-seek:hover::-webkit-slider-thumb, .ap-vol:hover::-webkit-slider-thumb { transform: scale(1.18); background: var(--c-accent); }
.ap-seek::-moz-range-thumb, .ap-vol::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--c-primary); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .28);
}
.ap-times { display: flex; justify-content: space-between; font-size: .76rem; color: var(--c-muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.ap-controls { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .45rem; border-top: 1px solid rgba(0, 0, 0, .07); }
.ap-group { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ap-pill {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgba(0, 0, 0, .11);
  background: rgba(255, 255, 255, .75); color: var(--c-primary); padding: .32rem .68rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.ap-pill:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.ap-volume { display: flex; align-items: center; gap: .45rem; }
.ap-iconbtn {
  border: 0; background: rgba(0, 0, 0, .06); color: var(--c-primary); width: 32px; height: 32px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s;
}
.ap-iconbtn:hover { background: var(--c-primary); color: #fff; }
.ap-svg-muted { display: none; }
.ap-iconbtn.is-muted .ap-svg-vol { display: none; }
.ap-iconbtn.is-muted .ap-svg-muted { display: block; }

/* ---------------------------------------------------------------- Adventskalender */
.advent-head { text-align: center; max-width: 720px; margin: 0 auto calc(var(--space) * 2); }
.advent-grid {
  display: grid; gap: clamp(.6rem, 1.4vw, 1.1rem);
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.advent-door {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border-radius: calc(var(--radius) * 1.5); overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1); box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.advent-door:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 0, 0, .12); }
.door-face { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #f3ede2, #e6dccb); }
.door-face img { width: 100%; height: 100%; object-fit: cover; }
.door-number { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--c-primary); }
.door-caption { padding: .55rem .6rem .7rem; font-size: .78rem; text-align: center; }
.door-title { color: var(--c-primary); font-weight: 600; }
.door-date { color: var(--c-muted); }
.advent-door.is-locked { filter: saturate(.5); }
.advent-door.is-locked .door-face { background: repeating-linear-gradient(45deg, #ece6dc, #ece6dc 10px, #e3dbcd 10px, #e3dbcd 20px); }
.advent-door.is-locked::after {
  content: "🔒"; position: absolute; top: .4rem; right: .5rem; font-size: .8rem; opacity: .7;
}
.advent-door.is-open { border-color: rgba(176, 141, 87, .6); }
.advent-door.is-today { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent), 0 16px 32px rgba(176, 141, 87, .25); }
.advent-door.is-today .door-face { background: linear-gradient(145deg, #fdf6e9, #f3e3c6); }

/* Varianten fuer die Tuerchen-Gestaltung */
.advent-style-festive .advent-door { border-color: rgba(176, 141, 87, .45); background: #fffcf6; }
.advent-style-festive .advent-door.is-open .door-face { background: linear-gradient(145deg, #f9eed9, #ebd4aa); }
.advent-style-festive .door-number { color: var(--c-accent); }
.advent-style-minimal .advent-door { box-shadow: none; border-radius: 0; border-color: rgba(0, 0, 0, .14); }
.advent-style-minimal .advent-door .door-face { background: #f8f6f2; }
.advent-style-cards .advent-door { border-radius: 18px; box-shadow: 0 12px 28px rgba(0, 0, 0, .09); }

.door-locked { display: flex; justify-content: center; width: 100%; padding: calc(var(--space) * 1) 0; }
body.door-standalone .door-locked-inner {
  max-width: 560px; width: 100%; text-align: center; background: rgba(255, 255, 255, .20);
  backdrop-filter: blur(6px) saturate(115%); -webkit-backdrop-filter: blur(6px) saturate(115%);
  border-radius: calc(var(--radius) * 2); padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .38);
  color: #161c24; text-shadow: 0 1px 12px rgba(255, 255, 255, .75);
}
body.door-standalone { background: #182230; }
.door-backdrop {
  position: fixed; inset: 0; background-size: cover; background-position: center;
  opacity: 1; pointer-events: none; z-index: -2;
}
.door-backdrop::after {
  content: ""; position: absolute; inset: 0; background: rgba(12, 16, 24, .14);
}
body.is-door-ended-full .door-stage { padding: 0 0 2.5rem; align-items: flex-start; }
body.is-door-ended-full .door-page { width: 100%; max-width: none; }
.door-end-full:not([hidden]) { width: 100%; display: flex; flex-direction: column; align-items: center; }
.door-end-media { margin: 0; width: 100%; }
.door-end-media img { width: 100%; height: auto; display: block; }
.door-end-footer { width: min(100% - 2rem, 780px); margin: 1.5rem auto 0; text-align: center; }
body.door-standalone .door-end-footer-compact { width: auto; padding: 1rem 1.4rem; }
.door-end-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.door-end-footer-compact .door-end-actions { margin-top: 0; }
.door-stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
}
.door-page { width: min(100%, 780px); }
body.door-standalone .door-card {
  background: rgba(255, 255, 255, .20);
  backdrop-filter: blur(6px) saturate(115%); -webkit-backdrop-filter: blur(6px) saturate(115%);
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--radius) * 2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .38);
  color: #161c24; text-shadow: 0 1px 12px rgba(255, 255, 255, .75);
}
body.door-standalone .door-release,
body.door-standalone .eyebrow { text-shadow: 0 1px 10px rgba(255, 255, 255, .85); }
.door-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px;
  border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-heading);
  font-size: 1.8rem; margin-bottom: 1rem;
}
.door-message { font-size: 1.1rem; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-accent); letter-spacing: .05em; }
.door-release { color: var(--c-muted); font-size: .88rem; }
.breadcrumb { font-size: .85rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--c-muted); }
.door-audio { margin: 1.4rem 0; }
.door-back { margin-top: 2rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--c-primary); color: rgba(255, 255, 255, .82); margin-top: calc(var(--space) * 3); }
.footer-inner {
  max-width: var(--content-width); margin: 0 auto; padding: calc(var(--space) * 2) 1.25rem;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start;
}
.footer-name { font-family: var(--font-heading); font-size: 1.35rem; color: #fff; }
.footer-text { font-size: .9rem; max-width: 32ch; }
.nav-footer { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.nav-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .9rem; }
.nav-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: .5rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: .85rem;
}
.social-link:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .15); padding: 1rem 1.25rem; font-size: .8rem;
  display: flex; justify-content: space-between; max-width: var(--content-width); margin: 0 auto;
  color: rgba(255, 255, 255, .6);
}
.footer-admin { color: rgba(255, 255, 255, .45); text-decoration: none; }
body.footer-minimal .footer-inner { padding-bottom: 1rem; }
body.footer-columns .footer-inner { align-items: stretch; }
body.footer-columns .footer-brand { flex: 1 1 260px; }

/* ---------------------------------------------------------------- Flash */
.site-flashes { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 200; width: min(92vw, 520px); }
.flash { padding: .7rem 1rem; border-radius: var(--radius); margin-top: .5rem; font-size: .9rem; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.flash-success { border-left: 4px solid #2e7d4f; }
.flash-error { border-left: 4px solid #b3261e; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .mobile-nav.is-open { display: block; }
  .nav-mobile { padding: .6rem 1.25rem 1rem; }
  .nav-mobile > li > a { display: block; padding: .6rem .2rem; text-decoration: none; color: var(--c-text); border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-mobile .submenu { list-style: none; padding-left: 1rem; display: none; }
  .nav-mobile li.is-expanded > .submenu { display: block; }
  .nav-mobile .sub-toggle { float: right; background: none; border: 0; font-size: 1rem; padding: .2rem .4rem; }
  body.nav-side .site-body { grid-template-columns: 1fr; }
  .site-side { display: none; }
  .audiobook-grid { grid-template-columns: 1fr; }
  .audiobook-cover { max-width: 260px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-inner { padding: .8rem 1rem; }
  .site-body { padding: 1.4rem 1rem; }
  .advent-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .ap-vol { width: 58px; }
  .ap-btn { width: 46px; height: 46px; }
  .footer-inner { flex-direction: column; gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .site-side, .nav-toggle, .audio-player { display: none !important; }
  body { background: #fff; }
}
