/* ==========================================================================
   Galaxie L’Atelier Sucré
   base.css: Designsystem und gemeinsame Komponenten der Seite (Version 1, seit
   Runde 8 die einzige Richtung). Versionsspezifische Anordnung liegt in v1.css.
   ========================================================================== */

/* ---------- Fonts (lokal, OFL) ---------- */
/* Headline-Serif: EB Garamond. Cormorant Garamond (Vorschlag Masterdoku 6.2) wurde getestet,
   setzt in den verfügbaren WOFF2-Builds aber Akzente (â, ê, é) sichtbar versetzt. */
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Allura";
  src: url("../fonts/allura-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  color-scheme: light;

  /* Farben (Masterdoku 6.2, Kontraste auf AA geprüft) */
  --c-bg: #fbf8f4;            /* Elfenbein */
  --c-bg-alt: #f5ede6;        /* Creme / Puder */
  --c-bg-deep: #efe2d8;       /* Puder, etwas kräftiger (Bänder) */
  --c-surface: #fffdfb;       /* Karten, Formular */
  --c-text: #3a2b24;          /* Headlines */
  --c-text-soft: #5f4d44;     /* Fließtext */
  --c-text-muted: #7a675d;    /* Nebentexte */
  --c-gold: #bf8c3e;          /* Linien, Icons */
  --c-gold-text: #8c6425;     /* Gold als Schrift (AA) */
  --c-gold-line: rgba(191, 140, 62, 0.42);
  --c-rose: #9f6155;          /* Buttons (AA mit Weiß) */
  --c-rose-hover: #874f44;
  --c-rose-soft: #b9786b;     /* nur dekorativ */
  --c-line: rgba(58, 43, 36, 0.12);
  --c-input-line: #9c8c84;    /* 3:1 für Eingabefelder */
  --c-error: #8a3f33;
  --c-placeholder: #f3e9e0;

  /* Schriften */
  --f-serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --f-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-script: "Allura", "Snell Roundhand", cursive;

  /* Schriftgrößen */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 2.7vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.4vw, 2.35rem);
  --fs-h2-split: clamp(1.7rem, 1.35rem + 1vw, 2.05rem);
  --fs-h2-caps: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.45vw, 1.4rem);
  --fs-script: clamp(1.75rem, 1.45rem + 1vw, 2.2rem);
  --fs-script-hero: clamp(2.1rem, 1.5rem + 1.9vw, 2.55rem);

  /* Spacing-Skala */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(5rem, 3.2rem + 7vw, 9.5rem);   /* ca. 80 px mobil, 150 px Desktop */
  --head-gap: clamp(2.75rem, 2rem + 3vw, 5rem);      /* Abstand Headline -> Inhalt */
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --container: 76rem;
  --container-narrow: 48rem;

  /* Form */
  --radius: 2px;
  /* Runde 11: von 4.25rem auf 5rem erhöht, mehr Innenabstand um das Logo (ca. 18 px statt
     12 px je Seite bei unveränderter Logogröße 2.75rem), siehe CLAUDE.md 15.21. */
  --header-h: 5rem;
  --btn-h: 3.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  /* Ebenen */
  --z-header: 50;
  --z-float: 40;
  --z-menu: 60;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 6rem;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text-soft);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
:where(ul[role="list"], ol[role="list"]) {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--c-gold-text);
  outline-offset: 3px;
}
::selection {
  background: rgba(191, 140, 62, 0.22);
  color: var(--c-text);
}

/* ---------- Hilfsklassen ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--c-text);
  color: var(--c-bg);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.skip:focus {
  top: var(--s-4);
}
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-y);
}
.bg-alt {
  background: var(--c-bg-alt);
}
.bg-deep {
  background: var(--c-bg-deep);
}
.nowrap {
  white-space: nowrap;
}
.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  /* ca. 40 px: Schwelle, ab der der Header wieder deckend wird (Runde 8, Mobil-Hero) */
  height: 40px;
}

