@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/ReadexPro-VariableFont_wght.ttf") format("truetype");
  font-weight: 160 700;
  font-display: swap;
}

:root {
  --blau: #72a9b3;        /* Vereinsblau */
  --blau-dunkel: #4f8a95;
  --hellblau: #c2dade;
  --schwaches-blau: #f5f9fa;
  --orange: #f39760;      /* kräftiges Orange */
  --orange-hell: #ffb791;
  --text: #1a1a1a;
  --weiss: #fdfdfd;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--schwaches-blau);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Readex Pro", "Outfit", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.6em 0 .5em;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--blau-dunkel); }
h3 { font-size: 1.3rem; }

img { max-width: 100%; height: auto; }

a { color: var(--orange); font-weight: 600; transition: color .3s; }
a:hover, a:focus { color: var(--blau); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--schwaches-blau);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 12px; padding-bottom: 12px;
}
.logo img { display: block; height: 64px; width: auto; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 26px; height: 3px; background: var(--blau);
  border-radius: 2px; position: relative; content: "";
}
.nav-toggle-label span::before { position: absolute; top: -8px; }
.nav-toggle-label span::after { position: absolute; top: 8px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav li { position: relative; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--blau); font-weight: 600; letter-spacing: .5px; text-decoration: none;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active { color: var(--orange); }
.main-nav .ext::after { content: " \2197"; font-size: .8em; }

.main-nav .has-sub > ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--schwaches-blau); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 6px;
}
.main-nav .has-sub:hover > ul,
.main-nav .has-sub:focus-within > ul { display: block; }
.main-nav .has-sub > a::after { content: " \25BE"; font-size: .8em; }

@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--schwaches-blau); box-shadow: 0 8px 16px rgba(0,0,0,.1);
    padding: 12px 24px 20px;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav .has-sub > ul {
    display: block; position: static; box-shadow: none; padding: 0 0 0 16px;
  }
  .main-nav .has-sub > a::after { content: ""; }
  .logo img { height: 52px; }
}

/* ---------- Title band & hero ---------- */
.title-band {
  background: var(--blau); color: var(--weiss); text-align: center;
  padding: 2.2vh 24px;
}
.title-band h1 { margin: 0; }

.hero {
  background: url("../img/header-blurr.jpg") center / cover no-repeat, var(--blau);
  color: var(--weiss); text-align: center; padding: 90px 24px;
}
.hero h1 { margin: 0 0 .3em; font-size: clamp(2rem, 6vw, 3.2rem); }
.hero p { margin: 0 auto; max-width: 640px; font-size: 1.2rem; }

/* ---------- Sections ---------- */
main section { padding: 40px 0; }
main section + section { border-top: 1px solid var(--hellblau); }
.lead { font-size: 1.25rem; font-weight: 600; }
.justify { text-align: justify; hyphens: auto; }
.note { font-size: .9rem; color: #555; }
.center { text-align: center; }

.band {
  background: var(--blau); color: var(--weiss); text-align: center; padding: 42px 24px;
}
.band h2 { color: var(--weiss); margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #fff;
  font-weight: 700; text-decoration: none; text-align: center;
  border-radius: var(--radius); padding: 16px 28px; min-width: 180px;
  transition: background .6s, box-shadow .6s;
}
.btn:hover, .btn:focus { background: var(--blau); color: #fff; box-shadow: 0 0 25px 2.5px var(--blau); }
.btn-outline {
  display: inline-block; color: #fff; border: 2px solid #fff; border-radius: var(--radius);
  padding: 14px 24px; min-width: 130px; font-weight: 700; text-decoration: none; transition: border-color .6s;
}
.btn-outline:hover, .btn-outline:focus { border-color: var(--orange); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 24px 0; }
.btn-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 24px 0;
}
.btn-grid .btn { min-width: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); display: flex; flex-direction: column;
}
.card img.cover { width: 100%; height: 160px; object-fit: cover; transition: opacity .5s; }
.card a:hover img.cover { opacity: .6; }
.card .body { padding: 16px 18px 20px; }
.card .date { font-size: .85rem; color: #666; }
.card h3 { margin: .2em 0 .4em; font-size: 1.1rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--orange); }
.card p { margin: 0; font-size: .95rem; }

/* People (Vorstand/Beirat) */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.person { background: #fff; border-radius: 20px; padding: 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.person img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; border: 4px solid var(--hellblau); }
.person .role { color: var(--orange); font-weight: 700; margin: 12px 0 0; }
.person .name { font-family: "Readex Pro", sans-serif; font-weight: 600; font-size: 1.15rem; margin: 2px 0 8px; }
.person p { font-size: .92rem; text-align: left; margin: 0; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--blau); }
.timeline li { position: relative; padding: 0 0 24px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -12px; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--orange); border: 3px solid var(--schwaches-blau);
}
.timeline .when { color: var(--blau-dunkel); font-weight: 700; }
.timeline h3 { margin: 0 0 .2em; }
.timeline p { margin: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hellblau); vertical-align: top; }
th { background: var(--blau); color: #fff; font-family: "Readex Pro", sans-serif; font-weight: 600; }
tr.group td { background: var(--hellblau); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Two-column media blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.split img { border-radius: 20px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 280px; object-fit: cover; border-radius: 20px; }
.gallery figcaption { font-size: .85rem; color: #555; text-align: center; margin-top: 4px; }

.box {
  background: #fff; border-left: 6px solid var(--orange); border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0;
}
.box p { margin: .3em 0; }

.docs { list-style: none; padding: 0; display: grid; gap: 12px; }
.docs li { background: #fff; border-radius: var(--radius); padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.docs li span { color: #555; font-size: .95rem; }

.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.subnav a {
  background: #fff; border: 2px solid var(--blau); color: var(--blau-dunkel);
  border-radius: 999px; padding: 6px 16px; text-decoration: none; font-size: .95rem;
}
.subnav a:hover { background: var(--blau); color: #fff; }

article.post { background: #fff; border-radius: 20px; padding: 24px 28px; margin: 0 0 32px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
article.post h2 { margin-top: 0; }
article.post .meta { color: #666; font-size: .9rem; margin-top: -8px; }
article.post img.cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blau); color: var(--weiss); padding: 24px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer img { width: 90px; display: block; }
.site-footer a { color: var(--weiss); font-weight: 400; }
.site-footer a:hover { color: var(--orange-hell); }
.site-footer small { font-size: .85rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
