/* ============================================================
   CALLIGRAPHY CUT — Voucher-Landingpage (CC26_050 Golf Edition)
   Mobile-first. Basiert verbindlich auf dem CC Design System.
   ============================================================ */

/* -- FONTS --------------------------------------------------- */
@font-face {
  font-family: "Boldonse";
  src: url("./assets/fonts/Boldonse.otf") format("opentype");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/DMSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Italic wird aus Google Fonts geladen (kein lokales File im Bundle). */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@1,400;1,500&display=swap");

/* -- TOKENS -------------------------------------------------- */
:root {
  --bg-primary:   #0A0014;
  --bg-secondary: #2B0F4D;
  --bg-section:   #15082A;
  --bg-tile:      #140726;
  --bg-overlay:   rgba(10, 0, 20, 0.72);
  --bg-nav:       rgba(10, 0, 20, 0.85);

  --accent-magenta: #E91EFF;
  --accent-violet:  #9D3DF5;

  --fg:        #FFFFFF;
  --fg-muted:  #B89BD9;
  --fg-faint:  #6B5685;
  --rule:      rgba(184, 155, 217, 0.18);

  --font-head: "Boldonse", "Arial Black", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --maxw: 920px;
  --pad-x: clamp(1.25rem, 6vw, 3rem);
  --section-y: clamp(4rem, 14vw, 8rem);

  /* Foto-Slots: hier finale Editorial-Assets einhängen. */
  --img-hero: url("./assets/img/CC26_050_Hero_01.jpg");
}

/* -- RESET --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;        /* verhindert horizontales Verschieben auf Mobile */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg-primary);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 4vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button { font-family: inherit; }

/* -- LAYOUT HELPERS ------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }
.section--panel { background: var(--bg-section); }
.section--deep  { background: var(--bg-secondary); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: clamp(0.24em, 2vw, 0.6em); /* schmal genug, kein Überlauf auf Handys */
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin: 0 0 1.25rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* -- TYPO ---------------------------------------------------- */
.h-display, .h-section, .step__num, .stat {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.35;           /* CC-Regel: Boldonse IMMER 1.35 */
  font-weight: 400;
}
.h-display { font-size: clamp(2.4rem, 11vw, 5rem); }
.h-section { font-size: clamp(1.7rem, 6.5vw, 3rem); margin-bottom: 1.5rem; }
.text-accent { color: var(--accent-magenta); }
.lede { color: var(--fg-muted); max-width: 34ch; }
.body-copy { max-width: 56ch; }
.body-copy + .body-copy { margin-top: 1rem; }
em, .italic { font-style: italic; }