/* ---------- Typografie ---------- */
.h1,
.h2,
.h3 {
  font-family: var(--f-serif);
  color: var(--c-text);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.06;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
}
.h2--caps {
  font-size: var(--fs-h2-caps);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
/* Headlines in geteilten Layouts (Text neben Bild) sind in allen Entwürfen kleiner als zentrierte Sektionstitel */
.h2--split:not(.h2--caps) {
  font-size: var(--fs-h2-split);
  line-height: 1.18;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}
.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-gold-text);
  line-height: 1.5;
}
.script {
  font-family: var(--f-script);
  font-size: var(--fs-script);
  line-height: 1.25;
  color: var(--c-rose);
  padding-bottom: 0.1em;
  text-wrap: balance;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--c-text-soft);
  max-width: 38rem;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: var(--s-4);
}
.muted {
  color: var(--c-text-muted);
}

/* Kopfbereich einer Sektion */
.sec-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--head-gap);
}
.sec-head--center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 44rem;
}
.sec-head .lead {
  margin-top: var(--s-2);
}

/* Ornament unter Headlines (V1, V2): feine Linie mit Raute */
.ornament {
  position: relative;
  display: block;
  width: 4.5rem;
  height: 9px;
  margin-top: var(--s-2);
}
.ornament::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--c-gold-line);
}
.ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--c-gold);
  background: var(--c-bg);
  transform: translate(-50%, -50%) rotate(45deg);
}
.bg-alt .ornament::after {
  background: var(--c-bg-alt);
}
.bg-deep .ornament::after {
  background: var(--c-bg-deep);
}

/* ---------- Icons ---------- */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: currentColor;
}
.icon--gold {
  color: var(--c-gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: var(--btn-h);
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s ease-out,
    border-color 0.25s ease-out,
    color 0.25s ease-out,
    transform 0.2s ease-out;
}
.btn:active {
  transform: scale(0.98);
}
.btn .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.btn-primary {
  background: var(--c-rose);
  color: #fffdfb;
}
.btn-secondary {
  background: transparent;
  border-color: var(--c-rose);
  color: var(--c-rose);
}
/* Hover nur auf Geräten, die wirklich hovern können */
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--c-rose-hover);
  }
  .btn-secondary:hover {
    background: rgba(159, 97, 85, 0.1);
    color: var(--c-rose-hover);
    border-color: var(--c-rose-hover);
  }
}
.btn-sm {
  --btn-h: 2.75rem;
  padding: 0 1.25rem;
  font-size: 0.72rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* Textlink */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-rose);
  text-decoration: none;
  /* feine Grundlinie, darüber wächst beim Hover eine kräftige Linie von links */
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(rgba(159, 97, 85, 0.35), rgba(159, 97, 85, 0.35));
  background-size: 0% 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.2rem;
  transition:
    color 0.25s ease-out,
    background-size 0.5s ease-out;
}
@media (hover: hover) {
  .link:hover {
    color: var(--c-rose-hover);
    background-size: 100% 1px, 100% 1px;
  }
}
/* größere Tap-Fläche ohne sichtbare Änderung (mind. 44 px) */
.link {
  position: relative;
}
.link::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.5rem;
}

/* ---------- Platzhalter (Masterdoku 7.3) ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  background: var(--c-placeholder);
  border: 1px solid var(--c-gold-line);
  border-radius: var(--radius);
  padding: var(--s-5);
  text-align: center;
}
.ph-inner {
  display: grid;
  gap: var(--s-2);
  max-width: 17rem;
}
.ph-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-text);
}
.ph-subject {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--c-text);
}
.ph-format {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
/* Ruhiger Platzhalter für Kontaktdaten (V1, V2): normale Schrift, gedämpft */
.ph-quiet {
  color: var(--c-text-muted);
}
.ph-inline {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px dashed rgba(140, 100, 37, 0.55);
  border-radius: var(--radius);
  background: rgba(191, 140, 62, 0.1);
  color: var(--c-gold-text);
  font-family: var(--f-sans);
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}

/* Seitenverhältnisse */
.r45 { aspect-ratio: 4 / 5; }
.r11 { aspect-ratio: 1 / 1; }
.r32 { aspect-ratio: 3 / 2; }

