:root {
  --bg: #070707;
  --fg: #f4f1ea;
  --muted: rgba(244, 241, 234, .72);
  --line: rgba(244, 241, 234, .12);
  --accent: #e9d7b6;
  --serif: "Playfair Display", ui-serif, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  color: var(--fg);
  font-family: var(--sans);
  background: var(--bg);
  overflow-x: hidden;
}

/* --- STAGE SYSTEM --- */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#heroBg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Layer A: Video Hintergrund (Hero) */
#heroBgA {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

#heroVideo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Video füllt den Bereich ohne Verzerrung */
}

/* Layer B: Statisches Bild (nachfolgende Sektionen) */
#heroBgB {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0; /* Wird per JS beim Scrollen auf 1 gesetzt */
  background-image: url("./assets/bg_blumen.png"); /* Hier das neue Bild */
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease-in-out;
}

/* Schwarzer Verlauf / Lesbarkeits-Overlay 
#heroShade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(1200px 700px at 60% 25%, rgba(0,0,0,.10), rgba(0,0,0,.62) 70%, rgba(0,0,0,.80) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0,0,0,.55));
}*/

/* Grüner Verlauf / Lesbarkeits-Overlay */
#heroShade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(1200px 700px at 60% 25%, rgba(4, 146, 51, 0.1), rgba(4, 146,51,.62) 70%, rgba(4,146,51,.80) 100%),
    linear-gradient(to bottom, rgba(4, 146, 51, 0.18), rgba(4, 146, 51, 0.55));
}



#webgl {
  position: absolute;
  inset: 0;
  z-index: 4; /* Canvas über den Hintergründen */
  width: 100%;
  height: 100%;
}

/*Schwarzer Vignette & Filmkorn Overlay
.vignette { position: absolute; inset: 0; z-index: 5; background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.5) 100%); }*/
/*Grüner Vignette & Filmkorn Overlay*/
.vignette { position: absolute; inset: 0; z-index: 5; background: radial-gradient(circle, transparent 40%, rgba(4,146,51,0.5) 100%); }
.grain { position: absolute; inset: -40%; z-index: 6; opacity: 0.04; background-image: url("https://grainy-gradients.vercel.app/noise.svg"); }

/* --- CONTENT --- */
main { position: relative; z-index: 10; }
.hero_section { display: flex; align-items: center; padding: 100px 0;}
.section { min-height: 20vh; display: flex; align-items: center; padding: 20px 0; background: rgba(5, 107, 39, 0.7);}
.container { width: min(1400px, calc(100% - 48px)); margin-inline: auto; }
.actions { 

  font-family: "Shadows Into Light", cursive;
  font-weight: 400;
  font-style: normal;
  align-items: center; 
  padding: 50px 0; 
  font-size: 3.2rem; gap: 20px; 
  display: flex;
}

.title { font-family: var(--serif); font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 50px 0 20px; }
.accent { color: var(--accent); }
.subtitle { color: var(--muted); font-size: 7.5rem; line-height: 1.6; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 20px;
  border: 3px solid var(--accent);
  border-color: white;
  color: white;
  text-decoration: none;
  background: rgba(248, 247, 246, 0.1);
  transition: 0.3s;
}

.content { 

  font-family:'Times New Roman', Times, serif;
  font-weight: 400;
  font-style: normal;
  color: white;
  align-items: center; 
  padding: 10px 0; 
  font-size: 2.2rem; gap: 20px; 
  display: flex;
}


.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; padding: 14px 0;
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar__inner { width: min(1200px, calc(100% - 48px)); margin: auto; display: flex; justify-content: space-between; }
.brand { text-decoration: none; color: inherit; font-weight: 600; letter-spacing: .2em; }
.nav { display: flex; gap: 20px; }
.nav__link { text-decoration: none; color: inherit; font-size: .9rem; opacity: .8; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.card { padding: 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 15px; }
.h2 { font-family:"Shadows Into Light", cursive; font-size: 3rem; color: white; }