/* =========================================================
   STYLE.CSS  –  zentrale Gestaltung (Desktop-first)
   Farben hier unter :root anpassen.
   ========================================================= */

:root{
  /* Flächen */
  --bg:#FFFFFF;            /* Inhaltsbereich: weiß */
  --surface:#FFFFFF;
  --ink:#1A1B19;
  --muted:#6A6F73;
  --line:#E6E6E9;

  /* Markenfarben */
  --brand:#009ee0;                                              /* Header-/Footer-Leiste */
  --brand-grad:linear-gradient(180deg, #3d95d6 0%, #2965a6 100%);/* oberer Balken (Vereinsname) */
  --accent:#2965a6;        /* Akzent für Text/Buttons/Links (dunkel genug auf Weiß) */
  --accent-hover:#1f4e80;
  --accent-soft:#E6F1F9;
  --cta:#d5172f;          /* Buttons Spenden / Mitglied werden */
  --cta-hover:#b31228;

  --f-display:"Bricolage Grotesque", sans-serif;
  --f-body:"Inter", sans-serif;
  --wrap:1100px;
  --pad:clamp(20px,5vw,48px);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--f-body); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased;
  background-color:#9aa0a6;            /* Fallback-Grau, wenn kein Bild gesetzt/gefunden wird */
  background-size:cover; background-position:center; background-repeat:no-repeat; background-attachment:fixed;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
::selection{ background:var(--brand); color:#fff; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding-inline:var(--pad); }
.label{ font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); font-weight:600; }

/* ===== OBERER BALKEN (Vereinsname, Verlauf) ===== */
.topbar{ background:var(--brand-grad); color:#fff; }
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem 2rem; flex-wrap:wrap; min-height:198px; padding-block:1.6rem; }
.topbar-text{ max-width:62ch; }
.topbar-title{ font-family:var(--f-display); font-weight:700; font-size:clamp(1.9rem,4.5vw,3.1rem); letter-spacing:-.01em; line-height:1.03; }
.topbar-info{ font-size:clamp(.95rem,1.7vw,1.1rem); opacity:.92; margin-top:.55rem; }

/* Logo/Name-Badge (nur noch im Footer verwendet) */
.brand{ display:flex; align-items:center; gap:1rem; color:#fff; }
.brand .mark{ width:56px; height:56px; border-radius:13px; background:#fff; color:var(--brand); display:grid; place-items:center; font-family:var(--f-display); font-weight:700; font-size:1.6rem; }
.brand-name{ font-family:var(--f-display); font-weight:700; font-size:clamp(1.9rem,4.5vw,3.1rem); letter-spacing:-.01em; line-height:1; }

/* Buttons im Balken (Rot #d5172f) */
.topbar-cta{ display:flex; gap:.8rem; flex-wrap:wrap; }
.cta{ display:inline-flex; align-items:center; font-family:var(--f-body); font-weight:600; font-size:1rem; padding:.85rem 1.6rem; border-radius:10px; border:2px solid transparent; transition:.2s ease; background:var(--cta); color:#fff; }
.cta:hover{ background:var(--cta-hover); transform:translateY(-2px); }
.cta-outline{ border-color:rgba(255,255,255,.4); }   /* leichte Abgrenzung zum ersten Button */

/* ===== NAVIGATIONSLEISTE (#009ee0) ===== */
header.nav{ position:sticky; top:0; z-index:100; background:var(--brand); }
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:116px; }
.nav-home{ display:flex; align-items:center; gap:.6rem; color:#fff; }
.nav-home .mark{ width:44px; height:44px; border-radius:10px; background:rgba(255,255,255,.2); color:#fff; display:grid; place-items:center; font-family:var(--f-display); font-weight:700; font-size:1.2rem; }
.nav-name{ font-family:var(--f-display); font-weight:700; font-size:1.15rem; letter-spacing:-.01em; }
.logo-img{ height:44px; width:auto; display:block; border-radius:8px; }
.foot .logo-img{ height:30px; border-radius:6px; }

.menu{ display:flex; align-items:center; gap:.4rem; }
.menu > .item{ position:relative; }
.menu a.link, .menu button.link{
  font-family:var(--f-body); font-size:1.02rem; font-weight:500; color:rgba(255,255,255,.9);
  background:none; border:none; cursor:pointer; padding:.6rem .95rem; border-radius:8px;
  display:inline-flex; align-items:center; gap:.35rem;
}
.menu a.link:hover, .menu button.link:hover{ color:#fff; background:rgba(255,255,255,.16); }
.menu .item.active > .link{ color:#fff; background:rgba(255,255,255,.22); }
.caret{ width:9px; height:9px; transition:transform .2s ease; }
.item.open .caret{ transform:rotate(180deg); }

/* Dropdown = weißes Panel (auf Desktop) */
.dropdown{
  position:absolute; top:calc(100% + 8px); left:0; min-width:220px;
  background:var(--brand); border:1px solid rgba(255,255,255,.28); border-radius:10px;
  box-shadow:0 14px 30px rgba(0,0,0,.18); padding:6px;
  opacity:0; visibility:hidden; transform:translateY(-6px); transition:.18s ease;
}
.item:hover .dropdown, .item.open .dropdown{ opacity:1; visibility:visible; transform:none; }
.dropdown a{ display:block; padding:.65rem .75rem; border-radius:7px; font-size:.95rem; color:#fff; }
.dropdown a:hover, .dropdown a[aria-current="page"]{ background:rgba(255,255,255,.18); color:#fff; }

.burger{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.burger span{ display:block; width:22px; height:2px; background:#fff; margin:5px 0; transition:.3s; }

/* ===== SEITEN-INHALT ===== */
main{ display:block; animation:fade .4s ease; min-height:60vh; background:var(--bg); box-shadow:0 0 30px rgba(0,0,0,.12); }
@keyframes fade{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

.page-head{ padding:clamp(40px,6vw,72px) 0 clamp(24px,3vw,36px); }
.page-head h1{ font-family:var(--f-display); font-weight:700; font-size:clamp(2rem,5vw,3.4rem); line-height:1.03; letter-spacing:-.02em; margin:.7rem 0 .4rem; }
.page-head .sub{ color:var(--muted); font-size:1.05rem; max-width:56ch; }

section.block{ padding:0 0 clamp(48px,7vw,80px); }
.block h2{ font-family:var(--f-display); font-weight:600; font-size:clamp(1.4rem,3vw,2rem); letter-spacing:-.01em; margin-bottom:1.2rem; }

/* ===== INSTAGRAM FEED (Raster) ===== */
.feed-top{ display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.2rem; }
.feed-scroll{ display:flex; flex-wrap:wrap; gap:16px; justify-content:center; align-items:flex-start;
  max-height:780px; overflow-y:auto; padding:4px; }
.feed-scroll::-webkit-scrollbar{ width:8px; }
.feed-scroll::-webkit-scrollbar-thumb{ background:var(--line); border-radius:8px; }
.feed-scroll .instagram-media{ margin:0 !important; }
.feed-item{
  position:relative; aspect-ratio:1/1;
  border-radius:12px; overflow:hidden;
  background:linear-gradient(135deg,#3d95d6,#2965a6); display:block; transition:transform .3s ease;
}
.feed-item:nth-child(3n+2){ background:linear-gradient(135deg,#5bb4e6,#3d95d6); }
.feed-item:nth-child(3n+3){ background:linear-gradient(135deg,#2965a6,#1a3f6b); }
.feed-item:hover{ transform:translateY(-3px); }
.feed-item img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.feed-item .cap{ position:absolute; inset:auto 0 0 0; padding:.9rem; font-size:.78rem; color:#fff; background:linear-gradient(to top,rgba(0,0,0,.4),transparent); }
.feed-overlay{ position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:1rem;
  background:color-mix(in srgb, var(--brand) 80%, transparent); color:#fff; font-weight:600; font-size:.92rem;
  opacity:0; transition:opacity .3s ease; }
.feed-item:hover .feed-overlay{ opacity:1; }
#insta-embed:empty{ display:none; }

/* ===== TERMINE ===== */
.termine{ border-top:1px solid var(--line); }
.termin{ display:flex; gap:1.4rem; align-items:baseline; padding:1.3rem 0; border-bottom:1px solid var(--line); }
.termin .date{ flex:0 0 74px; text-align:center; }
.termin .date .d{ font-family:var(--f-display); font-weight:700; font-size:1.7rem; line-height:1; }
.termin .date .m{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin-top:.2rem; }
.termin .body h3{ font-family:var(--f-display); font-weight:600; font-size:1.15rem; }
.termin .body .meta{ color:var(--muted); font-size:.9rem; margin-top:.2rem; }
.termine-empty{ color:var(--muted); padding:1.3rem 0; }

/* ===== GALERIE ===== */
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.g-item{ position:relative; aspect-ratio:4/3; border-radius:12px; overflow:hidden; cursor:pointer; background:linear-gradient(135deg,#E6F1F9,#CFE2F2); }
.g-item:nth-child(2n){ background:linear-gradient(135deg,#DBEAF6,#BCD8EF); }
.g-item img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.g-item:hover img{ transform:scale(1.04); }
.g-item .g-cap{ position:absolute; inset:auto 0 0 0; padding:.8rem; color:#fff; font-size:.82rem; background:linear-gradient(to top,rgba(0,0,0,.45),transparent); }
.g-ph{ position:absolute; inset:0; display:grid; place-items:center; color:var(--accent); font-size:.85rem; }

/* Lightbox */
.lightbox{ position:fixed; inset:0; background:rgba(20,30,45,.9); display:none; place-items:center; z-index:200; padding:24px; }
.lightbox.open{ display:grid; }
.lightbox img{ max-width:92vw; max-height:86vh; border-radius:8px; }
.lightbox .x{ position:absolute; top:20px; right:24px; color:#fff; font-size:2rem; background:none; border:none; cursor:pointer; line-height:1; }

/* ===== TEXT (Programmatik / Satzung) ===== */
.prose{ max-width:70ch; }
.prose h3{ font-family:var(--f-display); font-weight:600; font-size:1.15rem; margin:1.8rem 0 .5rem; }
.prose p{ margin-bottom:1rem; color:#33342f; }
.prose ul{ margin:0 0 1rem 1.2rem; color:#33342f; }
.prose li{ margin-bottom:.5rem; }
.para{ display:block; font-weight:600; color:var(--accent); font-family:var(--f-display); margin-top:1.8rem; }

/* ===== KONTAKT ===== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4rem); align-items:start; }
.info .row{ padding:1rem 0; border-bottom:1px solid var(--line); }
.info .row .label{ display:block; margin-bottom:.25rem; }
.info a:hover{ color:var(--accent); }
.field{ margin-bottom:1.1rem; }
.field label{ display:block; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:.4rem; }
.field input, .field textarea{ width:100%; background:var(--surface); border:1px solid var(--line); border-radius:8px; font-family:var(--f-body); font-size:.98rem; padding:.7rem .8rem; color:var(--ink); }
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent); }
.field textarea{ resize:vertical; min-height:120px; }
.btn{ background:var(--accent); color:#fff; border:none; cursor:pointer; font-family:var(--f-body); font-weight:600; font-size:.98rem; padding:.85rem 1.6rem; border-radius:8px; transition:.2s ease; }
.btn:hover{ background:var(--accent-hover); transform:translateY(-1px); }
.form-status{ margin-top:.8rem; font-size:.9rem; min-height:1.2em; }
.form-status.ok{ color:var(--accent); }
.form-status.err{ color:#b4442f; }

/* ===== FOOTER (#009ee0) ===== */
footer{ background:var(--brand); color:rgba(255,255,255,.92); padding:2.2rem 0; margin-top:0; }
.foot{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; font-size:.85rem; }
.foot .brand-name{ font-size:1rem; }
.foot .brand .mark{ width:28px; height:28px; border-radius:7px; font-size:.85rem; }
.foot-links{ display:flex; gap:1.2rem; flex-wrap:wrap; }
.foot a{ color:#fff; }
.foot a:hover{ text-decoration:underline; }

/* =========================================================
   RESPONSIVE  –  Desktop ist Basis, hier fürs Handy
   ========================================================= */
@media (max-width:820px){
  .contact-grid{ grid-template-columns:1fr; }
  .burger{ display:block; }

  /* Header auf dem Handy etwas kompakter als am PC */
  .nav-inner{ height:84px; }
  .nav-home .mark{ width:38px; height:38px; font-size:1rem; }
  .topbar-inner{ min-height:0; padding-block:1.4rem; gap:1rem; }
  .brand .mark{ width:46px; height:46px; font-size:1.3rem; }
  .cta{ padding:.7rem 1.2rem; font-size:.95rem; }

  /* Menü klappt direkt unter der Navileiste auf (egal wo gescrollt) */
  .menu{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--brand); padding:.3rem var(--pad) 1rem;
    box-shadow:0 14px 26px rgba(0,0,0,.18);
    transform:translateY(-8px); opacity:0; visibility:hidden; transition:.22s ease;
    max-height:calc(100vh - 84px); overflow-y:auto;
  }
  .menu.open{ transform:none; opacity:1; visibility:visible; }
  .menu > .item{ border-bottom:1px solid rgba(255,255,255,.18); }
  .menu a.link, .menu button.link{ width:100%; justify-content:space-between; padding:.9rem .4rem; color:#fff; }

  /* Untermenü auf Mobile: transparent, weiße Links */
  .dropdown{ position:static; box-shadow:none; border:none; background:transparent; padding:0 0 .5rem 1rem; min-width:0; display:none; opacity:1; visibility:visible; transform:none; }
  .dropdown a{ color:rgba(255,255,255,.85); }
  .dropdown a:hover, .dropdown a[aria-current="page"]{ background:rgba(255,255,255,.14); color:#fff; }
  .item:hover .dropdown{ display:none; }
  .item.open .dropdown{ display:block; }
}
@media (max-width:520px){
  .gallery{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){ *{ animation:none!important; transition:none!important; scroll-behavior:auto; } }
