/* base.css*/
/* =====================================================
   ROOT DESIGN TOKENS — LIGHT MODE (DEFAULT)
===================================================== */

:root {
  /* Brand colors */
  --green-dark: #013914;
  --green-light: #77b72b;
  --green-mid: #74c69d;

  /* Text */
  --text-dark: #040404;
  --muted: #3d5a49;

  /* Surfaces */
  --bg: #ffffff;
  --panel-bg: #f7fbf8;
  --glass: rgba(255,255,255,0.6);

  /* Accents */
  --accent-contrast: #ffffff;

  /* Shadows */
  --shadow-strong: 0 28px 60px rgba(6,20,10,0.14);
  --shadow-soft: 0 10px 30px rgba(6,20,10,0.06);

  /* Layout */
  --radius: 16px;
  --ease: cubic-bezier(.2,.9,.25,1);

  --card-width-desktop: 420px;
  --card-width-tablet: 360px;
  --card-width-mobile: 86vw;

  --nav-width: 92%;
  --desktop-width: 80vw;
  --desktop-height: 80vh;

  /* Media */
  --hero-bg: url("/pictures/ansbach/23044273-CR2_DxO.jpg");

  /* Charts */
  --chart-text: #040404;

  /* Fonts */
  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* =====================================================
   DARK MODE TOKENS
===================================================== */

.dark {
  --bg: #07120f;
  --panel-bg: #0b1a18;

  --text-dark: #dfeee6;
  --muted: #9bb6a8;

  --accent-contrast: #2c4139;
  --glass: rgba(10,15,13,0.45);

  --shadow-strong: 0 28px 60px rgba(0,0,0,0.7);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.45);

  --chart-text: #f2f7f4;
}
/* =====================================================
   GLOBAL BASE RULES
===================================================== */

html {
  background: var(--bg);
  color: var(--text-dark);
  position: relative;
  min-height: 100%;
}

/* IMPORTANT:
   Body must be transparent so the ambient layer can show */
body {
  margin: 0;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-dark);
  transition: background .25s ease, color .25s ease;
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-dark);
}

p, a, li {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}




/* =========================================================
   AMBIENT BRAND LAYER — Global background logo
========================================================= */

/* Solid page background */
html::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

/* Ambient logo layer */
html::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 1;

  background-image: url("/assets/pictures/logo_blank.png");
  background-repeat: no-repeat;
  background-position: 50% 55%;
  background-size: min(60vw, 520px);

  opacity: .035;
  filter: blur(2px) saturate(.9);

  pointer-events: none;
}

/* Dark mode tuning */
.dark html::after{
  opacity: .045;
  filter: blur(2.5px) saturate(1);
}

/* Lift all actual content above the ambient layers */
body > *{
  position: relative;
  z-index: 2;
}

/* =========================================================
   GLOBAL SECTION TRANSITION SOFTENER — between sections only
========================================================= */

section{
  position: relative;
}

/* Only add a TOP feather if there is a section before it */
section + section::before{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 48px;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(to bottom, var(--bg), transparent);
}

/* Only add a BOTTOM feather if there is a section after it */
section:not(:last-of-type)::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(to top, var(--bg), transparent);
}

/* =========================================================
   GLOBAL DEPTH FOG — Page unifier
========================================================= */

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.04),
      rgba(255,255,255,.02) 30%,
      rgba(255,255,255,.02) 70%,
      rgba(255,255,255,.04)
    );

  pointer-events: none;
}

/* Dark mode */
.dark body::after{
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.18),
      rgba(0,0,0,.10) 30%,
      rgba(0,0,0,.10) 70%,
      rgba(0,0,0,.18)
    );
}
section{
  margin-top: -24px;
  padding-top: 24px;
}
