/*
Theme Name: Elaine & Richard — Hochzeit
Theme URI: https://example.com
Author: Elaine & Richard
Description: Modern-skandinavisches Hochzeits-Theme in Salbei mit Aquarell-Eukalyptus. Mehrseitig (Start, Ablauf, Location, Übernachtung, RSVP, Kontakt), mit Countdown und Zusage-Formular. Beim Aktivieren werden alle Seiten und die Navigation automatisch angelegt.
Version: 1.7.1
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elaine-richard
Tags: wedding, custom-menu, full-width-template, translation-ready
*/

/* ============================================================
   Elaine & Richard — Salbei
   ============================================================ */
:root {
  --bg:        #FBFAF6;
  --surface:   #F2F0E8;
  --surface-2: #EAE7DC;
  --ink:       #3A3E38;
  --muted:     #757A70;
  --faint:     #9A9E94;
  --line:      #E3E0D5;
  --accent:    #8E9C86;
  --accent-dp: #6E7C66;
  --gold:      #B49A60;
  --hero-tint: #FBFAF6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* ---------- Typography helpers ---------- */
.script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  color: var(--gold);
  line-height: 0.95;
  letter-spacing: 0;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-dp);
}
h1, h2, h3 { font-weight: 300; letter-spacing: 0.01em; }
.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.12;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--accent);
}
.rule::before, .rule::after {
  content: ""; height: 1px; width: 54px;
  background: currentColor; opacity: 0.5;
}
.rule .leaf { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 90vw); margin-inline: auto; }
.narrow { width: min(740px, 90vw); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 130px); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'Pinyon Script', cursive;
  font-size: 1.7rem; color: var(--gold); letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); list-style: none; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 400; color: var(--muted); padding-block: 6px;
  position: relative; transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-cta {
  font-size: 0.74rem !important; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent-dp) !important;
  padding: 10px 20px !important; border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.nav-cta.active::after { display: none; }
.lang-switch {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.lang-switch .lang-current { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.lang-switch a { font-size: 0.72rem; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-sep { color: var(--line); }
.nav-toggle { display: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block; font-family: 'Jost', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 400; padding: 15px 34px; border-radius: 2px; cursor: pointer;
  transition: all 0.28s ease; border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-dp); border-color: var(--accent-dp); }
.btn.ghost { background: transparent; color: var(--accent-dp); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ============================================================
   Page hero (subpages)
   ============================================================ */
.page-hero {
  position: relative; text-align: center;
  padding-block: clamp(70px, 9vw, 120px) clamp(50px, 6vw, 80px);
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: 0.02em; }
.page-hero .script { font-size: clamp(2.6rem, 6vw, 4rem); }
.page-hero .sub { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }

.botanic { position: absolute; pointer-events: none; opacity: 0.92; z-index: 0; }
/* Die Motive sind in sich abgeschlossen (natürlicher Auslauf) — daher
   bündig in die Ecke setzen, keine negativen Offsets: die würden die
   Blätter an der Sektionskante abschneiden (siehe Issue #6). */
.botanic.tr { top: 0; right: 0; width: clamp(180px, 24vw, 320px); }
.botanic.bl { bottom: 0; left: 0; width: clamp(170px, 22vw, 300px); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding-block: 60px 40px; text-align: center;
}
.site-footer .brand { justify-content: center; font-size: 2.2rem; margin-bottom: 18px; }
.foot-names { color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.76rem; }
.foot-date { margin-top: 10px; color: var(--ink); font-size: 0.95rem; letter-spacing: 0.04em; }
.foot-meta { margin-top: 28px; color: var(--faint); font-size: 0.74rem; letter-spacing: 0.12em; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: 0.3s; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 0 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }
  .lang-switch { justify-content: center; padding: 14px 0 4px; }
  .lang-switch a { display: inline-block; padding: 0; }
}

/* ============================================================
   WordPress core classes
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px;
  font-size: 0.8rem; letter-spacing: 0.1em;
}
.skip-link:focus { left: 8px; top: 8px; }