.media-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-placeholder);
}
.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Florale Linienzeichnung */
.sprig {
  width: 5.5rem;
  height: auto;
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}
.sprig--flip {
  transform: scaleX(-1);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* Runde 6: vollständig deckender Hintergrund und klare Unterkante von Anfang an, damit auf
     keiner Seite (auch nicht mit einem randabfallenden Hero-Bild direkt darunter) etwas durch
     den Header scheint. Vorher war der Hintergrund zu 94 % deckend mit Weichzeichner, was am
     Übergang zum Hero sichtbar rosa durchschimmern ließ. */
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--c-line);
}
.header-inner {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  grid-template-areas: "burger brand wa";
  align-items: center;
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), 90rem);
  margin-inline: auto;
}
/* Logo (Runde 9): ersetzt die frühere Wortmarke aus EB Garamond. Zwei <img> (dunkel/hell)
   liegen übereinander (Grid, eine Zelle) und werden per Opacity ein-/ausgeblendet, siehe
   .site-header--photo-dark weiter unten. Nur Höhe setzen, Breite bleibt automatisch. */
.brand {
  grid-area: brand;
  display: grid;
  justify-self: center;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  grid-area: 1 / 1;
  height: 2.75rem;
  width: auto;
  transition: opacity 0.25s ease-out;
}
.brand-logo--light {
  opacity: 0;
}
.nav {
  display: none;
}
.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.2vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a:not(.btn) {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-text);
  padding-block: 0.4rem;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}
.burger,
.header-wa {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-text);
}
.burger {
  grid-area: burger;
  justify-self: start;
}
.header-wa {
  grid-area: wa;
  justify-self: end;
  color: var(--c-rose);
}
.header-wa .icon {
  width: 1.6rem;
  height: 1.6rem;
}
.burger-lines {
  position: relative;
  display: block;
  width: 1.4rem;
  height: 0.55rem;
}
.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition:
    transform 0.45s var(--ease),
    top 0.45s var(--ease);
}
.burger-lines::before {
  top: 0;
}
.burger-lines::after {
  top: 100%;
}
.burger[aria-expanded="true"] .burger-lines::before {
  top: 50%;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger-lines::after {
  top: 50%;
  transform: rotate(-45deg);
}

/* Mobiles Menü */
.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-7);
  padding: var(--s-7) var(--gutter) calc(var(--s-7) + env(safe-area-inset-bottom));
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.4s var(--ease),
    visibility 0s linear 0.4s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.4s var(--ease),
    visibility 0s;
}
.menu-list {
  display: grid;
  gap: var(--s-2);
}
.menu-list a {
  display: block;
  padding-block: var(--s-2);
  font-family: var(--f-serif);
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--c-text);
  text-decoration: none;
}
.menu-list li,
.menu .btn {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.menu.is-open .menu-list li,
.menu.is-open .btn {
  opacity: 1;
  transform: none;
}
.menu.is-open .menu-list li:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu-list li:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open .menu-list li:nth-child(5) { transition-delay: 0.2s; }
.menu.is-open .menu-list li:nth-child(6) { transition-delay: 0.25s; }
.menu.is-open .menu-list li:nth-child(7) { transition-delay: 0.3s; }
.menu.is-open .menu-list li:nth-child(8) { transition-delay: 0.35s; }
.menu.is-open .btn { transition-delay: 0.4s; }
.menu .btn {
  align-self: stretch;
}
html.menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left brand right";
  }
  .burger,
  .header-wa,
  .menu {
    display: none;
  }
  .nav {
    display: flex;
    align-items: center;
  }
  .nav-left {
    grid-area: left;
    justify-self: start;
  }
  .nav-right {
    grid-area: right;
    justify-self: end;
    gap: clamp(1.5rem, 2.2vw, 2.5rem);
  }
  .brand-logo {
    height: 3.75rem;
  }
}

/* ---------- Header über dem Mobil-Hero-Foto (Runde 8) ----------
   Nur unter 1024 px: der Header liegt transparent über dem Foto und wird erst nach ca. 40 px
   Scroll wieder deckend (top-sentinel, siehe main.js). „--photo-dark" hellt Wortmarke, Burger
   und WhatsApp-Icon auf für die dunklen Hero-Varianten; die helle Variante bleibt bei den
   normalen, dunklen Textfarben. Ein dezenter Schlagschatten auf den Icons ersetzt einen
   sichtbaren Hintergrund (der laut Vorgabe „ohne Hintergrund" bleibt), damit sie unabhängig
   vom Bildinhalt darunter lesbar bleiben. */
