/* =========================================================
   Sektion Angern – style.css
   - HIER stellst du alles ein (Farben, Hintergründe, Effekte)
   - HTML bleibt sauber = nur Inhalte ändern
   ========================================================= */

/* =========================
   0) REGELER / VARIABLEN
   ========================= */
:root{
  /* Basis-Farben */
  --bg: #0b1220;
  --card: rgba(255,255,255,0.92);
  --text: #111;
  --muted: rgba(0,0,0,0.65);
  --blue: #1b6bd6;

  /* Layout */
  --shadow: 0 12px 30px rgba(0,0,0,0.15);
  --radius: 18px;

  /* ===============================
     1) HINTERGRUND (BILDER LIEGEN NEBEN index.html)
     Wichtig: CSS liegt in /css/, deshalb ../
     =============================== */
  --bg-mobile-img: url("../background-mobile.jpg");
  --bg-desktop-img: url("../background-desktop.jpg");

  /* Mobile Hintergrund-Einstellung */
  --bg-mobile-blur: 10px;
  --bg-mobile-brightness: 0.90;

  /* Desktop Hintergrund-Einstellung */
  --bg-desktop-blur: 25px;
  --bg-desktop-brightness: 0.80;

  /* Dunkel-Overlay über Hintergrund (macht es wirklich dunkler) */
  --bg-overlay: rgba(0,0,0,0.35);

  /* ===============================
     2) BLOCK-VERLAUF (VEREINSFARBEN) – REGELER
     Tipp: 0.03–0.08 ist dezent & sauber
     =============================== */
  --club-blue-rgb: 27,107,214;
  --block-grad-strength: 0.20;   /* vorher 0.25 -> zu stark */
  --block-grad-angle: 135deg;
}

/* =========================
   1) GLOBAL
   ========================= */
*{ box-sizing: border-box; }
a{ color: inherit; }
html{ scroll-behavior: smooth; }
.anchor{ scroll-margin-top: 78px; }

/* =========================
   2) HINTERGRUND (statisch + unscharf)
   ========================= */
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-color: var(--bg);
}

/* Mobile default */
body::before{
  content:"";
  position: fixed;
  inset: 0;

  background-image: var(--bg-mobile-img);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  filter:
    blur(var(--bg-mobile-blur))
    brightness(var(--bg-mobile-brightness));

  transform: scale(1.25);
  z-index: -2;
}

/* Overlay */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: -1;
}

/* Desktop: anderes Bild + eigene Werte */
@media (min-width: 821px){
  body::before{
    background-image: var(--bg-desktop-img);
    filter:
      blur(var(--bg-desktop-blur))
      brightness(var(--bg-desktop-brightness));
  }
}

/* =========================
   3) CONTAINER
   ========================= */
.container{
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   4) TOPBAR / NAV
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color: #fff;
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand small{
  font-weight: 600;
  opacity: .8;
}
.nav{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size: 14px;
  opacity: .92;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{ background: rgba(255,255,255,0.10); }

.menu-btn{
  display:none;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color:#fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================
   5) HERO / BANNER
   ========================= */
header.hero{ padding: 22px 0 10px; }

.hero-card{
  overflow:hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
.banner{
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.banner-mobile{ display:none; }
@media (max-width: 820px){
  .banner-desktop{ display:none; }
  .banner-mobile{ display:block; }
}

.hero-text{
  padding: 16px 18px;
  color: #fff;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-text h1{
  margin:0;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: .2px;
}
.hero-text p{
  margin: 6px 0 0;
  opacity: .9;
  font-weight: 600;
}
.pill{
  display:inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 800;
  white-space: nowrap;
}

/* =========================
   6) SECTIONS / BLÖCKE
   ========================= */
main{ padding: 14px 0 40px; }

section.block{
  margin: 18px 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.06);

  position: relative;
  overflow: hidden;
}

/* Verlauf-Overlay pro Block (blau/weiß, dezent) */
section.block::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    var(--block-grad-angle),
    rgba(var(--club-blue-rgb), var(--block-grad-strength)),
    rgba(255,255,255,0)
  );
  pointer-events:none;
  z-index:0;
}

/* Inhalt über Overlay */
section.block > *{
  position: relative;
  z-index: 1;
}

section.block h2{
  margin:0 0 10px;
  font-size: 20px;
}
.muted{ color: var(--muted); }

.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
.card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 14px;
}
.list{ margin: 0; padding-left: 18px; }

.btn{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--blue);
  color:#fff;
  text-decoration:none;
  font-weight: 800;
}
.btn.secondary{
  background: rgba(0,0,0,0.06);
  color: #111;
}
.row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
details{
  border-radius: 14px;
  background: rgba(0,0,0,0.04);
  padding: 10px 12px;
}
details summary{
  cursor:pointer;
  font-weight: 900;
}

/* =========================
   7) FOOTER
   ========================= */
footer{
  color: rgba(255,255,255,0.92);
  margin-top: 24px;
  padding: 22px 0 28px;
  background: rgba(11,18,32,0.78);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
.footer-links a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 800;
  opacity: .9;
}
.footer-links a:hover{ text-decoration: underline; }

/* =========================
   8) MOBILE NAV
   ========================= */
@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr; }
  .menu-btn{ display:inline-flex; }
  .nav{ display:none; width: 100%; padding: 8px 0 4px; }
  .nav.open{ display:flex; }
  .nav a{ width: 100%; justify-content: center; text-align: center; }
  .topbar-inner{ flex-wrap: wrap; }
}
