/*
Theme Name: Gewürz-Wechsel
Theme URI: https://example.com/gewuerz-wechsel
Author: Rob Haas
Description: Onepager-Theme für eine Wechsel-Landingpage. Fängt suchende Just-Spices-Kunden ab (Shop-Schließung 30.06.2026) und leitet zu Ankerkraut-Alternativen. Moderner, dunkler Look mit Countdown-Hero. Alle Inhalte über den Customizer pflegbar.
Version: 1.0.0
Requires at least: 6.0
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: gewuerz-wechsel
*/

/* ============================================================
   DESIGN TOKENS
   Dunkler, warmer "Gewürzregal bei Nacht"-Look.
   Akzent: ein sattes Paprika-Rot über tiefem Anthrazit,
   Safran-Gelb als zweite Stimme. Eine charaktervolle
   Display-Grotesk gegen eine ruhige Lesetype.
   ============================================================ */
:root {
  --bg:        #16110e;   /* fast schwarz, leicht warm */
  --bg-2:      #1f1813;   /* abgesetzte Sektionen */
  --surface:   #261d17;   /* Karten */
  --surface-2: #2f241c;   /* Karten-Hover */
  --line:      #3a2c22;   /* Trennlinien auf dunkel */

  --text:      #f3ece2;   /* warmweißer Fließtext */
  --text-soft: #b6a692;   /* gedämpft */
  --text-mute: #7d6e5e;   /* Labels */

  --paprika:   #e0492c;   /* Hauptakzent */
  --paprika-2: #ff6242;   /* heller, für Glow/Hover */
  --saffron:   #f3a712;   /* zweiter Akzent */
  --ember:     #c2371d;   /* tiefes Rot */

  --font-display: "Clash Display", "Space Grotesk", "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1140px;
  --gap: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--alt { background: var(--bg-2); }

a { color: var(--paprika-2); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 .5em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paprika);
  margin: 0 0 1rem;
}

.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-soft); max-width: 56ch; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.7rem; border-radius: 100px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  line-height: 1;
}
.btn--primary {
  background: var(--paprika); color: #fff;
  box-shadow: 0 8px 30px -8px rgba(224,73,44,.7);
}
.btn--primary:hover { background: var(--paprika-2); transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(255,98,66,.65); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--text); border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--paprika); color: var(--text); }
.btn--lg { padding: 1.15rem 2.2rem; font-size: 1.08rem; }

/* ============================================================
   HEADER (sticky, schlank)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22,17,14,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; gap: 1rem; }
.site-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.site-brand .dot { color: var(--paprika); }
.site-header nav { display: flex; align-items: center; gap: 1.6rem; }
.site-header nav a { color: var(--text-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-header nav a:hover { color: var(--text); }
.site-header .btn { padding: .6rem 1.2rem; font-size: .92rem; }
@media (max-width: 720px) { .site-header nav a.nav-link { display: none; } }

/* ============================================================
   HERO – die Bühne
   ============================================================ */
.hero { position: relative; padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero::before {
  /* warmer Lichtkegel hinter der Headline */
  content: ""; position: absolute; inset: -20% 0 auto 50%;
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224,73,44,.22), rgba(243,167,18,.06) 40%, transparent 70%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em;
  padding: .45rem .9rem; border-radius: 100px;
  background: rgba(224,73,44,.12); border: 1px solid rgba(224,73,44,.4); color: var(--paprika-2);
  margin-bottom: 1.5rem;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--paprika);
  box-shadow: 0 0 0 0 rgba(224,73,44,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,73,44,.6); }
  70% { box-shadow: 0 0 0 10px rgba(224,73,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,73,44,0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  max-width: 16ch;
}
.hero h1 .accent { color: var(--paprika); }
.hero .lead { margin-top: 1.3rem; font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Countdown – die Signatur */
.countdown {
  display: flex; gap: .8rem; margin-top: 2.6rem; flex-wrap: wrap;
}
.countdown .unit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; min-width: 88px; text-align: center;
  position: relative; overflow: hidden;
}
.countdown .unit::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--paprika), var(--saffron));
}
.countdown .num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1; color: var(--text);
}
.countdown .lbl {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-mute); margin-top: .5rem;
}
.countdown .sep { display: none; }

.countdown-note { font-family: var(--font-mono); font-size: .8rem; color: var(--text-mute); margin-top: 1rem; }

/* ============================================================
   "SO FUNKTIONIERT'S" Schritte
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step { position: relative; padding-top: 1rem; }
.step .n {
  font-family: var(--font-mono); font-size: .85rem; color: var(--paprika);
  border-top: 2px solid var(--paprika); padding-top: .8rem; display: inline-block; min-width: 3ch;
}
.step h3 { font-size: 1.3rem; margin-top: .6rem; }
.step p { color: var(--text-soft); font-size: .98rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUKT-PAARE (Mischungs-Finder)
   ============================================================ */
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; margin-top: 2.5rem; }
.pair {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: background .18s, transform .18s, border-color .18s;
}
.pair:hover { background: var(--surface-2); transform: translateY(-3px); border-color: rgba(224,73,44,.4); }
.pair .row { display: flex; align-items: center; gap: .9rem; }
.pair .from, .pair .to { flex: 1; }
.pair .from .tag, .pair .to .tag {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
}
.pair .from .tag { color: var(--text-mute); }
.pair .to .tag { color: var(--saffron); }
.pair .name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-top: .25rem; line-height: 1.15; }
.pair .from .name { color: var(--text-soft); }
.pair .to .name { color: var(--text); }
.pair .arrow {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(224,73,44,.14); color: var(--paprika-2);
  font-size: 1.1rem;
}
.pair .note { color: var(--text-mute); font-size: .88rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ============================================================
   ARGUMENTE / WARUM
   ============================================================ */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.reason .ico { font-size: 1.8rem; margin-bottom: .6rem; }
.reason h3 { font-size: 1.25rem; }
.reason p { color: var(--text-soft); font-size: .98rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin-top: 2.5rem; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--paprika); font-size: 1.5rem; font-family: var(--font-mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); margin: .8rem 0 0; font-size: .98rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.cta-final .lead { margin-inline: auto; margin-top: 1rem; }
.cta-final .hero-actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; color: var(--text-mute); font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: var(--text-soft); }
.disclaimer { font-size: .78rem; color: var(--text-mute); max-width: 70ch; margin-top: 1rem; line-height: 1.5; }

/* ============================================================
   UTILITIES & A11Y
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .pulse { animation: none; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(2.2rem, 11vw, 2.8rem); word-break: break-word; hyphens: auto; }
}
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paprika); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
