/* TTC Albisheim – Stylesheet
   Aufbau: Schriften · Variablen · Basis · Kopf · Navigation · Layout · Inhalte (prose)
           · Termine · Beiträge · Sponsoren · Formulare · Tabellen · Fuß · Lightbox · Mobil */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); }

:root {
  --green-950: #13281a;
  --green-900: #1d3b25;
  --green-800: #25502f;
  --green-700: #2f6a3a;
  --green-600: #377240;
  --green-200: #cfe0c9;
  --green-100: #e9f1e5;
  --paper: #f6f5f0;
  --surface: #ffffff;
  --ink: #1a1e1b;
  --ink-2: #4a524c;
  --ink-3: #6d756f;
  --rule: #dcded5;
  --rule-strong: #b9beb2;
  --error: #b42318;
  --error-bg: #fdf0ee;

  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

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

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-900); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid #e3a008; outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--surface); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Kopf --------------------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--green-700);
  color: #fff;
  margin-bottom: 3.25rem;
}
/* Flacher Bogen am unteren Rand – wie auf der bisherigen Seite */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1.75rem;
  height: 3.5rem;
  background: var(--green-700);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 0;
}

.site-header__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
}

.brand { display: flex; align-items: center; gap: 1.1rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__logo {
  width: 6.25rem; height: 6.25rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; gap: .3rem; }
.brand__name { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.brand__claim { font-size: .95rem; color: var(--green-100); }

.nav-toggle { display: none; }

/* ---- Navigation ------------------------------------------------------------ */

.main-nav { position: relative; z-index: 3; }
.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.6rem;
  margin: 0 auto;
  padding-block: .9rem .2rem;
  padding-left: calc(var(--gutter) + 7.35rem);
  list-style: none;
}
.main-nav__item { position: relative; }
.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.main-nav__link:hover, .main-nav__item.is-active > .main-nav__link { color: #fff; border-bottom-color: rgba(255,255,255,.85); }
.sub-toggle::after {
  content: "";
  width: .45rem; height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg);
  opacity: .8;
}

.sub-nav {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 15rem;
  margin: 0;
  padding: .45rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green-600);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 28px rgba(19, 40, 26, .16);
  visibility: hidden;
  opacity: 0;
  transform: translateY(.25rem);
  transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.has-sub:hover > .sub-nav,
.has-sub:focus-within > .sub-nav,
.has-sub.is-open > .sub-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.sub-nav a { display: block; padding: .45rem 1rem; color: var(--ink); text-decoration: none; font-size: 1rem; }
.sub-nav a:hover { background: var(--green-100); color: var(--green-900); }
.sub-nav a[aria-current="page"] { color: var(--green-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--green-600); }

/* ---- Layout ------------------------------------------------------------------- */

.site-main { padding-bottom: 4rem; min-height: 50vh; }

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 4rem;
  align-items: start;
}
.layout-main { min-width: 0; }

.layout-aside { display: grid; gap: 2.25rem; padding-top: .4rem; }
.aside-block__title {
  margin: 0 0 .75rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--green-600);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-800);
}
.aside-block__more { display: inline-block; margin-top: .6rem; font-size: .95rem; }

.mini-dates { margin: 0; padding: 0; list-style: none; }
.mini-dates li { display: grid; gap: .05rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.35; }
.mini-dates time { font-size: .85rem; font-weight: 600; color: var(--green-700); font-variant-numeric: tabular-nums; }

.sponsor-rotator { display: grid; min-height: 6rem; place-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.sponsor-rotator__item[hidden] { display: none; }
.sponsor-rotator img { display: block; max-height: 5.5rem; width: auto; object-fit: contain; }

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { padding: .35rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }

/* ---- Beitrags-/Seitenkopf ------------------------------------------------------- */

.entry__header { margin-bottom: 1.75rem; }
.entry__title {
  margin: 0;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--green-800);
}
.entry__title::after { content: ""; display: block; width: 3.5rem; height: 3px; margin-top: .9rem; background: var(--green-600); }
.entry__kicker { margin: 0 0 .5rem; font-size: .95rem; color: var(--ink-3); }
.entry__kicker a { color: var(--ink-2); }
.entry__image { margin: 0 0 2rem; }
.entry__image img { display: block; width: 100%; border-radius: var(--radius); }

