/* shell.css – globaler Rahmen (Header, Content, Footer) für alle Marken-Seiten */
/* Selektoren absolut vom body aus durchverschachtelt */

/* Marken-Farben (aus dem Logo gepickt) */
:root {
  --bh-gelb: #F5CE21;
  --bh-gruen-hell: #5DC97A;
  --bh-gruen: #42AF69;
  --bh-gruen-mid: #2E9E54;
  --bh-gruen-dunkel: #15663A;

  /* Grün-Verlauf wie im Logo (hell -> dunkel) */
  --bh-gradient: linear-gradient(135deg, #5DC97A 0%, #42AF69 45%, #1B7A3D 100%);

  --bg: #1a1a1a;
  --bg-soft: #141414;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-dim: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Cleane, schmale Scrollbar (global) --- */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

/* WebKit (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--bh-gruen);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   ANIMIERTER HINTERGRUND (global)
   ============================================ */
body > div.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: var(--bg);
}

/* Weiche, langsam schwebende Farbflecken */
body > div.bg-wrapper > div.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orbFloat 22s ease-in-out infinite;
}

body > div.bg-wrapper > div.glow-orb.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(66, 175, 105, 0.45) 0%, rgba(66, 175, 105, 0.1) 50%, transparent 70%);
  top: -200px;
  left: -120px;
  animation-delay: 0s;
}

body > div.bg-wrapper > div.glow-orb.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 206, 33, 0.28) 0%, rgba(245, 206, 33, 0.06) 50%, transparent 70%);
  top: 35%;
  right: -160px;
  animation-delay: -8s;
}

body > div.bg-wrapper > div.glow-orb.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(93, 201, 122, 0.35) 0%, transparent 70%);
  bottom: -120px;
  left: 25%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 25px) scale(0.95); }
}

/* Feines Raster */
body > div.bg-wrapper > div.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Gradient-Schleier oben + Abdunklung unten */
body > div.bg-wrapper > div.gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(66, 175, 105, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.85) 100%);
}

/* Feine Rausch-Textur */
body > div.bg-wrapper > div.noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Header --- */
body > header.shell-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

/* beim Scrollen: Blur + dezenter Hintergrund */
body > header.shell-header.scrolled {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

body > header.shell-header > nav.shell-header__nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
}

body > header.shell-header > nav.shell-header__nav > a.shell-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

body > header.shell-header img.shell-header__logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Text-Schriftzug, wenn kein Logo-Bild gesetzt ist */
body > header.shell-header span.shell-header__logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}

body > header.shell-header ul.shell-header__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

body > header.shell-header ul.shell-header__menu > li > a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

body > header.shell-header ul.shell-header__menu > li > a:hover {
  color: var(--bh-gruen-hell);
}

/* aktive Seite hervorheben */
body > header.shell-header ul.shell-header__menu > li > a.active {
  color: var(--bh-gruen-hell);
  font-weight: 600;
}

/* --- Burger (nur mobil sichtbar) --- */
body > header.shell-header button.shell-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

body > header.shell-header button.shell-header__burger > span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger -> X wenn aktiv */
body > header.shell-header button.shell-header__burger.is-active > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body > header.shell-header button.shell-header__burger.is-active > span:nth-child(2) {
  opacity: 0;
}
body > header.shell-header button.shell-header__burger.is-active > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile --- */
@media (max-width: 768px) {
  body > header.shell-header > nav.shell-header__nav {
    padding: 0.7rem 1.2rem;
  }

  body > header.shell-header button.shell-header__burger {
    display: flex;
  }

  /* Menü als ausklappbares Panel unter dem Header */
  body > header.shell-header ul.shell-header__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, border-color 0.3s ease, visibility 0.3s ease;
  }

  body > header.shell-header ul.shell-header__menu.is-open {
    max-height: 320px;
    visibility: visible;
    border-bottom-color: var(--border);
  }

  body > header.shell-header ul.shell-header__menu > li {
    width: 100%;
  }

  body > header.shell-header ul.shell-header__menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 1rem;
  }
}

/* --- Content --- */
body > main {
  flex: 1;
  width: 100%;
}

/* --- Footer --- */
body > footer.shell-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

body > footer.shell-footer > div.shell-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* obere Footer-Zeile: Brand links, Spalten rechts */
body > footer.shell-footer div.shell-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

body > footer.shell-footer div.shell-footer__brand > strong {
  font-size: 1.2rem;
  color: var(--bh-gruen);
}

body > footer.shell-footer div.shell-footer__brand > p {
  color: var(--text-dim);
  margin-top: 0.4rem;
  max-width: 420px;
}

/* Social-Icons */
body > footer.shell-footer div.shell-footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

body > footer.shell-footer a.shell-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

body > footer.shell-footer a.shell-footer__social-link:hover {
  color: var(--bh-gruen-hell);
  border-color: var(--bh-gruen);
  transform: translateY(-2px);
}

/* Link-Spalten (Kontakt, Rechtliches) */
body > footer.shell-footer div.shell-footer__cols {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

body > footer.shell-footer div.shell-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body > footer.shell-footer div.shell-footer__col > h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 0.2rem;
}

body > footer.shell-footer div.shell-footer__col > a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

body > footer.shell-footer div.shell-footer__col > a:hover {
  color: var(--bh-gruen-hell);
}

body > footer.shell-footer div.shell-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

body > footer.shell-footer div.shell-footer__copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

body > footer.shell-footer span.shell-footer__dev {
  color: var(--text-dim);
  font-size: 0.85rem;
}

body > footer.shell-footer span.shell-footer__dev > a {
  color: var(--bh-gruen-hell);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

body > footer.shell-footer span.shell-footer__dev > a:hover {
  color: var(--bh-gelb);
}

/* ============================================
   COOKIE-BANNER (global, unten eingeblendet)
   ============================================ */
body > div.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  z-index: 2000;
  width: calc(100% - 2rem);
  max-width: 620px;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

body > div.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

body > div.cookie-banner > div.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.6rem;
}

body > div.cookie-banner div.cookie-banner__text > h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

body > div.cookie-banner div.cookie-banner__text > p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

body > div.cookie-banner div.cookie-banner__buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Buttons im Banner (global, unabhängig von der Seite) */
body > div.cookie-banner button.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

body > div.cookie-banner button.btn--primary {
  background: var(--bh-gradient);
  color: #0d0d0d;
  border: 1.5px solid var(--bh-gelb);
}

body > div.cookie-banner button.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66, 175, 105, 0.4);
}

body > div.cookie-banner button.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

body > div.cookie-banner button.btn--ghost:hover {
  border-color: var(--bh-gruen-hell);
  color: var(--bh-gruen-hell);
}

/* mobil: untereinander */
@media (max-width: 600px) {
  body > div.cookie-banner > div.cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  body > div.cookie-banner div.cookie-banner__buttons {
    justify-content: flex-end;
  }
}
