/* SK Bantiger – Haupt-Stylesheet */
:root {
  --c-bg: #ffffff;
  --c-surface: #f4f5f7;
  --c-text: #1d2330;
  --c-muted: #5b6475;
  --c-primary: #1f3b63;
  --c-primary-contrast: #ffffff;
  --c-accent: #c8102e;
  --c-border: #dde1e7;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .07);
  --maxw: 1140px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", var(--font);
}
:root[data-theme="dark"] {
  --c-bg: #12161d;
  --c-surface: #1b212b;
  --c-text: #e6e9ef;
  --c-muted: #a3acbb;
  --c-primary: #6f9bd6;
  --c-primary-contrast: #0e1217;
  --c-accent: #ff5a6e;
  --c-border: #2c3441;
  --shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #12161d;
    --c-surface: #1b212b;
    --c-text: #e6e9ef;
    --c-muted: #a3acbb;
    --c-primary: #6f9bd6;
    --c-primary-contrast: #0e1217;
    --c-accent: #ff5a6e;
    --c-border: #2c3441;
    --shadow: 0 2px 10px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--c-text); background: var(--c-bg);
  display: flex; flex-direction: column; min-height: 100vh;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--c-primary); }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.2rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-primary); color: var(--c-primary-contrast); padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }

/* Header / Navigation */
.site-header { background: var(--c-bg); border-bottom: 3px solid var(--c-primary); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .5rem 16px; display: flex; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-text); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.logo img { width: auto; height: 56px; object-fit: contain; }
:root[data-theme="dark"] .logo img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { filter: invert(1); } }
.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: .6rem .75rem; text-decoration: none; color: var(--c-text); font-weight: 600; text-transform: uppercase; font-size: .88rem; letter-spacing: .03em; border-radius: var(--radius); }
.main-nav a:hover, .main-nav a.active { color: var(--c-accent); }
.main-nav li ul { list-style: none; margin: 0; padding: .4rem 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--c-bg); border: 1px solid var(--c-border); border-top: 3px solid var(--c-accent); box-shadow: var(--shadow); display: none; }
.main-nav li ul a { text-transform: none; font-weight: 500; font-size: .92rem; border-radius: 0; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: block; }
.sub-toggle { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--c-text); border-radius: 2px; }
.theme-toggle { background: none; border: 1px solid var(--c-border); color: var(--c-text); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; flex: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); border-bottom: 3px solid var(--c-primary); display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .main-nav li ul { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--c-accent); margin-left: .75rem; min-width: 0; }
  .main-nav li:hover > ul, .main-nav li:focus-within > ul { display: none; }
  .main-nav li.sub-open > ul { display: block; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 0; width: 44px; height: 42px; background: none; border: 0; color: var(--c-text); cursor: pointer; }
  .sub-toggle::after { content: "▾"; font-size: 1.1rem; }
  .sub-open > .sub-toggle::after { content: "▴"; }
}

/* Layout */
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 2rem 16px 3rem; }
.page-title { border-bottom: 2px solid var(--c-border); padding-bottom: .5rem; margin-bottom: 1.5rem; }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card img { border-radius: calc(var(--radius) - 2px); display: block; margin-bottom: .75rem; }
.muted, .date { color: var(--c-muted); font-size: .9rem; }
.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: var(--radius); background: var(--c-primary); color: var(--c-primary-contrast); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--c-accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }

/* Hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; background: var(--c-primary); color: #fff; }
.hero img { width: 100%; display: block; opacity: .55; aspect-ratio: 1024 / 444; object-fit: cover; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero-text h1 { color: #fff; margin: 0; }
.hero-text p { font-size: clamp(1rem, 2.4vw, 1.4rem); margin: .3rem 0 0; }
@media (max-width: 600px) { .hero img { aspect-ratio: 4 / 3; } }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--c-border); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--c-primary); color: var(--c-primary-contrast); }
tr:nth-child(even) td { background: var(--c-surface); }

/* Agenda */
.agenda-filter { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.agenda-item { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--c-border); }
.agenda-date { font-weight: 700; color: var(--c-primary); }
.agenda-item h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.agenda-item.past { opacity: .6; }
.agenda-item.has-img { grid-template-columns: 7.5rem 5rem 1fr; align-items: start; }
.agenda-img { width: 5rem; height: 3.75rem; object-fit: cover; border-radius: 4px; }
@media (max-width: 500px) { .agenda-item, .agenda-item.has-img { grid-template-columns: 1fr; gap: .2rem; } .agenda-img { width: 100%; height: auto; max-height: 10rem; } }

/* Formulare */
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input, textarea, select { width: 100%; padding: .55rem .7rem; font: inherit; color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); }
input[type="checkbox"] { width: auto; }
textarea { min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; background: var(--c-surface); border-left: 4px solid var(--c-primary); }
.notice.error { border-color: var(--c-accent); }

details { border: 1px solid var(--c-border); border-radius: var(--radius); padding: .6rem 1rem; margin: .6rem 0; background: var(--c-surface); }
summary { cursor: pointer; font-weight: 700; }

/* Footer */
.site-footer { background: var(--c-primary); color: var(--c-primary-contrast); margin-top: auto; }
.site-footer a { color: inherit; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 16px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .92rem; }
.footer-links { display: flex; gap: 1rem; }
.copyright { width: 100%; opacity: .85; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-accent); color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: .9; pointer-events: auto; }

/* Seitenbausteine */
.eyebrow { margin: 0 0 .2rem; color: var(--c-accent); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.page-title h1 { margin: 0; }
section + section { margin-top: 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }
.lang-switch { display: inline-flex; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.lang-switch button { background: none; border: 0; padding: .35rem .8rem; cursor: pointer; color: var(--c-text); font-weight: 700; }
.lang-switch button[aria-pressed="true"] { background: var(--c-primary); color: var(--c-primary-contrast); }
.banner { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: start; margin: 1.5rem 0; }
.feature img, .feature video { border-radius: var(--radius); width: 100%; }
.gallery { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.gallery img { width: 150px; height: 150px; object-fit: cover; border-radius: 6px; }
.event { margin-bottom: 1.5rem; }
.event h2 { margin-top: 0; }
.event h3 { color: var(--c-muted); font-size: 1rem; margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.3rem 1rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); text-decoration: none; color: var(--c-text); font-weight: 700; text-align: center; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--c-accent); color: var(--c-accent); }
.tile-icon { font-size: 2rem; line-height: 1; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
.social { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
.more { margin-top: 1.5rem; }
.contact-form { max-width: 640px; margin-top: 2rem; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
caption { text-align: left; font-weight: 700; padding: .3rem 0; }
.archive-content { padding: .5rem 0; }
.archive-content details { background: var(--c-bg); }
address { font-style: normal; margin-bottom: 1rem; }
