/* =====================================================================
   Luxis Puppentheater – Designsystem (Refresh 2026)
   Hell & luftig, Rot als kräftiger Akzent. Verspielt, aber modern.
   ===================================================================== */

@import url("../fonts/fonts.css");

:root {
  /* Farbpalette (Briefing) */
  --rot: #c71919;
  --rot-dunkel: #9c1212;
  --gelb: #feffa9;
  --gelb-hell: #ffff3e;
  --orange: #fca84a;
  --orange-dunkel: #e8902c;
  --akzent-text: #b5560e;         /* dunkler Akzent NUR für kleine Texte (WCAG-AA-Kontrast) */
  --grau: #3e3e3e;
  --blau: #2974d8;
  --blau-dunkel: #1f579e;
  --creme: #fff8f0;
  --creme-tief: #fbeede;

  /* helle, luftige Basis */
  --bg: #fffdf9;
  --bg-akzent: #fdf4ea;           /* sanfte Sektionsfläche */
  --flaeche: #ffffff;             /* Karten */
  --text: #2c2622;
  --text-leise: #6a635c;
  --rand: rgba(62, 40, 30, 0.10);
  --schatten: 0 18px 48px -20px rgba(120, 30, 20, 0.30);
  --schatten-klein: 0 8px 22px -12px rgba(120, 30, 20, 0.28);
  --ring: 0 0 0 4px rgba(252, 168, 74, 0.30);

  /* Schriften */
  --font-headline: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-akzent: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* Maße */
  --container: 1160px;
  --radius: 22px;
  --radius-klein: 14px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* Kopierschutz (nur Abschreckung): Text-Markieren unterbinden */
  -webkit-user-select: none; -ms-user-select: none; user-select: none;
}

img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; }

a { color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: var(--rot-dunkel); }

h1, h2, h3 {
  font-family: var(--font-headline);
  line-height: 1.12;
  color: var(--rot);
  font-weight: 500;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.02rem + 0.9vw, 1.55rem); }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 6px; }
/* Auf dunklen Flächen einen hellen Fokus-Ring verwenden (blau wäre dort kaum sichtbar) */
.site-footer a:focus-visible,
.kontakt a:focus-visible,
.kontakt .btn:focus-visible,
.hero-dots button:focus-visible,
.lightbox button:focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blau); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-klein) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
main { flex: 1 0 auto; }

.section { padding-block: clamp(2.4rem, 1.6rem + 4vw, 5rem); }
.section--soft { background: var(--bg-akzent); }
.section__head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(1.4rem, 1rem + 2vw, 2.6rem); }

.card {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: clamp(1.5rem, 1rem + 2.6vw, 3rem);
}

.lead { font-size: 1.18em; color: var(--text-leise); }
.text-center { text-align: center; }

/* dekorative gelbe Sternchen-Trennlinie */
.divider {
  border: 0; height: 24px; margin: 0 auto;
  width: min(300px, 60%);
  background:
    radial-gradient(circle at center, var(--orange) 0 4px, transparent 5px) left center/30px 8px repeat-x;
  position: relative; opacity: 0.85;
}
.divider::after {
  content: "✦"; color: var(--rot); position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--bg); padding: 0 0.5rem; font-size: 1.1rem;
}

.augenbraue {
  font-family: var(--font-akzent);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.8rem; font-weight: 700; color: var(--akzent-text);
  margin: 0 0 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  padding: 0.75rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.98rem; }
