/* =====================================================================
   DFGB · Dorf- und Freizeitgemeinschaft Bahlburg e.V.
   Eigenständiges Design – dörflich, warm, lebendig (Wappenfarben).
   Poppins (Headlines) + Open Sans (Text). Navy · Gold · Grün · Burgrot.
   ===================================================================== */

:root {
  --navy-900: #142a42;
  --navy-800: #173451;
  --navy-700: #1d4067;   /* Leitfarbe */
  --navy-600: #2b5586;
  --gold-600: #b07e16;
  --gold-500: #d4a02c;   /* Löwen-Gold */
  --gold-400: #e6bd5a;
  --green-600:#2e6f30;
  --green-500:#3e8d3f;   /* Wiesengrün */
  --red-500:  #cd3a31;   /* Burg-Rot */
  --red-600:  #b22f27;

  --cream:   #fbf6ec;    /* warmer Seitenhintergrund */
  --sand:    #f4ead6;    /* warme Panels */
  --paper:   #ffffff;
  --ink:     #21303c;
  --ink-soft:#56646f;
  --line:    #ece2cf;
  --line-d:  #d9cdb4;

  --shadow:    0 14px 38px -18px rgba(20,42,66,.40);
  --shadow-sm: 0 6px 18px -10px rgba(20,42,66,.35);
  --radius:    16px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1,h2,h3,h4 { font-family: var(--head); }

.container { width: min(1160px, 92%); margin: 0 auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--head);
  font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold  { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover  { background: var(--gold-400); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-navy  { background: var(--navy-700); color: #fff; }
.btn-navy:hover  { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--line-d); }
.btn-ghost:hover { background: var(--sand); color: var(--navy-800); }

/* ---------- Top accent + Wimpelkette ---------- */
.topstripe { height: 5px; background: linear-gradient(90deg, var(--navy-700), var(--gold-500) 50%, var(--green-500)); }

.bunting { display: block; width: 100%; height: 26px; }
.bunting .flag-n { fill: var(--navy-700); }
.bunting .flag-g { fill: var(--gold-500); }
.bunting .flag-e { fill: var(--green-500); }
.bunting .flag-r { fill: var(--red-500); }
.bunting .string { stroke: rgba(255,255,255,.35); stroke-width: 2; fill: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,246,236,.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--gold-500); background: #fff; padding: 2px;
  object-fit: contain; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: var(--navy-700); letter-spacing: .5px; }
.brand-sub   { font-size: .72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .2px; }

.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a {
  font-family: var(--head);
  color: var(--navy-800); font-weight: 500; font-size: .96rem;
  position: relative; padding: 6px 0;
}
.nav-list a:not(.nav-cta)::after {
  content:""; position: absolute; left:0; right:0; bottom:-2px; height:3px;
  background: var(--gold-500); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-list a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--navy-700); color:#fff !important; padding: 9px 20px !important; border-radius: 999px; }
.nav-cta:hover { background: var(--navy-800); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; flex-direction: column; gap: 5px;
  justify-content: center; align-items: center;
}
.nav-toggle span { display:block; width: 24px; height: 2.5px; background: var(--navy-700); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(212,160,44,.22), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(62,141,63,.20), transparent 45%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero::after {  /* dezente Luhe-Welle unten */
  content:""; position:absolute; left:0; right:0; bottom:-1px; height: 60px;
  background:
    radial-gradient(120% 100% at 50% 100%, transparent 60%, rgba(255,255,255,.04) 61%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px;
  align-items: center; padding: 78px 0 88px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .74rem;
  color: var(--gold-400); margin: 0 0 18px;
}
.hero-eyebrow::before { content:""; width: 26px; height: 2px; background: var(--gold-500); display:inline-block; }
.hero h1 {
  font-weight: 700; font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  line-height: 1.04; margin: 0 0 20px; letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--gold-400); }
.hero-lead { font-size: 1.14rem; color: #dfe7f0; max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge { display: flex; justify-content: center; }
.hero-crest {
  width: min(78%, 300px); aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff, #f3ecdd);
  border: 8px solid var(--gold-500);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.6), inset 0 0 0 2px rgba(20,42,66,.08);
  display: grid; place-items: center; padding: 16%;
}
.hero-crest img { width: 100%; height: auto; filter: drop-shadow(0 6px 12px rgba(20,42,66,.25)); }

/* ---------- Section frame ---------- */
.section { padding: 84px 0; }
.section-sand { background: var(--sand); }
.section-paper { background: var(--paper); }
.eyebrow {
  font-family: var(--head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; font-size: .76rem;
  color: var(--gold-600); margin: 0 0 12px;
}
.eyebrow.center { text-align:center; }
.section-title {
  font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--navy-700); margin: 0 0 16px; line-height: 1.12; letter-spacing: -.3px;
}
.section-title.center { text-align:center; }
.section-intro { max-width: 660px; color: var(--ink-soft); font-size: 1.06rem; }
.section-intro.center { margin: 0 auto 8px; text-align: center; }

/* ---------- Nächste Termine (Event-Board) ---------- */
.board {
  margin-top: -54px; position: relative; z-index: 5;
}
.board-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 30px 30px;
}
.board-head { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.board-head h2 {
  font-size: 1.35rem; font-weight: 700; color: var(--navy-700); margin: 0;
}
.board-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(205,58,49,.18); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ev {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--cream);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ev:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-d); }
.ev-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px; color: #fff; line-height: 1;
}
.ev-date .d { font-family: var(--head); font-weight: 700; font-size: 1.5rem; }
.ev-date .m { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-top: 3px; }
.ev-date.c-red   { background: var(--red-500); }
.ev-date.c-gold  { background: var(--gold-500); color: var(--navy-900); }
.ev-date.c-green { background: var(--green-500); }
.ev-date.c-navy  { background: var(--navy-700); }
.ev-body h3 { font-size: 1.06rem; font-weight: 600; color: var(--navy-800); margin: 0 0 2px; }
.ev-body p  { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 18px; text-align: center;
  position: relative; overflow: hidden;
}
.stat::before { content:""; position:absolute; top:0; left:0; right:0; height: 5px; background: var(--gold-500); }
.stat:nth-child(2)::before { background: var(--green-500); }
.stat:nth-child(3)::before { background: var(--red-500); }
.stat:nth-child(4)::before { background: var(--navy-700); }
.stat-num { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem,3vw,2.6rem); color: var(--navy-700); line-height: 1; }
.stat-label { font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Über uns (two-col) ---------- */
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.two-col.reverse .col-media { order: -1; }
.lead-p { font-size: 1.08rem; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 34px; color: var(--ink); }
.feature-list li::before {
  content:""; position:absolute; left:0; top:2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4L19 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.motto-card {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color:#fff; border-radius: var(--radius-lg); padding: 46px 40px; position: relative;
  box-shadow: var(--shadow); overflow: hidden;
}
.motto-card::before {
  content:"„"; position:absolute; top: -18px; left: 22px; font-family: var(--head);
  font-size: 8rem; color: var(--gold-500); opacity: .5; line-height: 1;
}
.motto-card p { font-family: var(--head); font-weight: 500; font-size: 1.5rem; line-height: 1.35; margin: 18px 0 0; }
.motto-card .by { display:block; margin-top: 18px; font-family: var(--body); font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }

/* ---------- Aktivitäten-Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile-ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 16px; color:#fff;
}
.tile-ic svg { width: 30px; height: 30px; }
.tile h3 { font-size: 1.18rem; font-weight: 600; color: var(--navy-800); margin: 0 0 6px; }
.tile p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.t-navy  .tile-ic { background: var(--navy-700); }
.t-green .tile-ic { background: var(--green-500); }
.t-gold  .tile-ic { background: var(--gold-500); color: var(--navy-900); }
.t-red   .tile-ic { background: var(--red-500); }
.t-navy:hover  { border-color: var(--navy-600); }
.t-green:hover { border-color: var(--green-500); }
.t-gold:hover  { border-color: var(--gold-500); }
.t-red:hover   { border-color: var(--red-500); }

/* ---------- Jahresprogramm (Termin-Liste) ---------- */
.program { max-width: 800px; margin: 40px auto 0; display: grid; gap: 12px; }
.prow {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--navy-700);
  border-radius: var(--radius); padding: 14px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.prow:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.prow.hl { border-left-color: var(--red-500); background: #fff7f4; }
.prow.hl .p-date { color: var(--red-600); }
.p-date { font-family: var(--head); font-weight: 700; color: var(--navy-700); font-size: .96rem; text-align: center; }
.p-date small { display:block; font-weight: 600; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.p-title { font-weight: 600; color: var(--navy-800); }
.p-title small { display:block; font-family: var(--body); font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.p-tag { font-family: var(--head); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green-600); white-space: nowrap; }

.regular-note {
  max-width: 800px; margin: 0 auto 8px;
  background: var(--paper); border: 1px dashed var(--line-d); border-radius: var(--radius);
  padding: 16px 22px; color: var(--ink-soft); font-size: .96rem;
}
.regular-note strong { color: var(--navy-700); }

/* ---------- Mitmachen (Call to Action) ---------- */
.help {
  background: linear-gradient(160deg, var(--green-600), var(--green-500));
  color:#fff; position: relative; overflow: hidden;
}
.help .eyebrow { color: #d8f0d2; }
.help .section-title { color:#fff; }
.help .section-intro { color: #eaf6e7; }
.help-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 42px 0 38px; }
.help-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 24px 20px; backdrop-filter: blur(2px);
}
.help-card .h-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.16); display:grid; place-items:center; margin-bottom: 14px; }
.help-card .h-ic svg { width: 26px; height: 26px; }
.help-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; color:#fff; }
.help-card p { margin: 0; font-size: .92rem; color: #eaf6e7; }
.help-cta { text-align:center; }

/* ---------- Dörpshus ---------- */
.place-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.place-card .pc-top { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color:#fff; padding: 28px 32px; }
.place-card .pc-top h3 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.place-card .pc-top .tag { font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.place-card .pc-body { padding: 24px 32px 28px; }
.kv { list-style:none; margin:0; padding:0; }
.kv li { display:grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
.kv li:first-child { border-top: 0; }
.kv strong { font-family: var(--head); font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy-700); padding-top: 3px; }

/* ---------- Kontakt + Vorstand ---------- */
.contact-list { list-style:none; padding:0; margin: 8px 0 0; }
.contact-list li { display:grid; grid-template-columns: 110px 1fr; padding: 13px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top:0; }
.contact-list strong { font-family: var(--head); font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy-700); padding-top: 3px; }

.bank {
  margin-top: 24px; background: var(--sand); border: 1px solid var(--line-d);
  border-left: 5px solid var(--gold-500); border-radius: var(--radius-sm); padding: 18px 22px;
}
.bank-title { font-family: var(--head); font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin: 0 0 6px; }
.bank-iban { font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: var(--navy-700); margin: 0 0 6px; letter-spacing: .5px; }
.bank-note { margin: 0; font-size: .88rem; font-style: italic; color: var(--ink-soft); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; display: grid; gap: 15px; }
.contact-form label { display:grid; gap: 6px; }
.contact-form span { font-family: var(--head); font-size: .76rem; letter-spacing: 1px; text-transform: uppercase; color: var(--navy-700); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--body); font-size: 1rem; padding: 12px 14px;
  border: 1.5px solid var(--line-d); border-radius: var(--radius-sm); background: var(--cream); color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--navy-600); background: #fff;
}
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-hint { margin: 0; font-size: .84rem; color: var(--ink-soft); }

.vorstand-title { text-align:center; font-size: 1.5rem; font-weight: 700; color: var(--navy-700); margin: 64px 0 6px; }
.vorstand { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.vcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--navy-700); transition: transform .18s ease, box-shadow .18s ease; }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.vcard.lead-v { border-top-color: var(--gold-500); }
.vcard h4 { margin: 0 0 3px; font-size: 1.15rem; color: var(--navy-800); }
.vcard .role { margin: 0 0 10px; font-family: var(--head); font-size: .72rem; letter-spacing: .8px; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.vcard .vc { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.vcard .vc a { color: var(--navy-600); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3d2e2; }
.footer-top .bunting { transform: rotate(180deg); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 46px 0 38px; }
.footer-brand { display:flex; align-items:center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--gold-500); background:#fff; padding: 2px; }
.footer-brand strong { font-family: var(--head); color:#fff; font-size: 1.2rem; }
.footer-brand span { font-size: .82rem; color: #9fb3c8; display:block; }
.footer-nav { display:flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-family: var(--head); color:#c3d2e2; font-size: .92rem; font-weight: 500; }
.footer-nav a:hover { color: var(--gold-400); }
.footer-copy { text-align: right; margin: 0; font-size: .84rem; color: #8ea6bf; }

/* ---------- Mail-Grafik / Schutz ---------- */
.mail-link { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 80px; }
  .hero-badge { order: -1; }
  .hero-crest { width: 220px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-media { order: 0; }
  .board-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .vorstand { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-copy { text-align: center; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; left: 4%; right: 4%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--shadow); display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 11px 12px; }
  .nav-cta { text-align: center; }
  .prow { grid-template-columns: 70px 1fr; }
  .prow .p-tag { grid-column: 2; }
}
@media (max-width: 460px) {
  .stats, .tiles, .help-grid, .vorstand { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