@media (max-width: 1023.98px) {
  .site-header--photo {
    background: transparent;
    /* feine, halbtransparente Trennlinie wie in der Referenz, statt ganz ohne Kante */
    border-bottom-color: rgba(58, 43, 36, 0.14);
    transition:
      background-color 0.25s ease-out,
      border-bottom-color 0.25s ease-out,
      box-shadow 0.25s ease-out;
  }
  .site-header--photo-dark:not(.is-scrolled) {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }
  .site-header--photo.is-scrolled {
    background: var(--c-bg);
    border-bottom-color: var(--c-line);
  }
  .site-header--photo:not(.is-scrolled) .brand,
  .site-header--photo:not(.is-scrolled) .burger,
  .site-header--photo:not(.is-scrolled) .header-wa {
    filter: drop-shadow(0 1px 4px rgba(58, 43, 36, 0.4));
  }
  .site-header--photo-dark:not(.is-scrolled) .burger,
  .site-header--photo-dark:not(.is-scrolled) .header-wa {
    color: var(--c-bg);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
  }
  /* Helles Logo nur bei den dunklen Hero-Varianten vor dem Scrollen; danach bzw. bei der
     hellen Variante bleibt/wird es das dunkle Logo, sanft überblendet (siehe .brand-logo). */
  .site-header--photo-dark:not(.is-scrolled) .brand-logo--dark {
    opacity: 0;
  }
  .site-header--photo-dark:not(.is-scrolled) .brand-logo--light {
    opacity: 1;
  }
}

/* ---------- Hero (gemeinsame Teile) ---------- */
.hero {
  position: relative;
}
.hero-copy {
  display: grid;
  gap: var(--s-5);
}
.hero-title span {
  display: inline;
}
.hero-script {
  margin-top: calc(-1 * var(--s-4));
  font-size: var(--fs-script-hero);
  line-height: 1.15;
}
.hero-text {
  max-width: 30rem;
  font-size: var(--fs-lead);
  line-height: 1.75;
  text-wrap: pretty;
}
.hero-copy .btn-row {
  margin-top: var(--s-3);
}
/* Hero: nur ein sehr kurzes Einblenden, das Laden wird nicht verzögert */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: hero-rise 0.45s ease-out both;
  }
  .hero-copy > :nth-child(n + 3) {
    animation-delay: 0.06s;
  }
}
.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--c-placeholder);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .hero-title span {
    display: block;
  }
}

/* ---------- Mobil-Hero (unter 1024 px, Runde 10) ----------
   Referenz: design/referenzen/hero-mobil-referenz-hell-dunkel-zoom.png. Das Foto füllt den
   ganzen Screen über die VOLLE Breite (keine deckende Fläche mit Kante mehr, Runde 9 verworfen);
   der Text liegt in voller Inhaltsbreite (--gutter wie im Rest der Seite) über einem weichen,
   halbtransparenten Verlauf: links etwas stärker, nach rechts auslaufend, oben zusätzlich
   leicht verstärkt (zweite, senkrechte Gradient-Ebene). Beide Ebenen bestehen aus rgba()
   desselben Farbtons mit nur unterschiedlicher Deckkraft (nie das Schlüsselwort "transparent"),
   damit beim Ausfaden kein dunkler Grauschleier-Rand entsteht und nirgends eine Stufe sichtbar
   wird. Der Header liegt transparent über dem Foto (negativer Abstand um --header-h) mit einer
   feinen, halbtransparenten Trennlinie. Ab 1024 px unverändert die Bildspalte aus v1.css. */