.btn-primary { background: var(--orange); color: #3a2400; box-shadow: var(--schatten-klein); }
.btn-primary:hover { background: var(--orange-dunkel); color: #3a2400; transform: translateY(-2px); }
.btn-rot { background: var(--rot); color: #fff; box-shadow: var(--schatten-klein); }
.btn-rot:hover { background: var(--rot-dunkel); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--grau); border-color: rgba(62,40,30,0.25); }
.btn-ghost:hover { background: rgba(62,40,30,0.06); color: var(--grau); transform: translateY(-2px); }
.btn-weiss { background: #fff; color: var(--rot); }
.btn-weiss:hover { background: var(--gelb); color: var(--rot-dunkel); transform: translateY(-2px); }

/* ---------- Kopfzeile / Navigation (hell, luftig) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rand);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.8rem);
  color: var(--rot); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.brand:hover { color: var(--rot-dunkel); }
.brand .sparkle { color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.nav-menu { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; color: var(--text); font-weight: 600; text-decoration: none;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu a:hover { background: var(--creme-tief); color: var(--rot); }
.nav-menu a[aria-current="page"] { color: var(--rot); background: var(--creme-tief); }
.nav-menu a[aria-current="page"]::after {
  content: ""; display: block; height: 3px; border-radius: 3px;
  background: var(--orange); margin: 2px 0.3rem 0;
}

.header-cta { flex: none; }

.nav-toggle {
  display: none; background: transparent; border: 2px solid var(--rand);
  border-radius: 12px; padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 26px; height: 3px;
  background: var(--rot); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rand);
    padding: 0.5rem; box-shadow: var(--schatten); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 0.85rem 1rem; }
  .nav-menu a[aria-current="page"]::after { display: none; }
}

/* ---------- Hero (roter Bild-Streifen oben, Inhalt auf hellem Grund) ---------- */
.hero { position: relative; }
/* Roter Streifen mit dem Bühnen-Bild (Bildgrund == --rot -> nahtlos) */
.hero-buehne-band { background: var(--rot); display: grid; place-items: center; overflow: hidden; }
.hero-buehne {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: clamp(190px, 30vw, 400px);
  margin: 0 auto;
}
.hero-inner {
  max-width: 760px; margin-inline: auto; text-align: center;
  padding-block: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
}
.hero-name {
  font-family: var(--font-headline); font-weight: 600; color: var(--rot);
  font-size: clamp(2.5rem, 1.5rem + 5.2vw, 4.8rem);
  line-height: 1.04; margin: 0 0 0.7rem;
}
.hero-motto {
  font-family: var(--font-headline); font-weight: 500; color: var(--text);
  font-size: clamp(1.2rem, 0.95rem + 1.3vw, 1.7rem);
  line-height: 1.25; margin: 0 auto 1rem; max-width: 28ch;
}
.hero-intro { color: var(--text-leise); margin: 0 auto 1.6rem; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.hero-trust {
  margin: 1.6rem auto 0; font-family: var(--font-akzent); font-size: 0.9rem;
  color: var(--text-leise); display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.3rem 1.4rem;
}

/* ---------- Vertrauens-Strip ---------- */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2.4rem;
  padding: 1.1rem 1.4rem; background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten-klein);
}
.trust li { list-style: none; display: flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--text); }
.trust .ic { font-size: 1.3rem; line-height: 1; }
.trust ul { display: contents; margin: 0; padding: 0; }

/* ---------- Anlässe-Teaser (Startseite) ---------- */
.teaser-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-top: 0.5rem;
}
.teaser-card {
  background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius-klein); padding: 1.3rem 1.2rem; text-align: center;
  box-shadow: var(--schatten-klein); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.teaser-card .ic {
  font-size: 1.9rem; display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 0.7rem; border-radius: 50%;
  background: var(--creme-tief);
}
.teaser-card strong { font-family: var(--font-headline); font-weight: 400; font-size: 1.15rem; color: var(--rot); }

