/* ════════════════════════════════════════════
   Schützenverein Herdecke 1842 e.V. — site.css
   Gemeinsames Stylesheet für alle Seiten
   ════════════════════════════════════════════ */

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

:root {
  --green: #0c8250;
  --green-dark: #0a6741;
  --green-light: #e8f5ef;
  --green-mid: #b2d9c6;
  --ink: #1a1a18;
  --ink-mid: #4a4a46;
  --ink-soft: #8a8a84;
  --parchment: #faf9f6;
  --parchment-2: #f3f1ea;
  --white: #ffffff;
  --rule: #e2e0da;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'DM Sans', Helvetica Neue, sans-serif;
  --maxw: 1240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ════════ BUTTONS ════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--green-light); color: var(--green-dark); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ════════ MASTHEAD ════════ */
.masthead { background: var(--parchment); border-top: 4px solid var(--green); }

.masthead-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 40px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.masthead-crest {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.masthead-text { flex: 1; }

.masthead-est {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.masthead-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}
.masthead-name span { color: var(--green); }

.masthead-utility {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.utility-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.utility-link:hover { color: var(--green); }

.double-rule-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.double-rule-inner > div {
  margin: 0 40px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 4px;
}

/* ════════ NAV + DROPDOWNS ════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s;
  pointer-events: none;
}
.nav.scrolled .nav-mini { opacity: 1; transform: none; pointer-events: auto; }
.nav-mini img { width: 26px; }
.nav-mini span { font-family: var(--serif); font-size: 15px; font-weight: 600; color: #fff; }
.nav-mini span em { color: var(--green-mid); font-style: normal; }

.nav-links { display: flex; list-style: none; }
.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72);
  padding: 18px 15px;
  position: relative;
  transition: color .2s;
  cursor: pointer;
}
.nav-item > a .caret {
  width: 9px; height: 9px;
  transition: transform .25s;
  opacity: 0.7;
}
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 12px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-item > a:hover { color: #fff; }
.nav-item:hover > a::after,
.nav-item.active > a::after { transform: scaleX(1); }
.nav-item.active > a { color: #fff; }
.nav-item:hover > a .caret { transform: rotate(180deg); }

/* Dropdown panel — modern, weich, mit Verbindungs-Pfeil */
.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 2px;
  min-width: 252px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(26,26,24,0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: top left;
  transition: opacity .26s ease, visibility .26s, transform .26s cubic-bezier(.2,.7,.3,1);
  z-index: 60;
}
.nav-sub::before {
  content: ""; position: absolute; top: -6px; left: 26px; width: 12px; height: 12px;
  background: var(--white); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule);
  transform: rotate(45deg);
}
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }

.nav-sub a {
  position: relative;
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}
.nav-sub a::before {
  content: "";
  position: absolute; left: 7px; top: 50%; width: 3px; height: 0;
  background: var(--green); border-radius: 3px; transform: translateY(-50%);
  transition: height .22s ease;
}
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--green-light); color: var(--green-dark); padding-left: 21px; }
.nav-sub a.active { background: var(--green-light); color: var(--green-dark); font-weight: 600; padding-left: 21px; }
.nav-sub a:hover::before, .nav-sub a.active::before { height: 18px; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 16px 0; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all .3s; }

/* ════════ PAGE HEADER (subpages) ════════ */
.page-header {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,16,14,0.82) 0%, rgba(16,16,14,0.6) 50%, rgba(12,61,38,0.38) 100%);
}
.page-header-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 40px 56px;
}
.breadcrumb {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--green-mid); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--green-mid); }

.page-header .eyebrow-light {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-header .eyebrow-light::before { content: ""; width: 30px; height: 1px; background: var(--green-mid); }

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  max-width: 760px;
  letter-spacing: -0.01em;
}
.page-header h1 em { color: var(--green-mid); font-style: italic; }
.page-header .page-lead {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
}

/* ════════ CONTENT TYPOGRAPHY ════════ */
.block { padding: 80px 0; }
.block-tint { background: var(--parchment-2); }
.block-white { background: var(--white); }
.block-compact { padding-top: 46px; padding-bottom: 46px; }      /* flachere Section (z. B. Amtierende Majestäten) */
.block-compact .section-head { margin-bottom: 28px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--green); }

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  max-width: 640px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: gap .2s;
}
.section-link:hover { gap: 12px; }

.prose { max-width: 720px; }
.prose p { font-size: 17px; color: var(--ink-mid); margin-bottom: 18px; line-height: 1.85; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 14px;
}
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 16px;
  color: var(--ink-mid);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
/* Links in redaktionellem HTML (Inhaltsseiten, News, Impressum/Datenschutz) sichtbar machen */
.prose a, .article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color .15s;
}
.prose a:hover, .article-body a:hover { color: var(--green-dark); }

.lead-intro {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  max-width: 760px;
  margin-bottom: 36px;
}

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media { width: 100%; height: 440px; border-radius: 8px; object-fit: cover; }
.split.reverse .split-media { order: -1; }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.info-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 30px 30px 32px;
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,26,24,0.1); }
.info-card .ic-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.info-card .ic-icon svg { width: 22px; height: 22px; stroke: var(--green); }
.info-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.2; }
.info-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

.media-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.media-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,26,24,0.1); }
.media-card .mc-img { width: 100%; height: 200px; object-fit: cover; display: block; }
/* Quadratische/Hochformat-Bilder: einpassen statt zuschneiden (Klasse setzt site.js anhand des Seitenverhältnisses) */
.media-card .mc-img.img-contain, .article-media.img-contain { object-fit: contain; background: var(--parchment-2); }
/* News-Standardbild (Fallback ohne eigenes Hauptbild): ganzes Logo zeigen, nie beschneiden */
/* News-Standardbild als gerahmte Kachel: Logo zentriert + abgerundet auf der Hintergrundfläche */
.media-card .mc-img.news-fallback, .article-media.news-fallback { display: flex; align-items: center; justify-content: center; padding: 12px; background: var(--parchment-2); box-sizing: border-box; }
.media-card .mc-img.news-fallback > img, .article-media.news-fallback > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; display: block; }
/* Meta-Zeile auf der Karte: Kategorie + Datum */
.media-card .mc-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.media-card .mc-meta .mc-cat { margin-bottom: 0; }
.media-card .mc-date { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
.media-card .mc-body { padding: 24px 26px 28px; flex: 1; }
.media-card .mc-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.media-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 9px; line-height: 1.25; }
.media-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }
/* Teaser darf einfaches HTML enthalten (Editor im Backend) */
.media-card .mc-teaser { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }
.media-card .mc-teaser p { margin: 0 0 8px; }
.media-card .mc-teaser > :last-child { margin-bottom: 0; }
.media-card .mc-teaser h2, .media-card .mc-teaser h3, .media-card .mc-teaser h4 { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); margin: 0 0 6px; line-height: 1.3; }
.media-card .mc-teaser ul, .media-card .mc-teaser ol { margin: 0 0 8px; padding-left: 18px; }
.media-card .mc-teaser ul li { list-style: disc; }
.media-card .mc-teaser ol li { list-style: decimal; }
.media-card .mc-teaser hr { border: 0; border-top: 1px solid var(--rule); margin: 10px 0; }
/* Hinweis auf der Karte: es gibt einen Volltext/eine Galerie hinter dem Klick */
.media-card .mc-more { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.media-card:hover .mc-more { color: var(--green-dark); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 28px; }
.timeline-item { display: flex; gap: 20px; padding: 12px 0; align-items: baseline; border-bottom: 1px solid var(--rule); }
.timeline-year { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--green); width: 90px; flex-shrink: 0; }
.timeline-desc { font-size: 15px; color: var(--ink-mid); line-height: 1.55; }
/* Chronik-Zeilen mit führender Überschrift (Ereignis) + Beschreibung: Überschrift absetzen.
   Der Zeilenumbruch kommt vom <br>; hier nur Farbe/Stärke, damit keine doppelte Leerzeile entsteht. */
