/* Landhausbrigade – schlankes, modernes Stylesheet ohne Framework */
:root {
  --blau: #0b1f3a;
  --blau-2: #13305a;
  --gelb: #ffcc00;
  --gelb-dunkel: #e0b000;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --text: #1a1d24;
  --muted: #5d6472;
  --line: #e3e0d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(11 31 58 / .06), 0 6px 20px rgb(11 31 58 / .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --surface: #111c2f;
    --text: #e8ebf1;
    --muted: #9aa4b5;
    --line: #23324a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 860px; }
.section { padding-block: 40px 64px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gelb); color: var(--blau); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--blau) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  color: #fff; border-bottom: 3px solid var(--gelb);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; height: 54px; margin-block: 6px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .25)); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--gelb); color: var(--blau); font-weight: 900; font-size: .85rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: .75rem; opacity: .7; letter-spacing: .04em; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; opacity: .88;
}
.site-nav a:hover { background: rgb(255 255 255 / .1); opacity: 1; }
.site-nav a[aria-current="page"] { color: var(--gelb); opacity: 1; }
@media (max-width: 560px) {
  .header-inner { padding-block: 8px; }
  .site-nav { width: 100%; justify-content: space-between; margin-inline: -8px; }
  .site-nav a { padding: 6px 8px; }
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgb(255 204 0 / .22), transparent 60%),
    linear-gradient(160deg, var(--blau) 0%, var(--blau-2) 100%);
  color: #fff; padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--gelb) 0 48px, var(--blau) 48px 96px);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-img { margin: 0; position: relative; }
.hero-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px;
  box-shadow: 0 20px 60px rgb(0 0 0 / .35); transform: rotate(1.5deg); border: 6px solid #fff;
}
.hero-img::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 18px; background: var(--gelb); z-index: -1; transform: rotate(-2deg);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--gelb); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); line-height: .98; letter-spacing: -.02em; }
.hero h1 span { color: var(--gelb); }
.hero .lead { max-width: 40ch; font-size: clamp(1.1rem, 2vw, 1.3rem); opacity: .9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gelb); color: var(--blau); }
.btn-primary:hover { background: var(--gelb-dunkel); }
.btn-ghost { border: 2px solid rgb(255 255 255 / .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* Fakten-Leiste */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; padding-block: 8px; }
.facts-grid div { padding: 18px 4px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 750; }

/* Karten-Raster */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.more { font-weight: 700; text-decoration: none; color: var(--blau-2); }
@media (prefers-color-scheme: dark) { .more { color: var(--gelb); } }
.more:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(11 31 58 / .08), 0 14px 32px rgb(11 31 58 / .12); }
.card a { display: block; text-decoration: none; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--blau); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { display: grid; place-items: center; height: 100%; color: var(--gelb); font-size: 2.4rem; }
.card-count {
  position: absolute; right: 10px; bottom: 10px; background: rgb(11 31 58 / .82); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.card-body { padding: 14px 16px 18px; }
.card-body time { font-size: .8rem; color: var(--muted); font-weight: 600; }
.card-body h3 { font-size: 1.05rem; margin: 4px 0 0; font-weight: 700; }

/* Seitenkopf */
.page-head { background: var(--blau); color: #fff; padding: 48px 0 40px; border-bottom: 3px solid var(--gelb); }
.page-head .lead { opacity: .88; font-size: 1.15rem; max-width: 60ch; }
.page-head a { color: var(--gelb); }
.yearnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.yearnav a {
  text-decoration: none; color: #fff; border: 1px solid rgb(255 255 255 / .3); padding: 5px 12px;
  border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.yearnav a:hover { background: var(--gelb); color: var(--blau); border-color: var(--gelb); }
.year { scroll-margin-top: 90px; margin-bottom: 48px; }
.year h2 { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 20px; }
.year h2 small { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* Beitrag */
.post { padding-block: 32px 64px; }
.post-head { margin-bottom: 24px; }
.post-head h1 { margin-top: 10px; margin-bottom: 6px; }
.post-head time { color: var(--muted); font-weight: 600; }
.back { text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--muted); }
.back:hover { color: var(--text); }
.post-text { font-size: 1.15rem; margin-bottom: 24px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin-bottom: 24px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single a { aspect-ratio: auto; }
.gallery.single img { height: auto; max-height: 80vh; object-fit: contain; margin-inline: auto; width: auto; }
video { width: 100%; border-radius: 12px; background: #000; margin-bottom: 16px; }
.yt {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; text-decoration: none;
  background: var(--blau); color: #fff; margin-bottom: 16px;
}
.yt:hover { background: var(--blau-2); }
.yt-play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gelb); color: var(--blau); font-size: 1.3rem; flex: none; }
.yt span { display: flex; flex-direction: column; }
.yt small { opacity: .7; }

.comments { margin-top: 40px; }
.comment { background: var(--surface); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comment header { font-size: .9rem; margin-bottom: 4px; }
.comment time { color: var(--muted); margin-left: 6px; }
.comment p { margin: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--line); }
.pager a { text-decoration: none; display: flex; flex-direction: column; font-weight: 700; padding: 12px 14px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.pager a:hover { outline: 2px solid var(--gelb); }
.pager small { color: var(--muted); font-weight: 600; }
.pager .next { text-align: right; }

/* Über uns */
.block { margin-bottom: 44px; }
.steckbrief { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; }
.steckbrief div { background: var(--surface); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--gelb); }
.steckbrief dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.steckbrief dd { margin: 2px 0 0; font-weight: 650; }
.table-wrap { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--blau); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--gelb) 10%, transparent); }
@media (max-width: 600px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 3px 16px; display: flex; gap: 12px; }
  td::before { content: attr(data-label); min-width: 110px; color: var(--muted); font-size: .85rem; font-weight: 600; }
}
.namelist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.namelist li { background: var(--surface); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; }

/* Satzung */
.satzung { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.satzung li {
  counter-increment: s; position: relative; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 18px 14px 68px; min-height: 56px;
}
.satzung li::before {
  content: "§ " counter(s); position: absolute; left: 14px; top: 13px; font-weight: 800; color: var(--blau);
  background: var(--gelb); border-radius: 8px; padding: 2px 6px; font-size: .85rem; min-width: 40px; text-align: center;
}

.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.todo { background: #fff3c4; color: #5a4500; border-left: 4px solid var(--gelb); padding: 10px 14px; border-radius: 8px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--blau); color: rgb(255 255 255 / .85); padding: 32px 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--gelb); }

/* Lightbox */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(5 10 20 / .96); color: #fff; }
.lb::backdrop { background: rgb(5 10 20 / .96); }
.lb figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 56px 12px 48px; }
.lb img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 6px; }
.lb button {
  position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lb button:hover { background: var(--gelb); color: var(--blau); }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .9rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
