/* /assets/css/base.css
   NEVATUM – Global Base (Typography, Spacing, Buttons, Sections, Defaults)
*/

/* =========================
   DESIGN TOKENS
========================= */
:root{
  /* Backgrounds */
  --bg:#070c0a;
  --bg2:#0b1210;

  /* Text */
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.62);

  /* Lines / Surfaces */
  --line:rgba(255,255,255,.12);
  --line2:rgba(255,255,255,.18);
  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.08);

  /* Accents */
  --sustain:#2aa368;
  --fire:#ff5a5f;
  --tga:#31a3ff;

  /* Layout */
  --max:1200px;
  --pad:24px;

  /* Radius / Shadow */
  --r:18px;
  --r2:14px;
  --shadow:0 18px 50px rgba(0,0,0,.38);

  /* Typography */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --fw-regular:500;
  --fw-bold:800;

  /* Type scale (consistent across all pages) */
  --h1: clamp(24px, 4vw, 42px);
  --h2: clamp(28px, 2.8vw, 40px);
  --h3: 22px;
  --p: 16px;
  --small: 14px;

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 20px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 56px;
  --s-9: 72px;
}

/* =========================
   RESET / BASE
========================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  font-size: var(--p);
  line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 15% 0%, rgba(42,163,104,.16), transparent 58%),
    radial-gradient(1000px 560px at 85% 10%, rgba(49,163,255,.12), transparent 58%),
    radial-gradient(900px 520px at 55% 0%, rgba(255,90,95,.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, textarea, select{ font:inherit; }

/* Make anchors not hide under sticky header */
:target{ scroll-margin-top: 96px; }

/* =========================
   GLOBAL LAYOUT HELPERS
========================= */
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page{
  min-height: 60vh;
}

/* Standard section spacing everywhere */
.section{
  padding: var(--s-9) 0;
}
@media (max-width: 720px){
  :root{ --pad: 18px; }
  .section{ padding: var(--s-8) 0; }
}

/* =========================
   TYPOGRAPHY (CONSISTENT)
========================= */
h1, h2, h3, h4, h5, h6{
  margin:0 0 var(--s-3);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}
h1{ font-size: var(--h1); line-height: 1.05; }
h2{ font-size: var(--h2); line-height: 1.15; }
h3{ font-size: var(--h3); line-height: 1.25; }
p{
  margin: 0 0 var(--s-3);
  color: var(--muted);
  font-weight: var(--fw-regular);
}
strong{ color: var(--text); font-weight: 800; }

.small{ font-size: var(--small); color: var(--muted2); }
.lead{
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================
   BUTTONS (CONSISTENT)
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.16);
  background: transparent;
  color: var(--text);
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  cursor:pointer;
  white-space: nowrap;
}
.btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.btn:active{
  transform: translateY(-1px);
}
.btn--ghost{
  background: rgba(255,255,255,.06);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.10);
}

/* Text links (e.g., "Mehr erfahren") */
.more,
.textlink{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-weight: 900;
  color: var(--text);
  border-bottom: 2px solid rgba(255,255,255,.30);
  padding-bottom: 2px;
  transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}
.more:hover,
.textlink:hover{
  border-color: rgba(255,255,255,.70);
  transform: translateY(-1px);
}

/* =========================
   CARDS / SURFACES (GLOBAL)
========================= */
.card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* =========================
   THEME OVERLAYS (optional per page)
   Set body.class = theme-fire / theme-tga / theme-sustain
========================= */

/* Default = sustain-ish already in base background */
body.theme-sustain{
  background:
    radial-gradient(1100px 620px at 15% 0%, rgba(42,163,104,.22), transparent 58%),
    radial-gradient(1000px 560px at 85% 10%, rgba(42,163,104,.14), transparent 58%),
    radial-gradient(900px 520px at 55% 0%, rgba(42,163,104,.10), transparent 60%),
    linear-gradient(180deg, #070c0a 0%, #0b1210 60%, #070c0a 100%);
}

body.theme-tga{
  background:
    radial-gradient(1100px 620px at 15% 0%, rgba(49,163,255,.22), transparent 58%),
    radial-gradient(1000px 560px at 85% 10%, rgba(49,163,255,.14), transparent 58%),
    radial-gradient(900px 520px at 55% 0%, rgba(49,163,255,.10), transparent 60%),
    linear-gradient(180deg, #070c0a 0%, #0b1210 60%, #070c0a 100%);
}

body.theme-fire{
  background:
    radial-gradient(1100px 620px at 15% 0%, rgba(255,90,95,.22), transparent 58%),
    radial-gradient(1000px 560px at 85% 10%, rgba(255,90,95,.14), transparent 58%),
    radial-gradient(900px 520px at 55% 0%, rgba(255,90,95,.10), transparent 60%),
    linear-gradient(180deg, #070c0a 0%, #0b1210 60%, #070c0a 100%);
}

/* Optional: extra top glow */
body.theme-tga::before,
body.theme-fire::before,
body.theme-sustain::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, transparent 55%);
}
body.theme-tga::before{
  background: linear-gradient(180deg, rgba(49,163,255,.28) 0%, rgba(49,163,255,.12) 22%, transparent 55%);
}
body.theme-fire::before{
  background: linear-gradient(180deg, rgba(255,90,95,.28) 0%, rgba(255,90,95,.12) 22%, transparent 55%);
}
body.theme-sustain::before{
  background: linear-gradient(180deg, rgba(42,163,104,.26) 0%, rgba(42,163,104,.12) 22%, transparent 55%);
}

/* =========================
   ACCESSIBILITY
========================= */
.vh{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
:focus-visible{
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 3px;
  border-radius: 10px;
}