/* Werde Licht – Einsätze. Farben und Schriften kommen aus den V4-Variablen des Kits. */

/* ---------- [wl_karte] ---------- */

.wl-karte {
  display: grid;
  grid-template-columns: minmax(0, 22rem) 1fr;
  gap: 24px;
  color: var(--brand-ink, #11497f);
  font-family: var(--font-body, Roboto), sans-serif;
}

.wl-karte-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 38rem; /* = Kartenhöhe; am Handy begrenzt karte.js auf 6 Einträge */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.wl-ort {
  background: var(--white, #fff);
  border: 1px solid var(--line, #dee5ed);
  border-radius: var(--radius-md, 16px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wl-ort[open] {
  border-color: var(--brand-blue, #1883b9);
  box-shadow: 0 18px 40px -30px rgba(17, 73, 127, 0.55);
}

.wl-ort summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.wl-ort summary::-webkit-details-marker {
  display: none;
}

.wl-ort summary:focus-visible {
  outline: 2px solid var(--brand-blue, #1883b9);
  outline-offset: 2px;
  border-radius: var(--radius-md, 16px);
}

.wl-ort-name {
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-lg, 18px);
  font-weight: 600;
}

.wl-ort-next {
  font-size: var(--text-sm, 14px);
  font-weight: 500;
  color: var(--brand-blue, #1883b9);
  white-space: nowrap;
}

.wl-ort-next.is-leer {
  color: var(--ink-50, rgba(17, 73, 127, 0.5));
  font-weight: 400;
}

.wl-ort-body {
  padding: 0 18px 18px;
  font-size: var(--text-sm, 14px);
  line-height: 1.6;
}

.wl-ort-body img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 12px;
}

.wl-ort-body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
}

.wl-ort-body dt {
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
  font-weight: 400;
}

.wl-ort-body dd {
  margin: 0;
}

.wl-ort-body p {
  margin: 12px 0 0;
}

.wl-ort-leer {
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

/* Zwischenüberschriften „Nächster Einsatz“ / „Ansprechpartner“ – wie die Labels im Spendenblock. */
.wl-ort-body .wl-ort-titel {
  margin: 0 0 10px;
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-meta-sm, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

/* Ansprechpartner abgesetzt: eigene Fläche mit gelber Kante. */
.wl-ort-kontakt {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--brand-yellow, #f6f400);
  border-radius: var(--radius-sm, 8px);
  background: var(--brand-blue-pale, #e8f3f8);
}

.wl-ort-body .wl-ort-kontakt p {
  margin: 0;
}

.wl-ort-body .wl-ort-kontakt .wl-ort-titel {
  margin-bottom: 6px;
}

/* (0,2,1) schlägt die Kit-Linkfarbe. */
.wl-ort-body .wl-ort-kontakt a {
  color: var(--brand-ink, #11497f);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(17, 73, 127, 0.3);
  text-underline-offset: 3px;
}

.wl-ort-body .wl-ort-kontakt a:hover {
  text-decoration-color: currentColor;
}

/* Helle Karte (OpenFreeMap „Positron“): Weiß, Hellgrau, Schwarz. Pins in Blau mit gelbem Rand. */
.wl-karte-map {
  box-sizing: border-box; /* Rahmen innen, damit Karte und Liste gleich hoch sind */
  position: relative;
  min-height: 38rem;
  border-radius: var(--radius-lg, 24px);
  overflow: hidden;
  background: rgb(242, 243, 240);
  border: 1px solid var(--line, #dee5ed);
}

.wl-karte-hinweis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  font-size: var(--text-sm, 14px);
  color: #555;
}

.wl-karte-hinweis p {
  max-width: 26rem;
  margin: 0;
}

/* Hello Elementor stylt Buttons pink – deshalb die höhere Spezifität. */
.wl-karte .wl-karte-hinweis button {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-base, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.wl-karte .wl-karte-hinweis button:hover,
.wl-karte .wl-karte-hinweis button:focus-visible {
  background: #333;
  color: #fff;
}

/* Karten-Ebenen bleiben in der Karte, statt über den fixierten Header zu ragen. */
.wl-karte-map.maplibregl-map {
  isolation: isolate;
  font-family: inherit;
}

/* (0,2,1)+ schlägt die Kit-Linkfarbe `.elementor-kit-6 a`. */
.wl-karte .maplibregl-ctrl-attrib a {
  color: #333;
}

/* Marker: 20px Klickfläche als <button>, sichtbarer Punkt als <span>. MapLibre positioniert per
   transform, deshalb wird nur das innere Element skaliert. Hello Elementor stylt Buttons pink,
   daher der Reset mit höherer Spezifität. */
.wl-karte button.wl-pin,
.wl-karte button.wl-pin:hover,
.wl-karte button.wl-pin:focus {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.wl-karte button.wl-pin.is-active {
  z-index: 2;
}

.wl-pin span {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 3px solid var(--brand-yellow, #f6f400);
  border-radius: 50%;
  background: var(--brand-blue, #1883b9);
  box-shadow: 0 2px 6px rgba(7, 30, 54, 0.35);
  transition: width 0.2s, height 0.2s;
}

/* Orte mit kommendem Termin: gleicher Pin, etwas größer. */
.wl-pin.has-termin span {
  width: 20px;
  height: 20px;
}

.wl-pin.is-active span,
.wl-pin:hover span {
  width: 24px;
  height: 24px;
}

.wl-karte button.wl-pin:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .wl-karte {
    grid-template-columns: 1fr;
  }

  .wl-karte-map {
    order: -1;
    min-height: 60vh;
  }

  .wl-karte-liste {
    padding-right: 0;
  }
}

/* ---------- [wl_termine] ---------- */

.wl-termine {
  margin-top: 40px;
  color: var(--brand-ink, #11497f);
}

.wl-termine-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line, #dee5ed);
}

.wl-termine-liste li {
  border-bottom: 1px solid var(--line, #dee5ed);
}

/* (0,2,1) schlägt die Kit-Linkfarbe `.elementor-kit-6 a`. */
.wl-termine a.wl-termin {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 20px 0;
  color: var(--brand-ink, #11497f);
  text-decoration: none;
}

.wl-termin-datum {
  font-weight: 500;
  color: var(--brand-blue, #1883b9);
}

.wl-termin-ort {
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-xl, 20px);
  font-weight: 600;
  transition: color 0.2s;
}

.wl-termine a.wl-termin:hover .wl-termin-ort,
.wl-termine a.wl-termin:focus-visible .wl-termin-ort {
  color: var(--brand-blue, #1883b9);
}

.wl-termin-info {
  font-size: var(--text-sm, 14px);
  color: var(--ink-70, rgba(17, 73, 127, 0.7));
}

.wl-termine-liste.is-vorbei a.wl-termin {
  opacity: 0.6;
}

.wl-termine-zuletzt {
  margin: 40px 0 12px;
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-meta-sm, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

/* ---------- [wl_termine_alle]: Filter, „Mehr anzeigen“, vergangene ---------- */

.wl-termine-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: var(--text-sm, 14px);
  color: var(--ink-70, rgba(17, 73, 127, 0.7));
}

/* Hello Elementor setzt select auf volle Breite und eigene Ränder. */
.wl-termine .wl-termine-filter select {
  width: auto;
  min-width: 14rem;
  padding: 10px 14px;
  border: 1px solid var(--field-border, #d4dee8);
  border-radius: var(--radius-sm, 8px);
  background-color: var(--white, #fff);
  color: var(--brand-ink, #11497f);
  font: inherit;
  font-size: var(--text-base, 16px);
  cursor: pointer;
}

.wl-termine .wl-termine-filter select:focus-visible {
  outline: 2px solid var(--brand-blue, #1883b9);
  outline-offset: 2px;
}

.wl-termine button.wl-termine-mehr,
.wl-termine button.wl-termine-mehr:focus {
  margin-top: 24px;
  padding: 10px 22px;
  border: 1px solid var(--line, #dee5ed);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--brand-ink, #11497f);
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-base, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.wl-termine button.wl-termine-mehr:hover,
.wl-termine button.wl-termine-mehr:focus-visible {
  border-color: var(--brand-blue, #1883b9);
  background: var(--white, #fff);
  color: var(--brand-blue, #1883b9);
}

.wl-termine button.wl-termine-mehr[hidden] {
  display: none;
}

.wl-termine-archiv {
  margin-top: 40px;
}

.wl-termine-archiv summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-meta-sm, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

.wl-termine-archiv summary::-webkit-details-marker {
  display: none;
}

.wl-termine-archiv summary::before {
  content: "▸";
  transition: transform 0.2s;
}

.wl-termine-archiv[open] summary::before {
  transform: rotate(90deg);
}

.wl-termine-archiv summary:hover {
  color: var(--brand-ink, #11497f);
}

.wl-termine-archiv summary:focus:not(:focus-visible) {
  outline: none;
}

/* Vergangene: eigener Scrollbereich, damit die Seite nicht endlos wird. */
.wl-termine-archiv .wl-termine-liste {
  margin-top: 12px;
  max-height: 26rem;
  overflow-y: auto;
}

.wl-termine-leer {
  margin: 0;
  padding-top: 40px;
  border-top: 1px solid var(--line, #dee5ed);
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

@media (max-width: 767px) {
  .wl-termine a.wl-termin {
    grid-template-columns: 1fr;
  }
}

/* ---------- [wl_medien] ---------- */

.wl-predigten {
  color: var(--brand-ink, #11497f);
  font-family: var(--font-body, Roboto), sans-serif;
  scroll-margin-top: 112px; /* fixierter Header + Luft, für #medien nach dem Filtern */
}

.wl-sprachen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* (0,2,1) schlägt die Kit-Linkfarbe `.elementor-kit-6 a`. Wie die Sprach-Tabs in Next.js. */
.wl-predigten .wl-sprachen a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand-blue-pale, #e8f3f8);
  color: var(--brand-ink, #11497f);
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-base, 16px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.wl-predigten .wl-sprachen a:hover {
  background: var(--brand-yellow, #f6f400);
  color: var(--brand-ink, #11497f);
}

.wl-predigten .wl-sprachen a[aria-current] {
  background: var(--brand-ink, #11497f);
  color: var(--white, #fff);
}

.wl-sprache-name {
  opacity: 0.6;
}

.wl-sprache-anzahl {
  opacity: 0.5;
}

.wl-predigten a:focus-visible {
  outline: 2px solid var(--brand-blue, #1883b9);
  outline-offset: 2px;
}

/* Suche, Thema, Kanal in einer Zeile; am Handy untereinander. */
.wl-medien-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 32px 0 0;
}

.wl-medien-filter p {
  display: flex;
  flex: 1 1 12rem;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.wl-medien-filter p.wl-medien-suche {
  flex: 2 1 18rem;
}

.wl-medien-filter label {
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-meta-sm, 13px);
  font-weight: 600;
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

/* Hello Elementor setzt eigene Ränder für Felder und färbt Buttons pink – deshalb die höhere Spezifität. */
.wl-predigten .wl-medien-filter input,
.wl-predigten .wl-medien-filter select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--field-border, #d4dee8);
  border-radius: var(--radius-sm, 8px);
  background-color: var(--white, #fff);
  color: var(--brand-ink, #11497f);
  font: inherit;
  font-size: var(--text-base, 16px);
}

.wl-predigten .wl-medien-filter select {
  cursor: pointer;
}

.wl-predigten .wl-medien-filter input:focus-visible,
.wl-predigten .wl-medien-filter select:focus-visible {
  outline: 2px solid var(--brand-blue, #1883b9);
  outline-offset: 2px;
}

.wl-predigten .wl-medien-filter button,
.wl-predigten .wl-medien-filter button:focus {
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-ink, #11497f);
  color: var(--white, #fff);
  font: 600 var(--text-base, 16px) var(--font-heading, "Familjen Grotesk"), sans-serif;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wl-predigten .wl-medien-filter button:hover,
.wl-predigten .wl-medien-filter button:focus-visible {
  background: var(--brand-blue, #1883b9);
  color: var(--white, #fff);
}

.wl-predigten a.wl-medien-zuruecksetzen {
  align-self: center;
  font-size: var(--text-sm, 14px);
  color: var(--ink-70, rgba(17, 73, 127, 0.7));
}

.wl-predigten-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 48px 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

/* .wl-predigten davor: Elementors „.e-paragraph-base a { all: unset }“ wäre sonst stärker
   (Shortcode steht im Absatz) – Link würde inline/static, Play-Buttons landen alle mittig. */
.wl-predigten .wl-predigt-video {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md, 16px);
  background: var(--ground-night, #071e36);
}

.wl-predigt-video img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* hqdefault ist 4:3 mit schwarzen Balken */
  transition: transform 0.4s;
}

.wl-predigt-video:hover img {
  transform: scale(1.04);
}

.wl-predigt-play {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  margin: auto;
  border-radius: 50%;
  background: var(--brand-yellow, #f6f400);
  box-shadow: 0 10px 30px -10px rgba(7, 30, 54, 0.6);
  transition: transform 0.2s;
}

.wl-predigt-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  translate: -50% -50%;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--brand-ink, #11497f);
}

.wl-predigt-video:hover .wl-predigt-play,
.wl-predigt-video:focus-visible .wl-predigt-play {
  transform: scale(1.1);
}

.wl-predigten .wl-predigt-thema {
  margin: 16px 0 0;
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-meta-sm, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue, #1883b9);
}

.wl-predigten .wl-predigt-meta {
  margin: 6px 0 0;
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-meta-sm, 13px);
  font-weight: 600;
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

.wl-predigten .wl-predigt-titel {
  margin: 6px 0 0;
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-lg, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-ink, #11497f);
}

/* Ohne Thema steht der Titel direkt unter dem Bild. */
.wl-predigten .wl-predigt-video + .wl-predigt-titel {
  margin-top: 16px;
}

.wl-predigten-leer {
  margin: 40px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line, #dee5ed);
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

/* [wl_medien anzahl="4"]: eine Reihe, ohne Abstand nach oben */
.wl-predigten-neu .wl-predigten-liste {
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  margin-top: 0;
}

.wl-predigten .wl-predigten-hinweis {
  margin: 56px 0 0;
  font-size: var(--text-sm, 14px);
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

/* ---------- [wl_schriften] – schlicht, ohne Animationen ---------- */

.wl-schriften {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--brand-ink, #11497f);
  font-family: var(--font-body, Roboto), sans-serif;
}

.wl-schriften .wl-schrift {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.wl-schriften .wl-schrift-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #d9d9d9;
  border: 1px solid var(--line, #dee5ed);
  border-radius: var(--radius-md, 16px);
}

.wl-schriften .wl-schrift-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: none;
}

.wl-schriften .wl-schrift-cover-lesen,
.wl-schriften .wl-schrift-cover-lesen:hover,
.wl-schriften .wl-schrift-cover-lesen:focus-visible {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  color: var(--white, #fff);
  text-decoration: none;
  cursor: pointer;
}

.wl-schriften .wl-schrift-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 30, 54, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wl-schriften .wl-schrift-cover:hover .wl-schrift-overlay,
.wl-schriften .wl-schrift-cover-lesen:focus-visible .wl-schrift-overlay {
  opacity: 1;
}

.wl-schriften .wl-schrift-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-yellow, #f6f400);
  color: var(--brand-ink, #11497f);
  font-family: var(--font-accent, Manrope), var(--font-body, Roboto), sans-serif;
  font-size: var(--text-sm, 14px);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(7, 30, 54, 0.35);
  transform: translateY(4px);
  transition: transform 0.2s ease;
}

.wl-schriften .wl-schrift-cover:hover .wl-schrift-overlay-badge,
.wl-schriften .wl-schrift-cover-lesen:focus-visible .wl-schrift-overlay-badge {
  transform: translateY(0);
}

.wl-schriften .wl-schrift-badge-corner {
  display: none;
}

.wl-schriften .wl-schrift-art {
  margin: 16px 0 0;
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
  font-family: var(--font-meta, Archivo), sans-serif;
  font-size: var(--text-xs, 12px);
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.wl-schriften .wl-schrift-titel {
  margin: 4px 0 0;
  color: var(--brand-ink, #11497f);
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-lg, 18px);
  font-weight: 600;
  line-height: 1.3;
}

.wl-schriften .wl-schrift-knoepfe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 16px;
}

.wl-schriften .wl-schrift-knopf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body, Roboto), sans-serif;
  font-size: var(--text-sm, 14px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.wl-schriften .wl-schrift-pdf,
.wl-schriften .wl-schrift-pdf:hover,
.wl-schriften .wl-schrift-pdf:focus-visible {
  color: var(--white, #fff);
}

.wl-schriften .wl-schrift-pdf {
  background: var(--brand-blue, #1883b9);
}

.wl-schriften .wl-schrift-bestellen {
  background: var(--brand-yellow, #f6f400);
  color: var(--brand-ink, #11497f);
}

.wl-schriften .wl-schrift-pdf:hover,
.wl-schriften .wl-schrift-pdf:focus-visible,
.wl-schriften .wl-schrift-bestellen:hover,
.wl-schriften .wl-schrift-bestellen:focus-visible {
  background: var(--brand-ink, #11497f);
  color: var(--white, #fff);
}

.wl-schriften .wl-schrift-lesen {
  padding: 10px;
  background: var(--white, #fff);
  border-color: var(--line, #dee5ed);
  color: var(--brand-ink, #11497f);
}

.wl-schriften .wl-schrift-lesen:hover,
.wl-schriften .wl-schrift-lesen:focus-visible {
  background: var(--brand-blue-pale, #e8f3f8);
  border-color: var(--brand-blue, #1883b9);
  color: var(--brand-ink, #11497f);
}

.wl-schriften .wl-schrift-icon {
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--wl-icon) center / contain no-repeat;
  mask: var(--wl-icon) center / contain no-repeat;
}

/* Lucide: download, shopping-bag, eye */
.wl-schriften .wl-schrift-icon-download {
  --wl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}

.wl-schriften .wl-schrift-icon-bag {
  --wl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3Cpath d='M3.103 6.034h17.794'/%3E%3Cpath d='M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z'/%3E%3C/svg%3E");
}

.wl-schriften .wl-schrift-icon-eye {
  --wl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Lesen: Popup mit Flipbook (assets/lesen.js), 80 % des Bildschirms.
   Selektoren mit .wl-lesen davor, sonst gewinnen .elementor-kit-6 h2/button. */
.wl-lesen {
  width: 80vw;
  height: 80vh;
  height: 80dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md, 16px);
  background: var(--brand-blue-pale, #e8f3f8);
  color: var(--brand-ink, #11497f);
  font-family: var(--font-body, Roboto), sans-serif;
}

.wl-lesen[open] {
  display: flex;
  flex-direction: column;
}

.wl-lesen::backdrop {
  background: rgba(6, 26, 48, 0.75);
}

.wl-lesen .wl-lesen-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 24px;
}

.wl-lesen .wl-lesen-titel {
  margin: 0;
  color: var(--brand-ink, #11497f);
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: var(--text-lg, 18px);
  font-weight: 600;
  line-height: 1.3;
}

.wl-lesen .wl-lesen-zu,
.wl-lesen .wl-lesen-zu:hover,
.wl-lesen .wl-lesen-zu:focus-visible {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line, #dee5ed);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--brand-ink, #11497f);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wl-lesen .wl-lesen-zu:hover,
.wl-lesen .wl-lesen-zu:focus-visible {
  border-color: var(--brand-blue, #1883b9);
}

.wl-lesen .wl-lesen-buch {
  flex: 1;
  min-height: 0;
  padding: 0 16px 16px;
}

/*
 * zinejs packt das Buch in Wrapper (Pfeile > Steuerleiste > Buch, ggf. Seitenleiste) und zentriert
 * es vertikal. Hier füllt jede Schicht die Fläche, das Buch nimmt den Rest neben der Leiste.
 * Die Seiten passt zinejs selbst ein (fit: contain), sein aspect-ratio greift bei fester Größe nicht.
 */
.wl-lesen .wl-lesen-buch,
.wl-lesen .zine-arrows-wrap,
.wl-lesen .zine-panel-wrap {
  display: flex;
  align-items: stretch;
}

.wl-lesen .wl-lesen-buch {
  flex-direction: column;
}

.wl-lesen .wl-lesen-buch > *,
.wl-lesen .zine-arrows-wrap > :not(.zine-arrow),
.wl-lesen .zine-panel-wrap > .zine-arrows-wrap,
.wl-lesen .zine-controls-wrap > .zine-flipbook {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}

.wl-lesen .zine-flipbook {
  margin: 0;
  background: transparent;
}

.wl-schriften-leer {
  color: var(--ink-60, rgba(17, 73, 127, 0.6));
}

@media (max-width: 1024px) {
  .wl-schriften {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wl-schriften {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .wl-schriften .wl-schrift-cover {
    aspect-ratio: 1 / 1;
  }

  .wl-schriften .wl-schrift-overlay {
    display: none;
  }

  .wl-schriften .wl-schrift-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line, #dee5ed);
    border-radius: 999px;
    background: var(--white, #fff);
    color: var(--brand-ink, #11497f);
    box-shadow: 0 4px 12px rgba(7, 30, 54, 0.18);
  }

  .wl-schriften .wl-schrift-knoepfe .wl-schrift-lesen {
    display: none !important;
  }

  /* Popup auf dem Handy bildschirmfüllend, jeder Pixel fürs Buch. */
  .wl-lesen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .wl-lesen .wl-lesen-kopf {
    padding: 8px 8px 8px 16px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .wl-lesen .wl-lesen-titel {
    font-size: var(--text-base, 16px);
  }

  .wl-lesen .wl-lesen-buch {
    padding: 0 0 env(safe-area-inset-bottom);
  }
}

/* Abschnittstitel (.wl-h2): Wörter fahren von unten ein, Zerlegung in assets/titel.js. */
.wl-split .wl-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.wl-split .wl-wi {
  display: inline-block;
  transform: translateY(115%) rotate(3deg);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.wl-split.wl-split-in .wl-wi {
  transform: none;
}


/* Sprachauswahl-Flaggen unter Traktaten */
.wl-schriften .wl-schrift-sprachen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
}

.wl-schriften .wl-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 2px 6px;
  font-size: 16px;
  line-height: 1;
  background: var(--brand-sky-light, #f0f6fa);
  border: 1px solid var(--border-light, #dbe7f1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wl-schriften .wl-lang-btn:hover {
  background: #e1eef8;
  border-color: var(--brand-blue, #1883b9);
  transform: translateY(-1px);
}

.wl-schriften .wl-lang-btn.is-active {
  background: var(--brand-ink, #11497f);
  border-color: var(--brand-ink, #11497f);
  box-shadow: 0 2px 4px rgba(17, 73, 127, 0.2);
  transform: translateY(-1px);
}

/* Button 'Weitere Traktate auf Lukas Schriftenmission' */
.wl-schriften-more {
  display: flex;
  justify-content: center;
  margin: 50px auto 20px;
  width: 100%;
}

.wl-schriften-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--brand-ink, #11497f);
  color: #fff !important;
  font-family: var(--font-heading, "Familjen Grotesk"), sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(17, 73, 127, 0.15);
  transition: all 0.2s ease;
}

.wl-schriften-more-btn:hover {
  background: var(--brand-blue, #1883b9);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 131, 185, 0.25);
}


/* ---------- Leserbrief- & Foto-Modal (assets/leserbrief.js) ---------- */

.wl-leserbrief-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw, 56rem);
  max-height: 90vh;
  max-height: 90dvh;
  height: fit-content;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 73, 127, 0.16);
  border-radius: var(--radius-md, 16px);
  background: #0d1e31;
  color: var(--brand-ink, #11497f);
  font-family: var(--font-body, Roboto), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 24px 60px rgba(7, 30, 54, 0.55);
}
.wl-leserbrief-modal[open] {
  display: flex;
  flex-direction: column;
}
.wl-leserbrief-modal::backdrop {
  background: rgba(6, 26, 48, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wl-leserbrief-modal-kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--line, #dee5ed);
  background: var(--brand-blue-pale, #FFFBDD);
  flex-shrink: 0;
  user-select: none;
}
.wl-leserbrief-modal-titel {
  margin: 0;
  padding-right: 18px;
  padding-bottom: 4px;
  align-self: flex-end;
  color: var(--brand-ink, #11497f);
  font-family: var(--font-heading, Fraunces), serif;
  font-size: var(--text-lg, 19px);
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.wl-leserbrief-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wl-leserbrief-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line, #dee5ed);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--brand-ink, #11497f);
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
  text-decoration: none;
}
.wl-leserbrief-btn:hover,
.wl-leserbrief-btn:focus-visible {
  border-color: var(--brand-blue, #1679AB);
  color: var(--brand-blue, #1679AB);
  background: #f4f8fb;
  outline: none;
}
.wl-leserbrief-btn svg {
  display: block;
}
.wl-leserbrief-btn-pill {
  width: auto;
  min-width: 50px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wl-leserbrief-btn-zu {
  margin-left: 2px;
}
.wl-leserbrief-modal-body {
  position: relative;
  flex: 1;
  min-height: 180px;
  max-height: calc(90dvh - 56px);
  overflow: hidden;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0d1e31;
  user-select: none;
  touch-action: none;
}
.wl-leserbrief-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wl-leserbrief-img {
  display: block;
  max-width: 100%;
  max-height: calc(90dvh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  cursor: zoom-in;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.wl-leserbrief-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 30, 49, 0.88);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0.95;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.12);
}
.wl-leserbrief-hint.wl-hidden {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .wl-leserbrief-modal {
    width: calc(100vw - 16px);
    max-width: 500px;
    max-height: 85dvh;
    border-radius: 14px;
  }
  .wl-leserbrief-modal-kopf {
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 10px;
    align-items: flex-end;
  }
  .wl-leserbrief-modal-titel {
    font-size: 14px;
    padding-right: 12px;
    padding-bottom: 4px;
    align-self: flex-end;
  }
  .wl-leserbrief-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .wl-leserbrief-btn-pill {
    min-width: 44px;
    padding: 0 5px;
    font-size: 11px;
  }
  .wl-leserbrief-modal-body {
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 160px;
    max-height: calc(85dvh - 48px);
  }
  .wl-leserbrief-img {
    max-height: calc(85dvh - 66px);
  }
  .wl-leserbrief-hint {
    bottom: 12px;
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Interaktive Foto-Vorschau NUR fuer Fotos mit Klasse wl-photo */
.wl-photo,
.wl-photo img,
img.wl-photo {
  cursor: zoom-in !important;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), filter 0.22s ease;
}

.wl-photo:hover,
.wl-photo img:hover,
img.wl-photo:hover {
  filter: brightness(1.03);
}

.wl-photo:active,
.wl-photo img:active,
img.wl-photo:active {
  transform: scale(0.99);
}

/* Navigations-Logo, Header, Footer und sonstige Links strikt ausschliessen */
[data-id="5ef6fe48"],
[data-id="5ef6fe48"] *,
.hdr-logo,
.hdr-logo *,
.ftr-brand,
.ftr-brand *,
a[href="/"],
a[href="/"] *,
img[src*="logo"] {
  cursor: pointer !important;
  filter: none !important;
  transform: none !important;
}
