/*
Theme Name:   TruePicture
Theme URI:    https://truepicture.org
Description:  Child-Theme von Twenty Twenty-Five für truepicture.org. Enthält das gesamte TruePicture-Design (Farben, Schrift, Abstände, Abschnitte, Kopf- und Fussbereich), die Patterns und Block-Stile.
Author:       TruePicture / Michael Hauri
Template:     twentytwentyfive
Version:      0.7.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain:  truepicture
*/

/* ==========================================================================
   LESEANLEITUNG
   --------------------------------------------------------------------------
   Diese Datei ist nach Themen geordnet. Jede Eigenschaft steht genau einmal
   pro Bildschirmgrösse. Zwei Breakpoints:
     - unter 782 px  = Mobil (WordPress-Standard für Spalten)
     - ab 1100 px    = Desktop mit festen Pixelwerten wie auf truepicture.org
   Dazwischen gelten die flüssigen clamp()-Werte.

   Farben, Schriftfamilie und Schriftgrössen-Presets stehen in theme.json.
   Was hier steht, sind Layoutregeln für die TruePicture-Klassen (tp-…) und
   die gleichwertigen Block-Stile (is-style-tp-…), die in functions.php
   registriert sind. Neue Regeln bitte in den passenden Abschnitt eintragen,
   nicht unten anhängen.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Variablen
   -------------------------------------------------------------------------- */
:root {
  --tp-ground: #F2F2F0;
  --tp-ink: #1C1C1C;
  --tp-line: 1px solid var(--tp-ink);
  --tp-pad: 28px;            /* Standard-Innenabstand von Abschnitten */
  --tp-col-top: var(--tp-pad);
  --tp-col-left: var(--tp-pad);
  --tp-col-right: var(--tp-pad);
  --tp-col-bottom: clamp(3rem, 7vw, 110px);
}
@media (max-width: 781px) {
  :root { --tp-pad: 16px; }
}
@media (min-width: 1100px) {
  :root {
    --tp-col-top: 21px;
    --tp-col-left: 1.585vw;   /* Spaltenränder wie Semplice-Original */
    --tp-col-right: 5.285vw;
    --tp-col-bottom: 68px;
  }
}


