
:root{
  --bg:#06140d;
  --card:#0b2016;
  --text:#f3fff8;
  --muted:#bfe8d1;
  --accent:#1fbf63;
  --border: rgba(243,255,248,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
  --pad: 18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:var(--font);background: radial-gradient(1200px 600px at 15% 0%, rgba(31,191,99,.18), transparent 55%),
radial-gradient(900px 500px at 85% 10%, rgba(255,255,255,.10), transparent 55%), var(--bg); color:var(--text)}
a{text-decoration:none;color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
header{
  position: sticky; top:0; z-index:50;
  background: rgba(6,20,13,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;flex-wrap:wrap}
.brand{display:flex;gap:12px;align-items:center}
.brand .logo{
  width:48px;height:48px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.brand .logo img{max-width:100%;max-height:100%;object-fit:contain}
.brand .titles{display:flex;flex-direction:column;line-height:1.05}
.brand .titles strong{font-size:16px}
.brand .titles small{color:var(--muted);font-size:12px}
nav.menu{display:flex;gap:8px;flex-wrap:wrap}
nav.menu a{
  padding:8px 10px;border-radius:10px;
  color:var(--muted);
  border:1px solid transparent;
}
nav.menu a:hover, nav.menu a.active{
  color:var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.03);
}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 14px;border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(31,191,99,.95), rgba(255,255,255,.75));
  border-color: transparent;
  color:#06140d;
  box-shadow: var(--shadow);
}
.iconbtn{
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.iconbtn svg{width:18px;height:18px;fill:var(--text)}
.iconbtn:hover{background: rgba(255,255,255,.07)}
main{padding: 22px 0 36px}
.card{
  background: rgba(11,32,22,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 14px;
}
.grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }
h1{margin:0 0 10px;font-size:38px;line-height:1.1}
h2{margin:0 0 10px;font-size:22px}
h3{margin:0 0 8px;font-size:16px}
p{margin:0 0 12px;color:var(--muted);line-height:1.6}
.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.badge{
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-size:13px;color:var(--text);
}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 900px){ .split{grid-template-columns:1fr} }
footer{
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.10);
  padding: 22px 0 32px;
}
.footerrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.small{font-size:12px;color:var(--muted)}
.small a{color:var(--muted)}
.small a:hover{color:var(--text)}
.hr{height:1px;background:var(--border);margin:12px 0}
.embed{
  width:100%;
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.embed iframe{width:100%;border:0}


/* HERO mit Hintergrundbild (Web-optimiert) */
.hero-bg{
  --heroY: 0px;
  --heroScale: 1;
  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
}

/* Hintergrundebene */
.hero-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(6,20,13,.55), rgba(6,20,13,.88)),
    image-set(
      url("../img/hero-bg.webp") type("image/webp"),
      url("../img/hero-bg.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--heroY), 0) scale(var(--heroScale));
  will-change: transform;
}

/* Inhalt bleibt klar abgesetzt */
.hero-bg > .container{
  position: relative;
  z-index: 1;
}
.hero-bg .card{
  background: rgba(11,32,22,.82);
  backdrop-filter: blur(6px);
}

/* größeres Vereinslogo im Hero */
.hero-logo{
  display:flex;
  justify-content:center;
  margin-bottom: 18px;
}
.hero-logo img{
  height: 140px;
  max-width: 100%;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.6));
}
@media (max-width: 600px){
  .hero-logo img{ height: 110px; }
}


/* Subpage hero image */
.page-hero{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 14px;
}
.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(6,20,13,.35), rgba(6,20,13,.88)),
    var(--heroImg);
  background-size: cover;
  background-position: center;
}
.page-hero > div{
  position: relative;
  z-index: 1;
  padding: 18px;
}

/* --- Anpassung: Zentrierter Header (Logo + Vereinsname) + Buttons unten --- */
.navbar{
  justify-content:center;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:18px 0;
}

.menu{
  justify-content:center;
}

.actions{
  justify-content:center;
}

/* Make brand wrap nicely on small screens */
.brand{
  justify-content:center;
}

/* Keep primary button and instagram icon visually adjacent */
.actions .btn.primary{margin-right:0}
