/* =====================================================================
   DOMI & SARAH – STYLE
   ---------------------------------------------------------------------
   Alles, was ihr anpassen möchtet, steht in den EINSTELLUNGEN unten.
   Schriften und Farben NUR hier ändern – der Rest der Datei liest sie aus.
   ===================================================================== */

/* ---------- 1. SCHRIFTEN LADEN ----------------------------------------
   Neue Schrift? Auf fonts.google.com auswählen, den "@import"-Link
   kopieren und diese Zeile ersetzen. Danach unten bei --font-… den
   Namen eintragen.                                                     */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  /* ---------- 2. SCHRIFTEN --------------------------------------------- */
  --font-body:    "Figtree", "Helvetica Neue", Arial, sans-serif;               /* Fliesstext, Buttons, Menü   */
  --font-heading: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;   /* Titel (Der Tag, Anreise …)  */
  --font-names:   "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;   /* «Domi & Sarah» oben         */
  --font-accent:  "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;   /* hervorgehobenes Wort im Titel */
  --accent-weight: 400;   /* Dicke des hervorgehobenen Worts (400 = normal, 800 = fett) */
  --accent-style:  normal; /* "italic" für kursiv                               */

  /* ---------- 3. FARBEN ------------------------------------------------ */
  --color-primary:        #0E2F59;  /* Alpenblau: Hero, Buttons, RSVP     */
  --color-primary-dark:   #0A2445;  /* Footer, Schatten im Hero           */
  --color-accent:         #CBB98B;  /* Champagner: Koordinaten, Punkte    */
  --color-background:     #FBF7EE;  /* Seitenhintergrund                  */
  --color-background-alt: #F3EBD9;  /* Elfenbein: jede zweite Sektion     */
  --color-card:           #FFFFFF;  /* Karten und Boxen                   */
  --color-text:           #0E2F59;  /* Haupttext                          */
  --color-text-muted:     #3F4E63;  /* Nebentext                          */
  --color-on-primary:     #FFFFFF;  /* Text auf blauem Hintergrund        */

  /* ---------- 4. BILDER ------------------------------------------------ */
  --hero-image: url('Artboard 3.png');   /* Karte oben                    */
  --rsvp-image: url('Artboard 3.png');   /* Karte im Anmeldeblock         */

  /* ---------- 5. FORM -------------------------------------------------- */
  --radius-card:   28px;   /* Ecken der grossen Boxen                     */
  --radius-button: 999px;  /* 999px = ganz rund, 4px = fast eckig         */
  --page-width:    1120px;

  /* abgeleitete Farben – nicht ändern nötig */
  --color-line: color-mix(in srgb, var(--color-text) 14%, transparent);
}

/* =====================================================================
   AB HIER: LAYOUT (normalerweise nichts ändern)
   ===================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); text-wrap: balance; letter-spacing: -0.025em; }
p { margin: 0; }
img { max-width: 100%; }
.wrap { max-width: var(--page-width); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-accent); }
.accent { font-family: var(--font-accent); font-style: var(--accent-style); font-weight: var(--accent-weight); color: var(--color-accent); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Menü ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-background) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--color-line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { font-family: var(--font-names); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 16px; font-weight: 500; }
.links a { text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.links a:hover { opacity: 1; }
.langs { display: flex; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.langs a { text-decoration: none; opacity: 0.45; padding: 4px 2px; }
.langs a:hover { opacity: 0.8; }
.langs a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -1.5px 0 currentColor; }
@media (max-width: 820px) { .links { display: none; } .langs { margin-left: auto; } }
@media (max-width: 520px) { .nav .wrap { gap: 14px; } .nav .btn-small { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-button);
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
  transition: transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { background: var(--color-primary); color: var(--color-on-primary); font-size: 14px; padding: 7px 15px; letter-spacing: 0.06em; }
.btn-large { background: var(--color-on-primary); color: var(--color-primary); font-size: 18px; padding: 16px 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--color-primary) var(--hero-image) center / cover no-repeat;
  color: var(--color-on-primary);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%,
              color-mix(in srgb, var(--color-primary) 20%, transparent),
              color-mix(in srgb, var(--color-primary-dark) 85%, transparent) 85%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 90px); }
.hero h1 { font-family: var(--font-names); font-size: clamp(46px, 9vw, 110px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin-top: 22px; }
.hero .date { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin-top: 22px; }
.hero .coords {
  display: inline-block; margin-top: 20px; text-decoration: none;
  font-size: clamp(16px, 2.4vw, 24px); font-weight: 500; letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums; color: var(--color-accent);
}
.hero .coords:hover { opacity: 0.8; }
.hero .btn-large { margin-top: 38px; }
.count { display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px); margin-top: 56px; font-variant-numeric: tabular-nums; }
.count div { display: flex; flex-direction: column; align-items: center; }
.count b { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.count span { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }

/* ---------- Einladung ---------- */
.statement { padding-block: clamp(44px, 7vw, 88px); text-align: center; }
.statement h2 { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; line-height: 1.02; }
.statement h2 .accent { white-space: nowrap; }
.statement p { max-width: 40ch; margin: 22px auto 0; font-size: clamp(20px, 2.2vw, 23px); color: var(--color-text-muted); }