@media (max-width: 1023.98px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Kürzerer Mobil-Hero; Text und Buttons mittig im Bereich unter dem Header.
       Bei wenig Platz wächst die Sektion mit dem Inhalt, ohne ihn abzuschneiden. */
    min-height: 75svh;
    padding-top: var(--header-h);
    margin-top: calc(-1 * var(--header-h));
    overflow: hidden;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  /* Gespiegelte Fotos: Torte eher rechts, ruhige Fläche links. Mittig verankert (nicht mehr
     stark links wie in Runde 9), damit die Torte über die ganze Breite sichtbar bleibt und
     nicht auf einen schmalen Streifen am rechten Rand zusammenschrumpft. */
  .hero-media img {
    object-position: 38% 50%;
  }
  .hero--mobile-zoom .hero-media img {
    object-position: 30% 50%;
  }
  .hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(to bottom, rgba(var(--hv-rgb), var(--hv-a-top)) 0%, rgba(var(--hv-rgb), 0) 64%),
      linear-gradient(
        90deg,
        rgba(var(--hv-rgb), var(--hv-a-left)) 0%,
        rgba(var(--hv-rgb), var(--hv-a-mid)) 48%,
        rgba(var(--hv-rgb), var(--hv-a-right)) 100%
      );
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    padding: var(--s-6) var(--gutter);
  }
  /* Eyebrow etwas kleiner und weniger gesperrt, damit sie auf schmalen Screens (360 px) in
     einer Zeile bleibt statt umzubrechen. */
  .hero-copy .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
  .hero-copy .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* Variante A, „hell" (Standard): cremefarbener Verlauf, normale Textfarben der Seite.
     Startwerte aus dem Auftrag (links 55–65 %, rechts 15–25 %), im Browser gegen die Referenz
     und den Kontrast abgestimmt. */
  .hero--mobile-hell .hero-veil {
    --hv-rgb: 251, 248, 244;
    --hv-a-left: 0.75;
    --hv-a-mid: 0.66;
    --hv-a-right: 0.44;
    --hv-a-top: 0.5;
  }
  /* Fließtext und Outline-Button in den dunkleren Marken-Tönen statt der helleren
     Standardfarben (--c-text-soft/--c-rose): gegen den bewusst schwachen Verlauf (Referenz)
     ist das für den Kontrast nötig, siehe Kontrasttabelle in CLAUDE.md 15.20. */
  .hero--mobile-hell .hero-copy .hero-text {
    color: var(--c-text);
  }
  .hero--mobile-hell .hero-copy .btn-secondary {
    color: var(--c-text);
    border-color: var(--c-text);
  }
  .hero--mobile-hell .hero-copy .hero-title,
  .hero--mobile-hell .hero-copy .hero-text,
  .hero--mobile-hell .hero-copy .eyebrow {
    /* dezenter heller Schein statt einer deckenden Fläche, siehe Kontrasttabelle in CLAUDE.md */
    text-shadow:
      0 0 14px rgba(251, 248, 244, 0.9),
      0 0 5px rgba(251, 248, 244, 0.95);
  }

  /* Varianten B/C, „dunkel" und „zoom": warmer dunkler Verlauf, helle Textfarben.
     Startwerte links 60–70 %, rechts 25–35 %, ebenfalls im Browser abgestimmt. */
  .hero--mobile-dunkel .hero-veil,
  .hero--mobile-zoom .hero-veil {
    --hv-rgb: 43, 32, 26;
    --hv-a-left: 0.76;
    --hv-a-mid: 0.64;
    --hv-a-right: 0.46;
    --hv-a-top: 0.46;
  }
  /* „Zoom": engerer, kontrastreicherer Zuschnitt (Himbeeren, Krume) braucht etwas mehr
     Deckkraft als „dunkel" für denselben Kontrast, siehe Kontrasttabelle in CLAUDE.md 15.20. */
  .hero--mobile-zoom .hero-veil {
    --hv-a-mid: 0.7;
    --hv-a-right: 0.54;
    --hv-a-top: 0.5;
  }
  .hero--mobile-dunkel .hero-copy .hero-title,
  .hero--mobile-zoom .hero-copy .hero-title,
  .hero--mobile-dunkel .hero-copy .hero-text,
  .hero--mobile-zoom .hero-copy .hero-text {
    color: var(--c-bg);
  }
  .hero--mobile-dunkel .hero-copy .eyebrow,
  .hero--mobile-zoom .hero-copy .eyebrow {
    color: #efcb86;
  }
  .hero--mobile-dunkel .hero-copy .hero-script,
  .hero--mobile-zoom .hero-copy .hero-script {
    color: #e7b6ab;
  }
  /* Creme (--c-bg) statt Gold als Button-Schrift: Gold (#efcb86) reicht gegen den bewusst
     schwachen Verlauf nicht überall für AA, Creme ist heller und erreicht es zuverlässiger,
     siehe Kontrasttabelle in CLAUDE.md 15.20. Die Eyebrow bleibt Gold, der Akzent geht also
     nicht verloren. */
  .hero--mobile-dunkel .hero-copy .btn-secondary,
  .hero--mobile-zoom .hero-copy .btn-secondary {
    border-color: var(--c-bg);
    color: var(--c-bg);
  }
  @media (hover: hover) {
    .hero--mobile-dunkel .hero-copy .btn-secondary:hover,
    .hero--mobile-zoom .hero-copy .btn-secondary:hover {
      background: rgba(251, 248, 244, 0.14);
      border-color: var(--c-bg);
      color: var(--c-bg);
    }
  }
  /* Dezenter dunkler Schatten als Zusatz, nicht als Hauptlösung für den Kontrast */
  .hero--mobile-dunkel .hero-copy .hero-title,
  .hero--mobile-zoom .hero-copy .hero-title,
  .hero--mobile-dunkel .hero-copy .hero-text,
  .hero--mobile-zoom .hero-copy .hero-text,
  .hero--mobile-dunkel .hero-copy .eyebrow,
  .hero--mobile-zoom .hero-copy .eyebrow {
    text-shadow: 0 1px 10px rgba(15, 10, 8, 0.55), 0 1px 2px rgba(15, 10, 8, 0.5);
  }

}
@media (min-width: 1024px) {
  .hero-veil {
    display: none;
  }
}

