:root {
  --gruen-dunkel: #1b5e20;
  --gruen: #2e7d32;
  --gruen-sehr-dunkel: #0f3d17;
  --kegler-blau: #2137cf;
  --gold: #c9a227;
  --grau: #f5f5f5;
  --header-bg: #e8eef4;
  --header-nav-bg: #d9e2ec;
  --text: #222;
  --header-h: 160px;
  --footer-h: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--grau);
  line-height: 1.6;
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Fixierte Kopfzeile */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 4px solid var(--gold);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 110px;
  overflow: hidden;
}

.logo {
  height: 90px;
  width: auto;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.header-text h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--gruen-sehr-dunkel);
}

.header-text p {
  margin: 4px 0 0;
  color: #3d5546;
  font-size: 0.95rem;
}

/* Navigation */
.main-nav {
  background: var(--header-nav-bg);
  height: 46px;
}

.main-nav .container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  height: 46px;
  align-items: center;
}

.main-nav a {
  color: #000;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
  background: var(--gold);
  color: #000;
}

/* Sprungziele unter der fixierten Kopfzeile */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Content cards */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.card h2 {
  color: var(--kegler-blau);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.card h3 {
  color: var(--kegler-blau);
  margin-bottom: 8px;
}

.card h2 .deco {
  height: 44px;
  width: auto;
}

.intro p { margin: 0; }

/* Kalender */
.calendar-wrapper {
  margin: 12px 0 24px;
}

.calendar-wrapper iframe {
  width: 100%;
  height: 600px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.hint {
  font-size: 0.9rem;
  color: #555;
}

/* Links */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.link-list li:last-child { border-bottom: none; }

a { color: var(--gruen); }
a:hover { color: var(--gruen-dunkel); }

/* Tabelle */
.table-wrapper {
  overflow-x: auto;
  margin: 12px 0 24px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}

th {
  background: var(--gruen-dunkel);
  color: #fff;
}

tbody tr:nth-child(even) { background: #f2f7f2; }

/* Chronik-Bild */
.chronik {
  margin: 16px 0 24px;
  text-align: center;
}

.chronik img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.chronik figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

/* Vorstand – Texte in sehr dunklem Grün */
.vorstand {
  color: var(--gruen-sehr-dunkel);
}

.vorstand-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.vorstand-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  color: var(--gruen-sehr-dunkel);
}

.vorstand-list li span {
  display: inline-block;
  min-width: 160px;
  font-weight: 600;
  color: var(--gruen-sehr-dunkel);
}

.vorstand .hint {
  color: var(--gruen-sehr-dunkel);
}

/* Fixierte Fußzeile – in den Farben der Kopfzeile */ 
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-nav-bg);
  border-top: 4px solid var(--gold);
  color: var(--gruen-sehr-dunkel);
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

.site-footer a { color: var(--gruen-sehr-dunkel); }

/* Mobile */
@media (max-width: 600px) {
  :root {
    --header-h: 134px;
    --footer-h: 60px;
  }

  .header-inner {
    gap: 12px;
    height: 84px;
  }

  .logo { height: 64px; }
  .header-text h1 { font-size: 1.3rem; }
  .header-text p { font-size: 0.85rem; }
  .card { padding: 16px; }
  .card h2 .deco { display: none; }
  .calendar-wrapper iframe { height: 420px; }
  .vorstand-list li span { min-width: 120px; }
}