/* -- BUTTONS ------------------------------------------------- */
.cc-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; min-height: 52px;
  background: var(--fg); color: var(--bg-primary);
  text-decoration: none; border: none;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 30px; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, transform 80ms ease;
}
.cc-cta:hover { background: var(--accent-magenta); color: #fff; }
.cc-cta:active { transform: translateY(1px); }
.cc-cta--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule);
}
.cc-cta--ghost:hover { background: transparent; color: #fff; border-color: var(--accent-magenta); }
.cc-cta--full { width: 100%; }
.cc-link-hint {
  display: inline-block; margin-top: 1rem;
  color: var(--fg-muted); font-size: 0.92rem; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.cc-link-hint:hover { color: var(--fg); border-color: var(--accent-magenta); }

/* -- HEADER -------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem var(--pad-x);
  transition: background-color 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}
.site-header__logo {
  font-family: var(--font-head); font-size: 0.8rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--fg);
}
.site-header__nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header__nav a {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--fg-muted);
}
.site-header__nav a:hover { color: var(--fg); }
.site-header__nav a.is-cta { color: var(--fg); }
@media (max-width: 620px) {
  .site-header__nav a:not(.is-cta) { display: none; }
}

/* -- HERO ---------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 6rem; padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--img-hero) 50% 22% / cover no-repeat, #0A0014;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,0,20,0.15) 0%, rgba(10,0,20,0.30) 42%, rgba(10,0,20,0.72) 74%, rgba(10,0,20,0.96) 100%),
    linear-gradient(90deg, rgba(10,0,20,0.55) 0%, rgba(10,0,20,0.10) 45%, rgba(10,0,20,0) 100%);
}
.hero__stamp {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  height: clamp(160px, 22vw, 240px); z-index: 1; opacity: 0.85;
  pointer-events: none;
}
/* Auf schmalen Screens füllt das Foto den Rahmen — Stamp raus, Motiv trägt allein. */
@media (max-width: 720px) { .hero__stamp { display: none; } }
.hero__inner { position: relative; z-index: 2; }
.hero .h-display { margin-bottom: 1.5rem; }
.hero__sub { font-size: clamp(1.05rem, 4.5vw, 1.35rem); font-weight: 500; margin: 0 0 1rem; }
.hero__copy { color: var(--fg-muted); max-width: 46ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }

/* -- VOUCHER-NUTZEN GRID ------------------------------------- */
.benefits {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  margin-top: 2.5rem; background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 560px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit {
  background: var(--bg-primary); padding: 1.75rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.benefit__icon { flex: 0 0 32px; width: 32px; height: 32px; stroke: var(--accent-violet); }
.benefit__title { font-weight: 700; margin: 0 0 0.25rem; }
.benefit__text { color: var(--fg-muted); font-size: 0.95rem; margin: 0; }

/* -- STEPS --------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 2.5rem; }
.step { background: var(--bg-primary); padding: 1.75rem 1.5rem; display: flex; gap: 1.25rem; align-items: baseline; }
.step__num { font-size: clamp(2rem, 9vw, 3.2rem); color: var(--accent-violet); flex: 0 0 auto; }
.step__title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.35rem; }
.step__text { color: var(--fg-muted); margin: 0; font-size: 0.97rem; }

/* Overflow-Schutz: Text-Container in Flex dürfen unter Content-Mindestbreite schrumpfen */
.benefit, .step { min-width: 0; }
.benefit > div, .step > div { min-width: 0; }
.h-display, .h-section, .step__title, .benefit__title { overflow-wrap: break-word; }

/* -- SALONSUCHE ---------------------------------------------- */
.search__controls { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.search__row { display: flex; gap: 0.5rem; }
.search__input {
  flex: 1; min-height: 52px; padding: 0 1rem;
  background: var(--bg-tile); border: 1px solid var(--rule); color: var(--fg);
  font-size: 1rem;
}
.search__input::placeholder { color: var(--fg-faint); }
.search__input:focus { outline: 2px solid var(--accent-magenta); outline-offset: -1px; }
.search__geo {
  flex: 0 0 auto; min-height: 52px; padding: 0 1rem;
  background: var(--bg-tile); border: 1px solid var(--rule); color: var(--fg);
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem;
}
.search__geo:hover { border-color: var(--accent-magenta); }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--rule); background: transparent; color: var(--fg-muted);
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.8rem; cursor: pointer; white-space: nowrap;
  min-height: 40px; transition: all 120ms ease;
}
.chip[aria-pressed="true"] { background: var(--accent-magenta); border-color: var(--accent-magenta); color: #fff; }

#map {
  width: 100%; height: 320px; margin: 1.25rem 0; background: var(--bg-tile);
  border: 1px solid var(--rule);
}
.map-consent {
  height: 320px; margin: 1.25rem 0; border: 1px solid var(--rule); background: var(--bg-tile);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; padding: 1.5rem;
}
.map-consent p { color: var(--fg-muted); max-width: 40ch; margin: 0; font-size: 0.92rem; }

.results { display: grid; gap: 1rem; }
.salon-card {
  background: var(--bg-tile); border-left: 12px solid var(--accent-magenta); border-radius: 20px;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
}
.salon-card.is-active { outline: 2px solid var(--accent-magenta); }
.salon-card__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.salon-card__name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.salon-card__dist { color: var(--accent-violet); font-size: 0.85rem; white-space: nowrap; }
.salon-card__meta { color: var(--fg-muted); font-size: 0.92rem; margin: 0.5rem 0 0; }
.salon-card__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0 1rem; }
.badge {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem; border: 1px solid var(--rule); color: var(--fg-muted); border-radius: 999px;
}
.badge--voucher { color: var(--accent-magenta); border-color: var(--accent-magenta); }
.salon-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.salon-card__actions .cc-cta { min-height: 44px; padding: 11px 20px; font-size: 0.72rem; }
.results__empty { color: var(--fg-muted); text-align: center; padding: 2rem 0; }

/* -- SHARE (Salon nicht dabei) ------------------------------- */
.share-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 560px) { .share-actions { flex-direction: row; flex-wrap: wrap; } }

/* -- FORM ---------------------------------------------------- */
.form { display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 560px; min-width: 0; width: 100%; }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form__field label { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); }
.form__field input, .form__field select {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  min-height: 50px; padding: 0 0.9rem; background: var(--bg-tile);
  border: 1px solid var(--rule); color: var(--fg); font-size: 1rem; font-family: inherit;
}
.form__field input:focus, .form__field select:focus { outline: 2px solid var(--accent-magenta); outline-offset: -1px; }
.form__field input[type="file"] { padding: 0.7rem 0.9rem; }
.form__row { display: grid; gap: 1.1rem; min-width: 0; }
.form__row > * { min-width: 0; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--fg-muted); }
.form__check input { margin-top: 0.2rem; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent-magenta); }
.form__check a { color: var(--accent-magenta); text-decoration: none; }
.form__error { color: #ff7ae0; font-size: 0.85rem; margin: 0.25rem 0 0; }
.form__note { color: var(--fg-faint); font-size: 0.85rem; margin-top: 0.5rem; }
.form-success {
  border: 1px solid var(--accent-magenta); background: var(--bg-tile);
  padding: 2rem 1.5rem; margin-top: 2rem; border-radius: 20px;
}
.form-success h3 { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.35; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: -0.02em; }
.form-success p { color: var(--fg-muted); margin: 0; }
[hidden] { display: none !important; }

/* -- BENEFIT LIST (Nicht-Partner) ---------------------------- */
.benefit-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.85rem; }
.benefit-list li { padding-left: 1.75rem; position: relative; color: var(--fg-muted); }
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 2px; background: var(--accent-violet);
}