/* ---------- Vertrauensleiste ---------- */
.trust {
  border-block: 1px solid var(--c-line);
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
  padding-block: var(--s-7);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
@media (min-width: 640px) {
  .trust-item {
    flex-direction: row;
  }
}
.trust-item .icon {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--c-gold);
}
.trust-item strong {
  display: block;
  font-weight: 500;
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.4;
}
.trust-item span {
  display: block;
  text-wrap: balance;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-text-muted);
  margin-top: 0.15rem;
}
@media (min-width: 1024px) {
  .trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-block: var(--s-7);
  }
  .trust-item {
    justify-content: center;
    padding-inline: var(--s-5);
  }
  .trust-item + .trust-item {
    border-left: 1px solid var(--c-line);
  }
}

/* ---------- Collections: Karten ---------- */
.c-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15.5rem, 76%);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter));
  padding-bottom: var(--s-4);
  scrollbar-width: none;
}
.c-grid::-webkit-scrollbar {
  display: none;
}
.c-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.5s ease-out;
}
.c-media {
  overflow: hidden;
}
.c-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}
@media (hover: hover) {
  .c-card:hover {
    border-color: rgba(191, 140, 62, 0.55);
  }
  .c-card:hover .c-media img {
    transform: scale(1.04);
  }
}
/* Alle Entwürfe: breites Karten-Raster, Titel höchstens zweizeilig */
.collections .container {
  width: min(100% - 2 * var(--gutter), 88rem);
}
.c-body {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-3) var(--s-6);
  text-align: center;
}
.c-title {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text);
  text-wrap: balance;
}
.c-text {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-text-muted);
  text-wrap: balance;
}
.c-body .link {
  margin-top: var(--s-3);
}
@media (min-width: 768px) {
  .c-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
    margin: 0;
    gap: var(--s-5);
  }
}
@media (min-width: 1200px) {
  .c-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- Galerie / Slider ---------- */
.slider-track {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s-2);
  overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: none;
  height: var(--slide-h, 22rem);
  scroll-snap-align: start;
}
.g-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-placeholder);
  cursor: zoom-in;
}
.g-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}
@media (hover: hover) {
  .g-open:hover img {
    transform: scale(1.04);
  }
}
.slider-btn {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--c-gold-line);
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-gold-text);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.slider-btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.slider-btn:hover:not(:disabled) {
  background: var(--c-surface);
  border-color: var(--c-gold);
}
.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.slider-nav {
  display: flex;
  gap: var(--s-3);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(251, 248, 244, 0.97);
  color: var(--c-text);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: 3.5rem 1fr 3.5rem;
  align-items: center;
}
.lightbox::backdrop {
  background: rgba(58, 43, 36, 0.3);
}
.lb-figure {
  grid-column: 2;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 4.5rem 0 3rem;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lb-close,
.lb-prev,
.lb-next {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--c-gold-line);
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
}
.lb-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
}
.lb-prev {
  grid-column: 1;
  justify-self: center;
}
.lb-next {
  grid-column: 3;
  justify-self: center;
}
.lb-close .icon,
.lb-prev .icon,
.lb-next .icon {
  width: 1.1rem;
  height: 1.1rem;
}
@media (min-width: 768px) {
  .lightbox[open] {
    grid-template-columns: 6rem 1fr 6rem;
  }
}

