/* ==========================================================================
   Topos – Frontend-Designsystem (Vereinsfeste.com)
   Mobile First · Breakpoints: 768 (Tablet) · 1024 (Desktop) · 1440 (groß)
   Alles lokal: Schrift, Icons (Inline-SVG), Karten-Kacheln über den eigenen Server.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tp-primary: #E83348;
  --tp-primary-hover: #D2263B;
  --tp-primary-soft: #FDECEE;
  --tp-primary-text: #C31F34;
  --tp-text: #222936;
  --tp-text-2: #3F4654;
  --tp-muted: #6B7280;
  --tp-bg: #F5F6F8;
  --tp-surface: #FFFFFF;
  --tp-surface-2: #F9FAFB;
  --tp-border: #E5E7EB;
  --tp-border-strong: #D1D5DB;
  --tp-success: #15803D;
  --tp-success-soft: #DCFCE7;

  --tp-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tp-radius-sm: 8px;
  --tp-radius: 12px;
  --tp-radius-lg: 16px;
  --tp-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --tp-shadow: 0 2px 8px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --tp-shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.16), 0 2px 8px rgba(17, 24, 39, 0.06);
  --tp-fast: 160ms;
  --tp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --tp-header-h: 56px;
  --tp-launch-h: 0px;
  --tp-nav-h: 64px;
  --tp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --tp-pad: 16px;
  --tp-max: 1440px;
}
@media (min-width: 1024px) { :root { --tp-header-h: 64px; --tp-pad: 24px; } }

/* --- Basis ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tp-header-h) + 8px); }
body.tp {
  margin: 0; min-height: 100vh;
  background: var(--tp-bg); color: var(--tp-text);
  font-family: var(--tp-font); font-size: 15px; line-height: 1.5;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
body.tp-has-launch { --tp-launch-h: 64px; }
@media (min-width: 768px) { body.tp-has-launch { --tp-launch-h: 42px; } }
.tp-lock, .tp-lock body { overflow: hidden; }
:where(.tp) a { color: inherit; }
:where(.tp) :where(h1, h2, h3) { margin: 0; line-height: 1.25; letter-spacing: -0.015em; color: var(--tp-text); }
:where(.tp) img { max-width: 100%; }
:where(.tp) button { font: inherit; color: inherit; }
[x-cloak], [hidden] { display: none !important; }
.tp :focus-visible { outline: 2px solid var(--tp-primary); outline-offset: 2px; border-radius: 6px; }
:where(.tp) .icon { width: 18px; height: 18px; flex-shrink: 0; }
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--tp-surface); border-radius: var(--tp-radius-sm); box-shadow: var(--tp-shadow-lg); }
.skip-link:focus { left: 8px; }
.tp-muted { color: var(--tp-muted); }

/* --- Buttons & Chips --------------------------------------------------------- */

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--tp-border); border-radius: var(--tp-radius);
  background: var(--tp-surface); color: var(--tp-text); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--tp-fast), border-color var(--tp-fast), color var(--tp-fast), transform var(--tp-fast);
}
.tp-btn:hover { background: var(--tp-surface-2); border-color: var(--tp-border-strong); }
.tp-btn:active { transform: scale(0.98); }
.tp-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.tp-btn-primary { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-btn-primary:hover { background: var(--tp-primary-hover); border-color: var(--tp-primary-hover); }
.tp-btn-ghost { background: transparent; border-color: transparent; }
.tp-btn-ghost:hover { background: rgba(17, 24, 39, 0.05); border-color: transparent; }
.tp-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.tp-btn-block { width: 100%; }
.tp-icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--tp-text); cursor: pointer; text-decoration: none;
  transition: background-color var(--tp-fast);
}
.tp-icon-btn:hover { background: rgba(17, 24, 39, 0.06); }
.tp-icon-btn.is-surface { background: var(--tp-surface); border: 1px solid var(--tp-border); box-shadow: var(--tp-shadow-sm); }

.tp-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  min-height: 36px; padding: 0 14px; border: 1px solid var(--tp-border); border-radius: 999px;
  background: var(--tp-surface); color: var(--tp-text-2); font-size: 14px; font-weight: 550;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--tp-fast), border-color var(--tp-fast), color var(--tp-fast);
}
.tp-chip:hover { border-color: var(--tp-border-strong); }
.tp-chip[aria-pressed="true"], .tp-chip.is-active { background: var(--tp-primary-soft); border-color: transparent; color: var(--tp-primary-text); }
.tp-chip .icon { width: 16px; height: 16px; }
.tp-chip-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tp-primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.tp-chip-remove { min-height: 32px; padding: 0 8px 0 12px; background: var(--tp-surface); }
.tp-chip-remove .icon { width: 14px; height: 14px; color: var(--tp-muted); }
@media (min-width: 1024px) { .tp-chip { min-height: 34px; } }
.tp-chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; }
.tp-chip-row::-webkit-scrollbar { display: none; }
.tp-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Formularelemente -------------------------------------------------------- */