.entry--wide .prose { max-width: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-nav__link { display: grid; gap: .15rem; text-decoration: none; font-weight: 600; line-height: 1.3; }
.post-nav__link span { font-size: .85rem; font-weight: 400; color: var(--ink-3); }
.post-nav__link--next { grid-column: 2; text-align: right; }

/* ---- Fließtext (Inhalte aus der Redaktion) ------------------------------------- */

.prose { max-width: 46rem; }
.prose > :first-child { margin-top: 0; }
.prose :where(p, ul, ol, figure, table, blockquote) { margin: 0 0 1.15em; }
.prose :where(h2, h3, h4) { line-height: 1.2; letter-spacing: -.01em; color: var(--green-800); margin: 2em 0 .6em; }
.prose :where(h2) { font-size: 1.7rem; }
.prose :where(h3) { font-size: 1.35rem; }
.prose :where(h4) { font-size: 1.15rem; }
.prose :where(ul, ol) { padding-left: 1.3em; }
.prose :where(li) { margin-bottom: .3em; }
.prose li::marker { color: var(--green-600); }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--rule-strong); margin: 2.5rem 0; }
.prose blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 3px solid var(--green-600); color: var(--ink-2); }
.prose :where(figure) { margin-inline: 0; }
.prose :where(figure img) { display: block; border-radius: var(--radius); }
.prose figcaption { margin-top: .45rem; font-size: .9rem; color: var(--ink-3); }

/* Klassen aus dem früheren Blockeditor */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.aligncenter { margin-inline: auto; text-align: center; }
.aligncenter img { margin-inline: auto; }
.has-ttc-green-color { color: var(--green-700) !important; }
.has-ttc-green-background-color { background-color: var(--green-700) !important; color: #fff; }
.has-white-color { color: #fff !important; }
.has-background { padding: 1.25rem 1.5rem; border-radius: var(--radius); }
.has-large-font-size { font-size: 1.35rem; }
.has-medium-font-size { font-size: 1.15rem; }

.entry--home .prose h1 {
  margin: 0 0 .3rem;
  color: var(--green-800);
  letter-spacing: -.015em;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08;
}

.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-bottom: 1.5rem; }
.wp-block-column { flex: 1 1 16rem; min-width: 0; }
.wp-block-group { margin-bottom: 1.5rem; }

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 1.5rem 0; }
.wp-block-button__link, .button {
  display: inline-block;
  padding: .6rem 1.15rem;
  border: 2px solid var(--green-700);
  border-radius: var(--radius);
  background: var(--green-700);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.wp-block-button__link:hover, .button:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
/* Buttons aus dem Blockeditor einheitlich darstellen, alte Farbklassen ignorieren */
.prose .wp-block-button__link { background: var(--green-700) !important; border-color: var(--green-700) !important; color: #fff !important; }
.prose .wp-block-button__link:hover { background: var(--green-900) !important; border-color: var(--green-900) !important; }
.button--quiet, .is-style-outline .wp-block-button__link { background: transparent; color: var(--green-700); }
.button--quiet:hover, .is-style-outline .wp-block-button__link:hover { background: var(--green-100); color: var(--green-900); }

/* Bildergalerien */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: .5rem;
  margin: 1.5rem 0 2rem;
}
.wp-block-gallery > figure { margin: 0; }
.wp-block-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.wp-block-gallery a { display: block; }
.wp-block-gallery a:hover img { opacity: .85; }
.wp-block-gallery figcaption { font-size: .8rem; }

/* ---- Tabellen ---------------------------------------------------------------- */

.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td, .data-table th, .data-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th, .data-table thead th { border-bottom: 2px solid var(--green-600); font-weight: 700; color: var(--green-800); }
.prose tbody tr:nth-child(even), .data-table tbody tr:nth-child(even) { background: rgba(47, 106, 58, .04); }
.wp-block-table { overflow-x: auto; }
.wp-block-table td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; margin-bottom: .5rem; }
.data-table { min-width: 36rem; }
.data-table caption { caption-side: top; text-align: left; padding-bottom: .5rem; font-weight: 700; }
.data-table caption span { font-weight: 400; color: var(--ink-3); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.is-own { background: var(--green-100) !important; font-weight: 700; }
.source-note { font-size: .85rem; color: var(--ink-3); }

/* Vereinsmeister-Tabellen mit „Mehr anzeigen“ */
.vm-table-box { margin-bottom: .75rem; overflow-x: auto; }
.vm-table { min-width: 40rem; }
.vm-table td:first-child { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--green-800); }
.vm-table-box.is-collapsed .vm-table tbody tr:nth-child(n+6) { display: none; }
.vm-more { margin-bottom: 2.25rem; }

