/* =====================================================================
   Frame Flowers Events – Stylesheet
   Design-Register: editorial (Fotografie führt, Typografie bleibt ruhig)
   Alle Farben/Abstände/Radien kommen aus Tokens – keine Einzelwerte.
   ===================================================================== */

/* ---------- 1. Tokens ---------------------------------------------- */
:root {
  /* Farben: Rollen, nicht Farbnamen */
  --paper:        #fcfbf9;   /* Seitenhintergrund */
  --band:         #edeae3;   /* abgesetzte Bänder */
  --surface:      #ffffff;   /* Karten, Formulare */
  --ink:          #1b241e;   /* Fließtext, Überschriften */
  --ink-muted:    #5b6159;   /* Sekundärtext */
  --ink-invert:   #f4f2ec;   /* Text auf dunklem Grund */
  --cypress:      #2f4536;   /* Akzent = primäre Aktion, dunkle Bänder */
  --cypress-deep: #22331f;
  --olive:        #5a6651;   /* Linien, Icons, Hover */
  --line:         #dcd7cc;   /* Haarlinien */
  --focus:        #8a6f3c;   /* Fokusring, deutlich sichtbar auf beiden Gründen */

  /* Abstände: 4er-Skala */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Typografie */
  --font-display: "Alegreya", Georgia, "Times New Roman", serif;
  --font-text: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1rem; --t-md: 1.125rem;
  --t-lg: 1.5rem;  --t-xl: 2rem;     --t-2xl: 2.75rem;

  /* Form */
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-1: 0 1px 2px rgba(27, 36, 30, .06);
  --shadow-2: 0 8px 28px rgba(27, 36, 30, .10);

  /* Bewegung */
  --dur-micro: 120ms;
  --dur-std: 200ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 660px;
}

/* ---------- 2. Basis ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--s4);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, var(--t-2xl)); }
h2 { font-size: clamp(1.6rem, 3.6vw, var(--t-xl)); }
h3 { font-size: var(--t-lg); line-height: 1.25; }

p { margin: 0 0 var(--s4); max-width: 68ch; }

a { color: var(--cypress); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive); }

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

ul { padding-left: 1.1em; }
li { margin-bottom: var(--s2); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--cypress); color: var(--ink-invert);
  padding: var(--s3) var(--s4); z-index: 100; border-radius: var(--radius-md);
  transition: top var(--dur-micro) var(--ease);
}
.skip-link:focus { top: var(--s4); color: var(--ink-invert); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Layout-Bausteine ------------------------------------- */
.wrap { width: min(100% - 2 * var(--s5), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--s5), var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: clamp(var(--s7), 8vw, var(--s9)); }
.section--band { background: var(--band); }
.section--dark { background: var(--cypress); color: var(--ink-invert); }
.section--dark h2, .section--dark h3 { color: var(--ink-invert); }
.section--dark a { color: var(--ink-invert); }

.section-intro { max-width: 46ch; margin-bottom: var(--s7); }
.section-intro p { color: var(--ink-muted); font-size: var(--t-md); margin-bottom: 0; }
.section--dark .section-intro p { color: rgba(244, 242, 236, .82); }

/* Fokusring auf dunklen Flächen: heller Ton, sonst zu schwacher Kontrast */
.section--dark, .topbar, .site-footer, .hero { --focus: #e8c988; }

/* ---------- 4. Kopfzeile -------------------------------------------- */
.topbar {
  background: var(--cypress-deep);
  color: rgba(244, 242, 236, .9);
  font-size: var(--t-sm);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: center; justify-content: space-between;
  padding-block: var(--s2);
}
.topbar a { color: rgba(244, 242, 236, .9); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.langswitch { display: flex; gap: var(--s3); align-items: center; }
.langswitch a[aria-current="true"] { font-weight: 700; text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding-block: var(--s4);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: 54px; border-radius: var(--radius-sm); display: block; }
.footer-logo {
  width: 88px; height: 88px; border-radius: var(--radius-sm);
  margin-bottom: var(--s4);
  outline: 1px solid rgba(244, 242, 236, .25);  /* hebt das dunkle Logo vom dunklen Grund ab */
}

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  text-decoration: none; color: var(--ink); font-size: var(--t-sm);
  padding-block: var(--s2); border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--olive); }
