@import url('../assets/fonts/fonts.css');

/* ---------- Design tokens ---------- */
:root {
  --olive-900: #0c0c0c;
  --olive-800: #e8cf86;
  --olive-700: #93b358;
  --olive-600: #7c9a49;
  --mustard-500: #d9ab3d;
  --mustard-400: #e6bd5c;
  --cream-100: #121212;
  --cream-200: #1a1a1a;
  --cream-300: #2e2e2e;
  --ink-900: #f2f2f0;
  --ink-700: #b8b8b3;
  --white: #ffffff;

  /* Feste Rollen, die sich NICHT mit dem Theme umkehren (immer dunkler Text auf hellem Gold-Button,
     immer helle Footer-Schrift, immer dunkler Player-Hintergrund, immer eine helle Kartenfläche) */
  --on-accent: #141414;
  --footer-text: #f2f2f0;
  --media-bg: #090909;
  --surface: #1e1e1e;

  --font-display: 'Smythe', 'Georgia', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad: clamp(3.5rem, 6vw, 6rem);
  --container-w: 1180px;
  --radius: 10px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
/* Anker-Sprünge werden per JS animiert (main.js), damit die Dauer steuerbar/sichtbar bleibt. */

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--olive-800);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1, h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

p { margin: 0 0 1.1em; }

a { color: var(--olive-700); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--mustard-500);
  outline-offset: 2px;
}

.section-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad) 0;
}

/* Sektionen wechseln sich ab: hell, dunkel, hell, dunkel.
   Helle Sektionen überschreiben die (dunklen) Farb-Tokens lokal, damit Überschriften,
   Links, Karten und Formularfelder darin automatisch passende Farben bekommen. */
.section--dark {
  background: var(--cream-100);
  color: var(--ink-700);
}
.section--light {
  --cream-100: #faf6ec;
  --cream-200: #f2ecd9;
  --cream-300: #e7dfc4;
  --ink-900: #201d12;
  --ink-700: #3a3527;
  --olive-800: #3c4a1e;
  --olive-700: #4b5a2a;
  --olive-600: #5f7134;
  --surface: #ffffff;
  --shadow-soft: 0 12px 30px rgba(32, 29, 18, 0.12);
  background: var(--cream-100);
  color: var(--ink-700);
}
#ueber-uns { background: #1b1b1b; }
#reinhoeren { background: #faf6ec; }
#termine { background: #141414; }
#kontakt { background: #f2ecd9; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background-color: var(--mustard-500);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--mustard-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--cream-300);
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--olive-800);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}
.brand-icon {
  display: inline-block;
  width: 17px;
  height: 19px;
  flex-shrink: 0;
  background-color: var(--olive-800);
  -webkit-mask-image: url('../assets/img/logo-lily-white.png');
  mask-image: url('../assets/img/logo-lily-white.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--olive-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 27px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--olive-700); }
.site-nav .nav-cta {
  background: var(--olive-700);
  color: var(--on-accent);
  padding: 0.55em 1.3em;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--olive-800); color: var(--on-accent); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-100);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--cream-300);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cream-300);
  }
  .site-nav .nav-cta {
    border-radius: 0;
    text-align: center;
    background: var(--olive-700);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: -2;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { top: 0; height: 100%; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,29,18,0.18) 0%, rgba(32,29,18,0.05) 40%, rgba(32,29,18,0.38) 100%);
  z-index: -1;
}
.hero-content {
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.hero-logo {
  width: min(520px, 78vw);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.35));
}
/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-text h1 { margin-bottom: 0.7em; }
.about-photo .lightbox-trigger {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}
.about-photo .lightbox-trigger:hover { transform: scale(1.015); }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.about-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-700);
  opacity: 0.75;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}

/* ---------- Reinhören ---------- */
.reinhoeren-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.reinhoeren-text h2 { margin-bottom: 0.7em; }

@media (max-width: 860px) {
  .reinhoeren-grid { grid-template-columns: 1fr; }
}

.video-facade {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--media-bg);
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: rgba(217, 171, 61, 0.92);
  color: var(--on-accent);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-facade:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--mustard-400);
}

/* ---------- Termine ---------- */
.termine-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.termine-list li {
  background: var(--surface);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.termine-list .termine-empty {
  background: transparent;
  border: 1px dashed var(--olive-600);
  color: var(--olive-700);
  font-style: italic;
  text-align: center;
}
.termine-date {
  display: inline-block;
  font-weight: 700;
  color: var(--olive-700);
  margin-right: 0.6em;
}
.hint {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.facebook-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
}
.facebook-link svg { width: 26px; height: 26px; flex-shrink: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background-color: #f4f4f4;
  color: var(--ink-900);
  font-weight: 400;
}
/* Chrome-Autofill färbt Felder sonst hellblau/gelb: auf dasselbe Hellgrau zwingen */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f4f4f4 inset;
  -webkit-text-fill-color: var(--ink-900);
  caret-color: var(--ink-900);
  transition: background-color 600000s 0s;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 0.85rem; opacity: 0.75; margin: 0; }
.form-status {
  margin: 0;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status[data-state="success"] { color: var(--olive-700); }
.form-status[data-state="error"] { color: #e0785f; }

@media (max-width: 860px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive-900);
  color: var(--footer-text);
  padding: 2rem 0;
  border-top: 1px solid var(--cream-300);
}
.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.footer-inner nav a {
  color: var(--footer-text);
  text-decoration: none;
  margin-left: 1.2rem;
}
.footer-inner nav a:first-child { margin-left: 0; }
.footer-inner nav a:hover { color: var(--mustard-400); }
.footer-inner nav a.footer-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
}
.badge-new {
  display: inline-block;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: var(--mustard-500);
  color: var(--on-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.footer-inner p { margin: 0; opacity: 0.85; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem 5rem;
}
.legal-page h1 { margin-bottom: 0.3em; }
.legal-page h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-900);
  margin-top: 2em;
}
.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Privacy-Hinweis (kein Consent-Banner – reiner Hinweis, da keine Cookies gesetzt werden) ---------- */
.btn-small {
  padding: 0.5em 1.2em;
  font-size: 0.9rem;
}
.privacy-notice {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.privacy-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.privacy-notice[hidden] { display: none; }
.privacy-notice p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.88rem;
  color: var(--ink-700);
}
.privacy-notice strong { color: var(--ink-900); }
.privacy-notice .btn-small { flex-shrink: 0; }

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

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--ink-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Presse-Galerie (Für Veranstalter) ---------- */
.press-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.2rem 0 2em;
}
.press-photo {
  display: block;
  width: 160px;
  flex: 0 0 auto;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-300);
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.press-photo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.press-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.press-photo span {
  display: block;
  padding: 0.5em 0.7em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-900);
}
