/* ============================================================
   KG AHLE HOOT 1950 e.V. — styles.css
   Plain CSS, no frameworks. Easy to edit.
   ============================================================

   TABLE OF CONTENTS
   1. CSS Variables (colors, fonts, spacing)
   2. Reset & Base
   3. Layout helpers
   4. Header & Nav
   5. Hero + Confetti
   6. Sections (shared)
   7. Cards (Verein)
   8. Board (Vorstand)
   9. Groups (Garden & Gruppen)
   10. Social / Termine
   11. Contact
   12. Footer
   13. Buttons
   14. Media queries (mobile)
   15. Legal pages
============================================================ */


/* ============================================================
   1. CSS VARIABLES
============================================================ */
:root {
  --green-dark:   #0f3d22;
  --green-mid:    #1e6b3e;
  --green-light:  #3a9e60;
  --green-pale:   #e8f5ee;
  --gold:         #c9a032;
  --gold-light:   #f0d878;
  --gold-pale:    #fdf7e3;

  --white:        #ffffff;
  --off-white:    #f8fbf9;
  --text:         #152b1e;
  --text-light:   #4a6655;
  --border:       #c8ddd0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;

  --container: 1100px;
  --radius:    8px;
  --radius-lg: 14px;
}


/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img     { display: block; max-width: 100%; }
a       { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
address { font-style: normal; line-height: 1.8; }
ul      { list-style: none; }


/* ============================================================
   3. LAYOUT HELPERS
============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}


/* ============================================================
   4. HEADER & NAV
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Gold ticker strip */
.ticker-bar {
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-bar-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 25s linear infinite;
}
.ticker-bar-inner span::before { content: '✦  '; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Nav bar */
.header-bar {
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text  { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); }
.logo-sub   { font-size: 0.65rem; color: var(--gold-light); letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 1.75rem; }

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  text-decoration: none;
}


/* ============================================================
   5. HERO + CONFETTI
============================================================ */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Confetti canvas */
#confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Alaaf badge */
.hero-badge {
  display: inline-block;
  background: #c0392b;
  color: var(--white);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 12px rgba(192, 57, 43, 0.5);
}

.hero-logo {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(201, 160, 50, 0.15), 0 16px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900; color: var(--white);
  line-height: 1.1;
}
.hero h1 span { color: var(--gold-light); font-style: italic; }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xs);
}


/* ============================================================
   6. SECTIONS (shared)
============================================================ */
.section     { padding: var(--space-xl) var(--space-md); }
.section-alt { background: var(--white); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; color: var(--green-dark);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-sm);
}
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-lead {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 680px; margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.sub-title {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--green-dark);
  margin-top: var(--space-xl); margin-bottom: var(--space-sm);
}


/* ============================================================
   7. CARDS (Verein overview)
============================================================ */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(15, 61, 34, 0.1); transform: translateY(-3px); }

.card-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.card h3   { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-dark); margin-bottom: var(--space-xs); }
.card p    { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; }


/* ============================================================
   8. BOARD (Vorstand)
============================================================ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}

.board-item {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.board-item:hover { border-left-color: var(--gold); background: var(--gold-pale); }

.board-role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-mid); }
.board-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--green-dark); }

.join-hint { margin-top: var(--space-lg); font-size: 0.95rem; color: var(--text-light); }
.join-hint a { font-weight: 600; color: var(--green-mid); }


/* ============================================================
   9. GROUPS
============================================================ */
.group-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.group-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.group-card:hover { box-shadow: 0 10px 28px rgba(15, 61, 34, 0.1); transform: translateY(-4px); }

.group-header {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--green-dark);
  padding: 1.1rem 1.4rem;
  border-bottom: 3px solid var(--gold);
}
.group-emoji { font-size: 1.8rem; line-height: 1; }
.group-header h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); }

.group-body { padding: 1.4rem; }
.group-body p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0.9rem; }

.group-levels { list-style: disc; padding-left: 1.2rem; margin-bottom: 1rem; }
.group-levels li { font-size: 0.88rem; color: var(--text-light); padding: 0.15rem 0; }

.group-contact {
  display: inline-block;
  font-size: 0.85rem; font-weight: 600; color: var(--green-mid);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--green-mid);
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.group-contact:hover { background: var(--green-mid); color: var(--white); text-decoration: none; }

.group-tag {
  display: inline-block;
  background: var(--green-pale); color: var(--green-dark);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}


/* ============================================================
   10. SOCIAL / TERMINE
============================================================ */
.social-box {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-lg); flex-wrap: wrap;
}

.social-message { flex: 1; min-width: 260px; }
.social-message p { color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; line-height: 1.7; }
.social-message strong { color: var(--gold-light); }

.social-links { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.social-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.social-btn:hover { opacity: 0.9; transform: translateY(-2px); text-decoration: none; }
.social-btn-fb { background: #1877f2; color: var(--white); }
.social-btn-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--white);
}


/* ============================================================
   11. CONTACT
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.contact-block:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 61, 34, 0.08); }

.contact-block h3 {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--green-dark);
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-block p   { font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }
.contact-block a   { color: var(--green-mid); font-weight: 500; }
.contact-block a:hover { text-decoration: underline; }


/* ============================================================
   12. FOOTER
============================================================ */
.site-footer {
  background: var(--green-dark);
  border-top: 3px solid var(--gold);
  padding: var(--space-md);
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-sm);
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }
.footer-logo  { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); text-decoration: none; }

.footer-copy { font-size: 0.8rem; color: rgba(255, 255, 255, 0.35); width: 100%; text-align: center; margin-top: 0.25rem; }


/* ============================================================
   13. BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all 0.22s;
}

.btn-primary {
  background: var(--gold); color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(201, 160, 50, 0.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201, 160, 50, 0.45); text-decoration: none; }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.4); }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); text-decoration: none; }


/* ============================================================
   14. MEDIA QUERIES
============================================================ */
@media (max-width: 860px) {
  .cards-row    { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .group-list   { grid-template-columns: 1fr; }
  .social-box   { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
}

@media (max-width: 600px) {
  :root         { --space-xl: 3rem; --space-lg: 2rem; }
  .main-nav     { display: none; }
  .header-inner { justify-content: center; }
  .cards-row    { grid-template-columns: 1fr; }
  .board-grid   { grid-template-columns: 1fr; }
  .hero-logo    { width: 88px; height: 88px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}


/* ============================================================
   15. LEGAL PAGES (impressum.html / datenschutz.html)
============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 2.5rem var(--space-md);
  border-bottom: 3px solid var(--gold);
}
.page-breadcrumb { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.5rem; }
.page-breadcrumb a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--white); text-decoration: none; }
.page-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--white); }

.prose { max-width: 780px; }
.prose h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--green-dark); margin-top: 2.5rem; margin-bottom: 0.6rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--border); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1rem; font-weight: 700; color: var(--green-mid); margin-top: 1.5rem; margin-bottom: 0.4rem; }
.prose p  { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose ul li { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; padding: 0.1rem 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--green-mid); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