/* ---------- Kapitel ---------- */
.chapter { padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--color-line); }
.chapter.alt { background: var(--color-background-alt); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 56px; align-items: end; margin-bottom: clamp(24px, 4vw, 48px); }
.head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1; }
.head p { font-size: 20px; color: var(--color-text-muted); max-width: 46ch; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

/* ---------- Ablauf / Shuttle-Zeitstrahl ---------- */
.timeline, .sunday {
  background: var(--color-card); border-radius: var(--radius-card);
  padding: clamp(26px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 24px clamp(28px, 5vw, 64px);
}
.sunday { margin-top: 16px; align-items: baseline; padding-block: clamp(24px, 3.5vw, 36px); }
.timeline h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.05; }
.tl-note { margin-top: 16px; font-size: 19px; color: var(--color-text-muted); max-width: 34ch; }
.stay-text .note { color: var(--color-text); background: var(--color-card); border-left: 3px solid var(--color-accent); border-radius: 0 14px 14px 0; padding: 16px 18px; }
.sunday h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.sunday p { color: var(--color-text-muted); }
.day-date { font-weight: 400; color: var(--color-text-muted); font-size: 0.6em; letter-spacing: 0; margin-left: 6px; }
.tl-list { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-list::before { content: ""; position: absolute; left: 111px; top: 10px; bottom: 10px; width: 1.5px; background: var(--color-line); }
.tl-list li { display: grid; grid-template-columns: 94px 16px 1fr; gap: 10px; align-items: center; padding-block: 12px; font-size: 20px; }
.tl-list time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; text-align: right; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--color-card); border: 2px solid var(--color-accent); justify-self: center; position: relative; z-index: 1; }
.tl-shuttle .tl-dot { background: var(--color-card); border-color: var(--color-primary); width: 13px; height: 13px; }
.tl-shuttle > span { background: var(--color-background); border-radius: 14px; padding: 10px 14px; color: var(--color-primary); font-weight: 600; }
.tl-badge { display: inline-block; background: color-mix(in srgb, var(--color-primary) 12%, var(--color-card)); color: var(--color-primary); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 860px) { .timeline, .sunday { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .tl-list li { grid-template-columns: 80px 16px 1fr; gap: 8px; } .tl-list::before { left: 95px; } }

/* ---------- Kacheln (Anreise) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--color-card); border-radius: calc(var(--radius-card) - 4px); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.tile svg, .tips svg { width: 30px; height: 30px; stroke: var(--color-primary); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 21px; font-weight: 700; margin-top: 8px; }
.tile p { font-size: 20px; color: var(--color-text-muted); }
.maplink { font-weight: 700; font-size: 19px; color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--color-accent); align-self: flex-start; }
.tile .maplink { margin-top: auto; padding-top: 6px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec { display: inline-block; vertical-align: 3px; margin-left: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-primary); background: var(--color-primary); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 860px) { .tiles, .tiles-2 { grid-template-columns: 1fr; } }

/* ---------- Dresscode-Tipps ---------- */
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tips li { background: var(--color-card); border-radius: 20px; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.tips svg { width: 24px; height: 24px; }
.tips b { display: block; font-size: 21px; margin-bottom: 4px; }
.tips span { font-size: 20px; color: var(--color-text-muted); }
@media (max-width: 860px) { .tips { grid-template-columns: 1fr; } }

/* ---------- Unterkunft ---------- */
.stay { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.stay-text { display: flex; flex-direction: column; gap: 18px; color: var(--color-text-muted); max-width: 52ch; }
.rooms-cap { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--color-line); }
.rooms dl { margin: 0; }
.rooms dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--color-line); }
.rooms dt { font-weight: 600; }
.rooms dt small { display: block; font-weight: 400; font-size: 17px; color: var(--color-text-muted); }
.rooms dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--color-text-muted); }
@media (max-width: 760px) { .stay { grid-template-columns: 1fr; } }

/* ---------- Anmeldung ---------- */
.rsvp {
  position: relative; overflow: hidden; text-align: center;
  background: var(--color-primary) var(--rsvp-image) center / cover no-repeat;
  color: var(--color-on-primary);
}
.rsvp::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-primary) 70%, transparent); pointer-events: none; }
.rsvp .wrap { position: relative; z-index: 1; padding-block: clamp(60px, 10vw, 120px); }
.rsvp h2 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; line-height: 1; margin-top: 18px; }
.rsvp p { max-width: 40ch; margin: 22px auto 0; font-size: 20px; }
.rsvp .btn-large { margin-top: 36px; }
.deadline { display: block; margin-top: 18px; font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }

/* ---------- Footer ---------- */
footer { background: var(--color-primary-dark); color: var(--color-on-primary); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
footer .tag { opacity: 0.8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- Easter Eggs (siehe domisa-eggs.js) ---------- */
.hero { transition: background-position 0.6s ease-out; }
.egg-mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 0; pointer-events: none; transform: translateY(105%); transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.25, 1.05); }
.egg-mountains.up { transform: translateY(0); }
.egg-mountains svg { width: 100%; height: 100%; display: block; }
.egg-mountains .m1 { transform: translateY(14px); }
.hero h1 { user-select: none; -webkit-user-select: none; cursor: default; }
.egg-shower { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
@media (prefers-reduced-motion: reduce) { .egg-mountains { transition: none; } }
