/*
 * Eichenlaub 2026 – Stylesheet des eigenen Contao-Layouts
 * Quelle: Repo "Agents/Eichenlaub Eisingersdorf", theme/css/site.css
 * Server: files/eichenlaub-2026/css/site.css
 */

/* ---------- Schriften (lokal gehostet, SIL OFL) ---------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya Sans';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/alegreya-sans-latin-900-normal.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben aus dem Vereinslogo (Reinzeichnung gemessen) */
  --green: #00712f;
  --green-dark: #00541f;
  --green-tint: #e6f2ea;
  --red: #d51327;
  --text: #2b2d30;
  --text-muted: #5d6066;
  --grey: #434549;
  --line: #e7e7e7;
  --surface: #ffffff;
  --surface-alt: #f5f6f4;
  --footer-bg: #1d2320;
  --footer-text: #c9cfcb;
  --signal: var(--red);

  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Alegreya Sans', 'Open Sans', system-ui, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(3rem, 7vw, 5.5rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 20px rgb(0 0 0 / .06);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  color: var(--grey);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p, ul, ol, table, figure { margin: 0 0 1.1em; }

.invisible, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--green); color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex; align-items: center; gap: .75rem; flex: none;
  text-decoration: none; color: var(--grey);
  margin-right: auto;
}
.brand img { width: 52px; height: auto; }
.brand__name {
  white-space: nowrap;
  font-family: var(--font-head); font-weight: 900;
  font-size: 1.2rem; line-height: 1.05;
}
.brand__name small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .8rem; color: var(--text-muted); letter-spacing: .02em;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .95rem var(--font-body);
  padding: .55rem .9rem;
  color: var(--grey); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 18px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform .2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-open .nav-toggle__icon { background: transparent; }
