/* ==========================================================================
   Schafmoor · Basis
   Gemeinsam für Landingpage, Danke-Seite und (später) Kalender.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, SIL Open Font License) ---------- */
@font-face { font-family: 'Cinzel Decorative'; src: url('../fonts/cinzel-decorative-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel Decorative'; src: url('../fonts/cinzel-decorative-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben (rosa-schaf-colors.html) */
  --magenta: #C050BA;
  --magenta-dunkel: #A83CA0;
  --rosa: #F0B8E0;
  --classic-pink: #F5C8E8;
  --soft-pink: #FCE4F3;
  --blush: #FDF0F9;
  --aubergine: #2A0A20;

  /* Schafmoor-Stimmung (aus den Bildern) */
  --nacht-0: #06051a;
  --nacht-1: #0d0b29;
  --nacht-2: #19123d;
  --nacht-violett: #2b1650;
  --gold: #EBC063;
  --gold-hell: #FFE7A8;
  --gold-dunkel: #B07F2A;
  --kerzenlicht: #FFB75A;

  /* Text auf Nacht */
  --text: #F7EEF6;
  --text-leise: #CDBFD8;
  --text-auf-aubergine: var(--classic-pink);

  /* Verläufe */
  --gold-verlauf: linear-gradient(180deg, #FFF4CC 0%, #F6D27A 38%, #D19B38 68%, #FFE09A 100%);
  --pink-verlauf: linear-gradient(180deg, #FFE6F6 0%, var(--rosa) 35%, #E07CD3 65%, var(--magenta) 100%);

  /* Schrift */
  --font-titel: 'Cinzel Decorative', 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-caps: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-text: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Maße */
  --rand: clamp(1rem, 4vw, 3rem);
  --inhalt-breit: 72rem;
  --radius: 14px;
  --schatten-glow-gold: 0 0 18px rgba(235, 192, 99, .45), 0 0 42px rgba(235, 192, 99, .2);
  --schatten-glow-pink: 0 0 18px rgba(192, 80, 186, .55), 0 0 48px rgba(192, 80, 186, .25);

  /* Bewegung */
  --ease-weich: cubic-bezier(.22, .61, .36, 1);
  --ease-tor: cubic-bezier(.7, 0, .25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--nacht-1);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--rosa); text-underline-offset: .18em; }
a:hover { color: var(--classic-pink); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: .85em 1.6em;
  border: 0; border-radius: 999px;
  font-family: var(--font-text); font-weight: 700; font-size: 1.2rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: transform .25s var(--ease-weich), box-shadow .25s, background-color .25s;
}
.btn-primaer {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 6px 24px rgba(192, 80, 186, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primaer:hover { background: var(--magenta-dunkel); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(192, 80, 186, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-gold {
  background: rgba(13, 11, 41, .45);
  color: var(--gold-hell);
  border: 1.5px solid rgba(235, 192, 99, .7);
  font-size: 1.05rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-gold:hover { color: #fff; border-color: var(--gold-hell); box-shadow: var(--schatten-glow-gold); }

/* ---------- Musik-Button (immer sichtbar, unten rechts) ---------- */
.musik-btn {
  position: fixed; bottom: max(.9rem, env(safe-area-inset-bottom)); right: max(.9rem, env(safe-area-inset-right));
  z-index: 90;
  width: 2.6rem; height: 2.6rem; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(235, 192, 99, .55);
  background: rgba(6, 5, 26, .55);
  color: var(--gold-hell);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s, opacity .4s;
}
.musik-btn:hover { border-color: var(--gold-hell); box-shadow: var(--schatten-glow-gold); }
.musik-btn svg { width: 1.4rem; height: 1.4rem; }
.musik-btn .welle { transition: opacity .3s; }
.musik-btn[aria-pressed='false'] .welle { opacity: 0; }
.musik-btn .stumm { opacity: 0; transition: opacity .3s; }
.musik-btn[aria-pressed='false'] .stumm { opacity: 1; }
.musik-btn[aria-pressed='true'] .welle { animation: welle 2.4s ease-in-out infinite; }
.musik-btn[aria-pressed='true'] .welle-2 { animation-delay: .3s; }
@keyframes welle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- Overlay (Trailer u. Ä.) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: var(--rand);
  background: var(--nacht-0);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility 0s .35s;
}
.overlay.offen { opacity: 1; visibility: visible; transition: opacity .35s; }
.overlay-inhalt { position: relative; width: min(100%, 60rem); }
.overlay-schliessen {
  position: absolute; top: -3.25rem; right: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid rgba(235, 192, 99, .6); background: rgba(6, 5, 26, .7); color: var(--gold-hell);
  font-size: 1.5rem; line-height: 1;
}
.overlay video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); box-shadow: 0 20px 80px rgba(0, 0, 0, .6), var(--schatten-glow-pink); }

/* ---------- Platzhalter (sichtbar, damit nichts vergessen wird) ---------- */
.platzhalter {
  display: grid; place-items: center; gap: .4rem;
  min-height: 8rem; padding: 1.25rem;
  border: 2px dashed rgba(235, 192, 99, .6); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, rgba(235, 192, 99, .05) 0 12px, transparent 12px 24px);
  color: var(--gold-hell);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .9rem;
  text-align: center;
}
.text-platzhalter {
  background: rgba(235, 192, 99, .14);
  outline: 1px dashed rgba(235, 192, 99, .55);
  border-radius: 3px; padding: 0 .25em;
  color: var(--gold-hell);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .88em;
}

/* Fehlender Link: sichtbar markiert */
a.link-fehlt { outline: 1px dashed rgba(235, 192, 99, .7); outline-offset: 2px; cursor: help; }
a.link-fehlt::after { content: ' [URL fehlt]'; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75em; color: var(--gold-hell); }

/* ==========================================================================
   Footer (alle Seiten)
   ========================================================================== */
.fuss {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 3.5rem var(--rand) max(3rem, env(safe-area-inset-bottom));
  background: var(--aubergine);
  color: var(--text-auf-aubergine);
  text-align: center;
}
.fuss-logo { width: 8.5rem; height: auto; }
.fuss-claim { font-family: var(--font-caps); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; }
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; font-size: .92rem; }
.fuss-links a { color: var(--text-auf-aubergine); }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