/* ---------- Karussell: Galerie V1/V2 und Réels (alle Versionen) ---------- */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "track track"
    "prev next";
  gap: var(--s-6) var(--s-3);
}
.carousel .slider-track {
  grid-area: track;
  min-width: 0;
  gap: var(--s-5);
  padding: 0;
  align-items: flex-start;
}
.carousel [data-slider-prev] {
  grid-area: prev;
  justify-self: end;
}
.carousel [data-slider-next] {
  grid-area: next;
  justify-self: start;
}
/* mobil: ein Bild plus Anschnitt, Tablet: zwei plus Anschnitt, Desktop: drei plus Anschnitt */
.carousel .slide {
  height: auto;
  flex: 0 0 calc((100% - var(--s-5)) / 1.2);
}
.carousel .g-open {
  height: auto;
  aspect-ratio: 4 / 5;
}
@media (min-width: 768px) {
  .carousel .slide {
    flex-basis: calc((100% - 2 * var(--s-5)) / 2.3);
  }
}
@media (min-width: 1024px) {
  .carousel .slide {
    flex-basis: calc((100% - 3 * var(--s-5)) / 3.3);
  }
}
/* Pfeile außerhalb der Containerkante, vertikal zur Bildmitte, sobald daneben Platz ist */
@media (min-width: 1400px) {
  .carousel {
    display: block;
  }
  .carousel .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .carousel [data-slider-prev] {
    left: calc(-3rem - var(--s-6));
  }
  .carousel [data-slider-next] {
    right: calc(-3rem - var(--s-6));
  }
}

/* Réels: selbst gehostete Videos im Hochformat 9:16 */
@media (min-width: 1024px) {
  .reels .carousel .slide {
    flex-basis: calc((100% - 2 * var(--s-5)) / 3);
  }
}
.reel-frame,
.reel-ph {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-placeholder);
}
.reel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 1px solid rgba(255, 253, 251, 0.75);
  border-radius: 50%;
  background: rgba(58, 43, 36, 0.3);
  color: #fffdfb;
  transform: translate(-50%, -50%);
  transition: background-color 0.25s ease-out;
}
.reel-play .icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.2rem;
}
@media (hover: hover) {
  .reel-play:hover {
    background: rgba(58, 43, 36, 0.5);
  }
}
.reels-follow {
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  margin-top: var(--s-7);
  text-align: center;
}
.reels-follow .link .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* ---------- Textblöcke, die alle Versionen nutzen ---------- */
.sm-copy-inner {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  max-width: 30rem;
}
.sm-copy-inner .btn {
  margin-top: var(--s-3);
}
.about-copy {
  display: grid;
  gap: var(--s-4);
  align-content: center;
  justify-items: start;
}
.about-copy .script {
  margin-top: calc(-1 * var(--s-3));
}
.about-copy .story {
  justify-self: stretch;
}

/* ---------- Fleurs en sucre ---------- */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.macro-grid .ph {
  aspect-ratio: 1 / 1;
  padding: var(--s-3);
}
.macro-grid .ph-subject {
  font-size: 1rem;
}

/* ---------- Tarifs ---------- */
.price-list {
  display: grid;
  border-top: 1px solid var(--c-gold-line);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--c-gold-line);
}
.price-name {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--c-text);
}
.price-note {
  margin-top: 0.1rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-text-muted);
}
.price-value {
  flex: none;
  max-width: 55%;
  text-align: right;
  font-family: var(--f-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--c-text);
}
.price-value small {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold-text);
}
.price-value .ph-inline {
  font-size: 0.62rem;
  white-space: normal;
}
.tarifs-notes {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-7);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-text-muted);
}
.tarifs-notes li {
  position: relative;
  padding-left: 1.4rem;
}
.tarifs-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 1px;
  background: var(--c-gold);
}
.tarifs-cta {
  margin-top: var(--s-7);
}
@media (min-width: 900px) {
  .price-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: clamp(3rem, 6vw, 6rem);
    border-top: 0;
  }
  .price-list--two .price-row:nth-child(1),
  .price-list--two .price-row:nth-child(5) {
    border-top: 1px solid var(--c-gold-line);
  }
}

/* ---------- Processus ---------- */
.steps {
  display: grid;
  gap: var(--s-7);
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-5);
  row-gap: var(--s-1);
  align-items: start;
}
.step-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--c-gold-line);
  border-radius: 50%;
  color: var(--c-gold);
}
.step-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}
.step-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text);
  line-height: 1.5;
  padding-top: 0.6rem;
}
.step-num {
  color: var(--c-gold-text);
  margin-right: 0.35rem;
}
.step-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--c-text-soft);
  max-width: 22rem;
  text-wrap: pretty;
}