.nav-open .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Navigation – mobil: aufklappbares Panel */
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 4.5rem); overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .5rem var(--gutter) 1.25rem;
}
.nav-open .site-nav { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav strong {
  display: block; padding: .7rem 0;
  font-weight: 600; text-decoration: none; color: var(--grey);
  border-bottom: 1px solid var(--line);
}
.site-nav .level_2 a, .site-nav .level_2 strong {
  padding-left: 1rem; font-weight: 400;
}
.site-nav a:hover { color: var(--green); }
.site-nav strong.active,
.site-nav a.trail,
.site-nav a[aria-current] { color: var(--green); }

.site-nav__cta { margin: 1rem 0 0; }
.site-nav .site-nav__cta .button {
  display: inline-flex; padding: .5rem 1.1rem;
  color: #fff; border: 2px solid var(--green); border-radius: 999px;
}
.site-nav .site-nav__cta .button:hover { color: #fff; border-color: var(--green-dark); }

/* Navigation – Desktop */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 1.5rem; min-width: 0;
    position: static; padding: 0; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav .level_1 { display: flex; gap: .25rem; }
  @media (max-width: 80em) {
    .site-nav { gap: .75rem; }
    .site-nav .level_1 > li > :is(a, strong) { padding-inline: .5rem; font-size: .93rem; }
  }
  .site-nav .level_1 > li { position: relative; }
  .site-nav .level_1 > li > a,
  .site-nav .level_1 > li > strong {
    white-space: nowrap;
    padding: .5rem .75rem; border: 0; border-radius: var(--radius);
    font-size: .98rem;
  }
  .site-nav .level_1 > li > a:hover { background: var(--green-tint); }
  .site-nav .level_1 > li > .active,
  .site-nav .level_1 > li > .trail { background: var(--green-tint); color: var(--green-dark); }

  .site-nav .level_2 {
    display: none;
    position: absolute; left: 0; top: 100%; min-width: 15rem;
    padding: .5rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .site-nav .level_1 > li:hover > .level_2,
  .site-nav .level_1 > li:focus-within > .level_2 { display: block; }
  .site-nav .level_2 a, .site-nav .level_2 strong {
    padding: .5rem .75rem; border: 0; border-radius: 6px;
  }
  .site-nav .level_2 a:hover { background: var(--green-tint); }
  .site-nav .level_3 { display: none; }
  .site-nav__cta { margin-top: 0; }
}

/* ---------- Buttons ----------
 * Im Backend: Hyperlink-Element mit CSS-Klasse „button“ (+ Variante, z. B. „button button--ghost“).
 * Contao setzt die Klasse auf den umschließenden div, daher beide Schreibweisen. */
a.button,
.button > a {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  color: #fff; background: var(--green);
  border: 2px solid var(--green); border-radius: 999px;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
a.button:hover,
.button > a:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

a.button--ghost,
.button--ghost > a { background: transparent; color: var(--green); }
a.button--ghost:hover,
.button--ghost > a:hover { background: var(--green-tint); color: var(--green-dark); }

a.button--light,
.button--light > a { background: #fff; border-color: #fff; color: var(--green-dark); }
a.button--light:hover,
.button--light > a:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }

a.button--ghost-light,
.button--ghost-light > a { background: transparent; border-color: rgb(255 255 255 / .7); color: #fff; }
a.button--ghost-light:hover,
.button--ghost-light > a:hover { background: rgb(255 255 255 / .12); border-color: #fff; color: #fff; }

a.button--small,
.button--small > a { padding: .5rem 1rem; font-size: .92rem; }

/* Elementgruppe „button-row“ mit mehreren Hyperlink-Elementen */
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button-row > * { margin: 0; }

/* ---------- Hauptbereich / Artikel als Bänder ---------- */
.site-main { min-height: 50vh; }

/* Inhalt auf die Breite von .container einrücken (Seitenabstand ist dort Teil der max. Breite).
 * Über das Padding statt über max-width der Kinder – so bleiben schmalere Elemente linksbündig. */
.mod_article {
  padding-block: var(--space);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
/* Zwei weiße Bänder hintereinander: Abstand nicht verdoppeln */
.mod_article.plain + .mod_article.plain { padding-top: 0; }

.mod_article.band { background: var(--surface-alt); }
.mod_article.band--green { background: var(--green); color: #fff; }
.mod_article.band--green :is(h2, h3) { color: #fff; }
.mod_article.band--green p { color: rgb(255 255 255 / .92); }
.mod_article.band--green .rte a { color: #fff; }

.mod_article.narrow > * { max-width: 46rem; }

/* Einleitungstext: Text-Element mit CSS-Klasse „lead“ */
.lead, .content-text.lead p { font-size: 1.2rem; color: var(--text-muted); }
.content-text.lead { margin-bottom: 2.25rem; }
.content-text.lead p:last-child { margin-bottom: 0; }

/* Hero: Artikel mit CSS-Klasse „hero“ */
.mod_article.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(26rem, 70vh, 40rem);
  padding-block: 4rem;
  color: #fff;
  --hero-shade: linear-gradient(180deg, rgb(10 20 14 / .15) 0%, rgb(10 20 14 / .72) 100%);
  background: var(--hero-shade), url('../img/hero-schiessstand-1920.jpg') center / cover no-repeat;
  background-image: var(--hero-shade), image-set(
    url('../img/hero-schiessstand-1920.webp') type('image/webp'),
    url('../img/hero-schiessstand-1920.jpg') type('image/jpeg')
  );
}
.mod_article.hero > * { width: 100%; }
.mod_article.hero :is(h1, h2) { color: #fff; text-wrap: balance; }
.mod_article.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -.01em; }
.mod_article.hero .content-text p { font-size: 1.2rem; max-width: 38rem; color: #fff; }
.mod_article.hero .content-text.lead { margin-bottom: 0; }
.mod_article.hero .button--ghost > a,
.mod_article.hero a.button--ghost { color: #fff; border-color: #fff; background: rgb(255 255 255 / .08); }
.mod_article.hero .button--ghost > a:hover,
.mod_article.hero a.button--ghost:hover { background: rgb(255 255 255 / .2); color: #fff; }

.mod_article[id] { scroll-margin-top: 5rem; }

/* Dachzeile: Text-Element mit CSS-Klasse „eyebrow“ – kurzer roter Strich als Akzent (Rot nur als Signal) */
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: ''; flex: none;
  width: 1.5rem; height: 3px;
  background: var(--red); border-radius: 2px;
}
.eyebrow :is(.rte, p) { margin: 0; }
.hero .eyebrow { color: #cfe8d5; }

.small, small { font-size: .88rem; color: var(--text-muted); }

.badge {
  display: inline-block; margin-bottom: .75rem;
  padding: .2rem .65rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--green-dark); background: var(--green-tint);
  border-radius: 999px;
}

/* Listen im Texteditor: Liste mit Klasse „checklist“ oder „facts“ */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { position: relative; padding: .45rem 0 .45rem 2rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .75rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.facts { list-style: none; padding: 0; }
.facts li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { color: var(--grey); }

/* Text + Bild nebeneinander: Elementgruppe „split“ mit Gruppe „split__text“ und Bild „split__media“ */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
}
.split__media { margin: 0; }
.split__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius) * 1.6);
  box-shadow: var(--shadow);
}

/* Abschluss-Aufruf: Elementgruppe „cta“ (Text + Gruppe „button-row“) */
.cta { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56em) { .cta { grid-template-columns: 1fr auto; gap: 3rem; } }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .button-row { margin-top: 0; }

.h3 { font-size: 1.35rem; }

/* Rechtstexte: Text-Element mit Klasse „legal“ */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.legal .rte > h2:first-child { margin-top: 0; }

/* Akkordeon (Contao „Akkordeon“-Element, z. B. mit Klasse „faq“) */
.content-accordion {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.band .content-accordion { border-color: transparent; box-shadow: var(--shadow); }
.content-accordion .handorgel__header { margin: 0; font: inherit; }
.content-accordion .handorgel__header__button {
  position: relative; width: 100%;
  padding: 1.1rem 3.25rem 1.1rem 1.4rem;
  font: 600 1rem/1.4 var(--font-body); text-align: left; color: var(--grey);
  background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer;
}
.content-accordion .handorgel__header:first-child .handorgel__header__button { border-top: 0; }
.content-accordion .handorgel__header__button::after {
  content: '+'; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--green);
}
.content-accordion .handorgel__header--open .handorgel__header__button::after { content: '–'; }
.content-accordion .handorgel__header__button:hover,
.content-accordion .handorgel__header__button:focus-visible { color: var(--green); background: var(--green-tint); }
.content-accordion .handorgel__content__inner { padding: 0 1.4rem 1.25rem; }
.content-accordion .handorgel__content__inner .rte > :last-child { margin-bottom: 0; }

/* ---------- Raster & Karten ----------
 * Elementgruppe mit Klasse „grid-2“, „grid-3“ oder „grid-4“; Text-Elemente darin mit Klasse „card“.
 * Symbol per Zusatzklasse: card--time, card--place, card--check, card--safety, card--people, card--target, card--costs */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 40em) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.grid-2 > *, .grid-3 > *, .grid-4 > * { margin: 0; }

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.band .card { border-color: transparent; box-shadow: var(--shadow); }
.card :is(h2, h3) { font-size: 1.35rem; margin-bottom: .4em; }
.card .rte > :last-child { margin-bottom: 0; }

.card[class*="card--"]::before {
  content: ''; display: block;
  width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green-tint) var(--icon) center / 1.4rem no-repeat;
}
.card--time   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.card--place  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.card--check  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E"); }
.card--safety { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.card--people { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.5 3.4-5.5 6.5-5.5s5.7 2 6.5 5.5'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3Cpath d='M16 14.6c2.6-.3 4.8 1.4 5.5 4.4'/%3E%3C/svg%3E"); }
.card--target { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3C/svg%3E"); }
.card--costs  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300712f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }

/* ---------- Standard-Inhaltselemente ---------- */
.content-image figure, .ce_image figure { margin: 0; }
.content-image img, .ce_image img,
.content-gallery img, .ce_gallery img { border-radius: var(--radius); }

.content-gallery ul, .ce_gallery ul {
  list-style: none; padding: 0;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
.content-gallery figure, .ce_gallery figure { margin: 0; }

.content-gallery > h1, .content-gallery > h2 { margin-bottom: 1.5rem; }

/* Galerie-Übersicht: Elementgruppe „gallery-cards“ mit Bild-Elementen „gallery-card“
 * (Bild mit Link auf die Galerie-Unterseite, Bildunterschrift = Titel, Bildgröße „Galerie-Karte“) */
.gallery-cards {
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.gallery-card {
  position: relative; margin: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .15s, translate .15s;
}
.gallery-card:hover { box-shadow: var(--shadow); translate: 0 -2px; }
.gallery-card :is(picture, img) { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 0; }
.gallery-card a::after { content: ''; position: absolute; inset: 0; } /* ganze Karte klickbar */
.gallery-card figcaption {
  padding: 1rem 1.25rem 1.25rem;
  font: 900 1.2rem/1.25 var(--font-head); color: var(--grey);
}
.gallery-card:hover figcaption { color: var(--green-dark); }

table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--grey); background: var(--surface-alt); }

/* ---------- Altinhalte aus dem KickOff-Theme ----------
 * Bootstrap-Raster neutralisieren, alte Seitenleiste (Untermenü + Kontaktkasten)
 * ausblenden – Menü und Kontakt stecken jetzt in Kopf und Fuß.
 * Kann entfallen, sobald alle Seiten neu aufgebaut sind. */
.mod_article .container,
.mod_article .row { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
.mod_article [class*="col-lg-"],
.mod_article [class*="col-sm-"],
.mod_article [class*="col-md-"] { float: none; width: auto; max-width: none; padding: 0; }
.mod_article .rightblock,
.mod_article .syndication,
.mod_article .devider { display: none; }
.mod_article .content-text,
.mod_article .ce_text { max-width: 46rem; }
.mod_article .content-headline { margin-bottom: .5em; }

/* ---------- Nachrichten & Events ---------- */
.mod_newslist,
.mod_eventlist {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.mod_newslist > h2, .mod_newslist > h3,
.mod_eventlist > h2, .mod_eventlist > h3,
.mod_newslist > .pagination, .mod_eventlist > .pagination { grid-column: 1 / -1; }

/* Seitennavigation der Listen: „Seite 1 von 4“ + Seitenknöpfe */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.pagination p { margin: 0; font-size: .9rem; color: var(--text-muted); }
.pagination ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pagination li { margin: 0; padding: 0; }
.pagination a, .pagination strong {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .85rem;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
}
.pagination a { color: var(--grey); background: var(--surface); transition: border-color .15s, color .15s; }
.pagination a:hover, .pagination a:focus-visible { color: var(--green); border-color: var(--green); }
.pagination strong.active { color: #fff; background: var(--green); border-color: var(--green); }

.mod_eventlist .event {
  padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.mod_eventlist .event h2, .mod_eventlist .event h3 { font-size: 1.2rem; margin-bottom: .35em; }
.mod_eventlist .event h2 a, .mod_eventlist .event h3 a { color: var(--grey); text-decoration: none; }
.mod_eventlist .header, .mod_eventlist .date { font-size: .88rem; color: var(--text-muted); }

.mod_calendar table { font-size: .9rem; }
.mod_calendar td.active, .mod_calendar td.today { font-weight: 600; color: var(--green-dark); }

.layout_latest, .layout_short, .layout_simple {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.band .layout_latest, .band .layout_short { border-color: transparent; box-shadow: var(--shadow); }
.layout_latest figure, .layout_short figure {
  margin: -1.5rem -1.5rem 1.25rem;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.layout_latest figure img, .layout_short figure img {
  width: 100%; height: 100%; object-fit: cover;
}
.layout_latest h2, .layout_short h2,
.layout_latest h3, .layout_short h3 { font-size: 1.3rem; margin-bottom: .4em; }
.layout_latest h2 a, .layout_short h2 a,
.layout_latest h3 a, .layout_short h3 a { color: var(--grey); text-decoration: none; }
.layout_latest h2 a:hover, .layout_short h2 a:hover { color: var(--green); }
.layout_latest .info, .layout_short .info {
  order: -1; font-size: .85rem; color: var(--text-muted); margin-bottom: .35rem;
}
.layout_latest figure { order: -2; }
.layout_latest .more, .layout_short .more { margin-top: auto; margin-bottom: 0; font-weight: 600; }

.mod_newsreader .info { color: var(--text-muted); font-size: .9rem; }

/* ---------- Formulare (Contao-Formulargenerator) ----------
 * Formular-Element mit Klasse „card form-card“ → weiße Karte um das Formular */
.formbody .widget { margin-bottom: 1rem; }
.formbody label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--grey); }
.formbody label .mandatory { color: var(--green); }
.formbody .captcha_text { display: block; margin-top: .3rem; font-size: .88rem; color: var(--text-muted); }
.formbody .widget-explanation { font-size: .88rem; color: var(--text-muted); }
input[type=text], input[type=email], input[type=tel], input[type=search],
input[type=password], input[type=number], select, textarea {
  width: 100%; padding: .7rem .85rem;
  font: inherit; color: var(--text);
  background: #fff; border: 1px solid #cfd3d0; border-radius: 8px;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid var(--green-tint); }
button[type=submit], input[type=submit], .submit {
  padding: .8rem 1.6rem;
  font: 600 1rem var(--font-body); color: #fff;
  background: var(--green); border: 0; border-radius: 999px; cursor: pointer;
}
button[type=submit]:hover, .submit:hover { background: var(--green-dark); }
.error, p.error { color: var(--signal); }
.widget.error input, .widget.error textarea { border-color: var(--signal); }
.form-card { max-width: 40rem; }
.form-card > :last-child { margin-bottom: 0; }

/* Varianten für Text + Bild */
.split--top { align-items: start; }
.split__text > * + * { margin-top: 1rem; }
.split__text > .content-headline { margin-top: 0; }
.split__media--logo img { aspect-ratio: auto; object-fit: contain; max-width: 18rem; margin-inline: auto; box-shadow: none; border-radius: 0; }

/* ---------- Unterseiten: Seitentitel & Seitenmenü ---------- */
.mod_breadcrumb {
  max-width: var(--container); margin: 1.5rem auto 0;
  padding-inline: var(--gutter);
}
.home .mod_breadcrumb { display: none; }
.mod_breadcrumb + .mod_article:not(.hero) { padding-top: 2rem; }
.mod_breadcrumb a { color: var(--text-muted); }
.mod_breadcrumb strong { font-weight: inherit; } /* Contao 6 umschließt die aktuelle Seite mit <strong> */
.mod_breadcrumb ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0; margin: 0; font-size: .88rem; color: var(--text-muted);
}
.mod_breadcrumb li + li::before { content: '›'; margin-right: .4rem; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 3.5rem 2rem;
  font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: 1.15rem; margin-bottom: .75rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: .15rem 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .12);
  font-size: .85rem;
}
.footer-bottom ul { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom p { margin: 0; }
.footer-bottom li { white-space: nowrap; }
.site-footer small { color: rgb(255 255 255 / .6); }
.site-footer .button-row, .site-footer .content-hyperlink { margin-top: .75rem; }


/* ---------- Rundenwettkampf-Anzeige ([data-rwk], gefüllt aus /rwk.php) ----------
   Karte in drei Zonen: Kopf (Platz) · letztes Ergebnis (Anzeigetafel) · nächster Wettkampf (hervorgehoben) */
[data-rwk] { min-height: 12rem; }
.rwk-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
}
.rwk-card {
  display: flex; flex-direction: column; container-type: inline-size;
  padding: 1.4rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.band .rwk-card { border-color: transparent; box-shadow: var(--shadow); }
.rwk-card p { margin: 0; }
.rwk-card__league { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.rwk-card__place { margin-top: .35rem !important; font-size: 1.05rem; color: var(--text-muted); }
.rwk-card__place strong { font: 900 2rem/1.1 var(--font-head); color: var(--grey); }
.rwk-card__stats { font-size: .9rem; color: var(--text-muted); }
/* Ergebnis und nächster Wettkampf: untereinander, in breiten Karten nebeneinander */
.rwk-card__body { display: grid; gap: 1.1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
@container (min-width: 28rem) {
  .rwk-card__body { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
}
.rwk-card__label-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.rwk-card__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.rwk-card__hint { margin-top: .5rem !important; font-size: .9rem; color: var(--text-muted); }
.rwk-badge {
  display: inline-block;
  padding: .1rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
}
.rwk-badge--win { color: var(--green-dark); background: var(--green-tint); }
.rwk-badge--loss { color: var(--red); background: #fbe9eb; }
.rwk-badge--draw { color: var(--grey); background: var(--surface-alt); }

/* Anzeigetafel: Mannschaften nebeneinander, Ringe darunter (Sieger grün, Verlierer rot) */
.rwk-score {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .2rem .3rem;
  margin-top: .8rem; text-align: center;
}
.rwk-score__name { align-self: end; font-size: .82rem; line-height: 1.25; color: var(--text-muted); hyphens: auto; }
.rwk-score__name--own { font-weight: 700; color: var(--grey); }
.rwk-score__rings { font: 900 1.6rem/1.1 var(--font-head); font-variant-numeric: tabular-nums; color: var(--grey); }
.rwk-score__rings--win { color: var(--green); }
.rwk-score__rings--loss { color: var(--red); }
.rwk-score__sep { font: 900 1.4rem/1.1 var(--font-head); color: var(--text-muted); }

/* Nächster Wettkampf: farbig hinterlegt, damit der Blick zuerst dort landet */
.rwk-next {
  padding: .85rem .9rem;
  background: var(--green-tint); border-left: 4px solid var(--green); border-radius: 8px;
}
.rwk-next .rwk-card__label { color: var(--green-dark); }
.rwk-next__date { margin-top: .3rem !important; font: 900 1.25rem/1.2 var(--font-head); color: var(--grey); }
.rwk-next__opponent { margin-top: .25rem !important; font-size: .92rem; font-weight: 600; color: var(--grey); }
.rwk-next__where { font-size: .85rem; color: var(--green-dark); }
.rwk-later { margin: .8rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--text-muted); }
.rwk-later li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .4rem; margin: 0; padding: .25rem 0; }
.rwk-later__date { font-weight: 600; color: var(--grey); }
.rwk-later__where { font-size: .78rem; white-space: nowrap; }

.rwk-card__table { margin-top: auto; padding-top: .9rem; font-size: .88rem; }
.rwk-card__table summary { cursor: pointer; font-weight: 600; color: var(--green); }
.rwk-card__table table { margin: .6rem 0 0; font-size: .85rem; }
.rwk-card__table th, .rwk-card__table td { padding: .35rem .4rem; }
.rwk-own td { font-weight: 600; color: var(--green-dark); background: var(--green-tint); }
.rwk-source, .rwk-empty { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }

/* ---------- 2-Klick-Karte (Template „zwei_klick_karte“) ---------- */
.consent-embed {
  position: relative; max-width: 46rem;
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.consent-embed__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  height: 100%; padding: 1.5rem; text-align: center;
  background:
    linear-gradient(rgb(245 246 244 / .92), rgb(245 246 244 / .92)),
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 22px);
}
.consent-embed__placeholder p { max-width: 30rem; margin: 0; font-size: .95rem; color: var(--text-muted); }
.consent-embed__placeholder strong { color: var(--grey); }
.consent-embed__button {
  padding: .7rem 1.4rem;
  font: 600 1rem var(--font-body); color: #fff;
  background: var(--green); border: 0; border-radius: 999px; cursor: pointer;
}
.consent-embed__button:hover { background: var(--green-dark); }
.consent-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.consent-embed--loaded > div { height: 100%; } /* Wrapper aus dem Einbettungscode */

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(10 14 12 / .94); color: #fff;
}
.lightbox::backdrop { background: rgb(10 14 12 / .6); }
.lightbox__figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; margin: 0; padding: 3.5rem 4rem 3rem;
}
.lightbox__image {
  max-width: 100%; max-height: calc(100vh - 8rem);
  object-fit: contain; border-radius: 6px;
}
.lightbox__caption { margin-top: .75rem; font-size: .95rem; color: rgb(255 255 255 / .85); text-align: center; }
.lightbox__counter { position: absolute; top: 1rem; left: 1.25rem; margin: 0; font-size: .9rem; color: rgb(255 255 255 / .7); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem;
  font: 400 2rem/1 var(--font-body); color: #fff;
  background: rgb(255 255 255 / .08); border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .2); }
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__prev { left: .75rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: .75rem; top: 50%; translate: 0 -50%; }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
@media (max-width: 40em) {
  .lightbox__figure { padding: 3.5rem .5rem 2rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: .75rem; translate: none; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