/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */
html { scroll-padding-top: 110px; }
body {
  color: var(--tp-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { border-radius: 0 !important; }
a { text-decoration-thickness: 1px !important; text-underline-offset: .18em; }
/* Fokusrahmen nur bei Tastaturbedienung (WordPress setzt sonst auf jeden Klick einen 2-px-Rahmen);
   im dunklen Kopfbereich weiss, damit er für Tastaturnutzer:innen sichtbar bleibt. */
.wp-site-blocks :focus:not(:focus-visible) { outline: none !important; }
.wp-site-blocks :focus-visible { outline: 2px solid var(--tp-ink); outline-offset: 2px; }
.tp-header :focus-visible { outline-color: #fff; }
.tp-u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* Theme-Abstände von Twenty Twenty-Five neutralisieren */
main.wp-block-group { margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.wp-block-post-content { margin-top: 0 !important; }
.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* Diatype-Stilsets im Seiteninhalt (alternatives G u. a.), Werte wie auf truepicture.org */
.wp-block-post-content { font-feature-settings: "ss05", "ss06"; }


/* --------------------------------------------------------------------------
   3. Bildmarke ○● als Vektor
   -------------------------------------------------------------------------- */
.tp-dots {
  display: inline-block;
  width: 1.47em; height: .72em;
  overflow: hidden; text-indent: -9999px; white-space: nowrap;
  vertical-align: baseline;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='32' cy='10' r='10'/%3E%3C/svg%3E") no-repeat left bottom / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='32' cy='10' r='10'/%3E%3C/svg%3E") no-repeat left bottom / contain;
}
.tp-dots-r {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3Ccircle cx='32' cy='10' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3Ccircle cx='32' cy='10' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}


/* --------------------------------------------------------------------------
   4. Kopfbereich (Template-Teil parts/header.html)
   -------------------------------------------------------------------------- */
header.wp-block-template-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 50;
}
.tp-header {
  background: var(--tp-ink); color: #fff;
  min-height: 60px;
  padding: 0 20px !important; margin: 0 !important;
  gap: 24px;
}
.tp-header a { color: #fff !important; text-decoration: none; }

.tp-logo {
  font-size: 22px !important; font-weight: 500 !important;
  line-height: 22px !important; letter-spacing: normal !important;
  margin: 0; white-space: nowrap;
}
.tp-logo .tp-dots { width: 1.58em; height: .76em; vertical-align: -0.02em; margin-right: .06em; }

/* Navigation */
.tp-nav { font-size: 16px !important; letter-spacing: -0.2px; }
.tp-nav .wp-block-navigation__container { gap: 0 !important; }
.tp-nav .wp-block-navigation-item__content { padding: 0 8px !important; line-height: 35px; }
.tp-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content { padding-right: 0 !important; }
.tp-nav a:hover { text-decoration: none !important; opacity: .6; }
.tp-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--tp-ink) !important; color: #fff !important; font-size: 32px; }

/* Untermenü im dunklen Header */
.tp-nav .wp-block-navigation-submenu { gap: 3px; margin-right: 10px !important; }
.tp-header .tp-nav .wp-block-navigation-submenu > a.wp-block-navigation-item__content { padding-right: 0 !important; }
.tp-nav .wp-block-navigation__submenu-container { background: var(--tp-ink) !important; color: #fff !important; border: 0 !important; padding: 6px 0 !important; min-width: 210px !important; gap: 0 !important; }
.tp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 7px 16px !important; }
.tp-nav .wp-block-navigation__submenu-icon { margin-left: 0 !important; }
.tp-nav .wp-block-navigation__submenu-icon svg { width: 10px; height: 10px; }

/* Menüpunkt «Spenden» als weisser Button (Klasse tp-nav-spenden am Menüeintrag) */
.tp-nav .tp-nav-spenden > a { background: #fff; color: var(--tp-ink) !important; text-decoration: none !important; }
.tp-nav .wp-block-navigation__container > .tp-nav-spenden:last-child > .wp-block-navigation-item__content { padding: 0 8px !important; }
.tp-nav .tp-nav-spenden > a:hover { background: var(--tp-ground); }
.tp-nav .is-menu-open .tp-nav-spenden > a { background: none; color: #fff !important; padding: 0; text-decoration: underline !important; }


/* --------------------------------------------------------------------------
   5. Typografie: Titel und Textgrössen
      Jede Klasse hat einen gleichwertigen Block-Stil (Seitenleiste → Stile).
   -------------------------------------------------------------------------- */

/* Riesiger Seitentitel (Mission, Über uns …) */
:is(.tp-giant, .is-style-tp-riesig, .is-style-tp-riesig-mittel) {
  font-size: clamp(4rem, 15.5vw, 240px) !important;
  line-height: .84 !important;
  letter-spacing: -0.042em !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding-top: .04em;
}
/* Mittlere Variante für lange Titel («Gewinnerinnen und Gewinner») */
:is(.tp-giant.tp-giant-m, .is-style-tp-riesig-mittel) {
  font-size: clamp(3.2rem, 12vw, 186px) !important;
  line-height: .9 !important;
  letter-spacing: -0.032em !important;
}

/* Abschnittstitel in Versalien (linke Spalte) */
:is(.tp-h, .is-style-tp-abschnitt, .is-style-tp-abschnitt-klein, .is-style-tp-name, .is-style-tp-jahr) {
  font-size: clamp(2rem, 4.15vw, 64px) !important;
  line-height: .92 !important;
  letter-spacing: -0.016em !important;
  text-transform: uppercase;
  font-weight: 400 !important;
  margin: 0 0 1.1em !important;
}
:is(.tp-h.tp-h-s, .is-style-tp-abschnitt-klein) {
  font-size: clamp(1.8rem, 3.36vw, 52px) !important;
  line-height: .9 !important;
}
:is(.tp-h.tp-name, .is-style-tp-name) {
  text-transform: none;
  font-size: clamp(1.9rem, 3.5vw, 54px) !important;
  line-height: 1.15 !important;
  margin-bottom: .9em !important;
}
:is(.tp-h.tp-year, .is-style-tp-jahr) {
  text-transform: none;
  font-size: clamp(3rem, 7vw, 108px) !important;
  line-height: 1.11 !important;
  letter-spacing: -0.014em !important;
}

/* Fliesstext in Abschnitten */
:is(.tp-split, .tp-sec, .is-style-tp-zweispalter) {
  font-size: clamp(1.05rem, 1.55vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}
:is(.tp-split, .tp-sec, .is-style-tp-zweispalter) p { margin: 0 0 1em; }
:is(.tp-split, .tp-sec, .is-style-tp-zweispalter, .tp-foot) a { color: inherit !important; }
:is(.tp-lead, .is-style-tp-lead) { font-size: clamp(1.3rem, 2.07vw, 32px) !important; line-height: 1.25 !important; letter-spacing: -0.03em; }
:is(.tp-small, .is-style-tp-klein), :is(.tp-small, .is-style-tp-klein) p, .tp-stack p { font-size: clamp(1rem, 1.3vw, 20px) !important; line-height: 1.4 !important; }
.tp-more { margin-top: 1.6em !important; }

@media (min-width: 1100px) {
  :is(.tp-giant, .is-style-tp-riesig) { font-size: 240px !important; line-height: 240px !important; letter-spacing: -10px !important; }
  :is(.tp-giant.tp-giant-m, .is-style-tp-riesig-mittel) { font-size: 12vw !important; line-height: .9 !important; letter-spacing: -6px !important; }
  :is(.tp-h, .is-style-tp-abschnitt) { font-size: 64px !important; line-height: 64px !important; letter-spacing: -1.5px !important; }
  :is(.tp-h.tp-h-s, .is-style-tp-abschnitt-klein) { font-size: 52px !important; line-height: 46px !important; letter-spacing: -1px !important; }
  :is(.tp-h.tp-name, .is-style-tp-name) { font-size: 54px !important; line-height: 62px !important; letter-spacing: -0.2px !important; margin-bottom: 69px !important; }
  :is(.tp-h.tp-year, .is-style-tp-jahr) { font-size: 108px !important; line-height: 120px !important; letter-spacing: -1.5px !important; }
  :is(.tp-split, .tp-sec, .is-style-tp-zweispalter) { font-size: 24px !important; line-height: 34px !important; letter-spacing: -0.5px; }
  :is(.tp-split, .tp-sec, .is-style-tp-zweispalter) p { margin-bottom: 34px !important; }
  :is(.tp-split, .tp-sec, .is-style-tp-zweispalter) p:last-child { margin-bottom: 0 !important; }
  :is(.tp-lead, .is-style-tp-lead), .tp-herotext .tp-more { font-size: 32px !important; line-height: 40px !important; letter-spacing: -0.5px !important; }
  :is(.tp-small, .is-style-tp-klein), :is(.tp-small, .is-style-tp-klein) p, .tp-stack p { font-size: 20px !important; line-height: 28px !important; }
  .tp-more { margin-top: 0 !important; }
}


/* --------------------------------------------------------------------------
   6. Abschnitte: Vollbreite Gruppe (tp-sec) und Zweispalter (tp-split)
   -------------------------------------------------------------------------- */

/* Vollbreite Gruppe mit Linie oben */
.tp-sec { border-top: var(--tp-line); padding: var(--tp-pad) !important; margin-block: 0 !important; }
.tp-sec.tp-first { border-top: 0; }
.tp-sec.tp-title { padding-bottom: clamp(3rem, 8vw, 124px) !important; }

/* Zweispalter: Titel links, Inhalt rechts, Trennlinie dazwischen */
:is(.tp-split, .is-style-tp-zweispalter) {
  gap: 0 !important;
  border-top: var(--tp-line);
  margin-block: 0 !important;
  align-items: stretch !important;
}
:is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column {
  padding: var(--tp-col-top) var(--tp-col-right) var(--tp-col-bottom) var(--tp-col-left);
  margin: 0 !important;
  min-width: 0;
}
:is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column + .wp-block-column { border-left: var(--tp-line); }

/* Spalten-Varianten */
:is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column.tp-tight { padding-right: var(--tp-col-left); padding-bottom: var(--tp-pad); }
:is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column.tp-acccol { padding-top: 0; padding-right: var(--tp-col-left); }
:is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column:is(.tp-bleed, .tp-stack, .tp-heroleft) { padding: 0; }

/* Gestapelte Gruppen in einer Spalte (tp-stack) */
.tp-stack > .wp-block-group { padding: var(--tp-pad) var(--tp-col-right) clamp(2rem, 4vw, 64px) var(--tp-col-left); margin: 0 !important; }
.tp-stack > .wp-block-group + .wp-block-group { border-top: var(--tp-line); }

@media (min-width: 782px) {
  :is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column { flex: 0 0 50% !important; box-sizing: border-box; }
}
@media (max-width: 781px) {
  :is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column { flex-basis: 100% !important; }
  :is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column + .wp-block-column { border-left: 0; border-top: var(--tp-line); }
  /* tp-rev: auf Mobil rechte Spalte zuerst (z. B. Bild vor Text) */
  :is(.tp-split, .is-style-tp-zweispalter).tp-rev { flex-direction: column-reverse; }
  :is(.tp-split, .is-style-tp-zweispalter).tp-rev > .wp-block-column + .wp-block-column { border-top: 0; }
  :is(.tp-split, .is-style-tp-zweispalter).tp-rev > .wp-block-column:first-child { border-top: var(--tp-line); }
}
@media (min-width: 1100px) {
  .tp-sec { padding-left: var(--tp-col-left) !important; padding-right: var(--tp-col-left) !important; }
  .tp-sec.tp-title { padding-top: 48px !important; padding-bottom: 151px !important; }
  .tp-sec.tp-title:has(.tp-giant-m, .is-style-tp-riesig-mittel) { padding-top: 10px !important; padding-bottom: 183px !important; }
  .page-id-24 .tp-sec.tp-title { padding-bottom: 182px !important; } /* Altlast: Sonderabstand «Über uns», beim Relaunch durch Klasse ersetzen */
  :is(.tp-split, .is-style-tp-zweispalter) > .wp-block-column.tp-tight { padding-bottom: 18px; }
  .tp-stack > .wp-block-group { padding-top: 23px; padding-bottom: 64px; }
}


/* --------------------------------------------------------------------------
   7. Bilder und Bildlegenden
   -------------------------------------------------------------------------- */
:is(.tp-split, .is-style-tp-zweispalter) .wp-block-image { margin: 0 0 .4em !important; }
:is(.tp-split, .is-style-tp-zweispalter) .wp-block-image img { width: 100%; height: auto; display: block; }
.wp-element-caption { font-size: 14px !important; line-height: 1.3 !important; letter-spacing: 0 !important; opacity: 1 !important; margin: 10px 0 0 !important; text-align: left; }
.tp-capc .wp-element-caption { text-align: center; }
@media (min-width: 1100px) {
  :is(.tp-split, .is-style-tp-zweispalter) .wp-block-image { margin-bottom: 0 !important; }
  :is(.tp-split, .is-style-tp-zweispalter) .wp-element-caption { margin-top: 11px !important; }
}

/* Bildraster (tp-grid) */
.tp-grid { gap: var(--tp-pad) !important; margin-top: 1.4em !important; }
.tp-gitem { margin: 0 !important; }
.tp-grid .wp-block-image { margin: 0 !important; }
.tp-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.tp-grid p { text-align: center; margin: .6em 0 0 !important; }
@media (max-width: 781px) { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1100px) { .tp-grid p { font-size: 24px !important; line-height: 36px !important; letter-spacing: -0.2px; } }


/* --------------------------------------------------------------------------
   8. Startseite: Einstieg, Zufallsbild, Slideshow, Laufband, Zitat
   -------------------------------------------------------------------------- */
.tp-hero > .wp-block-column { min-height: calc(100vh - 60px - var(--wp-admin--admin-bar--height, 0px)); }
.tp-hero .tp-bleed { background: var(--tp-ink); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.tp-hero .tp-bleed .wp-block-image { margin: 0 !important; flex: 1; display: flex; flex-direction: column; }
.tp-hero .tp-bleed img { flex: 1; width: 100%; height: calc(100vh - 110px - var(--wp-admin--admin-bar--height, 0px)); min-height: 320px; object-fit: cover; }
.tp-hero .tp-bleed .wp-element-caption { background: var(--tp-ground); margin: 0 !important; padding: 12px; text-align: center; }
.tp-herotext { padding: var(--tp-pad) !important; }
@media (min-width: 1100px) {
  .tp-herotext { padding: 23px var(--tp-col-right) 23px var(--tp-col-left) !important; }
}

/* Zufallsbild aus den Portfolios (ab 0.7.0, PHP in functions.php Abschnitt 13): unbeschnitten in
   natürlicher Höhe, darunter Credit und Portfolio-Link im hellen Band. Der Einstieg ist dann so hoch
   wie Text oder Bild (keine erzwungene Bildschirmhöhe, keine dunkle Restfläche unter dem Bild). */
.tp-hero:has(.tp-zufallsbild) > .wp-block-column { min-height: 0; }
.tp-hero:has(.tp-zufallsbild) > .tp-bleed { background: var(--tp-ground); justify-content: flex-start; }
.tp-hero .tp-bleed .wp-block-html { margin: 0 !important; }
.tp-zufallsbild { margin: 0 !important; display: block; background: var(--tp-ink); }
.tp-hero .tp-bleed .tp-zufallsbild img, .tp-zufallsbild img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.tp-zufallsbild figcaption { background: var(--tp-ground); color: var(--tp-ink); margin: 0; padding: 12px; text-align: center; font-size: 14px; line-height: 18px; }
.tp-zufallsbild figcaption a { text-decoration: none; }
.tp-zufallsbild figcaption a:hover { text-decoration: underline; }
/* Automatischer Wechsel (assets/zufallsbild.js): zwei Bilder übereinander, Überblendung; das Feld behält
   das Seitenverhältnis des ersten Bildes, Folgebilder haben dasselbe Verhältnis (±2 %). */
.tp-zufallsbild.tp-js .tp-zb-feld { position: relative; width: 100%; overflow: hidden; }
.tp-zufallsbild.tp-js .tp-zb-feld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.tp-zufallsbild.tp-js .tp-zb-feld img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tp-zufallsbild.tp-js .tp-zb-feld img { transition: none; } }

/* Slideshow mit Überblendung (JavaScript in assets/slider.js; seit 0.7.0 auf der Startseite nicht mehr verwendet) */
.tp-slider { display: grid !important; grid-template-columns: 100% !important; overflow: hidden; gap: 0 !important; margin: 0 !important; width: 100%; }
.tp-slider > figure.wp-block-image { grid-area: 1 / 1 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; display: flex !important; flex-direction: column !important; background: var(--tp-ink); opacity: 0; transition: opacity .8s ease; z-index: 0; }
.tp-slider > figure.wp-block-image.is-active,
.tp-slider:not(.tp-js) > figure.wp-block-image:first-child { opacity: 1; z-index: 1; }
.tp-slider > figure.wp-block-image::before { display: none !important; }
.tp-slider > figure.wp-block-image img { width: 100% !important; height: calc(100vh - 102px - var(--wp-admin--admin-bar--height, 0px)) !important; min-height: 320px; object-fit: cover !important; flex: none !important; }
.tp-slider > figure.wp-block-image figcaption { position: static !important; background: var(--tp-ground) !important; color: var(--tp-ink) !important; padding: 12px !important; margin: 0 !important; text-align: center !important; max-height: none !important; overflow: visible !important; font-size: 14px !important; line-height: 18px !important; width: 100% !important; }
.tp-sl-btn { position: absolute; top: calc(50% - 21px); transform: translateY(-50%); background: none !important; border: 0; color: #fff; padding: 14px; cursor: pointer; z-index: 3; line-height: 0; }
.tp-sl-prev { left: 4px; }
.tp-sl-next { right: 4px; }
.tp-sl-dots { position: absolute; left: 0; right: 0; bottom: 62px; display: flex; justify-content: center; gap: 9px; z-index: 3; }
.tp-sl-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.tp-sl-dots button[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .tp-slider > figure.wp-block-image { transition: none; } }
@media (max-width: 781px) { .tp-slider > figure.wp-block-image img { height: 70vh !important; } }

/* Laufband */
.tp-marquee { overflow: hidden; white-space: nowrap; margin: 0 !important; }
.tp-marquee > span { display: inline-block; animation: tp-scroll 45s linear infinite; }
.tp-marquee:hover > span { animation-play-state: paused; }
@keyframes tp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tp-marquee > span { animation: none; } }
.tp-hero .tp-marquee { border-bottom: var(--tp-line); font-size: clamp(3rem, 7.6vw, 118px) !important; line-height: 1.05 !important; letter-spacing: -0.035em; padding: .06em 0 .1em; }

/* Zitat-Laufband (Über uns) */
.tp-qwrap { border-bottom: var(--tp-line); margin-block: 0 !important; }
.tp-quote { font-size: clamp(1.6rem, 2.85vw, 44px) !important; line-height: 1.35 !important; letter-spacing: -0.025em; padding: .15em 0; }
@media (min-width: 1100px) {
  .tp-qwrap .tp-quote { font-size: 54px !important; line-height: 72px !important; letter-spacing: -1px !important; padding: 17px 0 16px !important; }
}


/* --------------------------------------------------------------------------
   9. Aufklapper (Details-Block mit Klasse tp-acc bzw. Block-Stil «TP Aufklapper»)
   -------------------------------------------------------------------------- */
:is(.tp-acc, .is-style-tp-aufklapper) { border-bottom: var(--tp-line); margin: 0 !important; padding: 0; }
:is(.tp-acc, .is-style-tp-aufklapper):last-child { border-bottom: 0; }
:is(.tp-acc, .is-style-tp-aufklapper) > summary {
  list-style: none; cursor: pointer; position: relative;
  font-weight: 500; font-size: clamp(1.1rem, 1.68vw, 26px); line-height: 1.2; letter-spacing: -0.01em;
  padding: 1.35em 2em 1.35em 0;
}
.tp-acccol > :is(.tp-acc, .is-style-tp-aufklapper):first-child > summary { padding-top: calc(var(--tp-pad) + .1em); }
:is(.tp-acc, .is-style-tp-aufklapper)[open] > summary { padding-bottom: 0 !important; }
:is(.tp-acc, .is-style-tp-aufklapper) > summary::-webkit-details-marker { display: none; }
:is(.tp-acc, .is-style-tp-aufklapper) > p { margin: 0 0 1.4em !important; }

/* Plus/Minus-Zeichen rechts: waagrechter Strich (::after) + senkrechter Strich (::before, nur geschlossen) */
:is(.tp-acc, .is-style-tp-aufklapper) > summary::after {
  content: ""; position: absolute; right: 4px; bottom: calc(1.35em + .6em);
  width: 22px; height: 0; border-top: 1.5px solid currentColor;
}
:is(.tp-acc, .is-style-tp-aufklapper)[open] > summary::after { bottom: .6em; }
:is(.tp-acc, .is-style-tp-aufklapper):not([open]) > summary::before {
  content: ""; position: absolute; right: 14.25px; bottom: calc(1.35em + .6em - 11px);
  height: 22px; border-left: 1.5px solid currentColor;
}
@media (min-width: 1100px) {
  :is(.tp-acc, .is-style-tp-aufklapper) > summary { font-size: 26px !important; line-height: 50px !important; padding-top: 30px !important; padding-bottom: 30px !important; }
  .tp-acccol > :is(.tp-acc, .is-style-tp-aufklapper):first-child > summary { padding-top: 34px !important; }
  :is(.tp-acc, .is-style-tp-aufklapper) > p { font-size: 26px !important; line-height: 38px !important; letter-spacing: -0.4px; }
  :is(.tp-acc, .is-style-tp-aufklapper) > summary::after { bottom: 55px; }
  :is(.tp-acc, .is-style-tp-aufklapper)[open] > summary::after { bottom: 25px; }
  :is(.tp-acc, .is-style-tp-aufklapper):not([open]) > summary::before { bottom: 44px; }
}


/* --------------------------------------------------------------------------
   10. News, Veranstaltungen, Community-Listen (aus dem TruePicture Radar)
   -------------------------------------------------------------------------- */
.tp-news { list-style: none; padding: 0 !important; margin: 0 0 1em !important; }
.tp-news li { border-bottom: var(--tp-line); padding: .7em 0; margin: 0; }
.tp-news li:first-child { padding-top: 0; }
.tp-news .wp-block-latest-posts__post-date { font-size: 14px; display: block; margin-top: 4px; letter-spacing: 0; }
.single-post h1.wp-block-post-title { font-size: clamp(2.2rem, 4.5vw, 4rem) !important; line-height: 1.05; hyphens: manual; }

.tp-cn .tp-cn-list { list-style: none; margin: 1.6em 0 0; padding: 0; }
.tp-cn .tp-cn-item { border-top: var(--tp-line); padding: 16px 0 20px; margin: 0; }
.tp-cn .tp-cn-item:last-child { border-bottom: var(--tp-line); }
.tp-split .tp-cn p.tp-cn-meta { font-size: 14px !important; line-height: 1.35 !important; letter-spacing: 0; margin: 0 0 6px !important; }
.tp-split .tp-cn h3.tp-cn-title { font-size: clamp(1.25rem, 1.7vw, 26px) !important; line-height: 1.18 !important; font-weight: 400 !important; letter-spacing: -0.01em; margin: 0 0 8px !important; text-transform: none; }
.tp-split .tp-cn p.tp-cn-text { font-size: clamp(1rem, 1.2vw, 18px) !important; line-height: 1.4 !important; margin: 0 0 10px !important; }
.tp-split .tp-cn p.tp-cn-links { font-size: 14px !important; line-height: 1.35 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tp-split p.tp-cn-note { font-size: 14px !important; margin-top: 1.6em !important; }
.tp-split h3.tp-ev-past { font-size: clamp(1.25rem, 1.7vw, 26px) !important; font-weight: 400 !important; line-height: 1.2 !important; margin: 3em 0 0 !important; text-transform: none; }


/* --------------------------------------------------------------------------
   11. Spenden: Band auf der Startseite, Spendenseite, Soulclick-Formular
   -------------------------------------------------------------------------- */
.tp-split.tp-donateband { background: var(--tp-ink); color: #fff; }
.tp-donateband, .tp-donateband p, .tp-donateband h2, .tp-donateband a { color: #fff !important; }
.tp-donateband > .wp-block-column + .wp-block-column { border-left-color: #fff !important; }
@media (max-width: 781px) { .tp-donateband > .wp-block-column + .wp-block-column { border-top: 1px solid #fff !important; } }

.tp-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; }
.tp-amounts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em; border: 1px solid #fff; padding: 22px 8px; text-decoration: none !important; font-size: clamp(1.6rem, 3vw, 44px); line-height: 1; letter-spacing: -0.016em; transition: background .15s, color .15s; }
.tp-amounts a span { font-size: 15px; letter-spacing: 0; }
.tp-amounts a.tp-amount-free { grid-column: 1 / -1; font-size: clamp(1.1rem, 1.6vw, 22px); padding: 16px 8px; }
.tp-amounts a:hover, .tp-amounts a:focus-visible { background: #fff; color: var(--tp-ink) !important; }
.tp-cta { margin: 24px 0 0 !important; }
.tp-cta a { display: block; text-align: center; background: #fff; color: var(--tp-ink) !important; border: 1px solid #fff; padding: 18px 12px; text-decoration: none !important; font-size: clamp(1.1rem, 1.6vw, 22px); transition: background .15s, color .15s; }
.tp-cta a:hover, .tp-cta a:focus-visible { background: var(--tp-ink); color: #fff !important; }

@media (min-width: 782px) { .tp-spenden-text { align-self: flex-start; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 60px); } }
.tp-spenden-form { min-height: 60vh; }

/* Soulclick-Widget im TruePicture-Design (beim Wechsel auf Payrexx prüfen und ggf. entfernen) */
.tp-widget {
  --scw-font-family: "ABC Diatype", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --scw-font-family-titles: "ABC Diatype", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --scw-titles-transform: none;
  --scw-h1-font-weight: 400; --scw-h2-font-weight: 400; --scw-h3-font-weight: 400; --scw-h4-font-weight: 400;
  --scw-button-color: #1C1C1C; --scw-button-hover-color: #F2F2F0; --scw-button-text-color: #fff; --scw-button-hover-text-color: #1C1C1C;
  --scw-button-secondary-color: #1C1C1C; --scw-button-secondary-hover-color: #F2F2F0; --scw-button-secondary-text-color: #fff; --scw-button-secondary-hover-text-color: #1C1C1C;
  --scw-button-tertiary-color: #1C1C1C; --scw-button-tertiary-hover-color: #F2F2F0; --scw-button-tertiary-text-color: #fff; --scw-button-tertiary-hover-text-color: #1C1C1C;
  --scw-title-color: #1C1C1C; --scw-text-color: #1C1C1C; --scw-link-color: #1C1C1C; --scw-link-hover-color: #1C1C1C;
  --scw-primary-color-base: #1C1C1C; --scw-lowest-fees-color: #1C1C1C; --scw-lowest-fees-text-color: #fff;
  --scw-surface-color: #F2F2F0; --scw-ink-color: #1C1C1C;
  --scw-utility-color-gray-100: #1C1C1C; --scw-utility-color-gray-200: #1C1C1C; --scw-utility-color-gray-300: #8a8a88; --scw-utility-color-gray-500: #6b6b69; --scw-utility-color-gray-600: #4a4a48;
  --scw-radius: 0; --scw-radius-button: 0; --scw-radius-card: 0; --scw-radius-tag: 0; --scw-link-decoration: underline;
}
.tp-widget [data-soulclick-widget], .tp-widget [data-soulclick-widget] *:not(input[type=radio]) { font-family: "ABC Diatype", "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-feature-settings: "ss04", "ss06" !important; font-weight: 400 !important; border-radius: 0 !important; box-shadow: none !important; }
.tp-widget [data-soulclick-widget] .checkout-header { display: none !important; }
.tp-widget [data-soulclick-widget] .checkout__form__step { margin: 0 0 40px !important; }
.tp-widget [data-soulclick-widget] .checkout__form__step__heading { background: transparent !important; border: 0 !important; border-bottom: 1px solid #1C1C1C !important; color: #1C1C1C !important; padding: 0 0 10px !important; font-size: clamp(1.3rem, 2.07vw, 32px) !important; letter-spacing: -0.01em; width: 100%; }
.tp-widget [data-soulclick-widget] .checkout__form__step__heading * { color: #1C1C1C !important; font-size: inherit !important; }
.tp-widget [data-soulclick-widget] .checkout__form__step__content { background: transparent !important; border: 0 !important; padding: 20px 0 0 !important; }
.tp-widget [data-soulclick-widget] input, .tp-widget [data-soulclick-widget] select, .tp-widget [data-soulclick-widget] textarea { background: #F2F2F0 !important; border-color: #1C1C1C !important; color: #1C1C1C !important; }
.tp-widget [data-soulclick-widget] .lowest-fee { background: #F2F2F0 !important; color: #1C1C1C !important; border: 1px solid #1C1C1C !important; padding: 2px 8px !important; }
.tp-widget [data-soulclick-widget] .lowest-fee::before, .tp-widget [data-soulclick-widget] .lowest-fee::after { display: none !important; }
.tp-widget [data-soulclick-widget] input[type=radio] { border-radius: 50% !important; accent-color: #1C1C1C; }
.tp-widget [data-soulclick-widget] .sc-radio__label::before, .tp-widget [data-soulclick-widget] .sc-radio__label::after { border-radius: 50% !important; }
.tp-widget [data-soulclick-widget] button { border: 1px solid #1C1C1C !important; }
.tp-widget [data-soulclick-widget] input[type=checkbox] { accent-color: #1C1C1C; }


/* --------------------------------------------------------------------------
   12. Fussbereich (Template-Teil parts/footer.html)
   -------------------------------------------------------------------------- */
.tp-index { border-top: var(--tp-line); margin: 0 !important; }
.tp-index p { margin: 0 !important; border-bottom: var(--tp-line); text-align: center; font-size: clamp(2.4rem, 6.7vw, 104px) !important; line-height: 1.25 !important; font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em; padding: .12em var(--tp-pad); }
.tp-index a { text-decoration: none !important; color: inherit !important; }
.tp-index a:hover { text-decoration: underline !important; }
.tp-supp { text-align: center; padding: 44px var(--tp-pad) !important; border-bottom: var(--tp-line); margin: 0 !important; }
.tp-supp p { margin: 0 !important; }
.tp-label-s { font-size: 18px !important; margin-bottom: 18px !important; }
.tp-supp-list { font-size: clamp(1rem, 1.3vw, 19px) !important; letter-spacing: .08em; text-transform: uppercase; line-height: 2 !important; }
.tp-foot { background: var(--tp-ink); color: #F2F2F0; padding: 28px var(--tp-pad) 70px !important; font-size: 16px; line-height: 1.6; margin: 0 !important; }
.tp-foot p { margin: 0 0 1.2em !important; }
.tp-foot .wp-block-columns { gap: var(--tp-pad); }
.tp-placeholder { border: 1px dashed currentColor; padding: 1rem 1.2rem; font-size: 15px !important; line-height: 1.45 !important; letter-spacing: 0; }
@media (min-width: 1100px) {
  .tp-index p { font-size: 104px !important; line-height: 130px !important; letter-spacing: -2px; }
}


/* --------------------------------------------------------------------------
   13. Magazinbeitrag (Template «TruePicture – Magazinbeitrag», Entwurf b3)
       Drittelraster: links Rubrik, Titel, Zwischentitel (H2) und Bildlegenden,
       rechts Beitragsbild, Text und Bilder. Die Redaktion schreibt ganz normal
       (Zwischentitel, Absätze, Bild, Galerie, Zitat); das Raster entsteht von selbst.
       Bilder werden nie beschnitten. Unter 1100 px steht der Titel über dem Bild,
       unter 782 px ist alles einspaltig.
   -------------------------------------------------------------------------- */
.tp-mag {
  --tp-mag-l: 23px;        /* Innenabstand links in jeder Spalte */
  --tp-mag-r: 23px;        /* Innenabstand rechts */
  --tp-mag-top: 21px;      /* Abstand Linie – Text */
  --tp-mag-bottom: 68px;   /* Abstand am Ende eines Abschnitts */
  font-feature-settings: "ss04", "ss05", "ss06";
}
.tp-mag > * { margin-block: 0 !important; }
.tp-mag img { display: block; width: 100%; height: auto !important; object-fit: contain !important; }
.tp-mag img[style*="aspect-ratio"] { aspect-ratio: auto !important; } /* falls im Editor ein Seitenverhältnis gewählt wurde: trotzdem nicht beschneiden */

/* Kopf: links Rubrik, Titel, Einleitung (Textauszug), Angaben; rechts Beitragsbild mit Legende */
.tp-mag-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-bottom: var(--tp-line); margin: 0 !important; }
.tp-mag-kopf:not(:has(.tp-mag-bild)) { grid-template-columns: minmax(0, 1fr); }
.tp-mag-kopf-text { display: flex; flex-direction: column; padding: var(--tp-mag-top) var(--tp-mag-l) 28px; border-right: var(--tp-line); margin: 0 !important; }
.tp-mag-kopf-text > * { margin: 0 !important; }
.tp-mag-rubrik { gap: .3em !important; }
.tp-mag-rubrik p, .tp-mag-rubrik .wp-block-post-terms { margin: 0 !important; font-size: 16px !important; line-height: 20px !important; }
.tp-mag-rubrik a { color: inherit !important; text-decoration: none !important; font-weight: 400 !important; }
.tp-mag-rubrik a:hover { text-decoration: underline !important; }
.tp-mag-titel { margin-top: 32px !important; font-size: clamp(2.1rem, 4.4vw, 64px) !important; line-height: .97 !important; letter-spacing: -0.03em !important; font-weight: 400 !important; hyphens: auto; }
.tp-mag-lead { margin-top: 32px !important; }
.tp-mag-lead, .tp-mag-lead p { font-size: clamp(1.15rem, 1.67vw, 24px); line-height: 1.42; letter-spacing: -0.02em; margin: 0; }
.tp-mag-meta { margin-top: auto !important; padding-top: 32px; font-size: 18px !important; line-height: 28px !important; }
.tp-mag-meta span { display: block; }
.tp-mag-muted { color: #5E5E5E; }
.tp-mag-bild { margin: 0 !important; }
.tp-mag .tp-mag-bild figcaption { margin: 0 !important; padding: 12px var(--tp-mag-l) 28px; max-width: calc(760px + var(--tp-mag-l) + var(--tp-mag-r)); font-size: 18px !important; line-height: 28px !important; }

/* Inhalt: Zwischentitel (H2) links, alles andere rechts; senkrechte Linie bei einem Drittel */
.tp-mag-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); position: relative; margin: 0 !important; padding: 0 !important; font-size: clamp(1.05rem, 1.55vw, 24px); line-height: 1.42; letter-spacing: -0.02em; }
.tp-mag-inhalt::before { content: ""; position: absolute; top: 0; bottom: 0; left: 33.3333%; border-left: var(--tp-line); pointer-events: none; }
.tp-mag-inhalt > * { grid-column: 2; margin: 0 !important; padding: 0 var(--tp-mag-r) 0 var(--tp-mag-l); max-width: none; box-sizing: border-box; }
.tp-mag-inhalt > :first-child { padding-top: var(--tp-mag-top); }
.tp-mag-inhalt > :is(p, ul, ol, h3, h4) { padding-bottom: 1.42em; max-width: calc(760px + var(--tp-mag-l) + var(--tp-mag-r)); }
.tp-mag-inhalt > :is(ul, ol) { padding-left: calc(var(--tp-mag-l) + 1.1em); }
.tp-mag-inhalt > :is(h3, h4) { font-size: inherit !important; line-height: inherit !important; text-transform: uppercase; font-weight: 400; padding-bottom: .5em; }
.tp-mag-inhalt > h2 { grid-column: 1; position: relative; padding: var(--tp-mag-top) var(--tp-mag-l) 0; font-size: clamp(1.35rem, 2.5vw, 36px) !important; line-height: 1.11 !important; letter-spacing: -0.02em !important; text-transform: uppercase; font-weight: 400 !important; hyphens: manual; }
.tp-mag-inhalt > h2:not(:first-child)::after { content: ""; position: absolute; left: 0; top: 0; width: 300%; border-top: var(--tp-line); }
.tp-mag-inhalt > h2 + * { padding-top: var(--tp-mag-top); }
.tp-mag-inhalt > :has(+ h2) { padding-bottom: var(--tp-mag-bottom); }
.tp-mag-inhalt > h2.tp-mag-quellen { font-size: 18px !important; line-height: 28px !important; text-transform: none; }
.tp-mag-inhalt > p.is-style-tp-klein { padding-bottom: 8px; }
.tp-mag-inhalt > p.is-style-tp-klein:has(+ :not(p.is-style-tp-klein)) { padding-bottom: 28px; }

/* Bild im Text: Bild rechts (2/3), Legende links unten; «Volle Breite» = über beide Spalten, Legende darunter */
.tp-mag-inhalt > figure.wp-block-image { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 0 !important; border-top: var(--tp-line); }
.tp-mag-inhalt > figure.wp-block-image > :not(figcaption) { grid-column: 2; grid-row: 1; }
.tp-mag-inhalt > figure.wp-block-image > figcaption { grid-column: 1; grid-row: 1; align-self: end; margin: 0 !important; padding: var(--tp-mag-top) var(--tp-mag-l); font-size: 18px !important; line-height: 28px !important; text-align: left !important; }
.tp-mag-inhalt > figure.wp-block-image:is(.alignfull, .alignwide) { display: block; }
.tp-mag-inhalt > figure.wp-block-image:is(.alignfull, .alignwide) > figcaption { margin-left: 33.3333% !important; padding: 12px var(--tp-mag-r) 28px var(--tp-mag-l); max-width: calc(760px + var(--tp-mag-l) + var(--tp-mag-r)); }
.tp-mag-inhalt > figure + :not(h2) { padding-top: var(--tp-mag-top); }

/* Galerie (z. B. Bildpaar): über beide Spalten, Bilder unbeschnitten, Legende unter dem Bild */
.tp-mag-inhalt > .wp-block-gallery { grid-column: 1 / -1; position: relative; z-index: 1; background: var(--tp-ground); border-top: var(--tp-line); padding: 64px var(--tp-mag-l) !important; --wp--style--unstable-gallery-gap: 30px; gap: 30px !important; align-items: flex-start !important; }
.tp-mag-inhalt > .wp-block-gallery figure.wp-block-image { margin: 0 !important; flex-direction: column !important; justify-content: flex-start !important; }
.tp-mag-inhalt > .wp-block-gallery figure.wp-block-image::before { display: none !important; }
.tp-mag-inhalt > .wp-block-gallery figure.wp-block-image img { flex: none !important; width: 100% !important; }
.tp-mag-inhalt > .wp-block-gallery figure.wp-block-image figcaption { position: static !important; background: none !important; color: inherit !important; padding: 12px 0 0 !important; margin: 0 !important; max-height: none !important; overflow: visible !important; text-align: left !important; text-shadow: none !important; font-size: 18px !important; line-height: 28px !important; }

/* Zitat: Band über beide Spalten */
.tp-mag-inhalt > blockquote.wp-block-quote { grid-column: 1 / -1; position: relative; z-index: 1; background: var(--tp-ground); border: 0 !important; border-top: var(--tp-line) !important; padding: 36px var(--tp-mag-l) 44px !important; }
.tp-mag-inhalt > .wp-block-quote p { font-size: clamp(1.6rem, 3.75vw, 54px) !important; line-height: 1.22 !important; letter-spacing: -0.02em !important; margin: 0 !important; max-width: 1100px; font-style: normal; }
.tp-mag-inhalt > .wp-block-quote cite { display: block; margin-top: 20px; font-size: 18px !important; font-style: normal !important; }

/* Hinweis auf eine Fotogeschichte (Pattern «TP · Magazin: Hinweis») */
.tp-mag-inhalt > .tp-mag-hinweis { grid-column: 1 / -1; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); background: var(--tp-ink); color: #F2F2F0; padding: 0 !important; }
.tp-mag-hinweis > * { grid-column: 2; margin: 0 !important; padding: 0 var(--tp-mag-r) 0 var(--tp-mag-l); }
.tp-mag-hinweis > .tp-mag-hinweis-label { grid-column: 1; grid-row: 1 / span 3; padding: var(--tp-mag-top) var(--tp-mag-l) 28px; border-right: 1px solid #5E5E5E; font-size: 18px !important; line-height: 28px !important; }
.tp-mag-hinweis > .tp-mag-hinweis-titel { padding-top: var(--tp-mag-top); font-size: clamp(1.3rem, 2.07vw, 32px) !important; line-height: 1.25 !important; }
.tp-mag-hinweis > :last-child { padding-bottom: 28px; font-size: 18px !important; line-height: 28px !important; }
.tp-mag-hinweis a { color: #FFFFFF !important; }

/* Mehr im Magazin: eine Teaser-Art, Bilder unbeschnitten und unten bündig */
.tp-mag-mehr { border-top: var(--tp-line); margin: 0 !important; }
.tp-mag-mehr-kopf { padding: 15px var(--tp-mag-l) 14px !important; border-bottom: var(--tp-line); margin: 0 !important; }
.tp-mag-mehr-kopf p { margin: 0 !important; font-size: 16px !important; line-height: 20px !important; }
.tp-mag-mehr-kopf a { color: inherit !important; text-decoration: none !important; }
.tp-mag-teaser { padding: 40px var(--tp-mag-l) 48px; margin: 0 !important; }
/* Regel (Michael, 25.10.2026): Teaser-Kacheln in allen Listen oben ausrichten, nie unten – sonst springt das
   Layout. Das Bild sitzt unbeschnitten in einem 3:2-Feld (unten bündig), Rubrik/Datum und Titel stehen dadurch
   bei allen Kacheln auf gleicher Höhe. */
.tp-mag-teaser .wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 30px !important; align-items: start; margin: 0 !important; padding: 0 !important; list-style: none; }
.tp-mag-teaser .wp-block-post { margin: 0 !important; }
.tp-mag-teaser .wp-block-post > * { margin: 0 !important; }
.tp-mag-teaser .wp-block-post-featured-image { margin-bottom: 14px !important; aspect-ratio: 3 / 2; display: flex; align-items: flex-end; }
.tp-mag-teaser .wp-block-post-featured-image > a { display: flex; align-items: flex-end; width: 100%; height: 100%; }
.tp-mag-teaser .wp-block-post-featured-image img { width: auto; max-width: 100%; max-height: 100%; }
.tp-mag-teaser .wp-block-post-terms { font-size: 18px !important; line-height: 28px !important; margin-bottom: 6px !important; font-weight: 400 !important; }
.tp-mag-teaser .wp-block-post-terms a { font-weight: 400 !important; }
.tp-mag-teaser a { color: inherit !important; text-decoration: none !important; }
.tp-mag-teaser .wp-block-post-title { font-size: clamp(1.2rem, 1.8vw, 26px) !important; line-height: 1.23 !important; letter-spacing: -0.015em !important; font-weight: 400 !important; }

/* Magazin-Übersicht (Seite «Magazin»): alle Beiträge als Teaser, Seiten blättern */
.tp-mag-uebersicht { border-top: var(--tp-line); }
.tp-mag-uebersicht .tp-mag-teaser .wp-block-post-template { row-gap: 56px !important; }
.tp-mag-teaser .wp-block-query-pagination { margin: 48px 0 0 !important; padding-top: 14px; border-top: var(--tp-line); font-size: 18px; line-height: 28px; gap: 16px; }
.tp-mag-teaser .wp-block-query-pagination a { text-decoration: none !important; }
.tp-mag-teaser .wp-block-query-pagination .current { text-decoration: underline; text-underline-offset: .18em; }
.tp-mag-teaser .wp-block-query-no-results p { font-size: 18px; }

/* Tablet und Handy: Titel über dem Bild, Einleitung und Angaben darunter */
@media (max-width: 1099px) {
  .tp-mag { --tp-mag-l: 20px; --tp-mag-r: 32px; --tp-mag-top: 20px; --tp-mag-bottom: 48px; }
  .tp-mag-kopf { display: flex; flex-direction: column; }
  .tp-mag-kopf-text { display: contents; }
  .tp-mag-rubrik { order: 1; padding: 28px var(--tp-mag-l) 0; }
  .tp-mag-titel { order: 2; margin: 16px 0 0 !important; padding: 0 var(--tp-mag-l) 28px; }
  .tp-mag-bild { order: 3; border-bottom: var(--tp-line); }
  .tp-mag-lead { order: 4; margin: 0 !important; padding: 24px var(--tp-mag-l) 0; max-width: calc(680px + var(--tp-mag-l)); }
  .tp-mag-meta { order: 5; margin: 0 !important; padding: 20px var(--tp-mag-l) 32px; }
}
@media (min-width: 782px) and (max-width: 1099px) {
  .tp-mag-titel { font-size: 52px !important; line-height: 52px !important; letter-spacing: -1.5px !important; }
  .tp-mag-lead, .tp-mag-lead p { font-size: 24px; line-height: 33px; letter-spacing: -0.4px; }
  .tp-mag-inhalt { font-size: 20px; line-height: 30px; letter-spacing: -0.3px; }
  .tp-mag-inhalt > :is(p, ul, ol, h3, h4) { padding-bottom: 30px; }
  .tp-mag-inhalt > :is(p, ul, ol, h3, h4):has(+ h2) { padding-bottom: var(--tp-mag-bottom); }
  .tp-mag-inhalt > h2 { font-size: 26px !important; line-height: 30px !important; letter-spacing: -0.4px !important; }
  .tp-mag-inhalt > .wp-block-quote p { font-size: 38px !important; line-height: 48px !important; }
  .tp-mag .tp-mag-bild figcaption, .tp-mag-inhalt > figure.wp-block-image > figcaption, .tp-mag-inhalt > .wp-block-gallery figure.wp-block-image figcaption { font-size: 16px !important; line-height: 24px !important; }
}
@media (max-width: 781px) {
  .tp-mag-titel { font-size: 34px !important; line-height: 36px !important; letter-spacing: -0.8px !important; }
  .tp-mag-lead, .tp-mag-lead p { font-size: 20px; line-height: 28px; letter-spacing: -0.3px; }
  .tp-mag-inhalt { font-size: 18px; line-height: 27px; letter-spacing: -0.2px; }
  .tp-mag-inhalt > :is(p, ul, ol, h3, h4) { padding-bottom: 27px; }
  .tp-mag-inhalt > :is(p, ul, ol, h3, h4):has(+ h2) { padding-bottom: var(--tp-mag-bottom); }
  .tp-mag-inhalt > h2 { font-size: 22px !important; line-height: 26px !important; letter-spacing: -0.2px !important; }
  .tp-mag .tp-mag-bild figcaption, .tp-mag-inhalt > figure.wp-block-image > figcaption, .tp-mag-inhalt > .wp-block-gallery figure.wp-block-image figcaption, .tp-mag-meta { font-size: 15px !important; line-height: 22px !important; }
  .tp-mag { --tp-mag-l: 16px; --tp-mag-r: 16px; --tp-mag-top: 16px; --tp-mag-bottom: 36px; }
  .tp-mag-rubrik { padding-top: 16px; }
  .tp-mag-titel { margin-top: 8px !important; padding-bottom: 20px; }
  .tp-mag-lead { padding-top: 16px; }
  .tp-mag-meta { padding: 16px var(--tp-mag-l) 28px; }
  .tp-mag .tp-mag-bild figcaption { padding: 10px var(--tp-mag-l) 20px; }

  .tp-mag-inhalt { grid-template-columns: minmax(0, 1fr); }
  .tp-mag-inhalt::before { display: none; }
  .tp-mag-inhalt > *, .tp-mag-inhalt > h2 { grid-column: 1; }
  .tp-mag-inhalt > h2 { padding-bottom: 10px; }
  .tp-mag-inhalt > h2:not(:first-child)::after { width: 100%; }
  .tp-mag-inhalt > h2 + * { padding-top: 0; }
  .tp-mag-inhalt > figure.wp-block-image { display: block; }
  .tp-mag-inhalt > figure.wp-block-image > figcaption,
  .tp-mag-inhalt > figure.wp-block-image:is(.alignfull, .alignwide) > figcaption { margin-left: 0 !important; padding: 10px var(--tp-mag-l) 28px; }
  .tp-mag-inhalt > .wp-block-gallery { padding: 32px var(--tp-mag-l) !important; }
  .tp-mag-inhalt > .wp-block-gallery figure.wp-block-image { width: 100% !important; }
  .tp-mag-inhalt > .tp-mag-hinweis { grid-template-columns: minmax(0, 1fr); }
  .tp-mag-hinweis > *, .tp-mag-hinweis > .tp-mag-hinweis-label { grid-column: 1; grid-row: auto; border-right: 0; }
  .tp-mag-hinweis > .tp-mag-hinweis-label { padding-bottom: 0; }
  .tp-mag-hinweis > .tp-mag-hinweis-titel { padding-top: 8px; }

  .tp-mag-teaser { padding: 0 var(--tp-mag-l) 24px; }
  .tp-mag-teaser .wp-block-post-template { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  .tp-mag-teaser .wp-block-post { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 0; border-bottom: var(--tp-line); }
  .tp-mag-teaser .wp-block-post-featured-image { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; aspect-ratio: auto; display: block; }
  .tp-mag-teaser .wp-block-post-featured-image > a { display: block; height: auto; }
  .tp-mag-teaser .wp-block-post-featured-image img { width: 100%; max-height: none; }
  .tp-mag-teaser .wp-block-post-terms, .tp-mag-teaser .wp-block-post-title { grid-column: 2; }
  .tp-mag-teaser .wp-block-post-terms { font-size: 15px !important; line-height: 22px !important; }
  .tp-mag-teaser .wp-block-post-title { font-size: 19px !important; line-height: 24px !important; }
}
@media (min-width: 1100px) {
  .tp-mag-titel { font-size: 64px !important; line-height: 62px !important; letter-spacing: -2px !important; }
  .tp-mag-lead, .tp-mag-lead p, .tp-mag-inhalt { font-size: 24px; line-height: 34px; letter-spacing: -0.5px; }
  .tp-mag-inhalt > :is(p, ul, ol, h3, h4) { padding-bottom: 34px; }
  .tp-mag-inhalt > h2 { font-size: 36px !important; line-height: 40px !important; letter-spacing: -0.8px !important; }
  .tp-mag-inhalt > .wp-block-quote p { font-size: 54px !important; line-height: 66px !important; letter-spacing: -1px !important; }
  .tp-mag-inhalt > :is(p, ul, ol, h3, h4):has(+ h2) { padding-bottom: var(--tp-mag-bottom); }
}


/* --------------------------------------------------------------------------
   14. Veranstaltung (Template «TruePicture – Veranstaltung», ab 0.5.0)
       Kopf: Rubrik, grosser Titel, Einleitung, Eckdaten (Wann, Wo, Eintritt,
       Plätze), Bild unbeschnitten. Inhalt im Drittelraster wie der
       Magazinbeitrag (Zwischentitel links). Danach Anmeldung bzw. Warteliste
       mit eigenem Formular (Abschnitt 11 in functions.php) und «Weitere
       Veranstaltungen». Unter 782 px alles einspaltig.
   -------------------------------------------------------------------------- */
.tp-va [hidden] { display: none !important; }
.tp-va-kopf { padding: 28px var(--tp-mag-l) 68px; margin: 0 !important; }
.tp-va-kopf > * { margin: 0 !important; }
.tp-va-rubrik { font-size: 18px !important; line-height: 28px !important; letter-spacing: -0.2px; }
.tp-va-rubrik a { color: inherit !important; }
.tp-va h1.tp-va-titel { margin-top: 22px !important; font-size: clamp(52px, 10.4vw, 168px) !important; line-height: .9 !important; letter-spacing: -0.042em !important; font-weight: 400 !important; max-width: 14ch; hyphens: auto; }
.tp-va-lead { margin-top: 22px !important; max-width: 30ch; }
.tp-va-lead, .tp-va-lead p { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -0.03em; margin: 0; }
dl.tp-va-eckdaten { margin-top: 48px !important; display: flex; flex-wrap: wrap; column-gap: 30px; }
dl.tp-va-eckdaten > div { flex: 1 1 200px; border-top: var(--tp-line); padding: 12px 0 18px; }
dl.tp-va-eckdaten dt { margin: 0 0 6px; font-size: 14px; line-height: 18px; }
dl.tp-va-eckdaten dd { margin: 0; font-size: 24px; line-height: 30px; letter-spacing: -0.5px; }
.tp-va-punkt { display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2px solid var(--tp-ink); border-radius: 50%; box-sizing: border-box; vertical-align: -1px; }
.tp-va-punkt-voll { background: var(--tp-ink); }
.tp-va-bild { margin-top: 18px !important; }
.tp-va .tp-va-bild img { width: auto; max-width: 100%; max-height: 85vh; }
.tp-va .tp-va-bild figcaption { padding: 8px 0 0 !important; font-size: 14px !important; line-height: 18px !important; }
.tp-va-inhalt { border-top: var(--tp-line); }
.tp-va-inhalt:empty { display: none; }

/* Anmeldung: links Titel und Hinweis, rechts Formular bzw. Bestätigung */
.tp-va-anm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); position: relative; border-top: var(--tp-line); scroll-margin-top: 80px; }
.tp-va-anm::before { content: ""; position: absolute; top: 0; bottom: 0; left: 33.3333%; border-left: var(--tp-line); pointer-events: none; }
.tp-va-anm-kopf { padding: var(--tp-mag-top) var(--tp-mag-l) 28px; }
.tp-va-anm-kopf h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 36px) !important; line-height: 1.11 !important; letter-spacing: -0.02em !important; text-transform: uppercase; font-weight: 400 !important; }
.tp-va-anm-kopf p { margin: 20px 0 0; max-width: 32ch; font-size: 18px; line-height: 28px; letter-spacing: -0.2px; }
.tp-va-anm-inhalt { padding: var(--tp-mag-top) var(--tp-mag-r) 110px var(--tp-mag-l); }
.tp-va-anm-inhalt > p { margin: 0 0 1em; font-size: clamp(1.05rem, 1.55vw, 24px); line-height: 1.42; letter-spacing: -0.02em; }
.tp-va-form { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0; }
.tp-va-reihe { display: flex; flex-wrap: wrap; gap: 22px 20px; }
.tp-va-reihe > .tp-va-feld { flex: 1 1 240px; }
.tp-va-feld { flex: none; display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 22px; }
.tp-va-feld input { font: inherit; font-feature-settings: "ss04", "ss05", "ss06"; width: 100%; height: 56px; padding: 0 16px; border: 1px solid #000; border-radius: 0; background: #FFFFFF; color: #000; font-size: 20px; letter-spacing: -0.2px; box-sizing: border-box; }
.tp-va-feld input:focus { outline: 2px solid #000; outline-offset: 2px; }
.tp-va-grau { color: #5E5E5E; }
.tp-va-check { display: flex; gap: 14px; align-items: flex-start; border-top: var(--tp-line); padding-top: 18px; font-size: 18px; line-height: 28px; letter-spacing: -0.2px; cursor: pointer; }
.tp-va-check input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--tp-ink); }
.tp-va-check > span { display: flex; flex-direction: column; gap: 2px; }
.tp-va-klein { margin: 0; font-size: 14px; line-height: 20px; letter-spacing: 0; }
.tp-va-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tp-va-fehler { margin: 0; padding: 12px 16px; border: 1px solid #000; background: #FFFFFF; font-size: 18px; line-height: 26px; }
.tp-va-senden { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.tp-va-senden .tp-va-klein { flex: 1 1 260px; }
.tp-va-senden a, .tp-va-klein a { color: inherit !important; }
.tp-va-btn { font: inherit; font-feature-settings: "ss04", "ss05", "ss06"; font-size: 24px; letter-spacing: -0.5px; height: 64px; padding: 0 28px; background: var(--tp-ink); color: #FFFFFF; border: 0; border-radius: 0; cursor: pointer; }
.tp-va-btn:hover { background: #000; }
.tp-va-btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.tp-va-btn:disabled { opacity: .6; cursor: wait; }
.tp-va-demo { color: #5E5E5E; }
.tp-va-danke { display: flex; flex-direction: column; gap: 22px; max-width: 760px; outline: none; }
.tp-va-danke p { margin: 0; }
.tp-va-danke-titel { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.tp-va-danke > p:not([class]) { font-size: clamp(1.05rem, 1.55vw, 24px); line-height: 1.42; letter-spacing: -0.02em; }
.tp-va-danke-nl { border-top: var(--tp-line); padding-top: 14px; font-size: 18px !important; line-height: 28px !important; }
.tp-va-links { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 24px; line-height: 34px; letter-spacing: -0.5px; }
.tp-va-links a { color: inherit !important; }

/* Weitere Veranstaltungen (Teaser wie «Mehr im Magazin») */
.tp-va-mehr-kopf { display: flex; justify-content: space-between; gap: 16px; }
.tp-va-teaser-datum { margin: 0 0 6px !important; font-size: 18px !important; line-height: 28px !important; }
.tp-va-keine { margin: 0; font-size: 18px; line-height: 28px; }
/* Veranstaltungslisten: Ausrichtung und 3:2-Bildfeld wie alle Teaser (Abschnitt 13); Titel reserviert zwei Zeilen. */
.tp-va-liste .wp-block-post-title { min-height: 2.46em; }

@media (max-width: 1099px) {
  .tp-va-kopf { padding: 28px var(--tp-mag-l) 48px; }
  .tp-va-anm-kopf h2 { font-size: 26px !important; line-height: 30px !important; }
}
@media (max-width: 781px) {
  .tp-va-kopf { padding: 16px var(--tp-mag-l) 36px; }
  .tp-va h1.tp-va-titel { margin-top: 14px !important; }
  .tp-va-lead { margin-top: 16px !important; }
  .tp-va-lead, .tp-va-lead p { font-size: 20px; line-height: 26px; }
  dl.tp-va-eckdaten { margin-top: 28px !important; }
  dl.tp-va-eckdaten dd { font-size: 20px; line-height: 26px; letter-spacing: -0.3px; }
  .tp-va-anm { grid-template-columns: minmax(0, 1fr); }
  .tp-va-anm::before { display: none; }
  .tp-va-anm-kopf { padding: 16px var(--tp-mag-l) 0; }
  .tp-va-anm-kopf h2 { font-size: 22px !important; line-height: 26px !important; }
  .tp-va-anm-kopf p { margin-top: 12px; font-size: 16px; line-height: 24px; }
  .tp-va-anm-inhalt { padding: 24px var(--tp-mag-l) 64px; }
  .tp-va-btn { width: 100%; }
  .tp-va-links { font-size: 20px; line-height: 28px; }
  .tp-va-teaser-datum { font-size: 15px !important; line-height: 22px !important; grid-column: 2; }
  .tp-va-liste .wp-block-post-title { min-height: 0; }
}
.tp-va-vergangen-titel { margin: 0 !important; padding: 15px var(--tp-mag-l) 14px; border-top: var(--tp-line); border-bottom: var(--tp-line); font-size: 16px !important; line-height: 20px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }


/* --------------------------------------------------------------------------
   15. Weltkarte der Aufnahmeorte (Klasse tp-karte, Skript assets/karte.js, ab 0.6.0)
       Abschnitt: Gruppe tp-sec mit Titel (tp-h) und einem HTML-Block <div class="tp-karte"></div>.
       Das Skript füllt den Block mit Einleitung, Filtern, Karte, Ortsansicht und Listen.
   -------------------------------------------------------------------------- */
.tp-karte { --tpk-mute: #6E6E6A; --tpk-line: #CFCFCA; --tpk-land: #E1E1DD; --tpk-hover: #E8E8E4; --tpk-panel: #FFFFFF; font-feature-settings: "ss04", "ss06"; }
.tp-karte-lead { margin: 0 !important; }
.tp-karte-hinweis { margin: 14px 0 0 !important; font-size: 16px !important; line-height: 22px !important; color: var(--tpk-mute); }

/* Filter */
.tp-karte-filter { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 28px; padding: 14px 0 18px; border-top: 1px solid var(--tpk-line); }
.tp-karte-gruppe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp-karte-lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tpk-mute); margin-right: 6px; }
.tp-karte-chip { font: inherit; font-size: 14px !important; line-height: 1.2 !important; letter-spacing: 0; background: none; color: var(--tp-ink); border: 1px solid var(--tpk-line); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .15s, color .15s; }
.tp-karte-chip:hover { background: var(--tpk-hover); }
.tp-karte-chip[aria-pressed="true"] { background: var(--tp-ink); color: var(--tp-ground); border-color: var(--tp-ink); }
.tp-karte-suche { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tp-karte-suche input { font: inherit; font-size: 14px; background: transparent; color: var(--tp-ink); border: 0; border-bottom: 1px solid var(--tpk-line); border-radius: 0; padding: 6px 0; width: 200px; max-width: 50vw; }
.tp-karte-suche input::placeholder { color: var(--tpk-mute); }
.tp-karte-reset { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: var(--tpk-mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-karte button:focus-visible, .tp-karte input:focus-visible, .tp-karte a:focus-visible { outline: 2px solid var(--tp-ink); outline-offset: 2px; }

/* Karte */
.tp-karte-stage { position: relative; border-top: 1px solid var(--tpk-line); border-bottom: 1px solid var(--tpk-line); background: var(--tp-ground); margin: 0 calc(-1 * var(--tp-pad)); }
.tp-karte-map { position: relative; height: min(78vh, 760px); min-height: 420px; overflow: hidden; touch-action: none; }
.tp-karte-map svg { display: block; width: 100%; height: 100%; cursor: grab; }
.tp-karte-map svg.grabbing { cursor: grabbing; }
.tp-karte-land { fill: var(--tpk-land); stroke: var(--tp-ground); stroke-width: .6; }
.tp-karte-mark { cursor: pointer; }
.tp-karte-mark circle.dot { fill: var(--tp-ink); stroke: var(--tp-ground); stroke-width: 1.5; transition: fill .15s; }
.tp-karte-mark circle.hit { fill: transparent; stroke: none; }
.tp-karte-mark.weak circle.dot { fill: #8A8A86; }
.tp-karte-mark.sel circle.dot { fill: var(--tp-ground); stroke: var(--tp-ink); stroke-width: 2; }
.tp-karte-mark text { fill: var(--tp-ground); font-size: 11px; text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.tp-karte-mark.sel text { fill: var(--tp-ink); }
.tp-karte-map text.lab { fill: var(--tp-ink); font-size: 12px; pointer-events: none; paint-order: stroke; stroke: var(--tp-ground); stroke-width: 3px; stroke-linejoin: round; }
.tp-karte-map text.lab.dim { fill: var(--tpk-mute); }
.tp-karte-zoom { position: absolute; left: var(--tp-pad); bottom: 18px; display: flex; flex-direction: column; gap: 1px; z-index: 3; }
.tp-karte-zoom button { width: 38px; height: 38px; background: var(--tpk-panel); border: 1px solid var(--tpk-line); color: var(--tp-ink); font: inherit; font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 0; }
.tp-karte-zoom button:first-child { border-radius: 6px 6px 0 0; }
.tp-karte-zoom button:last-child { border-radius: 0 0 6px 6px; font-size: 16px; }
.tp-karte-zoom button:hover { background: var(--tpk-hover); }
.tp-karte-tip { position: absolute; z-index: 4; pointer-events: none; background: var(--tp-ink); color: var(--tp-ground); padding: 6px 10px; font-size: 13px; line-height: 1.3; border-radius: 4px; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tp-karte [hidden] { display: none !important; }

/* Ortsansicht (Desktop: rechts, Tablet: schmaler, Mobil: Blatt von unten) */
.tp-karte-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--tpk-panel); border-left: 1px solid var(--tpk-line); transform: translateX(102%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; display: flex; flex-direction: column; z-index: 5; }
.tp-karte-panel.open { transform: none; visibility: visible; transition-delay: 0s; }
.tp-karte-handle { display: none; }
.tp-karte-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--tpk-line); }
.tp-karte-ptitle { margin: 0 !important; font-size: 19px !important; line-height: 1.15 !important; font-weight: 400 !important; letter-spacing: -.01em !important; text-transform: none !important; }
.tp-karte-pmeta { font-size: 13px; line-height: 1.3; color: var(--tpk-mute); margin-top: 3px; }
.tp-karte-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--tp-ink); display: grid; place-items: center; font-size: 22px; line-height: 1; flex: none; margin: -6px -8px 0 0; padding: 0; cursor: pointer; }
.tp-karte-close:hover { background: var(--tpk-hover); }
.tp-karte-panel-body { overflow: auto; padding: 0 18px 20px; scrollbar-width: thin; overscroll-behavior: contain; }
.tp-karte-pgroup { padding: 12px 0 14px; border-bottom: 1px solid var(--tpk-line); }
.tp-karte-pgroup:last-child { border-bottom: 0; }
.tp-karte-who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.tp-karte-name { font-size: 16px; line-height: 1.3; }
.tp-karte-tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tpk-mute); white-space: nowrap; }
.tp-karte-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tp-karte-strip::-webkit-scrollbar { display: none; }
.tp-karte-th { flex: none; height: 88px; background: var(--tpk-hover); position: relative; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 2px; scroll-snap-align: start; cursor: pointer; }
.tp-karte-th img { display: block; height: 100%; width: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tp-karte-th img.ok { opacity: 1; }
.tp-karte-th.on { border-color: var(--tp-ink); }
.tp-karte-nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tpk-mute); font-size: 10px; line-height: 1.2; text-align: center; padding: 4px; }
.tp-karte-big { margin: 8px 0 0 !important; }
.tp-karte-ph { display: block; width: 100%; }
.tp-karte-ph img { display: block; max-width: 100%; max-height: 280px; width: auto; height: auto; opacity: 0; transition: opacity .25s; }
.tp-karte-ph img.ok { opacity: 1; }
.tp-karte-big figcaption { font-size: 13px !important; line-height: 1.4 !important; color: var(--tpk-mute); margin-top: 6px; text-align: left; }
.tp-karte-big figcaption .d { color: var(--tp-ink); }
.tp-karte-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.tp-karte-links a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
.tp-karte-links a:hover { color: var(--tpk-mute) !important; }
.tp-karte-ortname { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tpk-mute); padding: 14px 0 0; }
.tp-karte-ortname + .tp-karte-pgroup { padding-top: 8px; }
.tp-karte-zoomregion { font: inherit; font-size: 13px; line-height: 1.3; background: none; border: 0; padding: 0; margin-top: 6px; color: var(--tp-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-karte-pnote { font-size: 13px; color: var(--tpk-mute); padding: 14px 0; }

/* Listen unter der Karte */
.tp-karte-listen { display: grid; gap: 36px; padding: 36px 0 8px; }
.tp-karte-h4 { font-size: 12px !important; line-height: 1.3 !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--tpk-mute); margin: 0 0 14px !important; font-weight: 400 !important; }
.tp-karte-top { list-style: none; margin: 0 !important; padding: 0 !important; }
.tp-karte-top li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--tpk-line); font-size: 16px; line-height: 1.4; }
.tp-karte-top li:last-child { border-bottom: 0; }
.tp-karte-top button { font: inherit; background: none; border: 0; padding: 0; color: var(--tp-ink); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-karte-top button:hover { color: var(--tpk-mute); }
.tp-karte-top .n { color: var(--tpk-mute); font-variant-numeric: tabular-nums; }
.tp-karte-note { margin: 0 !important; font-size: 15px !important; line-height: 1.5 !important; color: var(--tpk-mute); }

@media (min-width: 900px) {
  .tp-karte-listen { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
}
@media (min-width: 1100px) {
  .tp-karte-stage { margin: 0 calc(-1 * var(--tp-col-right)) 0 calc(-1 * var(--tp-col-left)); }
  .tp-karte-zoom { left: var(--tp-col-left); }
}
/* Tablet */
@media (min-width: 600px) and (max-width: 1023px) {
  .tp-karte-panel { width: min(360px, 60%); }
  .tp-karte-map { height: min(70vh, 700px); }
  .tp-karte-th { height: 80px; }
}
/* Mobil */
@media (max-width: 599px) {
  .tp-karte-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px 18px; padding: 12px var(--tp-pad); margin-left: calc(-1 * var(--tp-pad)); margin-right: calc(-1 * var(--tp-pad)); }
  .tp-karte-filter::-webkit-scrollbar { display: none; }
  .tp-karte-gruppe { flex-wrap: nowrap; }
  .tp-karte-chip { white-space: nowrap; padding: 7px 13px; }
  .tp-karte-suche { margin-left: 0; }
  .tp-karte-suche input { width: 150px; }
  .tp-karte-hinweis { display: none; }
  .tp-karte-map { height: 62vh; min-height: 380px; }
  .tp-karte-zoom { bottom: 14px; }
  .tp-karte-mark circle.dot { stroke-width: 2; }
  .tp-karte-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 56vh; padding-bottom: env(safe-area-inset-bottom, 0px); border-left: 0; border-top: 1px solid var(--tpk-line); transform: translateY(102%); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); transition: transform .28s cubic-bezier(.2, .7, .2, 1), height .25s, visibility 0s .3s; z-index: 10000; }
  .tp-karte-panel.full { height: calc(100vh - 12px); }
  .tp-karte-handle { display: block; width: 100%; padding: 8px 0 2px; cursor: grab; touch-action: none; }
  .tp-karte-handle::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--tpk-line); margin: 0 auto; }
  .tp-karte-panel-head { padding: 6px 16px 10px; }
  .tp-karte-ptitle { font-size: 18px !important; }
  .tp-karte-panel-body { padding: 0 16px 24px; }
  .tp-karte-th { height: 72px; }
  .tp-karte-ph img { max-height: 200px; }
  .tp-karte-listen { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .tp-karte * { transition: none !important; } }