.timeline-desc > b:first-child, .timeline-desc > strong:first-child { color: var(--ink); font-weight: 600; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.data-table th {
  text-align: left;
  font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 16px 22px;
  background: var(--parchment-2);
  border-bottom: 2px solid var(--rule);
}
.data-table td { padding: 16px 22px; border-bottom: 1px solid var(--rule); color: var(--ink-mid); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
.data-table .t-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-light); padding: 4px 10px; border-radius: 3px; white-space: nowrap; }

/* Königstafel: Sommerkönige (links) + Hauptkönige (rechts) nebeneinander; ab 940px untereinander. */
.koenige-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; align-items: start; }
.koenige-cols .section-head { margin-bottom: 22px; }
.koenige-cols .data-table { font-size: 14.5px; }
.koenige-cols .data-table td { padding: 13px 18px; }
.koenige-edit-link { margin-bottom: 24px; }
@media (max-width: 940px) { .koenige-cols { grid-template-columns: 1fr; gap: 48px; } .koenige-cols .section-head { margin-bottom: 28px; } }

/* Amtierende Majestäten: Sommer- + Hauptkönig nebeneinander; kompaktes Passfoto links, Infos rechts. */
.regenten { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 44px; align-items: start; }
.regent { display: flex; gap: 20px; align-items: flex-start; }
.regent-foto { width: 132px; height: 168px; object-fit: cover; object-position: center top; border-radius: 8px; flex-shrink: 0; display: block; }
.regent-body { min-width: 0; }
.regent-name { font-family: var(--serif); font-size: 1.35rem; margin: 4px 0 8px; color: var(--ink); }
.regent .prose { max-width: none; font-size: 14.5px; }
@media (max-width: 768px) { .regenten { grid-template-columns: 1fr; gap: 22px; } }

/* Event rows */
.event-row { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.event-row:first-child { border-top: 1px solid var(--rule); }
.event-date { flex-shrink: 0; width: 64px; text-align: center; border-right: 2px solid var(--green); padding-right: 16px; }
.event-day { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--ink); }
.event-mon { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-top: 4px; }
.event-info { flex: 1; }
.event-info h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.event-info .event-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; }
.event-info .event-desc { font-size: 13.5px; color: var(--ink-mid); margin-top: 6px; line-height: 1.55; max-width: 640px; }
.event-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-light); padding: 4px 10px; border-radius: 3px; white-space: nowrap; }

