/* ============================================================
   Sophie Roland-Zahri — Design-Fundament (V3)
   Eine einzige Quelle für Farbe, Typografie, Abstand, Bewegung
   und die Einwilligungs-Bausteine. Wird von allen Seiten geladen:
   Startseite, Leistungsseiten, Impressum, Datenschutz.
   ============================================================ */

:root {
  /* --- Farbe: Basiswerte (nur hier definiert) --- */
  --gold-rgb: 191,170,105;
  --white-rgb: 255,255,255;
  --ink-rgb: 17,17,17;
  --star-rgb: 242,201,76;

  --c-gold: #BFAA69;        /* Marken-Akzent — das einzige Gold */
  --c-gold-hi: #D4B45A;     /* Akzent hell / Hover */
  --c-gold-text: #FBF2DC;   /* Gold als Schriftfarbe (klein) — lesbar auf Rosé */
  --c-gold-display: #EFE3C0;/* Gold für große Kursivzeilen — Markenzeichen */
  --c-cream: #F5EFE6;       /* heller Text */
  --c-cream-hi: #FFF8F0;    /* Hover auf hellen Flächen */
  --c-white: #FFFFFF;
  --c-ink: #111111;         /* Text auf hellem Grund */
  --c-ink-soft: #2B2B2B;    /* Ink, aufgehellt — Hover auf dunklen Buttons */
  --c-star: #F2C94C;        /* Bewertungssterne */
  --c-wa: #25D366;          /* WhatsApp Brand */
  --c-wa-dark: #1EBE5A;
  --c-success: #CFF7DA;
  --c-error: #FFE0E0;

  --rose-bg-1: #AF363C;     /* Markenrosé — Grundton (abgedunkelt für WCAG-AA-Textkontrast) */
  --rose-bg-2: #95373D;     /* dunkler */
  --rose-bg-3: #9F2D34;     /* heller (relativ) */
  --rose-deep: #7A3438;     /* Tiefton für Flächen */
  --rose-deep-hi: #8F3E43;  /* Tiefton, Hover */
  --rose-night: #2A0F12;    /* dunkelster Ton */
  --accent-ink: var(--c-gold);

  /* --- Typografie --- */
  --font-serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* --- Abstände (8px-Raster) --- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* --- Radien --- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* --- Elevation --- */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.18);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.28);
  --shadow-xl: 0 20px 56px rgba(0,0,0,0.35);
  --shadow-card: 0 18px 40px rgba(0,0,0,0.2);
  --shadow-gold: 0 12px 32px rgba(var(--gold-rgb),0.25);
  --overlay-dark: rgba(0,0,0,0.24);

  /* --- Bewegung: eine Skala für die ganze Seite --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 150ms;   /* Mikro: Farbe, Opazität */
  --dur-2: 240ms;   /* Standard: Hover, Buttons */
  --dur-3: 400ms;   /* Layout: Panels, Navigation */
  --dur-4: 700ms;   /* Scroll-Einblendungen */

  /* --- Fokus (Barrierefreiheit) --- */
  --focus-ring: 0 0 0 3px rgba(var(--gold-rgb),0.95), 0 0 0 6px rgba(0,0,0,0.4);
}

/* Einheitlicher, sichtbarer Fokus für Tastaturnutzung (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}
/* ============================================================
   MOTION LAYER (Framer Motion / motion.dev)
   Elemente werden nur versteckt, wenn JavaScript aktiv ist.
   Ohne JS bleibt der gesamte Inhalt sichtbar.
   ============================================================ */
.js [data-motion] { opacity: 0; will-change: opacity, transform; }
.js [data-motion="up"]    { transform: translateY(28px); }
.js [data-motion="left"]  { transform: translateX(-28px); }
.js [data-motion="right"] { transform: translateX(28px); }
.js [data-motion="scale"] { transform: scale(0.96); }
.js .motion-hidden { opacity: 0; }
[data-motion].is-inview { will-change: auto; }

/* Alte Reveal-Klassen: ohne JS immer sichtbar */
.rv, .rl, .rr { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(32px); }
.js .rl { opacity: 0; transform: translateX(-32px); }
.js .rr { opacity: 0; transform: translateX(32px); }
.js .rv.in, .js .rl.in, .js .rr.in { opacity: 1; transform: translate(0); }

/* ============================================================
   COOKIE- / EINWILLIGUNGS-BANNER (DSGVO)
   ============================================================ */

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9991;
  background: rgba(20, 6, 12, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(var(--gold-rgb),0.28);
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  display: none;
  box-shadow: 0 -24px 64px rgba(0,0,0,0.45);
}
.cookie-banner[data-open="true"] { display: block; }

.cookie-content { max-width: 980px; margin: 0 auto; }

