/* --- 1. GRUNDLAGEN & VARIABLEN --- */
:root {
  --bg: #F0F4F8;
  --fg: #213547;
  --muted: #6B7280;
  --brand: #10B981;
  --card: #FFFFFF;
  --border: #D1D5DB;
  --shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- 2. HEADER & NAVIGATION (LOGO FIX) --- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e2e7e4;
  z-index: 2000;
  height: 64px;
}

.wrap.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); }
.logo img { height: 35px !important; width: auto !important; display: block; }

.main-nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.main-nav a { padding: 8px 10px; border-radius: 8px; color: #1f7a53; font-weight: 500; }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--brand); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: #fff; border-bottom: 2px solid var(--brand); z-index: 1900; }
  .main-nav.open { display: block !important; }
  .main-nav ul { flex-direction: column; padding: 0; }
  .main-nav a { display: block; padding: 15px 20px; border-top: 1px solid #eee; }
}

/* --- 3. HERO & SUB-NAVIGATION --- */
.page-hero { padding: 40px 0 24px; background: rgba(206, 240, 205, 1); border-bottom: 1px solid var(--border); }
.hero-flex { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.hero-logo-img { width: 130px !important; height: auto; border-radius: 12px; box-shadow: var(--shadow); background: #fff; }

.subnav { position: sticky; top: 64px; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.subnav-inner { display: flex; gap: 14px; overflow-x: auto; padding: 10px 18px; }
.subnav-inner a { color: var(--fg); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }

/* --- 4. CLUBTURNIERE (NEBENEINANDER & RECHTSBÜNDIGE LINKS) --- */
.cards, .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 860px) {
  .cards, .grid-2 { grid-template-columns: 1fr; }
}

/* Spezieller Fix NUR für die Listen in den Karten (Clubturniere) */
.card .list { margin: 0; padding: 0; list-style: none; }

.card .list li {
  display: flex;
  justify-content: space-between; /* Schiebt Text nach links, Link nach rechts */
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.card .list li:last-child { border-bottom: none; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }

/* --- 5. TABELLEN (MITGLIEDSCHAFT) --- */
.table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.table th, .table td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.table th { background: #f6f7ff; }

/* --- 6. BUTTONS --- */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
}
.btn.secondary { background: #fff; color: var(--brand) !important; }

/* --- 7. CHRONIK --- */
.year-block { margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.year-title { margin: 0; padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); background: #f7faf9; }
.year-content { padding: 10px 14px 14px; }
.timeline-item { padding: 10px 0; border-bottom: 1px dashed var(--border); }

/* --- 8. FOOTER --- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
footer { padding: 30px 0; text-align: center; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
html { scroll-padding-top: 140px; }