.nav a[aria-current="page"] { border-bottom-color: var(--cypress); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--s2) var(--s3);
  font: inherit; font-size: var(--t-sm); color: var(--ink); cursor: pointer;
}

/* ---------- 5. Buttons ---------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font-text); font-size: var(--t-base);
  font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: var(--s3) var(--s5); min-height: 44px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  transition: background-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.btn--primary { background: var(--cypress); color: var(--ink-invert); }
.btn--primary:hover { background: var(--cypress-deep); color: var(--ink-invert); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(47, 69, 54, .08); color: var(--ink); }
.section--dark .btn--primary { background: var(--ink-invert); color: var(--cypress-deep); }
.section--dark .btn--primary:hover { background: #fff; color: var(--cypress-deep); }
.section--dark .btn--ghost { color: var(--ink-invert); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- 6. Hero -------------------------------------------------- */
.hero { position: relative; background: var(--cypress-deep); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,22,.25) 0%, rgba(20,28,22,.30) 45%, rgba(20,28,22,.82) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: clamp(460px, 78vh, 760px);
  display: flex; align-items: flex-end;
  padding-block: var(--s8) var(--s7);
}
.hero__content { max-width: 30ch; color: var(--ink-invert); }
.hero h1 { color: var(--ink-invert); margin-bottom: var(--s4); }
.hero__lead {
  font-size: var(--t-md); color: rgba(244, 242, 236, .92);
  max-width: 46ch; margin-bottom: var(--s5);
}
.hero .btn-row { margin-bottom: 0; }