.cookie-title {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 600; line-height: 1.2;
  margin: 0 0 var(--sp-3); color: var(--c-cream);
  display: flex; align-items: center; gap: var(--sp-3);
}
.cookie-title::before {
  content: ""; width: 26px; height: 26px; flex: 0 0 26px;
  background: var(--c-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 3.5 3.5 0 0 1-4.4-4.4A3.5 3.5 0 0 1 12 2Z'/%3E%3Ccircle cx='9' cy='10' r='1.3'/%3E%3Ccircle cx='14' cy='14.5' r='1.3'/%3E%3Ccircle cx='8.5' cy='15' r='1'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 3.5 3.5 0 0 1-4.4-4.4A3.5 3.5 0 0 1 12 2Z'/%3E%3Ccircle cx='9' cy='10' r='1.3'/%3E%3Ccircle cx='14' cy='14.5' r='1.3'/%3E%3Ccircle cx='8.5' cy='15' r='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cookie-text {
  font-size: 15px; line-height: 1.7;
  color: rgba(var(--white-rgb),0.86);
  margin: 0 0 var(--sp-4); max-width: 74ch;
}
.cookie-text strong { color: var(--c-cream); font-weight: 500; }

.cookie-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
}

.cookie-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.cookie-btn-accept { background: var(--c-gold); color: var(--c-ink); font-weight: 600; }
.cookie-btn-accept:hover { background: var(--c-gold-hi); transform: translateY(-2px); }

.cookie-btn-necessary {
  background: rgba(var(--white-rgb),0.06);
  color: rgba(var(--white-rgb),0.94);
  border-color: rgba(var(--white-rgb),0.22);
}
.cookie-btn-necessary:hover { background: rgba(var(--white-rgb),0.14); border-color: rgba(var(--white-rgb),0.34); }

.cookie-btn-settings {
  background: transparent; color: rgba(var(--white-rgb),0.8);
  border-color: rgba(var(--white-rgb),0.18);
}
.cookie-btn-settings:hover { color: var(--c-cream); border-color: rgba(var(--gold-rgb),0.6); }

.cookie-link {
  color: var(--c-gold); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2);
}
.cookie-link:hover { color: var(--c-gold-hi); }

/* Detail-Einstellungen */
.cookie-details {
  margin: var(--sp-4) 0 0; padding-top: var(--sp-4);
  border-top: 1px solid rgba(var(--white-rgb),0.12);
  display: grid; gap: var(--sp-3);
}
.cookie-details[hidden] { display: none; }

.cookie-option {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3);
  align-items: start;
  background: rgba(var(--white-rgb),0.04);
  border: 1px solid rgba(var(--white-rgb),0.1);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
}
.cookie-option input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px;
  accent-color: var(--c-gold); cursor: pointer;
}
.cookie-option input[disabled] { opacity: 0.55; cursor: not-allowed; }
.cookie-option-name {
  display: block; font-size: 15px; font-weight: 500; color: var(--c-cream);
  margin-bottom: 2px;
}
.cookie-option-desc { font-size: 13.5px; line-height: 1.6; color: rgba(var(--white-rgb),0.7); }
.cookie-option-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--c-gold); margin-left: var(--sp-2);
}

/* Fußzeilen-Link zum Widerruf */
.consent-reopen {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: inherit; color: inherit;
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
}

@media (max-width: 720px) {
  .cookie-banner { padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); max-height: 88vh; overflow-y: auto; }
  .cookie-title { font-size: 20px; }
  .cookie-text { font-size: 14px; }
  .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-btn { width: 100%; }
  .cookie-link { justify-content: center; }
}

/* ============================================================
   GOOGLE MAPS — 2-KLICK-LÖSUNG
   Google wird erst nach aktivem Klick kontaktiert.
   ============================================================ */
.maps-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4); text-align: center;
  padding: var(--sp-6);
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb),0.55), rgba(var(--ink-rgb),0.78)),
    repeating-linear-gradient(45deg, rgba(var(--gold-rgb),0.07) 0 12px, transparent 12px 24px),
    var(--rose-bg-2);
}
.maps-consent-icon {
  width: 44px; height: 44px; background: var(--c-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.maps-consent-h {
  font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px);
  font-weight: 600; color: var(--c-cream); line-height: 1.25;
}
.maps-consent-txt {
  font-size: 14.5px; line-height: 1.7; max-width: 46ch;
  color: rgba(var(--white-rgb),0.82);
}
.maps-consent-txt a { color: var(--c-gold); text-decoration: underline; text-underline-offset: 3px; }
.maps-consent-btn {
  min-height: 48px; padding: 13px 28px;
  background: var(--c-gold); color: var(--c-ink);
  border: none; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.maps-consent-btn:hover { background: var(--c-gold-hi); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.maps-consent-alt {
  font-size: 13.5px; color: rgba(var(--white-rgb),0.75);
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.maps-consent-alt:hover { color: var(--c-cream); }
.maps-consent-remember { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: rgba(var(--white-rgb),0.72); cursor: pointer; }
.maps-consent-remember input { width: 18px; height: 18px; accent-color: var(--c-gold); }

/* ============================================================
   REDUZIERTE BEWEGUNG (WCAG 2.3.3 / prefers-reduced-motion)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-motion], .js .rv, .js .rl, .js .rr, .js .motion-hidden {
    opacity: 1 !important; transform: none !important;
  }
  .cur, .cur-ring { display: none !important; }
}

/* Zeigerlose Eingabe (Touch): Systemcursor beibehalten */
@media (hover: none), (pointer: coarse) {
  body, a, button, .nav-logo, .nav-links a { cursor: auto; }
}