.tp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-label { font-size: 13px; font-weight: 600; color: var(--tp-text-2); }
.tp-label .req { color: var(--tp-primary); margin-left: 2px; }
.tp-input, .tp-select, .tp-textarea {
  width: 100%; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--tp-border-strong); border-radius: var(--tp-radius);
  background: var(--tp-surface); color: var(--tp-text); font: inherit; font-size: 16px;
  transition: border-color var(--tp-fast), box-shadow var(--tp-fast);
}
.tp-textarea { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.tp-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.tp-input:focus, .tp-select:focus, .tp-textarea:focus { outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(232, 51, 72, 0.16); }
.tp-input[aria-invalid="true"], .tp-select[aria-invalid="true"], .tp-textarea[aria-invalid="true"] { border-color: var(--tp-primary); }
.tp-help { font-size: 13px; color: var(--tp-muted); margin: 0; }
.tp-error { font-size: 13px; color: var(--tp-primary-text); font-weight: 550; margin: 0; }
.tp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Suchfeld */
.tp-search { position: relative; display: flex; align-items: center; width: 100%; }
.tp-search > .icon { position: absolute; left: 14px; color: var(--tp-muted); pointer-events: none; }
.tp-search .tp-input { min-height: 48px; padding-left: 44px; padding-right: 44px; border-color: var(--tp-border); background: var(--tp-surface); box-shadow: var(--tp-shadow-sm); }
.tp-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.tp-search .tp-search-clear { position: absolute; right: 2px; }
@media (min-width: 1024px) { .tp-search .tp-input { min-height: 42px; background: var(--tp-surface-2); box-shadow: none; } }

/* --- Header ------------------------------------------------------------------ */

.tp-launch-bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--tp-launch-h); padding: 6px var(--tp-pad);
  display: grid; place-items: center;
  background: var(--tp-primary); color: var(--tp-surface);
}
.tp-launch-bar-inner { max-width: var(--tp-max); display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12.5px; line-height: 1.35; }
.tp-launch-bar-inner strong { color: inherit; }
.tp-launch-bar .icon { width: 17px; height: 17px; }
@media (min-width: 768px) { .tp-launch-bar-inner { font-size: 14px; } }

.tp-header {
  position: sticky; top: var(--tp-launch-h); z-index: 40;
  height: var(--tp-header-h);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tp-border);
}
.tp-header-inner { height: 100%; max-width: var(--tp-max); margin: 0 auto; padding: 0 8px 0 var(--tp-pad); display: flex; align-items: center; gap: 12px; }
.tp-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.tp-logo img { height: 26px; width: auto; display: block; }
.tp-nav { display: none; gap: 2px; }
.tp-nav a {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  color: var(--tp-text-2); text-decoration: none; font-weight: 550; font-size: 15px;
}
.tp-nav a:hover { background: rgba(17, 24, 39, 0.05); color: var(--tp-text); }
.tp-nav a[aria-current="page"] { color: var(--tp-primary-text); background: var(--tp-primary-soft); }
.tp-header-search { display: none; flex: 1; max-width: 460px; margin-left: auto; }
.tp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tp-header-cta { display: none; }
@media (min-width: 1024px) {
  .tp-header-inner { padding: 0 var(--tp-pad); gap: 20px; }
  .tp-logo img { height: 30px; }
  .tp-nav { display: flex; }
  .tp-header-search { display: block; }
  .tp-header-actions { margin-left: 0; }
  .tp-header-cta { display: inline-flex; }
}

/* --- Untere Navigation (mobil) ---------------------------------------------- */

.tp-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tp-nav-h) + var(--tp-safe-bottom)); padding-bottom: var(--tp-safe-bottom);
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--tp-border);
}
.tp-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--tp-muted); text-decoration: none; font-size: 11.5px; font-weight: 600;
}
.tp-bottom-nav a .icon { width: 22px; height: 22px; }
.tp-bottom-nav a[aria-current="page"] { color: var(--tp-primary); }
.tp-has-nav { padding-bottom: calc(var(--tp-nav-h) + var(--tp-safe-bottom)); }
@media (min-width: 1024px) { .tp-bottom-nav { display: none; } .tp-has-nav { padding-bottom: 0; } }

/* --- Bühne: Liste + Karte ---------------------------------------------------- */

.tp-stage { max-width: var(--tp-max); margin: 0 auto; }
.tp-list-pane { padding: 16px var(--tp-pad) 24px; min-width: 0; }
.tp-map-pane { position: relative; display: none; }
#tp-map { width: 100%; height: 100%; background: #EDEBE6; }

