/* =========================
   THEME TOKENS (Projektweit)
   ========================= */
:root{
  /* Primärpalette – pro Projekt anpassen */
  --espresso:#1f2937;   /* Primärtext */
  --crema:#f8fafc;      /* Hintergrund */
  --gold:#eab308;       /* Akzent 1 */
  --sage:#5fa089;       /* Akzent 2 */
  --teal:#089987;       /* Brandfarbe (Haupt-CTA) */

  /* Glassmorphism */
  --glass-bg:rgba(255,255,255,.6);
  --glass-br:16px;
  --glass-brd:rgba(0,0,0,.06);

  /* Button-Theme (leicht änderbar) */
  --btn-primary-bg: var(--teal);
  --btn-primary-text: #fff;

  /* Sekundär = weiß/schwarz; falls grün gewünscht:
     --btn-secondary-text: var(--teal); --btn-secondary-border: var(--teal); */
  --btn-secondary-bg: #fff;
  --btn-secondary-text: var(--espresso);
  --btn-secondary-border: var(--espresso);
}

/* =========================
   BASE / FOUC-SCHUTZ
   ========================= */
html{
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
}
body{
  opacity:0;
  transition:opacity .25s ease;
}
body.ready{ opacity:1; }

/* Scroll-Lock, wenn Burger-Menu offen */
body.menu-open {
  overflow: hidden;        /* Desktop & Android */
  height: 100vh;
  touch-action: none;      /* iOS Safari smoother */
}
@supports (overscroll-behavior: contain) {
  body.menu-open { overscroll-behavior: contain; }
}

/* Container-Fallback vor Tailwind (sichere Max-Width) */
.container{ max-width:80rem; margin-inline:auto; padding:0 1rem; }
@media (min-width:768px){ .container{ padding:0 1.5rem; }}

/* =========================
   HELPERS & EFFECTS
   ========================= */
.glass{
  background:var(--glass-bg);
  border:1px solid var(--glass-brd);
  border-radius:var(--glass-br);
  backdrop-filter:saturate(140%) blur(8px);
}
.link-underline{ position:relative; }
.link-underline:after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.link-underline:hover:after{ transform:scaleX(1); }
.magnet{ transform:translateZ(0); transition:transform .15s ease, box-shadow .15s ease; }
.magnet:hover{ transform:translateY(-1px); }

/* =========================
   BACKGROUND ACCENTS
   ========================= */
.accents{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.accent{ position:absolute; border-radius:9999px; filter:blur(48px); }
.accent-1{
  top:-8rem; left:-6rem; width:38rem; height:38rem; opacity:.30;
  background:radial-gradient(circle at 30% 30%, var(--gold), transparent 60%);
}
.accent-2{
  right:-6rem; bottom:-10rem; width:40rem; height:40rem; opacity:.25;
  background:radial-gradient(circle at 70% 70%, var(--sage), transparent 60%);
}

/* =========================
   HEADER SKELETON (gegen CLS)
   ========================= */
#header.header-skeleton{
  position:sticky; top:0; z-index:50; backdrop-filter:blur(10px);
  height:64px;
  background:linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.7));
  border-bottom:1px solid rgba(0,0,0,.05);
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }

/* =========================
   SECTION SPACING
   ========================= */
.section{ padding-block:4rem; }
@media (min-width:768px){ .section{ padding-block:6rem; } }

/* =========================
   BUTTONS (global, themeable)
   ========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.625rem 1rem; border-radius:12px;
  font-weight:600; font-size:.875rem; line-height:1;
  transition:all .2s ease; cursor:pointer; text-decoration:none;
}

/* Hauptaktion – grün/weiß */
.btn-primary{
  background: var(--btn-primary-bg) !important;
  color: var(--btn-primary-text) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.btn-primary:hover{ box-shadow: 0 10px 26px rgba(0,0,0,.12); }

/* Sekundär – weiß/schwarz mit Rahmen */
.btn-secondary{
  background: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
  border: 1px solid var(--btn-secondary-border) !important;
}
.btn-secondary:hover{ background: rgba(0,0,0,.03); }

/* Icons/Inline-SVG in Buttons sollen Farbe erben */
.btn i, .btn svg{ color: currentColor !important; fill: currentColor !important; }

/* ===== Optional: kleine Utilities ===== */
.img-zoom{ overflow:hidden; }
.img-zoom img{ transition: transform .3s ease; }
.img-zoom:hover img{ transform: scale(1.05); }

.hr{ height:1px; background:rgba(0,0,0,.06); width:100%; }

/* =========================
   MOBILE DRAWER SURFACE
   ========================= */
.drawer-bg{
  background: var(--glass-bg);
}

/* dezente, theme-gerechte Akzente im Drawer (nur Mobile relevant) */
@media (max-width: 767px){
  .drawer-bg::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    /* zwei leichte Radial-Verläufe in Gold/Sage */
    background:
      radial-gradient(40% 30% at 12% 0%, rgba(234,179,8,0.12), transparent 60%),
      radial-gradient(40% 30% at 88% 8%, rgba(95,160,137,0.12), transparent 60%);
  }
}