/* ---------- À propos ---------- */
.facts {
  display: grid;
  gap: var(--s-5);
}
.fact {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-text);
}
.fact .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--c-gold);
}
.story {
  margin-top: var(--s-3);
}
/* In allen Entwürfen ist „En savoir plus“ ein gefüllter Button */
.story summary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--c-rose);
  color: #fffdfb;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease);
}
@media (hover: hover) {
  .story summary:hover {
    background: var(--c-rose-hover);
  }
}
.story summary::-webkit-details-marker {
  display: none;
}
.story summary .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.4s var(--ease);
}
.story[open] summary .icon {
  transform: rotate(45deg);
}
.story-body {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  font-size: 0.98rem;
  line-height: 1.75;
}
.story-body h3 {
  margin-top: var(--s-3);
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-text);
}

/* ---------- Contact & Formular ---------- */
/* .way-label / .way-value: Basiswerte, die raster.css für .way-row (Kontaktwege) übernimmt */
.way-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.way-value {
  display: block;
  color: var(--c-text);
}
.form {
  position: relative;
}
.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-title {
  padding: 0;
  margin-bottom: var(--s-5);
  font-family: var(--f-serif);
  font-size: var(--fs-h3);
  color: var(--c-text);
}
.form-grid {
  display: grid;
  gap: var(--s-5);
}
.field {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}
.field label,
.field .label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-text);
}
.req {
  color: var(--c-rose);
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-input-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-text-soft) 50%),
    linear-gradient(135deg, var(--c-text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) 55%,
    calc(100% - 0.85rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--c-rose);
  box-shadow: 0 0 0 3px rgba(159, 97, 85, 0.2);
}
.field [aria-invalid="true"] {
  border-color: var(--c-error);
}
.field-help {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.field-warn {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-gold-text);
}
.field-error {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-error);
}
.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--c-text-soft);
}
.field-check input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.2rem 0 0;
  accent-color: var(--c-rose);
}
.field-check label {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--c-text-soft);
}
.field-check .field-error {
  grid-column: 2;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.form-note {
  margin-top: var(--s-4);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.form-status {
  margin-top: var(--s-3);
  font-size: 0.9rem;
  color: var(--c-text);
}
.form-status:empty {
  display: none;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-5);
  }
  .field--full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 479px) {
  .form-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--s-9);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: var(--s-7);
}
.brand--footer {
  grid-area: auto;
  justify-self: start;
  justify-items: start;
}
.footer-claim {
  margin-top: var(--s-4);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-text-soft);
  max-width: 18rem;
}
.footer-title {
  margin-bottom: var(--s-4);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold-text);
}
.footer-links {
  display: grid;
  gap: var(--s-2);
}
.footer-links a {
  text-decoration: none;
  color: var(--c-text-soft);
}
.footer-links a:hover {
  color: var(--c-rose);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: var(--s-8);
  padding-block: var(--s-5) calc(var(--s-5) + 4.5rem);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
}
.footer-credit { text-decoration: underline; text-underline-offset: .22em; }
.footer-credit:hover { color: var(--c-rose); }
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer-bottom {
    padding-bottom: var(--s-5);
  }
}

/* WhatsApp-Schaltfläche mobil */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-rose);
  color: #fffdfb;
  box-shadow: 0 14px 30px -14px rgba(58, 43, 36, 0.45);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.wa-float:hover {
  background: var(--c-rose-hover);
}
.wa-float:active {
  transform: scale(0.96);
}
.wa-float .icon {
  width: 1.7rem;
  height: 1.7rem;
}
html.menu-open .wa-float {
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .wa-float {
    display: none;
  }
}

/* ---------- Einblenden beim Scrollen ----------
   Nur mit JavaScript (Klasse "js" aus flag.js). Raster mit data-stagger
   blenden gestaffelt ein (Versatz in main.js). Jedes Element nur einmal. */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease-out,
    transform 0.65s ease-out;
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
html.js .reveal-d1 { transition-delay: 0.09s; }
html.js .reveal-d2 { transition-delay: 0.18s; }
html.js .reveal-d3 { transition-delay: 0.27s; }
html.js .reveal-d4 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  .slider-track {
    scroll-behavior: auto;
  }
}