/* Mobil/Tablet: Karte = Vollbild zwischen Header und unterer Navigation */
@media (max-width: 1023px) {
  .view-map .tp-list-pane { display: none; }
  .view-map .tp-map-pane { display: block; position: fixed; top: calc(var(--tp-header-h) + var(--tp-launch-h)); left: 0; right: 0; bottom: calc(var(--tp-nav-h) + var(--tp-safe-bottom)); z-index: 5; }
}
/* Desktop: die Karte ist das Herzstück – Liste 1/3, Karte 2/3 bis an den Rand. Entdecken und Karte sind hier
   dieselbe Ansicht (Menüpunkt Karte ausgeblendet); die Liste zeigt, was im Kartenausschnitt liegt. */
@media (min-width: 1024px) {
  .tp-stage { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(0, 2fr); align-items: start; max-width: none; }
  .tp-list-pane { min-height: calc(100vh - var(--tp-header-h) - var(--tp-launch-h)); border-right: 1px solid var(--tp-border); }
  .tp-map-pane { display: block; position: sticky; top: calc(var(--tp-header-h) + var(--tp-launch-h)); height: calc(100vh - var(--tp-header-h) - var(--tp-launch-h)); }
  .tp-map-pane .tp-map-frame { height: 100%; position: relative; }
  .tp-nav .tp-nav-map { display: none; }
  @container (min-width: 700px) { .tp-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
}
@media (max-width: 1023px) { .tp-map-frame { height: 100%; position: relative; } }

/* --- Entdecken: Einstieg, Filterleiste --------------------------------------- */

.tp-intro { margin: 4px 0 14px; }
.tp-intro h1 { font-size: 24px; font-weight: 750; }
.tp-intro p { margin: 4px 0 0; color: var(--tp-muted); font-size: 15px; }
@media (min-width: 1024px) { .tp-intro { margin: 8px 0 18px; } .tp-intro h1 { font-size: 28px; } }
.tp-mobile-search { margin-bottom: 12px; }
@media (min-width: 1024px) { .tp-mobile-search { display: none; } }

.tp-filterbar { display: flex; align-items: center; gap: 8px; margin: 0 calc(var(--tp-pad) * -1); padding: 0 var(--tp-pad); }
/* Handy: Leiste zum Wischen bis an den Rand; angeschnittene Chips laufen weich aus statt hart neben „Filter“ */
.tp-filterbar .tp-chip-row {
  flex: 1; min-width: 0; margin: 0 calc(var(--tp-pad) * -1) 0 -8px; padding: 2px var(--tp-pad) 2px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - var(--tp-pad)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - var(--tp-pad)), transparent);
}
.tp-filter-btn { flex-shrink: 0; }
/* Mit Maus lässt sich eine Leiste ohne Balken nicht scrollen: dort und am Desktop umbrechen, alles sichtbar */
@media (min-width: 1024px), (hover: hover) and (pointer: fine) {
  .tp-filterbar { align-items: flex-start; }
  .tp-filterbar .tp-chip-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1024px) { .tp-filterbar { margin: 0; padding: 0; } .tp-filter-btn { order: 99; } }

.tp-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.tp-link-btn { border: 0; background: none; padding: 6px 4px; color: var(--tp-primary-text); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.tp-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.tp-results-head h2 { font-size: 16px; font-weight: 700; }
.tp-results-head span { font-size: 13px; color: var(--tp-muted); }
.tp-results-head .tp-link-btn { margin-left: 8px; padding: 0; font-size: inherit; }

/* Orte aus der Suche */
.tp-places { margin: 12px 0 0; padding: 6px; background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius); list-style: none; }
.tp-places-title { padding: 6px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tp-muted); }
.tp-places button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; }
.tp-places button:hover { background: var(--tp-surface-2); }
.tp-places button .icon { color: var(--tp-primary); }
.tp-places small { display: block; color: var(--tp-muted); font-size: 13px; }

/* --- Eventkarte ------------------------------------------------------------- */