/* ---- Termine ---------------------------------------------------------------- */

.section-title { margin: 3rem 0 1.25rem; font-size: 1.7rem; line-height: 1.2; color: var(--green-800); letter-spacing: -.01em; }

.dates__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.date-row {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.date-row__date {
  display: grid;
  justify-items: center;
  padding: .35rem 0 .4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.date-row__weekday, .date-row__month { font-size: .8rem; color: var(--ink-3); }
.date-row__day { font-size: 1.75rem; font-weight: 700; color: var(--green-800); }
.date-row__body { min-width: 0; }
.date-row__title { margin: 0; font-weight: 600; line-height: 1.3; }
.date-row__meta, .date-row__result { margin: .15rem 0 0; font-size: .95rem; color: var(--ink-2); }
.date-row__label { display: block; margin-bottom: .15rem; font-size: .8rem; font-weight: 700; color: var(--green-700); }
.date-row--next .date-row__date { background: var(--green-700); border-color: var(--green-700); }
.date-row--next .date-row__date span { color: #fff; }
.dates__empty { color: var(--ink-2); }

/* ---- Beitragsliste ------------------------------------------------------------- */

.news__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
.news-item { display: flex; flex-direction: column; }
.news-item__image { display: block; margin-bottom: .85rem; overflow: hidden; border-radius: var(--radius); background: var(--green-100); }
.news-item__image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease; }
.news-item__image:hover img { transform: scale(1.03); }
.news-item__date { font-size: .9rem; color: var(--ink-3); }
.news-item__title { margin: .2rem 0 .4rem; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.005em; }
.news-item__title a { color: var(--ink); text-decoration: none; }
.news-item__title a:hover { color: var(--green-700); text-decoration: underline; }
.news-item__excerpt { margin: 0; font-size: 1rem; color: var(--ink-2); }
.news__more { margin-top: 2rem; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.pagination a { font-weight: 600; }
.pagination__status { color: var(--ink-3); font-size: .95rem; }

/* ---- Sponsoren --------------------------------------------------------------- */

.sponsor-band { padding: 3rem 0 3.5rem; background: var(--surface); border-top: 1px solid var(--rule); }
.sponsor-band .section-title { margin-top: 0; }

.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.sponsor-grid__item a {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 7.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .15s ease;
}
.sponsor-grid__item a[href]:hover { border-color: var(--green-600); }
.sponsor-grid__item h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sponsor-grid__item img { display: block; max-height: 5.5rem; width: auto; object-fit: contain; }
.entry--wide .sponsor-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

/* ---- Formulare ------------------------------------------------------------- */

.membership { max-width: 40rem; margin-top: 2rem; }
.form fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; }
.form legend { margin-bottom: .75rem; padding: 0; font-size: 1.25rem; font-weight: 700; color: var(--green-800); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form__row--plz { grid-template-columns: 7rem 1fr; }
.field { margin-bottom: 1rem; }
.field--short input { max-width: 12rem; }
.field label:not(.choice) { display: block; margin-bottom: .3rem; font-weight: 600; font-size: 1rem; }
.field__optional { font-weight: 400; color: var(--ink-3); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"] {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form input:focus { outline: 2px solid var(--green-600); outline-offset: 0; border-color: var(--green-600); }
.field--error input { border-color: var(--error); }
.field__error { margin: .3rem 0 0; color: var(--error); font-size: .95rem; font-weight: 600; }
.choice { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.choice input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green-700); flex-shrink: 0; }
.form__note { font-size: .9rem; color: var(--ink-3); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid; }
.notice p { margin: 0; }
.notice--ok { background: var(--green-100); border-color: var(--green-600); }
.notice--error { background: var(--error-bg); border-color: var(--error); }

/* ---- Fuß -------------------------------------------------------------------- */

.site-footer { background: var(--green-900); color: #d9e4d6; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3rem 2.25rem; }
.site-footer__title { margin: 0 0 .6rem; color: #fff; font-weight: 700; }
.site-footer address { font-style: normal; }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { padding: .15rem 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.1rem 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; color: #b4c4b0; }

/* ---- Lightbox ------------------------------------------------------------------ */

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 16, 12, .94); color: #fff; }
.lightbox::backdrop { background: rgba(10, 16, 12, .94); }
.lightbox__figure { display: grid; place-items: center; height: 100%; margin: 0; padding: 3.5rem 4rem; }
.lightbox__figure img { max-height: calc(100vh - 7rem); width: auto; object-fit: contain; }
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit; font-size: 1.6rem; line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-size: .9rem; color: #c8d3c5; }

/* ---- Mobil ----------------------------------------------------------------- */

@media (max-width: 62rem) {
  .layout-sidebar { grid-template-columns: 1fr; gap: 3rem; }
  .layout-aside { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding-top: 2rem; border-top: 1px solid var(--rule); }
  .main-nav__list { padding-left: var(--gutter); }
}

@media (max-width: 48rem) {
  body { font-size: 1.0625rem; }
  .site-header { margin-bottom: 2.5rem; }
  .site-header::after { height: 2.5rem; bottom: -1.25rem; }
  .site-header__top { padding-block: .8rem; }
  .brand { gap: .75rem; }
  .brand__logo { width: 3.75rem; height: 3.75rem; border-width: 2px; }
  .brand__name { font-size: 1.15rem; }
  .brand__claim { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: .5rem .6rem;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.4rem; height: 2px; background: currentColor; content: ""; position: relative; }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle__bars { margin: 6px 0; }

  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; gap: 0; padding: .25rem var(--gutter) 1.25rem; }
  .main-nav__item { border-top: 1px solid rgba(255,255,255,.14); }
  .main-nav__link { width: 100%; justify-content: space-between; padding: .75rem 0; border-bottom: 0; }
  .sub-nav {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 .5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .has-sub:hover > .sub-nav, .has-sub:focus-within > .sub-nav { display: none; }
  .has-sub.is-open > .sub-nav { display: block; }
  .sub-nav a { padding: .5rem 0 .5rem 1rem; color: var(--green-100); }
  .sub-nav a:hover { background: transparent; color: #fff; }
  .sub-nav a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 #fff; }

  .news__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__row--plz { grid-template-columns: 6.5rem 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { grid-column: auto; text-align: left; }
  .lightbox__figure { padding: 3.5rem .5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: .75rem; transform: none; }
}

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

@media print {
  .site-header, .main-nav, .layout-aside, .site-footer, .sponsor-band, .post-nav { display: none !important; }
  body { background: #fff; font-size: 11pt; }
}

/* ---- Social-Icons & Sponsoren-Band (auf allen Unterseiten) ------------------------ */

.social-icons { display: flex; gap: .75rem; margin: 0 0 .75rem; }
.social-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: #fff; }
.social-icon--facebook { background: #1877f2; }
.social-icon--instagram { background: #c13584; }
.social-icon:hover { color: #fff; opacity: .85; }

.sponsor-strip { padding: 2.25rem 0 2.5rem; background: var(--surface); border-top: 1px solid var(--rule); }
.sponsor-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.sponsor-strip__title { margin: 0; font-size: 1.35rem; color: var(--green-800); }
.sponsor-strip__head a { font-size: .95rem; }
.sponsor-strip__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.sponsor-strip__viewport::-webkit-scrollbar { display: none; }
.sponsor-strip__track { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.sponsor-strip__track li { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; }
.sponsor-strip__track a { display: grid; place-items: center; height: 7rem; padding: .75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.sponsor-strip__track a[href]:hover { border-color: var(--green-600); }
.sponsor-strip__track img { max-height: 5rem; width: auto; object-fit: contain; }

@media (max-width: 40rem) {
  .sponsor-strip__track li { flex-basis: calc((100% - 1rem) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-strip__viewport { scroll-behavior: auto; }
}

/* <picture> soll sich im Layout wie das enthaltene Bild verhalten */
picture { display: contents; }