/* ---------- 7. Kennzahlen ------------------------------------------- */
.facts { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fact { border-top: 1px solid var(--line); padding-top: var(--s4); }
.fact__value { font-family: var(--font-display); font-size: var(--t-xl); line-height: 1; display: block; }
.fact__label { color: var(--ink-muted); font-size: var(--t-sm); }

/* ---------- 8. Text/Bild-Paare -------------------------------------- */
.split {
  display: grid; gap: clamp(var(--s5), 5vw, var(--s8));
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media img { border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
@media (min-width: 900px) {
  .split--reverse .split__media { order: 0; }
  .split--offset { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- 9. Leistungen ------------------------------------------- */
.services { display: grid; gap: var(--s6) var(--s7); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service { border-top: 2px solid var(--cypress); padding-top: var(--s4); }
.service h3 { margin-bottom: var(--s2); }
.service p { color: var(--ink-muted); margin-bottom: 0; }

/* ---------- 10. Ablauf (echte Reihenfolge → Nummern erlaubt) -------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s6); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s5); } }
.step { position: relative; padding-top: var(--s5); border-top: 1px solid var(--line); margin: 0; }
.step__num {
  font-family: var(--font-display); font-size: var(--t-sm); color: var(--olive);
  display: block; margin-bottom: var(--s2);
}
.step h3 { font-size: var(--t-md); margin-bottom: var(--s2); }
.step p { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: 0; }
.section--dark .step { border-top-color: rgba(244,242,236,.35); }
.section--dark .step p { color: rgba(244,242,236,.8); }
.section--dark .step__num { color: rgba(244,242,236,.7); }

/* ---------- 11. Pakete ---------------------------------------------- */
.packages { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.package {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--s6);
  display: flex; flex-direction: column;
}
.package--featured { border-color: var(--cypress); border-width: 2px; }
.package h3 { margin-bottom: var(--s2); }
.package__price { color: var(--olive); font-size: var(--t-sm); margin-bottom: var(--s4); display: block; }
.package ul { margin: 0 0 var(--s5); padding-left: 1.1em; }
.package li { font-size: var(--t-sm); }
.package .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 12. Galerie --------------------------------------------- */
.gallery { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .gallery figure:nth-child(1) img,
  .gallery figure:nth-child(6) img { height: 100%; aspect-ratio: auto; }
}
.gallery figure { margin: 0; }

/* ---------- 13. Presse ---------------------------------------------- */
.press { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; padding: 0; list-style: none; }
.press li { font-size: var(--t-sm); color: var(--ink-muted); margin: 0; }
.press a { color: var(--ink-muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.press a:hover { color: var(--ink); border-bottom-color: var(--olive); }

/* ---------- 14. Zitate ---------------------------------------------- */
.quotes { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { margin: 0; border-left: 2px solid var(--olive); padding-left: var(--s5); }
.quote p { font-family: var(--font-display); font-size: var(--t-md); font-style: italic; }
.quote figcaption { font-size: var(--t-sm); color: var(--ink-muted); }

/* ---------- 15. Formular -------------------------------------------- */
.form { display: grid; gap: var(--s4); max-width: 560px; }
.field { display: grid; gap: var(--s2); }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--s3); min-height: 44px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--cypress); }
.field__hint { font-size: var(--t-xs); color: var(--ink-muted); }
.form__consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm); }
.form__consent input { min-height: auto; width: auto; margin-top: 4px; }

/* ---------- 16. Kontaktdaten ---------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.contact-list dt, .contact-list__label { font-size: var(--t-sm); color: var(--ink-muted); }
.contact-list a { font-size: var(--t-md); }

/* ---------- 17. Fußzeile -------------------------------------------- */
.site-footer { background: var(--cypress-deep); color: rgba(244,242,236,.85); padding-block: var(--s8) var(--s5); }
.site-footer a { color: rgba(244,242,236,.85); }
.site-footer h2, .site-footer h3 { color: var(--ink-invert); font-size: var(--t-md); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--s2); font-size: var(--t-sm); }
.footer-bottom {
  margin-top: var(--s7); padding-top: var(--s4);
  border-top: 1px solid rgba(244,242,236,.2);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: var(--t-xs);
}

/* ---------- 18. WhatsApp-Knopf -------------------------------------- */
/* WhatsApp-Grün der alten Seite. Schrift und Icon dunkel statt weiß:
   Weiß auf diesem Grün erreicht nur 1,9:1 Kontrast, dunkel erreicht 7,7:1. */
:root { --wa: #19d73f; --wa-dark: #14b535; --wa-ink: #0b2e13; }

.wa-float {
  position: fixed; right: var(--s5); bottom: var(--s5); z-index: 60;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  background: var(--wa); color: var(--wa-ink);
  padding: var(--s3) var(--s5); min-height: 48px; border-radius: 999px;
  text-decoration: none; font-size: var(--t-sm); font-weight: 600;
  box-shadow: var(--shadow-2);
  transition: background-color var(--dur-micro) var(--ease);
}
.wa-float:hover { background: var(--wa-dark); color: var(--wa-ink); }
.wa-float__icon { flex: none; }

/* Mobil: volle Breite am unteren Rand, wie auf der bisherigen Seite */
@media (max-width: 767px) {
  .wa-float {
    left: 0; right: 0; bottom: 0;
    border-radius: 10px 10px 0 0;
    padding: var(--s4);
    min-height: 56px;
    font-size: var(--t-base);
    box-shadow: 0 -2px 16px rgba(27, 36, 30, .18);
  }
  /* Platz schaffen, damit die Leiste die Fußzeile nicht überdeckt */
  body { padding-bottom: 56px; }
}

/* ---------- 19. Mobil ------------------------------------------------ */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .brand img { height: 44px; width: 44px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--s5);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding-block: var(--s3); width: 100%; }
  .site-header__inner { position: relative; }
  .hero__inner { min-height: 70vh; }
}

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

/* ---------- 21. Druck ------------------------------------------------ */
@media print {
  .site-header, .topbar, .wa-float, .hero__media { display: none; }
  body { background: #fff; color: #000; }
}