/* Download / form list */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 24px;
  transition: all .2s;
}
.dl-item:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(26,26,24,0.07); }
.dl-icon { width: 40px; height: 40px; border-radius: 6px; background: var(--green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-icon svg { width: 20px; height: 20px; stroke: var(--green); }
.dl-text { flex: 1; }
.dl-text h4 { font-size: 15px; font-weight: 600; color: var(--ink); }
.dl-text p { font-size: 13px; color: var(--ink-soft); }
.dl-meta { font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Contact / vorstand */
.person-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person-card { text-align: center; }
.person-photo { width: 150px; height: 190px; border-radius: 8px; margin: 0 auto 16px; object-fit: cover; object-position: center top; display: block; }
.person-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.person-role { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-top: 4px; }
.person-contact { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.person-info { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border: 60px solid rgba(255,255,255,0.06); border-radius: 50%; }
.cta-inner { max-width: 1240px; margin: 0 auto; padding: 70px 40px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; position: relative; }
.cta-inner h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 500; line-height: 1.12; }
.cta-inner p { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,0.85); max-width: 460px; }
/* CTA-Band ist jetzt eine Block-Gruppe: Block-Texte + Bedien-Elemente hell, damit sie auf Grün lesbar sind */
.cta-band .ig .section-title, .cta-band .ig .eyebrow { color: #fff; }
.cta-band .ig .prose, .cta-band .ig .prose p, .cta-band .ig .prose li, .cta-band .ig .prose strong { color: rgba(255,255,255,0.9); }
.cta-band .ig .prose a { color: #fff; }
.cta-band .blk-edit { outline-color: rgba(255,255,255,0.4); }
.cta-band .blk-edit:hover { outline-color: #fff; }
.cta-band .blk-add { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-band .blk-add:hover { background: #fff; color: var(--green-dark); border-color: #fff; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; }

/* Info / contact box */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 26px; }
.contact-line { display: flex; gap: 18px; align-items: flex-start; }
.contact-line .cl-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line .cl-icon svg { width: 21px; height: 21px; stroke: var(--green); }
.contact-line h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact-line p { font-size: 16px; color: var(--ink); line-height: 1.6; }
.contact-line a { color: var(--green); }

.form-box { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 5px;
  background: var(--parchment);
  transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Link list (Links page) */
.linklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.linkrow {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  padding: 20px 24px; transition: all .2s;
}
.linkrow:hover { border-color: var(--green); transform: translateX(4px); }
.linkrow .lr-mark { width: 44px; height: 44px; border-radius: 8px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; flex-shrink: 0; }
.linkrow h4 { font-size: 15px; font-weight: 600; color: var(--ink); }
.linkrow p { font-size: 13px; color: var(--ink-soft); }
.linkrow .lr-arrow { margin-left: auto; color: var(--green); }

/* Sponsoren: Logoreihe über die volle Seitenbreite, gleichmäßig verteilt, Name darunter. */
.sponsor-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: start; gap: 32px 26px; padding: 8px clamp(20px, 6vw, 90px) 0; }
.sponsor-item { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-decoration: none; color: inherit; }
.sponsor-logo { max-height: 116px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; transition: opacity .2s, transform .2s; }
a.sponsor-item:hover .sponsor-logo { opacity: .72; transform: translateY(-3px); }
.sponsor-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink-mid); line-height: 1.3; }
a.sponsor-item:hover .sponsor-name { color: var(--green); }

/* Partner: befreundete Vereine + Verbände nebeneinander, mobil untereinander. */
.partner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; align-items: start; }
.partner-cols .section-head { margin-bottom: 20px; }
.partner-list { display: flex; flex-direction: column; gap: 10px; }
.partner-item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.partner-item:hover { border-color: var(--green); box-shadow: 0 3px 12px rgba(0,0,0,.05); transform: translateX(3px); }
.partner-logo { width: 60px; height: 44px; object-fit: contain; flex-shrink: 0; }
.partner-mark { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--green-light); color: var(--green); border-radius: 7px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.partner-text { min-width: 0; flex: 1; }
.partner-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.partner-desc { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.partner-arrow { flex-shrink: 0; color: var(--ink-soft); display: inline-flex; }
a.partner-item:hover .partner-arrow { color: var(--green); }
@media (max-width: 860px) { .partner-cols { grid-template-columns: 1fr; gap: 36px; } }

/* ════════ FOOTER ════════ */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 60px; }
.footer-brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #fff; line-height: 1.2; }
.footer-brand-name span { color: var(--green-mid); }
.footer-brand p, .footer-brand .footer-text { font-size: 13px; margin-top: 10px; line-height: 1.7; max-width: 280px; }
.footer-brand .footer-text :first-child { margin-top: 0; }
.footer-brand .footer-text p { margin: 0 0 8px; max-width: none; }   /* innere Absätze des Rich-Text-Footers */
.footer-brand .footer-text p:last-child { margin-bottom: 0; }
.footer-brand .footer-text a { color: var(--green-mid); text-decoration: underline; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-col a:hover { color: var(--green-mid); }
/* Hover-Unterstreichung wie im Top-Menü: grüner Balken wächst von links */
.footer-col a, .footer-bottom a { position: relative; display: inline-block; }
.footer-col a::after, .footer-bottom a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}
.footer-col a:hover::after, .footer-bottom a:hover::after { transform: scaleX(1); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ════════ MOBILE DRAWER ════════ */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 100;
  padding: 24px 30px 40px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer-top img { width: 44px; }
.drawer-close { background: none; border: none; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }
.m-nav { display: flex; flex-direction: column; }
.m-nav > a, .m-group > button {
  width: 100%;
  text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.88);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
}
.m-group > button .m-caret { width: 16px; height: 16px; transition: transform .25s; opacity: 0.7; }
.m-group.open > button .m-caret { transform: rotate(180deg); }
.m-sub { display: none; flex-direction: column; padding: 6px 0 12px 14px; }
.m-group.open .m-sub { display: flex; }
.m-sub a { font-family: var(--sans); font-size: 1rem; color: rgba(255,255,255,0.6); padding: 9px 0; }
.m-sub a:hover { color: var(--green-mid); }
.mobile-drawer .btn { margin-top: 26px; justify-content: center; }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1040px) {
  .nav-item > a { padding: 18px 11px; font-size: 12.5px; }
}
@media (max-width: 940px) {
  .card-grid, .card-grid.cols-2, .person-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media { height: 300px; order: -1; }
  .split.reverse .split-media { order: -1; }
  .contact-grid, .linklist { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 640px) {
  .container, .masthead-inner, .nav-inner, .page-header-inner, .cta-inner { padding-left: 22px; padding-right: 22px; }
  .double-rule-inner > div { margin: 0 22px; }
  .masthead-inner { gap: 14px; padding: 16px 22px 14px; flex-wrap: wrap; }
  .masthead-crest { width: 54px; }
  .masthead-utility { display: none; }
  .block { padding: 56px 0; }
  .block-compact { padding-top: 32px; padding-bottom: 32px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   CMS-Erweiterungen 2026 — A11y, Admin-Leiste, Inline-Editor,
   Termin-Tabelle, Trainingskalender, Formulare
   ════════════════════════════════════════════════════════════ */

/* ── Barrierefreiheit ── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--green); color: #fff; padding: 10px 18px;
  font-size: 14px; font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.nav a:focus-visible, .nav .nav-parent:focus-visible,
.hero a:focus-visible, .cta-band a:focus-visible, .footer a:focus-visible,
.admin-bar a:focus-visible, .admin-bar button:focus-visible,
.page-header a:focus-visible { outline-color: #fff; }

/* etwas mehr Kontrast bei Pflicht-/Sekundärlinks */
.footer-bottom { color: rgba(255,255,255,0.6); }
.footer-bottom a { color: rgba(255,255,255,0.62); }
.footer-bottom a:hover { color: #fff; }
.breadcrumb { color: rgba(255,255,255,0.7); }

/* Bewegungseffekte (Hover, Menü, Parallax, Einblenden, Smooth-Scroll) sind bewusst
   unabhängig von der System-Einstellung "Bewegung reduzieren" immer aktiv. */

/* ── Nav-Parent als Button + Touch-/Tastatur-Dropdowns ── */
.nav-item > .nav-parent {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  line-height: inherit;
  color: rgba(255,255,255,0.72); padding: 18px 15px; position: relative;
  background: none; border: 0; cursor: pointer; transition: color .2s;
}
.nav-item > .nav-parent .caret { width: 9px; height: 9px; transition: transform .25s; opacity: .7; }
.nav-item > .nav-parent::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 12px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-item > .nav-parent:hover { color: #fff; }
.nav-item:hover > .nav-parent::after,
.nav-item.open > .nav-parent::after,
.nav-item.active > .nav-parent::after { transform: scaleX(1); }
.nav-item.open > .nav-parent, .nav-item.active > .nav-parent { color: #fff; }
.nav-item:hover > .nav-parent .caret, .nav-item.open > .nav-parent .caret { transform: rotate(180deg); }
.nav-item.open .nav-sub, .nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 1040px) { .nav-item > .nav-parent { padding: 18px 11px; font-size: 12.5px; } }
@media (max-width: 940px)  { .nav-item > .nav-parent { display: none; } }

/* ── Admin-Leiste (eingeloggt) ── */
.admin-bar {
  position: sticky; top: 0; z-index: 70;
  background: var(--green-dark); color: #fff; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 8px max(22px, calc((100vw - var(--maxw)) / 2 + 22px)); flex-wrap: wrap;
}
/* Navigation dockt unter der (sticky) Admin-Leiste an; --abh wird per JS gesetzt. */
.nav { top: var(--abh, 0px); }
.admin-bar .ab-user { opacity: .92; }
.admin-bar .ab-actions { display: flex; gap: 8px; align-items: center; }
.ab-btn {
  background: rgba(255,255,255,0.16); color: #fff; border: 0; border-radius: 4px;
  padding: 6px 13px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: var(--sans);
}
.ab-btn:hover { background: rgba(255,255,255,0.28); }
.ab-btn.ab-edit.active { background: #fff; color: var(--green-dark); }

/* ── Inline-Editing ── */
body.inline-on [data-inline] {
  outline: 1px dashed rgba(12,130,80,0.45); outline-offset: 3px;
  cursor: text; border-radius: 3px; transition: outline-color .15s, background .15s;
}
body.inline-on [data-inline]:hover { outline-color: var(--green); background: rgba(12,130,80,0.05); }
[data-inline].inline-editing { outline: 2px solid var(--green) !important; background: rgba(255,255,255,0.06); }
.page-header [data-inline].inline-editing { background: rgba(255,255,255,0.10); }
/* Auf dunklen/farbigen Abschnitten (Seitenkopf, grünes CTA-Band) ist der grüne Rahmen unsichtbar
   → heller Rahmen, damit man die editierbaren Bereiche überhaupt erkennt. */
body.inline-on .page-header [data-inline], body.inline-on .cta-band [data-inline] {
  outline-color: rgba(255,255,255,0.5);
}
body.inline-on .page-header [data-inline]:hover, body.inline-on .cta-band [data-inline]:hover {
  outline-color: #fff; background: rgba(255,255,255,0.10);
}
.page-header [data-inline].inline-editing, .cta-band [data-inline].inline-editing {
  outline-color: #fff !important;
}
body.inline-on [data-inline]:empty { min-height: 1.4em; }
body.inline-on [data-inline] img { cursor: pointer; }
[data-inline] img.inline-img-active { outline: 3px solid var(--green); outline-offset: 2px; }
body.inline-on [data-inline].inline-droptarget {
  outline: 2px dashed var(--green) !important;
  background: rgba(12,130,80,0.08);
}

.inline-toolbar {
  position: fixed; z-index: 250; background: var(--ink); border-radius: 7px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; gap: 2px; padding: 4px;
  flex-wrap: wrap; align-items: center; max-width: min(92vw, 640px);
}
.inline-toolbar select {
  background: rgba(255,255,255,0.12); color: #fff; border: 0; border-radius: 4px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 6px 4px;
  cursor: pointer; max-width: 96px;
}
.inline-toolbar select:hover { background: rgba(255,255,255,0.2); }
.inline-toolbar select option { color: var(--ink); background: #fff; font-weight: 400; }
.inline-toolbar button {
  background: none; border: 0; color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 9px; border-radius: 4px; cursor: pointer; min-width: 30px; font-family: var(--serif);
  display: inline-flex; align-items: center; justify-content: center; line-height: 1.2;
}
.inline-toolbar button:hover { background: rgba(255,255,255,0.16); }
.inline-toolbar button.on { background: var(--green); }
.inline-toolbar button svg { display: block; pointer-events: none; }
.inline-toolbar button small { font-size: 9px; margin-left: 1px; }
.inline-toolbar .tb-sep { width: 1px; align-self: stretch; margin: 3px 4px; background: rgba(255,255,255,0.22); }
/* Button-Gruppe: bleibt beim Zeilenumbruch zusammen (Listen, Ausrichtung … nicht trennen) */
.inline-toolbar .tb-grp { display: inline-flex; gap: 2px; align-items: center; }
.inline-imgbar { max-width: min(92vw, 480px); }
.inline-imgbar .tb-label, .inline-tablebar .tb-label {
  color: rgba(255,255,255,0.6); font-family: var(--sans); font-size: 10px;
  text-transform: uppercase; letter-spacing: .07em; padding: 0 2px 0 8px;
}
.inline-imgbar button, .inline-tablebar button { font-family: var(--sans); font-weight: 600; font-size: 12px; }

/* Klapp-Menüs der Werkzeugleiste (Stil / Ausrichtung) */
.inline-toolbar .tb-menu-trig { font-family: var(--sans); font-weight: 600; font-size: 12px; gap: 5px; padding: 6px 10px; }
.inline-toolbar .tb-caret { font-size: 9px; opacity: .65; }
.tb-dropdown {
  position: fixed; z-index: 256; background: var(--ink); border-radius: 7px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.36); padding: 4px; min-width: 168px;
  display: flex; flex-direction: column; gap: 1px;
}
.tb-dropdown button {
  background: none; border: 0; color: #fff; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 8px 11px; border-radius: 4px; display: flex; align-items: center; gap: 9px; line-height: 1.2;
}
.tb-dropdown button:hover { background: rgba(255,255,255,0.16); }
.tb-dropdown button svg { display: block; flex-shrink: 0; }
.tb-dropdown .tb-dd-head { font-family: var(--sans); font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: rgba(255,255,255,0.5); padding: 8px 11px 3px; }
.tb-dropdown small { opacity: .6; font-weight: 400; margin-left: 5px; }

/* Hinweis-Fahne für reine Textfelder (schwebt wie die Werkzeugleiste, blockiert keine Klicks) */
.inline-texthint {
  position: fixed; z-index: 250; max-width: min(92vw, 330px);
  background: var(--ink); color: rgba(255,255,255,0.92);
  font-family: var(--sans); font-size: 12px; line-height: 1.45; font-weight: 500;
  padding: 8px 12px; border-radius: 7px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  pointer-events: none; display: flex; align-items: flex-start; gap: 8px;
}
.inline-texthint::before { content: "i"; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-style: italic;
  display: flex; align-items: center; justify-content: center; font-size: 11px; }

/* Link-Dialog (heller Karten-Dialog, schwebend wie die Werkzeugleiste) */
.inline-linkpanel { position: fixed; z-index: 255; background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22); padding: 12px; width: min(92vw, 330px); font-family: var(--sans); }
.inline-linkpanel .lp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inline-linkpanel .lp-row > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); width: 48px; flex-shrink: 0; }
.inline-linkpanel input[type=text], .inline-linkpanel select { flex: 1; min-width: 0; font-family: var(--sans); font-size: 14px; padding: 7px 9px; border: 1.5px solid var(--rule); border-radius: 5px; color: var(--ink); background: #fff; }
.inline-linkpanel .lp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mid); margin: 2px 0 12px; }
.inline-linkpanel .lp-check input { width: auto; }
.inline-linkpanel .lp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-linkpanel .lp-btns button { border: 0; border-radius: 5px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.inline-linkpanel .lp-apply { background: var(--green); color: #fff; }
.inline-linkpanel .lp-apply:hover { background: var(--green-dark); }
.inline-linkpanel .lp-remove { background: #fdecea; color: #8a221b; }
.inline-linkpanel .lp-cancel { background: var(--parchment-2); color: var(--ink-mid); }
/* Erweiterte Eingabe-Panels (Button / Tabelle / Bild-Alt) – nutzen die Link-Dialog-Optik */
.inline-linkpanel .lp-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 2px 12px; }
.inline-linkpanel .lp-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.4; margin: -2px 0 12px; }
.inline-linkpanel .lp-chips { display: flex; gap: 6px; flex: 1; }
.inline-linkpanel .lp-chip { flex: 1; border: 1.5px solid var(--rule); background: #fff; color: var(--ink-mid);
  border-radius: 6px; padding: 7px 4px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.inline-linkpanel .lp-chip:hover { border-color: var(--green-mid); }
.inline-linkpanel .lp-chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.inline-linkpanel .lp-preview { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; padding: 10px;
  background: var(--parchment-2); border-radius: 6px; }
.inline-linkpanel .lp-preview > span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.inline-linkpanel .lp-step { display: inline-flex; align-items: center; gap: 6px; flex: 1; }
.inline-linkpanel .lp-step button { width: 30px; height: 30px; border: 1.5px solid var(--rule); background: #fff;
  color: var(--ink); border-radius: 5px; font-size: 17px; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; }
.inline-linkpanel .lp-step button:hover { border-color: var(--green); color: var(--green-dark); }
.inline-linkpanel .lp-step input[type=number] { flex: 1; min-width: 0; text-align: center; font-family: var(--sans);
  font-size: 14px; padding: 7px 4px; border: 1.5px solid var(--rule); border-radius: 5px; color: var(--ink); }

.inline-savebar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 260;
  background: var(--ink); color: #fff; border-radius: 9px; box-shadow: 0 16px 44px rgba(0,0,0,0.35);
  padding: 10px 14px; display: none; gap: 10px; align-items: center; font-size: 13px;
}
.inline-savebar.show { display: flex; }
/* Dauerhafter Status (links) – zeigt, ob alles gespeichert ist */
.inline-savebar .isb-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.inline-savebar .isb-status svg { display: block; }
.inline-savebar .isb-status.saved { color: #8be0b6; }
.inline-savebar .isb-status.dirty { color: #ffcf8f; }
.inline-savebar .isb-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb454; display: inline-block; }
/* Kurz-Meldung (Toast), getrennt vom Status; verschwindet von selbst wieder */
.inline-savebar .isb-toast { opacity: .9; font-style: italic; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-savebar .isb-toast:empty { display: none; }
.inline-savebar button { border: 0; border-radius: 5px; padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.inline-savebar button svg { display: block; }
.inline-savebar button:disabled { opacity: .45; cursor: default; }
.isb-save { background: var(--green); color: #fff; }
.isb-save:hover:not(:disabled) { background: #0aa867; }
.isb-hist, .isb-cancel { background: rgba(255,255,255,0.16); color: #fff; }
.isb-hist:hover, .isb-cancel:hover { background: rgba(255,255,255,0.28); }

/* „Bearbeiten beenden?"-Dialog: drei eindeutige Aktionen (Speichern & schließen / Verwerfen / Weiter) */
.inline-confirm { position: fixed; inset: 0; z-index: 280; background: rgba(20,28,24,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.inline-confirm .ic-card { background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  padding: 22px 24px; width: min(94vw, 420px); font-family: var(--sans); }
.ic-title { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ic-text { font-size: 14px; color: var(--ink-mid); margin-bottom: 18px; line-height: 1.5; }
.ic-btns { display: flex; flex-direction: column; gap: 9px; }
.ic-btns button { border: 0; border-radius: 7px; padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--sans); text-align: center; }
.ic-save { background: var(--green); color: #fff; }
.ic-save:hover { background: var(--green-dark); }
.ic-discard { background: #fbe3e0; color: #8a221b; }
.ic-discard:hover { background: #f6cdc7; }
.ic-keep { background: var(--parchment-2); color: var(--ink-mid); }
.ic-keep:hover { background: var(--rule); }

.inline-history {
  position: fixed; right: 22px; bottom: 84px; width: 340px; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--rule); border-radius: 9px;
  box-shadow: 0 18px 52px rgba(0,0,0,0.22); z-index: 270; display: none;
}
.inline-history.show { display: block; }
.inline-history h4 {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-soft); padding: 14px 16px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: #fff;
}
.ih-item { padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ih-item:last-child { border-bottom: none; }
.ih-meta { color: var(--ink-soft); font-size: 12px; margin-bottom: 8px; }
.ih-preview { color: var(--ink-mid); font-size: 12px; margin-bottom: 8px; max-height: 54px; overflow: hidden; }
.ih-item button { background: var(--green-light); color: var(--green-dark); border: 0; border-radius: 4px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.ih-item button:hover { background: var(--green-mid); }

/* ── Inhalts-Layoutklassen (vom Inline-Editor gesetzt, Allow-Liste im Server) ── */
.prose img, [data-inline] img { max-width: 100%; height: auto; border-radius: 6px; }

/* Schriftart/-größe je Absatz — bewusst nur lokal installierte Standardschriften, keine Webfonts.
   !important, weil kontextspezifische Regeln wie ".prose p"/".prose ol li" sonst die
   Schriftgröße überschreiben (höhere Spezifität als eine einzelne Utility-Klasse). */
.font-arial   { font-family: Arial, Helvetica, sans-serif !important; }
.font-verdana { font-family: Verdana, Geneva, sans-serif !important; }
.font-georgia { font-family: Georgia, 'Times New Roman', serif !important; }
.font-times   { font-family: 'Times New Roman', Times, serif !important; }
.font-courier { font-family: 'Courier New', Courier, monospace !important; }
.fs-s  { font-size: 0.85em !important; }
.fs-l  { font-size: 1.3em !important; }
.fs-xl { font-size: 1.6em !important; }
/* Grün hervorgehobener Text (markierungsbasiert). Auch verschachtelte Elemente (z. B. fetter
   Text via .prose p strong{color:ink}) müssen mitgrünen → .tx-accent * mit !important. */
.tx-accent, .tx-accent * { color: var(--green) !important; }
.cta-band .tx-accent, .cta-band .tx-accent * { color: #fff !important; }   /* auf grünem Band weiß */

/* Editor-Tabellen (in Inhalt, Artikel und News-Editor-Vorschau) */
.prose .ce-table, .article-body .ce-table, .rte-area .ce-table, .mc-teaser .ce-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose .ce-table td, .prose .ce-table th,
.article-body .ce-table td, .article-body .ce-table th,
.rte-area .ce-table td, .rte-area .ce-table th { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; vertical-align: top; line-height: 1.5; }
.prose .ce-table th, .article-body .ce-table th, .rte-area .ce-table th { background: var(--parchment-2); font-weight: 600; color: var(--ink); }
body.inline-on .ce-table td:focus, body.inline-on .ce-table th:focus { outline: 2px solid var(--green); outline-offset: -2px; }

/* ── Gruppen-Breite + -Position per 12-Spalten-Raster ──
   Eine zusammengehörige Inhaltsgruppe steht in <div class="ig"> (z. B. Eyebrow + Überschrift +
   Text + Zeitleiste). Standard = lesbare 720px, linksbündig (wie bisher). Sobald eine Breite
   gesetzt wird, legen Editor/site.js die Klassen igs-<start> (Versatz von links) + igw-<span>
   (Breite) auf die .ig — beide als Anteil der vollen Inhaltsbreite (12 Spalten). Gespeichert
   wird das als cs-/cw-Klassen in der .cbox des Textblocks (überlebt die Server-Bereinigung). */
.ig { max-width: 720px; margin: 0 auto 0 0; }
.ig.ig-custom { max-width: none; }
.ig .prose, .ig .cbox { max-width: none; }       /* Breite steuert die Gruppe, nicht der Innenblock */
.ig .section-title { max-width: none; }          /* Überschrift folgt der Gruppenbreite (eigene 640px-Sperre aufheben) */
.igw-3 { width: 25%; }      .igw-4 { width: 33.333%; }  .igw-5 { width: 41.667%; }
.igw-6 { width: 50%; }      .igw-7 { width: 58.333%; }  .igw-8 { width: 66.667%; }
.igw-9 { width: 75%; }      .igw-10 { width: 83.333%; } .igw-11 { width: 91.667%; }
.igw-12 { width: 100%; }
.igs-1 { margin-left: 0; }            .igs-2 { margin-left: 8.333%; }   .igs-3 { margin-left: 16.667%; }
.igs-4 { margin-left: 25%; }          .igs-5 { margin-left: 33.333%; }  .igs-6 { margin-left: 41.667%; }
.igs-7 { margin-left: 50%; }          .igs-8 { margin-left: 58.333%; }  .igs-9 { margin-left: 66.667%; }
.igs-10 { margin-left: 75%; }
@media (max-width: 720px) {            /* mobil: volle Breite, kein Versatz */
  .ig, .ig.ig-custom { width: auto; max-width: 100%; margin-left: 0; }
}

/* Anfasser zum Ziehen der Breite (nur im Bearbeiten-Modus; von inline.js am <body> erzeugt
   und schwebend positioniert — NICHT im editierbaren Inhalt, sonst landet er beim Speichern im Text). */
.cbox-handle {
  position: fixed; width: 16px; z-index: 240;
  cursor: ew-resize; display: flex; align-items: center; justify-content: center;
  transform: translateX(-50%); touch-action: none;
}
.cbox-handle::before {
  content: ""; width: 6px; height: 80px; max-height: 100%; border-radius: 4px;
  background: var(--green); box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,0.25);
}
.cbox-handle:hover::before { background: var(--green-dark); }
/* Auf Touch-Geräten die Zieh-Anfasser ausblenden – dort steuert man die Breite über das „Breite"-Menü */
@media (pointer: coarse) { .cbox-handle { display: none; } }
.cbox-width-badge {
  position: fixed; z-index: 241; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 5px; pointer-events: none; white-space: nowrap;
}
/* ── Baukasten-Blöcke: öffentlich neutral; Steuerung nur im Bearbeiten-Modus ── */
.blk-divider { border: 0; border-top: 1px solid var(--rule); margin: 28px 0; }
.blk-img-empty { display: none; }                 /* öffentlich unsichtbar */
body.inline-on .blk-img-empty { display: flex; align-items: center; justify-content: center; min-height: 120px;
  background: var(--parchment-2); border: 1px dashed var(--rule); border-radius: 6px; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.blk-edit { position: relative; outline: 1px dashed rgba(12,130,80,0.35); outline-offset: 6px; border-radius: 3px; }
.blk-edit:hover { outline-color: var(--green); }
/* Baustein-Etikett (nur im Bearbeiten-Modus): macht sichtbar, welcher Block-Typ das ist —
   so wird verständlich, warum manche Bausteine (Label/Überschrift) keine Formatierleiste haben. */
.blk-edit::before {
  position: absolute; top: -10px; left: 0; z-index: 244;
  font-family: var(--sans); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--green-dark); background: var(--green-light);
  border: 1px solid var(--green-mid); border-radius: 10px;
  padding: 1px 9px; pointer-events: none; white-space: nowrap;
  max-width: calc(100% - 92px); overflow: hidden; text-overflow: ellipsis; /* nie unter die ↑↓✕-Knöpfe rechts laufen */
}
.blk-edit[data-block-typ="eyebrow"]::before  { content: "Baustein: Label"; }
.blk-edit[data-block-typ="heading"]::before  { content: "Baustein: Überschrift"; }
.blk-edit[data-block-typ="text"]::before     { content: "Baustein: Text"; }
.blk-edit[data-block-typ="timeline"]::before { content: "Baustein: Zeitleiste"; }
.blk-edit[data-block-typ="button"]::before   { content: "Baustein: Link-Button"; }
.blk-edit[data-block-typ="image"]::before    { content: "Baustein: Bild"; }
.blk-edit[data-block-typ="divider"]::before  { content: "Baustein: Trenner"; }
/* Auf dem grünen CTA-Band: helles Etikett, damit es lesbar bleibt */
.cta-band .blk-edit::before { background: rgba(255,255,255,0.92); color: var(--green-dark); border-color: rgba(255,255,255,0.5); }
.blk-ctrls { position: absolute; top: -13px; right: 0; display: flex; gap: 3px; z-index: 245; }
.blk-ctrls button { width: 26px; height: 26px; border: 1px solid var(--rule); background: #fff; color: var(--ink-mid);
  border-radius: 5px; cursor: pointer; font-size: 14px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.blk-ctrls button:hover { border-color: var(--green); color: var(--green-dark); }
.blk-ctrls button.del:hover { border-color: #c0392b; color: #c0392b; }
.blk-inserter { display: flex; justify-content: center; padding: 5px 0; }
.blk-add { background: var(--green-light); color: var(--green-dark); border: 1px dashed var(--green-mid); border-radius: 20px;
  padding: 4px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.blk-add:hover { background: var(--green); color: #fff; border-color: var(--green); }
.blk-picker { position: absolute; z-index: 300; background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.2); padding: 6px; display: flex; flex-direction: column; min-width: 180px; }
.blk-picker button { text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 5px; font-size: 14px; color: var(--ink); cursor: pointer; font-family: var(--sans); }
.blk-picker button:hover { background: var(--green-light); color: var(--green-dark); }
/* Zeitleisten-Editierhilfen */
body.inline-on .timeline-item { position: relative; }
.tl-rowctrls { position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .15s; }
body.inline-on .timeline-item:hover .tl-rowctrls,
body.inline-on .timeline-item:focus-within .tl-rowctrls { opacity: 1; }
.tl-row-move, .tl-row-del { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tl-row-move { background: var(--green-mid); }
.tl-row-move:hover { background: var(--green); }
/* Löschen deutlich von den Verschiebe-Pfeilen absetzen – kein Vergreifen auf Touch/Tablet */
.tl-row-del { background: #c0392b; margin-left: 16px; position: relative; }
.tl-row-del::before { content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 18px; background: var(--rule); }
.tl-row-del:hover { background: #a93226; }
.tl-rowbar { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tl-row-add { margin-top: 10px; background: var(--green-light); color: var(--green-dark); border: 1px dashed var(--green-mid);
  border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.tl-row-add:hover { background: var(--green); color: #fff; }
.tl-rowbar .tl-row-add { margin-top: 0; }
/* „Rückgängig" (lokaler Sofort-Undo) und „Versionen" (gespeicherte Stände) der Zeitleiste */
.tl-row-undo, .tl-row-vers { background: none; color: var(--ink-mid); border: 1px solid var(--rule); border-radius: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 6px; }
.tl-row-undo:hover:not(:disabled), .tl-row-vers:hover { border-color: var(--green); color: var(--green-dark); }
.tl-row-undo:disabled { opacity: .4; cursor: default; }
.tl-row-undo svg, .tl-row-vers svg { display: block; }
body.inline-on .timeline [contenteditable]:focus { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 3px; }

.prose::after, .timeline::after, [data-inline]::after { content: ""; display: block; clear: both; }
.img-left   { float: left;  margin: 6px 24px 14px 0; }
.img-right  { float: right; margin: 6px 0 14px 24px; }
.img-center { display: block; float: none; margin: 18px auto; }
.img-full   { display: block; float: none; width: 100%; margin: 18px 0; }
.w-25 { width: 25%; } .w-33 { width: 33.333%; } .w-50 { width: 50%; }
.w-66 { width: 66.666%; } .w-75 { width: 75%; } .w-100 { width: 100%; }
.ta-left { text-align: left; } .ta-center { text-align: center; } .ta-right { text-align: right; } .ta-justify { text-align: justify; }
/* Bildreihe: 2–3 Bilder nebeneinander (Mehrfachauswahl beim Upload oder Drag & Drop) */
.img-row { display: flex; gap: 14px; margin: 18px 0; align-items: flex-start; }
.img-row img { flex: 1 1 0; min-width: 0; margin: 0; display: block; }
/* Einzelnes Bild in der Reihe breiter machen (Flex-Gewicht, vom Inline-Editor gesetzt) */
.img-row img.fx-2 { flex-grow: 2; }
.img-row img.fx-3 { flex-grow: 3; }
@media (max-width: 640px) {
  .img-left, .img-right { float: none; display: block; margin: 16px auto; }
  .w-25, .w-33, .w-50, .w-66, .w-75 { width: 100%; }
  .img-row { flex-wrap: wrap; }
  .img-row img { flex: 1 1 calc(50% - 7px); }   /* mobil maximal 2 pro Zeile */
  .img-row img.fx-2, .img-row img.fx-3 { flex-grow: 1; }   /* mobil gleich breit, sonst sprengt fx die schmale Zeile */
}
.prose ol { margin: 0 0 18px; padding-left: 26px; }
.prose ol li { font-size: 16px; color: var(--ink-mid); padding: 4px 0 4px 4px; line-height: 1.7; }
.prose blockquote {
  border-left: 3px solid var(--green); margin: 18px 0; padding: 6px 0 6px 18px;
  color: var(--ink-soft); font-style: italic;
}

/* ── Lightbox: Großansicht für Inhaltsbilder mit .img-zoom ── */
img.img-zoom { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(12, 16, 14, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4vh 4vw; cursor: zoom-out;
  animation: lbFade .18s ease;
}
@keyframes lbFade { from { opacity: 0; } }
.lightbox img {
  max-width: 100%; max-height: 86vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); cursor: default;
}
.lightbox-caption {
  color: rgba(255,255,255,0.85); font-family: var(--sans);
  font-size: 14px; margin-top: 14px; text-align: center;
}
.lightbox-close {
  position: absolute; top: 14px; right: 20px;
  background: none; border: 0; color: #fff; font-size: 42px; line-height: 1;
  cursor: pointer; opacity: .8; font-family: var(--sans);
}
.lightbox-close:hover { opacity: 1; }
/* Blättern zwischen Bildern derselben Galerie / desselben Inhaltsblocks */
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 0; color: #fff;
  width: 46px; height: 68px; font-size: 34px; line-height: 1; border-radius: 8px;
  cursor: pointer; font-family: var(--sans);
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.26); }
.lightbox-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-family: var(--sans); font-size: 13px; letter-spacing: .06em;
}
.lightbox.lb-multi img { cursor: pointer; }   /* Klick aufs Bild = nächstes Bild */
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 38px; height: 56px; font-size: 28px; } }

/* ── Termin-Tabelle (nach Monaten gruppiert) ── */
.termin-block { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 26px; background: var(--white); }
.termin-monat { background: var(--green-dark); color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; padding: 12px 24px; }
.termin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.termin-table thead th {
  background: var(--green); color: #fff; text-align: left; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 11px 24px;
}
.termin-table td { padding: 13px 24px; border-bottom: 1px solid var(--rule); color: var(--ink-mid); vertical-align: top; }
.termin-table tbody tr:last-child td { border-bottom: none; }
.termin-table tbody tr:hover td { background: var(--parchment); }
.termin-table .t-datum  { white-space: nowrap; color: var(--ink); font-weight: 600; width: 140px; }
.termin-table .t-beginn { white-space: nowrap; width: 150px; }
.termin-table .t-titel.hl { font-weight: 700; color: var(--ink); }
.termin-table .t-beschreibung { font-size: 13px; color: var(--ink-soft); font-weight: 400; margin-top: 3px; line-height: 1.55; }
.termin-table .t-ort { color: var(--ink-soft); }
@media (max-width: 640px) {
  .termin-table, .termin-table tbody, .termin-table tr, .termin-table td { display: block; width: auto; }
  .termin-table thead { display: none; }
  .termin-table tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .termin-table tr:last-child { border-bottom: none; }
  .termin-table td { border: none; padding: 2px 24px; }
  .termin-table .t-datum { font-size: 13px; }
  .termin-table .t-titel { font-size: 1.05rem; padding-top: 4px; }
}

/* ── Trainings-Monatskalender ── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cal-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav a { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--rule); border-radius: 5px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink); transition: all .2s; }
.cal-nav a:hover { border-color: var(--green); color: var(--green); }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); min-width: 720px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--white); }
.cal-weekday { background: var(--parchment-2); padding: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); text-align: center; border-bottom: 1px solid var(--rule); }
.cal-cell { min-height: 116px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 7px; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.empty { background: var(--parchment); }
.cal-daynum { font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-bottom: 5px; }
.cal-cell.today { background: var(--green-light); box-shadow: inset 0 0 0 2px var(--green); }
.cal-cell.today .cal-daynum { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 50%; background: var(--green); color: #fff; }
.cal-entry { display: block; background: var(--green-light); border-left: 3px solid var(--green); border-radius: 3px; padding: 4px 7px; margin-bottom: 4px; font-size: 11px; line-height: 1.35; color: var(--ink); }
.cal-entry .ce-time { font-weight: 700; color: var(--green-dark); display: block; }
.cal-entry .ce-title { font-weight: 600; }
.cal-entry .ce-aufsicht { color: var(--ink-soft); display: block; }
/* ── Trainings-Kategorie-Farben (Palette siehe training_farben() in functions.php) ──
   Fallback bleibt das Standard-Grün; color-mix erzeugt die helle Hintergrund-Tönung. */
.tk-gruen { --tk: #0c8250; } .tk-tanne { --tk: #2d5a3d; } .tk-petrol { --tk: #1d7a8c; } .tk-blau { --tk: #2f6fb0; } .tk-violett { --tk: #6d5a8e; }
.tk-weinrot { --tk: #8a3344; } .tk-rot { --tk: #c0392b; } .tk-orange { --tk: #c87f2f; } .tk-gold { --tk: #a8862d; } .tk-braun { --tk: #7a5c3e; }
.tk-tuerkis { --tk: #0f9aa0; } .tk-limette { --tk: #6f9f35; } .tk-magenta { --tk: #b03a78; } .tk-lila { --tk: #7b3fa0; } .tk-anthrazit { --tk: #3f4750; }
.cal-entry[class*="tk-"] { border-left-color: var(--tk); background: var(--green-light); background: color-mix(in srgb, var(--tk) 11%, #fff); }
.cal-entry[class*="tk-"] .ce-time { color: var(--tk); }
.cal-pop[class*="tk-"] { border-left-color: var(--tk); }
.training-item[class*="tk-"] { border-left: 3px solid var(--tk); }

/* Hover-Popup mit Eintrags-Details (Inhalt aus .ce-pop, ans <body> gehängt und positioniert von site.js) */
.cal-entry .ce-pop { display: none; }
.cal-pop { position: absolute; z-index: 300; min-width: 200px; max-width: 280px; background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--green); border-radius: 6px; box-shadow: 0 12px 32px rgba(26,26,24,0.18); padding: 12px 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink-mid); pointer-events: none; }
.cal-pop .cp-title { display: block; font-family: var(--serif); font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.cal-pop .cp-row { display: block; }
.cal-pop .cp-row strong { color: var(--ink); font-weight: 600; }
.cal-legend { margin-top: 18px; }
.training-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.training-item { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 20px; }
.training-item.vergangen { opacity: .55; }
.training-item .ti-day { flex-shrink: 0; width: 92px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--green); }
.training-item .ti-body { flex: 1; }
.training-item h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.training-item .ti-meta { font-size: 13px; color: var(--ink-soft); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.training-item .ti-aufsicht { font-size: 13px; color: var(--ink-mid); margin-top: 4px; }
.training-item .ti-aufsicht strong { color: var(--ink); }

/* ── Formulare: Erfolg/Fehler/Datenschutz ── */
/* Nachrichtenverlauf (Chat) – Backend-Anfragen + öffentliche antwort.php */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 11px; }
.chat-msg.in  { align-self: flex-start; background: var(--parchment-2); border-bottom-left-radius: 3px; }
.chat-msg.out { align-self: flex-end; background: var(--green-light); border-bottom-right-radius: 3px; }
.chat-head { font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-bottom: 4px; }
.chat-body { font-size: 14.5px; line-height: 1.6; color: var(--ink); }

.form-success { background: var(--green-light); border-left: 4px solid var(--green); padding: 16px 20px; border-radius: 0 6px 6px 0; color: #0a4f31; margin-bottom: 22px; }
.form-error   { background: #fdecea; border-left: 4px solid #c0392b; padding: 14px 18px; border-radius: 0 6px 6px 0; color: #8a221b; margin-bottom: 18px; font-size: 14px; }
.form-check   { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-mid); margin: 6px 0 18px; line-height: 1.5; }
.form-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--green); font-weight: 600; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ── Leerer-Zustand-Hinweis (öffentlich) ── */
.empty-hint { text-align: center; color: var(--ink-soft); padding: 40px 24px; background: var(--white); border: 1px dashed var(--rule); border-radius: 8px; }
.empty-hint a { color: var(--green); font-weight: 600; }

/* ── News-Übersicht: Suche/Filter + Pagination ── */
.news-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.news-filter input[type=search] { flex: 1 1 240px; min-width: 0; font-family: var(--sans); font-size: 14.5px; color: var(--ink); padding: 11px 14px; border: 1.5px solid var(--rule); border-radius: 6px; background: var(--white); }
.news-filter select { flex: 0 1 auto; font-family: var(--sans); font-size: 14.5px; color: var(--ink); padding: 11px 14px; border: 1.5px solid var(--rule); border-radius: 6px; background: var(--white); }
.news-filter input:focus, .news-filter select:focus { outline: none; border-color: var(--green); }
.news-count { font-size: 14px; color: var(--ink-soft); margin: -12px 0 22px; }
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s; }
a.page-btn:hover { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.news-page-info { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

/* ── News-Einzelartikel ── */
.article-media { width: 100%; height: 360px; border-radius: 8px; object-fit: cover; margin-bottom: 30px; }
.article-body { max-width: 760px; }
.article-body p { font-size: 17px; color: var(--ink-mid); margin-bottom: 10px; line-height: 1.7; }
.article-body h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 32px 0 12px; }
.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 26px 0; }
.article-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
/* Teaser/Einleitung über dem Artikel (HTML aus dem Backend-Editor) */
.article-lead { max-width: 760px; font-size: 17px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 18px; }
.article-lead p { margin: 0 0 10px; }
.article-lead > :last-child { margin-bottom: 0; }
/* Bildergalerie unter dem Artikel (Großansicht über .img-zoom/Lightbox) */
.galerie-titel { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 36px 0 14px; }
.galerie-text { max-width: 760px; font-size: 15px; color: var(--ink-mid); line-height: 1.7; margin: -6px 0 16px; }
.news-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; max-width: 760px; }
.news-galerie img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--rule); }
@media (max-width: 560px) { .news-galerie { grid-template-columns: repeat(2, 1fr); } .news-galerie img { height: 120px; } }

/* ════════════════════════════════════════════════════════════
   Dezente Hero-/Header-Hintergründe mit Parallax + weichere Animationen
   ════════════════════════════════════════════════════════════ */

/* Dekoratives Hintergrundbild (hinter dem dunklen Overlay) */
.hero::before, .page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: url(../Images/Backgrounds/Background1.jpg);
  background-size: cover; background-position: center;
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform; z-index: 0; pointer-events: none;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.6%, -1.4%); }
}
body[data-page="info"]       .page-header::before { background-image: url(../Images/Backgrounds/sportschie.jpg); }
body[data-page="vermietung"] .page-header::before { background-image: url(../Images/Backgrounds/backVermiet.jpg); }
body[data-page="kontakt"]    .page-header::before { background-image: url(../Images/Backgrounds/backImpData.jpg); }
body[data-page=""]           .page-header::before { background-image: url(../Images/Backgrounds/backImpData.jpg); }

/* Ebenen-Reihenfolge: Bild < Foto-Upload < Overlay < Inhalt */
.hero-bg, .page-header-bg { z-index: 1; }
.hero-overlay, .page-header-overlay { z-index: 2; }
.hero-content, .page-header-inner { z-index: 3; }

/* Sanftes Einblenden des Inhalts beim Seitenwechsel (nur öffentliche Seiten) – immer aktiv */
#main { animation: pageFade .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes pageFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Weichere Übergänge & Hover-Effekte */
.btn { transition: background .3s cubic-bezier(.4,0,.2,1), color .3s cubic-bezier(.4,0,.2,1), border-color .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease; }
.btn:hover { transform: translateY(-1px); }
.nav-item > a, .nav-item > .nav-parent { transition: color .3s ease; }
.nav-item > a::after, .nav-item > .nav-parent::after,
.nav-item > a .caret, .nav-item > .nav-parent .caret { transition: transform .38s cubic-bezier(.4,0,.2,1); }
.info-card, .media-card { transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease; }
.info-card:hover, .media-card:hover { transform: translateY(-6px); }
.quick-card { transition: background .35s ease; }
.linkrow { transition: border-color .35s ease, transform .35s cubic-bezier(.4,0,.2,1); }
.dl-item { transition: border-color .3s ease, box-shadow .3s ease; }
.section-link { transition: gap .3s cubic-bezier(.4,0,.2,1); }
.utility-link, .footer-col a, .footer-bottom a, .breadcrumb a, .nav-mini { transition: color .3s ease, opacity .3s ease, transform .3s ease; }

/* ════════ Startseite: Hero / Quickbar / Events (zuvor inline in index.php) ════════ */
.hero { position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16,16,14,0.80) 0%, rgba(16,16,14,0.52) 45%, rgba(12,61,38,0.26) 100%); }
.hero-content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 76px 40px; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 22px; }
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--green-mid); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 500; line-height: 1.08; color: #fff; max-width: 720px; letter-spacing: -0.01em; }
.hero h1 em { color: var(--green-mid); font-style: italic; }
.hero p { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,0.7); max-width: 540px; line-height: 1.7; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.quickbar { background: var(--white); border-bottom: 1px solid var(--rule); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--maxw); margin: 0 auto; }
.quick-card { padding: 20px 36px; display: flex; gap: 18px; align-items: flex-start; border-right: 1px solid var(--rule); transition: background .35s ease; }
.quick-card:last-child { border-right: none; }
.quick-card:hover { background: var(--parchment); }
.quick-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-icon svg { width: 22px; height: 22px; stroke: var(--green); }
.quick-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.quick-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.quick-meta { font-size: 13px; color: var(--ink-mid); margin-top: 3px; }

.events-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.events-feature { background: var(--ink); border-radius: 8px; overflow: hidden; color: #fff; }
.events-feature-img { width: 100%; height: 210px; object-fit: cover; }
.events-feature-body { padding: 28px 30px 32px; }
.events-feature .ef-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 12px; }
.events-feature h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.15; margin-bottom: 10px; }
.events-feature p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px; }
@media (max-width: 940px) { .quick-grid { grid-template-columns: 1fr; } .quick-card { border-right: none; border-bottom: 1px solid var(--rule); } .events-layout { grid-template-columns: 1fr; gap: 40px; } }

/* ════════════════════════════════════════════════════════════
   Scroll-Reveal · Karten-Linie · Button-Hover · Hero-Scroll-Button · Navbar-Scroll
   ════════════════════════════════════════════════════════════ */

/* Lesbarkeit des hellen Textes über den Fotos */
.hero-content, .page-header-inner { text-shadow: 0 1px 14px rgba(0,0,0,0.4); }

/* Scroll-Reveal — nur aktiv, wenn JS läuft (body.js-reveal); ohne JS bleibt alles sichtbar */
body.js-reveal .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
body.js-reveal .reveal-left  { transform: translateX(-30px); }
body.js-reveal .reveal-right { transform: translateX(30px); }
body.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }
.reveal-delay-6 { transition-delay: .6s; }

/* Karten: grüne Unterstrich-Linie beim Hover */
.info-card, .media-card { position: relative; }
.info-card::after, .media-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.info-card:hover::after, .media-card:hover::after { transform: scaleX(1); }

/* Button-Hover: etwas mehr Hub + Schatten */
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,26,24,0.16); }
.btn-light:hover, .btn-outline-light:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.22); }

/* Navbar: weiche Erhöhung beim Scrollen */
.nav { transition: box-shadow .3s ease, background .3s ease; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.20); }

/* Hero-Scroll-Button (springt sanft zum nächsten Abschnitt) */
.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 4; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4);
  color: #fff; cursor: pointer; animation: heroBounce 2.2s ease-in-out infinite;
  transition: background .3s ease, border-color .3s ease;
}
.hero-scroll:hover { background: rgba(255,255,255,0.22); border-color: #fff; }
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes heroBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* Back-to-Top-Button (global, erscheint beim Scrollen) */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--green); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(26,26,24,0.22);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.4,0,.2,1), visibility .3s, background .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }

/* LSB-Partnerlogo im Masthead */
.lsb-logo { display: inline-flex; align-items: center; opacity: .92; transition: opacity .25s ease; }
.lsb-logo:hover { opacity: 1; }
.lsb-logo img { height: 64px; width: auto; display: block; }
@media (max-width: 1040px) { .lsb-logo img { height: 54px; } }

/* Social-Icons in der Menüleiste (Facebook/Instagram) */
.nav-links { margin-left: auto; }
.nav-social { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: rgba(255,255,255,0.72); transition: color .25s ease, background .25s ease;
}
.nav-social a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav-social svg { width: 18px; height: 18px; }
@media (max-width: 940px) { .nav-social { display: none; } }

/* Social-Icons im mobilen Menü */
.m-social { display: flex; gap: 14px; margin-top: 24px; }
.m-social a {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
  transition: background .25s ease, color .25s ease;
}
.m-social a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.m-social svg { width: 22px; height: 22px; }

/* Unsichtbare Hover-Brücke zwischen Menüpunkt und Submenü (verhindert Abreißen) */
.nav-sub::after { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