.tp-list-pane, .tp-page { container-type: inline-size; }
.tp-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@container (min-width: 760px) { .tp-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-card {
  position: relative; display: flex; gap: 14px; padding: 12px;
  background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm); text-decoration: none; color: inherit;
  transition: border-color var(--tp-fast), box-shadow var(--tp-fast), transform var(--tp-fast);
}
.tp-card:hover { border-color: var(--tp-border-strong); box-shadow: var(--tp-shadow); }
.tp-card:active { transform: scale(0.995); }
.tp-card.is-active { border-color: var(--tp-primary); box-shadow: 0 0 0 1px var(--tp-primary); }
.tp-card.is-sponsored { border-color: #F7C5CC; background: linear-gradient(0deg, #FFFBFB, #FFFBFB); }
.tp-card-visual {
  position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px;
  display: grid; place-items: center; color: var(--cat, var(--tp-primary)); color: color-mix(in srgb, var(--cat, var(--tp-primary)) 72%, #222936);
  background: linear-gradient(140deg, color-mix(in srgb, var(--cat, var(--tp-primary)) 16%, #fff), color-mix(in srgb, var(--cat, var(--tp-primary)) 6%, #fff));
}
.tp-card-visual .icon { width: 28px; height: 28px; }
.tp-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tp-card-date { font-size: 13px; font-weight: 700; color: var(--tp-primary-text); letter-spacing: 0.01em; }
.tp-card-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--tp-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tp-card-meta { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 14px; color: var(--tp-muted); }
.tp-card-meta .icon { width: 15px; height: 15px; }
.tp-card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tp-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--tp-surface-2); border: 1px solid var(--tp-border); font-size: 12.5px; font-weight: 550; color: var(--tp-text-2); white-space: nowrap; }
.tp-tag.is-category { background: color-mix(in srgb, var(--cat, var(--tp-primary)) 10%, #fff); border-color: transparent; color: color-mix(in srgb, var(--cat, var(--tp-primary)) 70%, #222936); }
.tp-tag.is-ad { background: transparent; border-color: transparent; padding: 0 2px; color: var(--tp-muted); font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; }
@media (min-width: 768px) { .tp-card-visual { width: 76px; height: 76px; } }
@media (min-width: 1024px) { .tp-card-visual { width: 84px; height: 84px; } }

.tp-more { display: flex; justify-content: center; margin-top: 16px; }

/* Zustände */
.tp-empty { padding: 36px 20px; text-align: center; background: var(--tp-surface); border: 1px dashed var(--tp-border-strong); border-radius: var(--tp-radius-lg); color: var(--tp-muted); }
.tp-empty .icon { width: 32px; height: 32px; color: var(--tp-border-strong); margin-bottom: 6px; }
.tp-empty strong { display: block; color: var(--tp-text); font-size: 16px; margin-bottom: 4px; }
.tp-empty .tp-btn { margin-top: 14px; }
.tp-skeleton-card { display: flex; gap: 14px; padding: 12px; background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); }
.tp-skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #EEF0F3, #F6F7F9, #EEF0F3); background-size: 200% 100%; animation: tp-shimmer 1.2s infinite; }
@keyframes tp-shimmer { to { background-position: -200% 0; } }

.tp-list-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--tp-border); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--tp-muted); }
.tp-list-footer a { text-decoration: none; }
.tp-list-footer a:hover { color: var(--tp-text); }

/* --- Karte: Marker, Cluster, Steuerung, Vorschau ------------------------------ */

.tp-marker-wrap { background: none; border: 0; }
.tp-marker {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--cat, var(--tp-primary)); color: color-mix(in srgb, var(--cat, var(--tp-primary)) 72%, #222936);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(17, 24, 39, 0.28), 0 0 0 1px rgba(17, 24, 39, 0.06);
  transition: transform var(--tp-fast) var(--tp-ease), box-shadow var(--tp-fast);
}
.tp-marker::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; box-shadow: 2px 2px 3px rgba(17, 24, 39, 0.15); z-index: -1; }
.tp-marker .icon { width: 18px; height: 18px; }
.tp-marker.is-sponsored { box-shadow: 0 2px 6px rgba(17, 24, 39, 0.28), 0 0 0 2px var(--tp-primary); }
.tp-marker.is-selected { transform: scale(1.18) translateY(-3px); background: var(--tp-primary); color: #fff; border-color: #fff; z-index: 1000; }
.tp-marker.is-selected::after { background: var(--tp-primary); }
.tp-cluster { background: none; }
.tp-cluster span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--tp-primary); color: #fff; font-weight: 750; font-size: 14px;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(232, 51, 72, 0.35);
}
.tp .leaflet-container { font-family: var(--tp-font); }
@media (max-width: 1023px) { .tp .leaflet-control-zoom { display: none; } .tp-map-tools { bottom: 28px; } }
.tp .leaflet-control-zoom { border: 0 !important; box-shadow: var(--tp-shadow) !important; border-radius: 12px !important; overflow: hidden; }
.tp .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 38px !important; color: var(--tp-text) !important; border-color: var(--tp-border) !important; font-size: 20px !important; }
.tp .leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, 0.85) !important; border-radius: 8px 0 0 0; }
.tp .leaflet-control-attribution a { color: var(--tp-muted); }