/* -- ACCORDION (FAQ / Legal) --------------------------------- */
.accordion { border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2rem 1.25rem 0; position: relative;
  font-weight: 500; font-size: 1.02rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 0; top: 1.1rem;
  font-size: 1.4rem; color: var(--accent-magenta); transition: transform 150ms ease;
}
.accordion details[open] summary::after { content: "–"; }
.accordion__body { padding: 0 0 1.5rem; color: var(--fg-muted); max-width: 60ch; }

/* -- LEGAL --------------------------------------------------- */
.legal-list { color: var(--fg-faint); font-size: 0.85rem; line-height: 1.7; }
.legal-list strong { color: var(--fg-muted); font-weight: 500; }

/* -- FOOTER -------------------------------------------------- */
.site-footer { background: var(--bg-primary); border-top: 1px solid var(--rule); padding-block: 3rem; }
.site-footer__logo { font-family: var(--font-head); font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1.5rem; }
.site-footer nav a { font-size: 0.85rem; color: var(--fg-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--fg); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.social { display: flex; gap: 1rem; }
.social a { color: var(--fg-muted); }
.social a:hover { color: var(--accent-magenta); }
.social svg { width: 22px; height: 22px; }
.site-footer__contact { font-size: 0.85rem; color: var(--fg-muted); text-decoration: none; }

/* -- COOKIE CONSENT ------------------------------------------ */
.consent-bar {
  position: fixed; inset: auto 0 0 0; z-index: 200;
  background: var(--bg-secondary); border-top: 1px solid var(--rule);
  padding: 1rem var(--pad-x);
  display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 720px) { .consent-bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.consent-bar p { margin: 0; font-size: 0.85rem; color: var(--fg-muted); max-width: 62ch; }
.consent-bar__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.consent-bar .cc-cta { min-height: 44px; padding: 10px 20px; font-size: 0.72rem; }

/* -- SCROLL REVEAL ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* -- LEAFLET DARK TWEAKS ------------------------------------- */
.leaflet-container { background: var(--bg-tile); font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-secondary); color: var(--fg); }
.leaflet-popup-content { font-size: 0.9rem; }
.leaflet-popup-content a { color: var(--accent-magenta); }
.leaflet-control-attribution { background: rgba(0,0,0,0.5) !important; color: var(--fg-faint) !important; }
.leaflet-control-attribution a { color: var(--fg-muted) !important; }