/* ---------- Anlässe-Liste (Unterseite) ---------- */
.anlass-liste {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem;
}
.anlass-liste li {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--bg-akzent); border: 1px solid var(--rand);
  border-left: 5px solid var(--orange); border-radius: var(--radius-klein);
  padding: 0.85rem 1.1rem; font-weight: 600;
}
.anlass-liste li::before { content: "★"; color: var(--orange-dunkel); font-size: 1.1rem; flex: none; }
.anlass-liste li.wunsch { border-left-color: var(--rot); background: #fbe6e6; }
.anlass-liste li.wunsch::before { content: "✶"; color: var(--rot); }

/* ---------- Galerie ---------- */
.galerie { margin-top: 0.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.9rem; }
.galerie button {
  padding: 0; border: 5px solid #fff; border-radius: var(--radius-klein);
  overflow: hidden; cursor: pointer; box-shadow: var(--schatten-klein);
  background: #fff; aspect-ratio: 1 / 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.galerie button:hover { transform: translateY(-4px) rotate(-1.2deg); box-shadow: var(--schatten); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.galerie button:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,6,6,0.92); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(92vw, 900px); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radius-klein); border: 5px solid var(--gelb); }
.lightbox figcaption { color: #fff; font-family: var(--font-akzent); margin-top: 0.8rem; }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,0.15); color: #fff;
  border: 2px solid rgba(255,255,255,0.5); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { background: rgba(255,255,255,0.3); }

/* ---------- Bild-Text-Layout (Über mich, Anlässe) ---------- */
.media { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.3rem, 0.8rem + 2.5vw, 2.8rem); align-items: center; }
.media.flip { grid-template-columns: 1.15fr 0.85fr; }
.media img { border-radius: var(--radius); box-shadow: var(--schatten); border: 5px solid #fff; }
@media (max-width: 680px) {
  .media, .media.flip { grid-template-columns: 1fr; }
  .media img { max-width: 360px; margin-inline: auto; }
}

/* ---------- Gästebuch-Stimmen-Teaser (Startseite) ---------- */
.stimmen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.stimme {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten-klein); padding: 1.4rem 1.5rem; position: relative;
}
.stimme::before { content: "❝"; font-family: var(--font-headline); font-size: 2.6rem; color: var(--orange); line-height: 1; display: block; margin-bottom: -0.6rem; }
.stimme blockquote { margin: 0 0 0.6rem; font-size: 1.05rem; }
.stimme .meta { font-family: var(--font-akzent); color: var(--text-leise); font-size: 0.9rem; }
.stimme .meta strong { color: var(--rot); font-weight: 400; }

/* ---------- Gästebuch (Unterseite) ---------- */
.gaeste { margin-top: 0.5rem; display: grid; gap: 1rem; }
.eintrag { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-klein); padding: 1.3rem 1.5rem; position: relative; }
.eintrag::before { content: "❝"; font-family: var(--font-headline); font-size: 2.6rem; color: var(--orange); line-height: 1; display: block; margin-bottom: -0.6rem; }
.eintrag blockquote { margin: 0 0 0.6rem; font-size: 1.06rem; }
.eintrag .meta { font-family: var(--font-akzent); color: var(--text-leise); font-size: 0.9rem; }
.eintrag .meta strong { color: var(--rot); font-weight: 400; }

/* ---------- Kontakt-CTA-Band (das bewusste Rot-Highlight) ---------- */
.kontakt {
  background: var(--rot);
  color: #fff; border-radius: var(--radius);
  padding: clamp(1.8rem, 1.2rem + 3vw, 3.2rem); text-align: center;
  box-shadow: var(--schatten); position: relative; overflow: hidden;
}
.kontakt::after {
  content: "✦ ✦ ✦"; position: absolute; top: 0.8rem; left: 50%; transform: translateX(-50%);
  color: var(--gelb); letter-spacing: 1rem; opacity: 0.5; font-size: 0.8rem;
}
.kontakt h2 { color: #fff; }
.kontakt p { color: rgba(255,255,255,0.92); }
.kontakt a:not(.btn) { color: #fff; font-weight: 700; }
.kontakt-cta { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.kontakt-daten { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: center; font-size: 1.08rem; }
.kontakt-daten strong { font-weight: 700; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--blau-dunkel); color: rgba(255,255,255,0.92); margin-top: auto; padding-block: 2.2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--gelb); }
.site-footer a:hover { color: #fff; }
.footer-links a { color: var(--gelb); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-brand { font-family: var(--font-headline); font-size: 1.35rem; color: #fff; }
.footer-fein { width: 100%; margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* ---------- Scroll-Reveal (dezent) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hilfsklassen ---------- */
.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; }
.no-js-hinweis { color: var(--text-leise); font-style: italic; }

/* ---------- Reduzierte Bewegung respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slider { rotate: 0deg; }
}