.tp-map-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.tp-map-top > * { pointer-events: auto; }
.tp-map-top .tp-chip { box-shadow: var(--tp-shadow); }
.tp-map-top .tp-chip-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
@media (min-width: 1024px) { .tp-map-top { display: none; } }
.tp-map-tools { position: absolute; right: 10px; bottom: 104px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.tp-map-status { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; padding: 8px 14px; border-radius: 999px; background: var(--tp-surface); box-shadow: var(--tp-shadow); font-size: 13px; font-weight: 600; }
@media (max-width: 1023px) { .tp-map-status { top: 116px; } }

/* Ausgewähltes Fest auf der Karte: mobil Bottom Sheet, Desktop schwebende Karte */
.tp-map-preview { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 600; }
.tp-map-preview-panel { padding: 8px; background: var(--tp-surface); border-radius: 18px; box-shadow: var(--tp-shadow-lg); }
.tp-map-preview .tp-card { border: 0; box-shadow: none; padding: 4px 4px 8px; background: transparent; }
.tp-map-preview-actions { display: flex; gap: 8px; }
.tp-map-preview-close { position: absolute; top: -14px; right: -6px; z-index: 2; }
@media (min-width: 1024px) { .tp-map-preview { left: 16px; right: auto; bottom: 16px; width: 380px; } }

/* --- Bottom Sheets / Seitenpanel --------------------------------------------- */

.tp-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(17, 24, 39, 0.4); }
.tp-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--tp-surface); border-radius: 20px 20px 0 0; box-shadow: var(--tp-shadow-lg);
}
.tp-sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--tp-border-strong); margin: 8px auto 0; }
.tp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--tp-border); }
.tp-sheet-head h2 { font-size: 18px; font-weight: 750; }
.tp-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 16px; }
.tp-sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + var(--tp-safe-bottom)); border-top: 1px solid var(--tp-border); background: var(--tp-surface); }
.tp-sheet-foot .tp-btn-primary { flex: 1; }
.tp-sheet-section { padding: 16px 0; border-bottom: 1px solid var(--tp-border); }
.tp-sheet-section:last-child { border-bottom: 0; }
.tp-sheet-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-sheet-section h3 small { font-weight: 550; color: var(--tp-muted); font-size: 13px; }
.tp-range-label { margin: 10px 0 0; font-size: 14px; color: var(--tp-text-2); font-weight: 550; }
.tp-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tp-location { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); margin-bottom: 10px; }
.tp-location .icon { color: var(--tp-primary); }
.tp-location strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tp-menu-links { display: flex; flex-direction: column; padding: 8px 0 16px; }
.tp-menu-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--tp-border); text-decoration: none; font-weight: 600; }
.tp-menu-links a .icon { color: var(--tp-muted); }
@media (min-width: 1024px) {
  .tp-sheet { left: auto; top: 0; bottom: 0; width: 440px; max-height: none; border-radius: 0; }
  .tp-sheet-handle { display: none; }
  .tp-sheet-head { padding: 14px 12px 14px 24px; }
  .tp-sheet-body { padding: 4px 24px 16px; }
  .tp-sheet-foot { padding: 14px 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tp-sheet { animation: tp-sheet-up 200ms var(--tp-ease); }
  .tp-backdrop { animation: tp-fade 160ms ease-out; }
  .tp-map-preview { animation: tp-sheet-up 180ms var(--tp-ease); }
  @media (min-width: 1024px) { .tp-sheet { animation-name: tp-sheet-left; } }
}
@keyframes tp-sheet-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes tp-sheet-left { from { transform: translateX(24px); opacity: 0; } }
@keyframes tp-fade { from { opacity: 0; } }

/* --- Kalender ----------------------------------------------------------------- */

.tp-page { max-width: 960px; margin: 0 auto; padding: 16px var(--tp-pad) 32px; }
.tp-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.tp-page-head h1 { font-size: 24px; font-weight: 750; }
.tp-segmented { display: flex; gap: 4px; padding: 4px; background: #ECEEF1; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.tp-segmented::-webkit-scrollbar { display: none; }
.tp-segmented button { flex: 1 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 14px; color: var(--tp-text-2); cursor: pointer; }
.tp-segmented button[aria-pressed="true"] { background: var(--tp-surface); color: var(--tp-text); box-shadow: var(--tp-shadow-sm); }
.tp-day { margin-top: 18px; }
.tp-day-head { position: sticky; top: calc(var(--tp-header-h) + var(--tp-launch-h)); z-index: 2; display: flex; align-items: baseline; gap: 8px; padding: 8px 0; background: var(--tp-bg); }
.tp-day-head h2 { font-size: 15px; font-weight: 750; }
.tp-day-head span { font-size: 13px; color: var(--tp-muted); font-weight: 550; }
.tp-day-head .is-today { color: var(--tp-primary-text); }

/* --- Eintragen ---------------------------------------------------------------- */

.tp-form-card { background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); padding: 20px; box-shadow: var(--tp-shadow-sm); }
.tp-form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .tp-form-grid { grid-template-columns: 1fr 1fr; } .tp-span-2 { grid-column: 1 / -1; } }
.tp-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--tp-radius); background: var(--tp-surface-2); border: 1px solid var(--tp-border); font-size: 14px; color: var(--tp-text-2); }
.tp-notice .icon { color: var(--tp-primary); margin-top: 1px; }
.tp-notice.is-error { background: var(--tp-primary-soft); border-color: transparent; color: var(--tp-primary-text); }
.tp-notice.is-success { background: var(--tp-success-soft); border-color: transparent; color: var(--tp-success); }
.tp-place-results { margin: 6px 0 0; padding: 4px; list-style: none; border: 1px solid var(--tp-border); border-radius: var(--tp-radius); }
.tp-place-results button { width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.tp-place-results button:hover { background: var(--tp-surface-2); }
.tp-place-results small { display: block; color: var(--tp-muted); }
.tp-success { text-align: center; padding: 28px 16px; }
.tp-success .icon { width: 44px; height: 44px; color: var(--tp-success); }
.tp-success h2 { font-size: 20px; margin: 10px 0 6px; }

/* --- Detailseite -------------------------------------------------------------- */

.tp-detail { max-width: 1120px; margin: 0 auto; padding: 12px var(--tp-pad) 32px; }
.tp-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--tp-text-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.tp-detail-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .tp-detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; } }
.tp-panel { background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-lg); box-shadow: var(--tp-shadow-sm); }
.tp-detail-hero {
  height: 168px; border-radius: var(--tp-radius-lg) var(--tp-radius-lg) 0 0; position: relative; overflow: hidden;
  display: grid; place-items: center; color: var(--cat, var(--tp-primary));
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--cat, var(--tp-primary)) 22%, transparent) 0, transparent 46%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--cat, var(--tp-primary)) 18%, transparent) 0, transparent 42%),
    color-mix(in srgb, var(--cat, var(--tp-primary)) 8%, #fff);
}
.tp-detail-hero .icon { width: 64px; height: 64px; stroke-width: 1.5; }
@media (min-width: 1024px) { .tp-detail-hero { height: 220px; } .tp-detail-hero .icon { width: 84px; height: 84px; } }
.tp-detail-body { padding: 18px 18px 22px; }
@media (min-width: 1024px) { .tp-detail-body { padding: 24px 28px 28px; } }
.tp-detail-title { font-size: 26px; font-weight: 800; margin: 10px 0 14px; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .tp-detail-title { font-size: 32px; } }
.tp-facts { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.tp-facts li { display: flex; gap: 12px; align-items: flex-start; }
.tp-fact-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--tp-primary-soft); color: var(--tp-primary); display: grid; place-items: center; flex-shrink: 0; }
.tp-facts strong { display: block; font-weight: 650; }
.tp-facts span { color: var(--tp-muted); font-size: 14px; }
.tp-section-title { font-size: 16px; font-weight: 750; margin: 22px 0 10px; }
.tp-description { color: var(--tp-text-2); line-height: 1.65; overflow-wrap: anywhere; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tp-mini-map { height: 220px; border-radius: var(--tp-radius-lg) var(--tp-radius-lg) 0 0; overflow: hidden; background: #E8ECEF; }
.tp-aside-body { padding: 14px 16px 16px; }
.tp-aside-body address { font-style: normal; color: var(--tp-text-2); margin-bottom: 12px; }
.tp-nearby { margin-top: 16px; }
.tp-nearby h2 { font-size: 16px; font-weight: 750; margin: 0 0 10px; }
.tp-sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 10px var(--tp-pad) calc(10px + var(--tp-safe-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--tp-border); }
.tp-sticky-actions .tp-btn-primary { flex: 1; }
.tp-has-sticky { padding-bottom: calc(72px + var(--tp-safe-bottom)); }
@media (min-width: 1024px) { .tp-sticky-actions { display: none; } .tp-has-sticky { padding-bottom: 0; } }

/* --- Textseiten & Footer -------------------------------------------------------- */

.tp-content { max-width: 760px; margin: 0 auto; padding: 16px var(--tp-pad) 40px; }
.tp-content-card { padding: 22px; }
@media (min-width: 1024px) { .tp-content-card { padding: 32px 36px; } }
.tp-content h1 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.tp-subnav { display: flex; gap: 6px; margin-bottom: 14px; }
.tp-prose { color: var(--tp-text-2); line-height: 1.7; overflow-wrap: anywhere; }
.tp-prose > :first-child { margin-top: 0; }
.tp-prose h2 { font-size: 20px; margin: 1.6em 0 0.5em; }
.tp-prose h3 { font-size: 17px; margin: 1.4em 0 0.4em; }
.tp-prose h4, .tp-prose h5, .tp-prose h6 { font-size: 15px; margin: 1.2em 0 0.3em; }
.tp-prose p, .tp-prose ul, .tp-prose ol, .tp-prose blockquote, .tp-prose pre { margin: 0 0 1em; }
.tp-prose ul, .tp-prose ol { padding-left: 1.4em; }
.tp-prose a { color: var(--tp-primary-text); text-underline-offset: 2px; }
.tp-prose blockquote { padding-left: 1em; border-left: 3px solid var(--tp-border); color: var(--tp-muted); }
.tp-prose code { padding: 1px 5px; border-radius: 4px; background: var(--tp-surface-2); font-size: 0.9em; }
.tp-prose pre { padding: 12px; border-radius: 10px; background: var(--tp-surface-2); overflow-x: auto; }
.tp-prose hr { border: 0; border-top: 1px solid var(--tp-border); margin: 1.6em 0; }
.tp-footer { border-top: 1px solid var(--tp-border); background: var(--tp-surface); }
.tp-footer-inner { max-width: var(--tp-max); margin: 0 auto; padding: 18px var(--tp-pad); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--tp-muted); }
.tp-footer-inner a { text-decoration: none; }
.tp-footer-inner a:hover { color: var(--tp-text); }
.tp-footer-inner .tp-footer-copy { margin-right: auto; }

/* Toast */
.tp-toast { position: fixed; left: 50%; bottom: calc(var(--tp-nav-h) + var(--tp-safe-bottom) + 12px); transform: translateX(-50%); z-index: 120; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--tp-text); color: #fff; font-size: 14px; font-weight: 550; box-shadow: var(--tp-shadow-lg); }
@media (min-width: 1024px) { .tp-toast { bottom: 24px; } }

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

/* --- Ergänzungen: Hilfsklassen statt Inline-Styles --------------------------- */

.tp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tp-mt-8 { margin-top: 8px; }
.tp-mt-10 { margin-top: 10px; }
.tp-mb-10 { margin-bottom: 10px; }
.tp-actions.is-center { justify-content: center; }
.tp-places-hint { padding: 8px 10px; }
.tp-skel-visual { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; }
.tp-skel-lines { flex: 1; display: grid; gap: 8px; align-content: start; padding-top: 4px; }
.tp-skel.is-short { width: 40%; height: 12px; }
.tp-skel.is-title { width: 80%; height: 16px; }
.tp-skel.is-mid { width: 55%; height: 12px; }
.tp-card-date .tp-card-rel { color: var(--tp-muted); font-weight: 550; }
.tp-marker.is-hover { transform: scale(1.15) translateY(-2px); }
.tp-menu-btn { margin-right: -4px; }
@media (min-width: 1024px) { .tp-menu-btn { display: none; } }
.tp-inline { display: flex; gap: 8px; }
.tp-inline .tp-input { flex: 1; min-width: 0; }
.tp-ok { display: flex; align-items: center; gap: 6px; color: var(--tp-success); font-weight: 600; }
.tp-ok .icon { width: 16px; height: 16px; }
.tp-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tp-fieldset legend { padding: 0; margin-bottom: 8px; }
.tp-form-note { margin-top: 16px; }
.tp-form-note a { color: var(--tp-primary-text); }
.tp-tag-lg { height: 32px; padding: 0 12px; font-size: 14px; }
.tp-detail .tp-facts a { color: var(--tp-primary-text); font-weight: 600; text-decoration: none; }
.tp-detail .tp-facts a:hover { text-decoration: underline; }
.tp-actions-desktop { display: none; }
@media (min-width: 1024px) { .tp-actions-desktop { display: flex; } }
.tp-subnav a { text-decoration: none; }
.tp-subnav a[aria-current="page"] { background: var(--tp-primary-soft); border-color: transparent; color: var(--tp-primary-text); }
.tp-main { min-width: 0; }
.tp-footer-inner, .tp-list-footer { flex-wrap: wrap; }

/* Blöcke aus plugin-page (Seitenbaum) */
.tp-prose .page-block + .page-block { margin-top: 1.2em; }

/* Seiten aus dem Seitenbaum: Bereiche oben · links | mitte | rechts · unten */
.tp-content:has(.tp-layout) { max-width: 1240px; }
.tp-layout { display: grid; gap: 16px; }
.tp-area-top, .tp-area-bottom { margin: 16px 0; }
@media (min-width: 1024px) {
  .tp-layout.has-right { grid-template-columns: minmax(0, 1fr) 320px; }
  .tp-layout.has-left { grid-template-columns: 300px minmax(0, 1fr); }
  .tp-layout.has-left.has-right { grid-template-columns: 280px minmax(0, 1fr) 300px; }
}
@media (max-width: 1023px) { .tp-area-main { order: -1; } }

/* --- Große Bildschirme: den Platz nutzen, alles größer und luftiger ------------------ */
@container (min-width: 1180px) { .tp-events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  :root { --tp-header-h: 76px; --tp-pad: 32px; --tp-max: 2200px; }
  body.tp { font-size: 16px; }
  .tp-nav .icon, .tp-btn .icon { width: 20px; height: 20px; }
  .tp-logo img { height: 36px; }
  .tp-nav { gap: 4px; }
  .tp-nav a { height: 46px; padding: 0 18px; font-size: 16px; border-radius: 12px; }
  .tp-header-search { max-width: 620px; }
  .tp-search > .icon { left: 16px; }
  .tp-search .tp-input { min-height: 50px; padding-left: 48px; font-size: 16px; }
  .tp-btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
  .tp-btn-sm { min-height: 40px; font-size: 15px; }
  .tp-chip { min-height: 42px; padding: 0 18px; font-size: 15.5px; }
  .tp-chip .icon { width: 18px; height: 18px; }
  .tp-list-pane { padding: 28px var(--tp-pad) 48px; }
  .tp-intro { margin: 4px 0 22px; }
  .tp-intro h1 { font-size: 38px; letter-spacing: -0.02em; }
  .tp-intro p { font-size: 18px; margin-top: 6px; }
  .tp-results-head { margin: 26px 0 14px; }
  .tp-results-head h2 { font-size: 20px; }
  .tp-results-head span { font-size: 15px; }
  .tp-events { gap: 16px; }
  .tp-card { gap: 18px; padding: 16px; border-radius: 18px; }
  .tp-card-visual { width: 108px; height: 108px; border-radius: 14px; }
  .tp-card-visual .icon { width: 40px; height: 40px; }
  .tp-card-date { font-size: 14.5px; }
  .tp-card-title { font-size: 19px; }
  .tp-card-meta { font-size: 15px; }
  .tp-card-meta .icon { width: 16px; height: 16px; }
  .tp-tag { height: 28px; padding: 0 10px; font-size: 13.5px; }
  .tp-tag.is-ad { font-size: 12px; }
  .tp-empty { padding: 48px 24px; font-size: 16px; }
  .tp-list-footer { font-size: 14px; }
  .tp-map-preview { width: 420px; }
  /* Detailseite */
  .tp-detail { max-width: 1440px; padding: 20px var(--tp-pad) 48px; }
  .tp-detail-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; }
  .tp-detail-hero { height: 300px; }
  .tp-detail-hero .icon { width: 104px; height: 104px; }
  .tp-detail-body { padding: 32px 40px 40px; }
  .tp-detail-title { font-size: 42px; }
  .tp-facts { gap: 16px; }
  .tp-facts strong { font-size: 18px; }
  .tp-facts span { font-size: 15px; }
  .tp-fact-icon { width: 50px; height: 50px; border-radius: 14px; }
  .tp-section-title { font-size: 20px; margin-top: 30px; }
  .tp-description { font-size: 17px; }
  .tp-mini-map { height: 320px; }
  .tp-aside-body { padding: 18px 20px 20px; }
  .tp-nearby h2 { font-size: 19px; }
  .tp-back { font-size: 15px; }
  /* Kalender, Eintragen, Textseiten */
  .tp-page { max-width: 1440px; padding: 28px var(--tp-pad) 56px; }
  .tp-page-head h1 { font-size: 36px; }
  .tp-segmented button { min-height: 42px; padding: 0 18px; font-size: 15px; }
  .tp-day-head h2 { font-size: 18px; }
  .view-submit .tp-page, .tp-page:has(.tp-form-card) { max-width: 1040px; }
  .tp-form-card { padding: 32px; }
  .tp-form-grid { gap: 20px; }
  .tp-label { font-size: 14px; }
  .tp-input, .tp-select, .tp-textarea { min-height: 50px; font-size: 16px; }
  .tp-content { max-width: 960px; padding: 32px var(--tp-pad) 56px; }
  .tp-content:has(.tp-layout) { max-width: 1440px; }
  .tp-content h1 { font-size: 38px; }
  .tp-content-card { padding: 40px 48px; }
  .tp-prose { font-size: 17.5px; }
  .tp-footer-inner { font-size: 14px; padding: 22px var(--tp-pad); }
}
@media (min-width: 1680px) {
  :root { --tp-pad: 48px; }
  body.tp { font-size: 17px; }
  .tp-intro h1 { font-size: 42px; }
  .tp-card-title { font-size: 20px; }
}

/* Kurze Seiten: Fußzeile bleibt unten */
body.tp { display: flex; flex-direction: column; }
body.tp > main { flex: 1 0 auto; width: 100%; }

/* Medien aus plugin-mediamanager im Vereinsfeste-Look */
.tp { --dn-media-accent: var(--tp-primary); --dn-media-radius: var(--tp-radius-lg); --dn-media-muted: var(--tp-muted); }
.tp .dn-media-button { border-radius: var(--tp-radius); }
