/* ══════════════════════════════════════════════════════════════
   MFC-Noris Website — Modernes Redesign (Claude Design)

   Fruehere Preview-Ebene unter body.theme-next, inzwischen als
   Produktiv-Theme promoted. Die Klasse theme-next wird von
   applyTheme() auf jede Seite gesetzt — entspricht dem Live-Design.
   ══════════════════════════════════════════════════════════════ */

html:has(body.theme-next) { overflow-x: hidden; }

body.theme-next {
  --tn-font-heading: 'Roboto', sans-serif;
  --tn-font-body: 'Open Sans', sans-serif;
  --tn-font-serif: 'Roboto Serif', 'Roboto', serif;
  --tn-surface: #faf9f6;
  --tn-card: #ffffff;
  --tn-navy: #1e4d8c;
  --tn-navy-deep: #153a6b;
  --tn-navy-darker: #0d2347;
  --tn-orange: #ff8c42;
  --tn-orange-deep: #e86d1f;
  --tn-text: #1a2332;
  --tn-text-muted: #5a6373;
  --tn-border: rgba(30, 77, 140, 0.08);
  background: var(--tn-surface);
  font-family: var(--tn-font-body);
  overflow-x: hidden;
}

/* Flex-Children sollen nicht am Intrinsic-Content-Minimum kleben —
   sonst drueckt z.B. der OSM-iframe die Column-Flexbox ueber den
   Viewport hinaus. */
body.theme-next .tn-wrap > * { min-width: 0; max-width: 100%; }

/* ── Hide existing chrome, let the theme-next chrome take over ── */
body.theme-next .site-header { display: none; }
body.theme-next .site-footer { display: none; }

/* Preview-Theme greift via [class*="-hero"] auf alle Elemente mit "-hero"
   im Klassennamen zu (blauer Gradient + weisse Schrift). Kinder-Elemente
   zuruecksetzen — .tn-hero selbst behaelt seinen spezifischen Background
   aus der Regel weiter unten (gleiche Spezifitaet, spaeter in Source). */
body.theme-next [class*="tn-hero-"],
body.theme-next .tn-cat-hero-inner {
  background: none;
  color: inherit;
}
body.theme-next .site-main {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.theme-next .site-main > * { max-width: none; }

/* Subpages (not the next landing) get safe padding to clear the fixed pill header */
body.theme-next:not(.layout-next-landing) .site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}

/* ───────── Topbar (Pill Header) ───────── */
.next-topbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 1280px;
  z-index: 900;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(30, 77, 140, 0.09);
  border-radius: 999px;
  box-shadow: 0 4px 28px rgba(20, 50, 90, 0.06), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  font-family: var(--tn-font-body);
  min-width: 0;
}
.next-topbar .tn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.next-topbar .tn-brand img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
.next-topbar .tn-brand-text { line-height: 1; }
.next-topbar .tn-brand-name {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--tn-navy-deep);
}
.next-topbar .tn-brand-sub {
  font-size: 0.68rem;
  color: var(--tn-text-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.next-topbar .tn-nav {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  align-items: center;
}
.next-topbar .tn-nav-item { position: relative; }
.next-topbar .tn-nav-item > a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--tn-text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
  display: inline-block;
}
.next-topbar .tn-nav-item > a:hover,
.next-topbar .tn-nav-item.tn-has-dropdown:hover > a {
  color: var(--tn-navy-deep);
  background: rgba(30, 77, 140, 0.06);
}
.next-topbar .tn-nav-item > a.active {
  color: #fff;
  background: var(--tn-navy-deep);
}
.next-topbar .tn-nav-item > a.active::after {
  content: '';
  position: absolute;
  right: 10px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tn-orange);
}

/* Dezenter Orange-Akzent fuer CTA-Nav-Item (Mitfliegen) */
.next-topbar .tn-nav-item > a.tn-nav-cta {
  color: var(--tn-orange-deep);
}
.next-topbar .tn-nav-item > a.tn-nav-cta:hover,
.next-topbar .tn-nav-item.tn-has-dropdown:hover > a.tn-nav-cta {
  background: rgba(255, 140, 66, 0.10);
  color: var(--tn-orange-deep);
}
.next-topbar .tn-nav-item > a.tn-nav-cta.active {
  background: var(--tn-orange);
  color: #fff;
}
.next-topbar .tn-nav-item > a.tn-nav-cta.active::after { background: #fff; }

/* Dropdown-Submenue — erscheint bei Hover auf den Item-Wrapper. */
.next-topbar .tn-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--tn-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(20, 50, 90, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}
.next-topbar .tn-nav-item.tn-has-dropdown:hover .tn-dropdown,
.next-topbar .tn-nav-item.tn-has-dropdown:focus-within .tn-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Unsichtbare Brücke zwischen Parent-Pill und Dropdown, damit der Hover
   nicht abreisst, wenn die Maus im 8px-Gap zwischen beiden ist. */
.next-topbar .tn-nav-item.tn-has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 10px;
  pointer-events: none;
}
.next-topbar .tn-nav-item.tn-has-dropdown:hover::before {
  pointer-events: auto;
}
.next-topbar .tn-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--tn-text);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.next-topbar .tn-dropdown a:hover {
  background: rgba(30, 77, 140, 0.07);
  color: var(--tn-navy-deep);
}
.next-topbar .tn-dropdown a.active {
  color: var(--tn-navy-deep);
  background: rgba(30, 77, 140, 0.10);
  font-weight: 700;
}

.next-topbar .tn-hamburger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  justify-self: end;
  color: var(--tn-navy-deep);
}
.next-topbar .tn-hamburger .material-icons { font-size: 26px; }

/* ───────── Hero ───────── */
body.theme-next .tn-hero {
  position: relative;
  padding: 140px 32px 80px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 140, 66, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(30, 77, 140, 0.08), transparent 55%),
    var(--tn-surface);
}
body.theme-next .tn-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
body.theme-next .tn-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tn-navy-deep);
  background: rgba(30, 77, 140, 0.07);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
body.theme-next .tn-hero-kicker .tn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.22);
  animation: tn-pulse 2.4s ease-in-out infinite;
}
@keyframes tn-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.22); }
  50%      { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.08); }
}
body.theme-next .tn-hero h1 {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--tn-navy-deep);
  margin: 0 0 24px;
}
body.theme-next .tn-hero h1 .tn-accent {
  font-family: var(--tn-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--tn-orange-deep);
  position: relative;
  display: inline-block;
}
body.theme-next .tn-hero h1 .tn-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4%;
  height: 14%;
  background: rgba(255, 140, 66, 0.22);
  border-radius: 4px;
  z-index: -1;
}
body.theme-next .tn-hero-lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--tn-text-muted);
  max-width: 520px;
  margin: 0 0 36px;
}
body.theme-next .tn-hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
body.theme-next .tn-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.15s;
  font-family: var(--tn-font-body);
}
body.theme-next .tn-btn-lg.tn-primary {
  background: var(--tn-navy-deep);
  color: #fff;
  box-shadow: 0 6px 20px rgba(20, 50, 90, 0.25);
}
body.theme-next .tn-btn-lg.tn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(20, 50, 90, 0.35);
}
body.theme-next .tn-btn-lg.tn-ghost {
  background: transparent;
  color: var(--tn-navy-deep);
  border: 1.5px solid rgba(30, 77, 140, 0.18);
}
body.theme-next .tn-btn-lg.tn-ghost:hover {
  background: rgba(30, 77, 140, 0.05);
  border-color: rgba(30, 77, 140, 0.3);
}
body.theme-next .tn-btn-lg .material-icons { font-size: 20px; }

body.theme-next .tn-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(30, 77, 140, 0.1);
}
body.theme-next .tn-hero-stats .tn-stat-n {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--tn-navy-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

/* Zahl mit dezentem Gradient-Shimmer (Navy -> Orange -> Navy),
   der langsam durchlaeuft. Zieht Aufmerksamkeit ohne grell zu wirken. */
body.theme-next .tn-hero-stats .tn-num {
  background: linear-gradient(
    100deg,
    var(--tn-navy-deep) 0%,
    var(--tn-navy-deep) 35%,
    var(--tn-orange) 50%,
    var(--tn-navy-deep) 65%,
    var(--tn-navy-deep) 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tn-stat-shimmer 6s ease-in-out infinite;
}
@keyframes tn-stat-shimmer {
  0%, 15%   { background-position: 0% 50%; }
  45%, 55%  { background-position: 100% 50%; }
  85%, 100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-hero-stats .tn-num {
    animation: none !important;
    color: var(--tn-navy-deep);
    -webkit-text-fill-color: var(--tn-navy-deep);
  }
}
body.theme-next .tn-hero-stats .tn-stat-l {
  font-size: 0.78rem;
  color: var(--tn-text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
body.theme-next .tn-hero-stats .tn-unit {
  font-size: 1rem;
  color: var(--tn-text-muted);
  font-weight: 600;
  margin-left: 2px;
}

body.theme-next .tn-hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  perspective: 1200px;
}
body.theme-next .tn-hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #0a1a2e;
  box-shadow: 0 24px 70px rgba(20, 50, 90, 0.14), 0 2px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
body.theme-next .tn-hero-photo:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 32px 80px rgba(20, 50, 90, 0.18), 0 2px 0 rgba(255, 255, 255, 0.2) inset;
}
body.theme-next .tn-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  display: block;
}
/* Diashow im Hero — alle Slides uebereinander stapeln, per Opacity-Fade umschalten.
   WICHTIG: Selektor mit .tn-hero-photo davor, damit er spezifischer als
   `body.theme-next .tn-hero-photo img { opacity: 0.92 }` weiter oben ist —
   sonst sind alle Slides gleichzeitig sichtbar (Stack-Bug). */
body.theme-next .tn-hero-photo .tn-hero-slides {
  position: absolute;
  inset: 0;
}
body.theme-next .tn-hero-photo .tn-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: block;
}
body.theme-next .tn-hero-photo .tn-hero-slide.tn-hero-slide-active {
  opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-hero-photo .tn-hero-slide { transition: opacity 0.2s; }
}
body.theme-next .tn-hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(20, 50, 90, 0.45) 0%, rgba(20, 50, 90, 0) 55%);
  pointer-events: none;
}
body.theme-next .tn-hero-photo-badge {
  position: absolute;
  top: 20px; right: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
  max-width: 60%;
  z-index: 2;
}
body.theme-next .tn-hero-photo-badge .tn-where {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
body.theme-next .tn-hero-photo-badge .tn-meta {
  font-size: 0.74rem;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
body.theme-next .tn-hero-photo-badge .tn-coord {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
/* Float-Karten: klickbar, einheitliche Größe, halb aus dem Bild ragend */
body.theme-next .tn-float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(20, 50, 90, 0.18);
  border: 1px solid rgba(30, 77, 140, 0.06);
  animation: tn-floaty 7s ease-in-out infinite;
  z-index: 3;
  width: 240px;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: box-shadow 0.25s, border-color 0.2s;
}
body.theme-next .tn-float:hover {
  box-shadow: 0 24px 56px rgba(20, 50, 90, 0.26);
  border-color: rgba(30, 77, 140, 0.18);
}
@keyframes tn-floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
body.theme-next .tn-float .tn-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
body.theme-next .tn-float .tn-icon .material-icons { font-size: 22px; }
body.theme-next .tn-float .tn-float-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
body.theme-next .tn-float .tn-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-orange-deep);
}
body.theme-next .tn-float .tn-main {
  font-family: var(--tn-font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tn-navy-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.theme-next .tn-float .tn-sub {
  font-size: 0.74rem;
  color: var(--tn-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Wetter: halb oben-links aus dem Bild ragen */
body.theme-next .tn-float-weather {
  top: -32px;
  left: -64px;
  transform: rotate(-2deg);
}
body.theme-next .tn-float-weather:hover { transform: rotate(-1deg) translateY(-2px); }
body.theme-next .tn-float-weather .tn-icon {
  background: linear-gradient(135deg, #4fa8d6, #3b7bc8);
}
body.theme-next .tn-float-weather .tn-main {
  font-size: 1.4rem;
  font-weight: 900;
}

/* Event: halb unten-rechts aus dem Bild ragen */
body.theme-next .tn-float-event {
  bottom: -32px;
  right: -64px;
  transform: rotate(2deg);
  animation-delay: -3.5s;
}
body.theme-next .tn-float-event:hover { transform: rotate(1deg) translateY(-2px); }
body.theme-next .tn-float-event .tn-icon {
  background: linear-gradient(135deg, var(--tn-orange), var(--tn-orange-deep));
}
body.theme-next .tn-float-event .tn-main {
  font-size: 0.98rem;
}

/* ───────── Section head ───────── */
body.theme-next .tn-section { padding: 100px 32px; }
body.theme-next .tn-section-head {
  max-width: 1280px;
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
body.theme-next .tn-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tn-orange-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
body.theme-next .tn-eyebrow::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--tn-orange);
}
body.theme-next .tn-section-head h2 {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--tn-navy-deep);
  margin: 0;
  max-width: 620px;
}
body.theme-next .tn-section-side {
  max-width: 380px;
  font-size: 1rem;
  color: var(--tn-text-muted);
  line-height: 1.6;
}
body.theme-next .tn-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

/* ───────── Bento (Aktuelles) ───────── */
body.theme-next .tn-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: row dense;
  gap: 16px;
}
body.theme-next .tn-tile {
  position: relative;
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 22px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
body.theme-next .tn-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(20, 50, 90, 0.12);
}
body.theme-next .tn-tile-icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(30, 77, 140, 0.06);
  color: var(--tn-navy-deep);
  transition: background 0.2s;
}
body.theme-next .tn-tile:hover .tn-tile-icon { background: rgba(30, 77, 140, 0.12); }
body.theme-next .tn-tile-icon .material-icons { font-size: 20px; }
body.theme-next .tn-tile h3 {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--tn-navy-deep);
  margin: 0 0 8px;
}
body.theme-next .tn-tile p {
  font-size: 0.9rem;
  color: var(--tn-text-muted);
  line-height: 1.5;
  margin: 0;
}

body.theme-next .tn-tile-news {
  grid-column: span 4;
  grid-row: span 2;
  background:
    radial-gradient(ellipse 620px 420px at 18% 25%, rgba(100, 165, 235, 0.62), transparent 58%),
    radial-gradient(ellipse 540px 380px at 92% 80%, rgba(59, 123, 200, 0.55), transparent 60%),
    radial-gradient(ellipse 460px 320px at 55% 45%, rgba(140, 195, 245, 0.32), transparent 65%),
    linear-gradient(135deg, #05132d 0%, #0d2a58 45%, #1e4d8c 100%);
  color: #fff;
  padding: 32px;
  position: relative;
  isolation: isolate; /* eigener Stacking-Context — stabilisiert die
                         Blur-+-Animation-Layer, sonst Kompositions-
                         Artefakte (schwarze Fragmente) auf Mobile */
}

/* Blur-Blob driftet durchs Tile und pulsiert in der Groesse.
   Ohne mix-blend-mode: der war Quelle schwarzer Fragmente — stattdessen
   hoehere Alpha-Werte fuer die gleiche Helligkeit. */
body.theme-next .tn-tile-news::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 460px;
  border-radius: 50%;
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, rgba(180, 220, 255, 0.55) 0%, rgba(100, 165, 235, 0.25) 35%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  animation: tn-news-drift 12s ease-in-out infinite;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes tn-news-drift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(460px, 40px) scale(1.22); }
  50%  { transform: translate(560px, 360px) scale(0.92); }
  75%  { transform: translate(-60px, 340px) scale(1.18); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-tile-news::before { animation: none; }
}
/* Alle direkten Textkinder des Tiles ueber den Glow-Layer heben. */
body.theme-next .tn-tile-news > * { position: relative; z-index: 1; }
body.theme-next .tn-tile-news h3 { color: #fff; font-size: 2rem; line-height: 1.15; }
body.theme-next .tn-tile-news p { color: rgba(255, 255, 255, 0.78); font-size: 1rem; max-width: 500px; }
body.theme-next .tn-tile-news .tn-tile-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
/* Einheitlicher „Vereinsnews"-Chip auf allen drei Tile-Typen
   (News, Pinned, Timed): nur Dot + Uppercase-Text, ohne Pille. */
body.theme-next .tn-tile-news .tn-chip,
body.theme-next .tn-tile-pinned .tn-chip,
body.theme-next .tn-tile-timed .tn-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}
body.theme-next .tn-tile-news .tn-chip::before,
body.theme-next .tn-tile-pinned .tn-chip::before,
body.theme-next .tn-tile-timed .tn-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tn-orange);
  box-shadow: 0 0 8px var(--tn-orange);
  margin: 0;
}
body.theme-next .tn-tile-news .tn-tile-news-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative; /* ueber dem Orange-Glow-Pseudo */
  z-index: 1;
}
body.theme-next .tn-tile-news .tn-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tn-orange);
  text-decoration: none;
  animation: tn-more-pulse 2.6s ease-in-out infinite;
}
body.theme-next .tn-tile-news .tn-more .material-icons {
  animation: tn-more-nudge 2.6s ease-in-out infinite;
}
body.theme-next .tn-tile-news .tn-more:hover {
  filter: brightness(1.15);
  animation-play-state: paused;
}
body.theme-next .tn-tile-news .tn-more:hover .material-icons {
  animation-play-state: paused;
  transform: translateX(5px);
}

@keyframes tn-more-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 140, 66, 0); }
  50%      { text-shadow: 0 0 14px rgba(255, 140, 66, 0.65); }
}
@keyframes tn-more-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-tile-news .tn-more,
  body.theme-next .tn-tile-news .tn-more .material-icons {
    animation: none !important;
  }
}
/* "Alle Mitteilungen" / "Alle Veranstaltungen" / "Zur Galerie" Pill oben
   rechts in den grossen farbigen Bento-Tiles. Gemeinsame Regel. */
body.theme-next .tn-tile-news .tn-more-alt,
body.theme-next .tn-tile-event .tn-more-alt,
body.theme-next .tn-tile-photos .tn-more-alt {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
body.theme-next .tn-tile-news .tn-more-alt:hover,
body.theme-next .tn-tile-event .tn-more-alt:hover,
body.theme-next .tn-tile-photos .tn-more-alt:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Pulse + Pfeil-Nudge (wie beim News-CTA) — via Klasse tn-more-alt-anim
   optional anbringen. Nutzt dieselben Keyframes wie der Beitrag-lesen-Link. */
body.theme-next .tn-more-alt-anim {
  animation: tn-more-alt-glow 2.6s ease-in-out infinite;
}
body.theme-next .tn-more-alt-anim .material-icons {
  animation: tn-more-nudge 2.6s ease-in-out infinite;
}
body.theme-next .tn-more-alt-anim:hover,
body.theme-next .tn-more-alt-anim:hover .material-icons {
  animation-play-state: paused;
}
body.theme-next .tn-more-alt-anim:hover .material-icons { transform: translateX(5px); }
@keyframes tn-more-alt-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-more-alt-anim,
  body.theme-next .tn-more-alt-anim .material-icons {
    animation: none !important;
  }
}

/* Platz fuer das Pill oben rechts reservieren, damit H3 und Labels
   nicht drunter rutschen. */
body.theme-next .tn-tile-news .tn-chip,
body.theme-next .tn-tile-news h3,
body.theme-next .tn-tile-news > p,
body.theme-next .tn-tile-event .tn-label,
body.theme-next .tn-tile-event .tn-big-date,
body.theme-next .tn-tile-event .tn-evt-title,
body.theme-next .tn-tile-event .tn-evt-meta {
  padding-right: 170px;
}
body.theme-next .tn-tile-news::after {
  content: '';
  position: absolute;
  right: -120px; bottom: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.3), transparent 65%);
  pointer-events: none;
}

/* Zeitbegrenzte News (aktuell_bis) — Rosa-Violett Mesh */
body.theme-next .tn-tile-timed {
  grid-column: span 6;
  grid-row: span 2;
  color: #fff;
  padding: 32px 36px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 720px 480px at 22% 28%, rgba(244, 180, 220, 0.45), transparent 60%),
    radial-gradient(ellipse 600px 420px at 88% 78%, rgba(186, 138, 212, 0.50), transparent 62%),
    radial-gradient(ellipse 500px 340px at 60% 50%, rgba(207, 161, 222, 0.28), transparent 65%),
    linear-gradient(135deg, #3a1c47 0%, #4d2860 50%, #5e3477 100%);
}
/* Weiches, kreisrundes Glow-Element — identisch zur News-Tile-Mechanik
   (blur + grosse Skalierung), kein Clipping an den Tile-Kanten mehr. */
body.theme-next .tn-tile-timed::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 460px;
  border-radius: 50%;
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, rgba(244, 200, 230, 0.55) 0%, rgba(190, 140, 215, 0.28) 35%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  animation: tn-news-drift 14s ease-in-out infinite;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-tile-timed::before { animation: none; }
}
body.theme-next .tn-tile-timed > * { position: relative; z-index: 1; }
body.theme-next .tn-tile-timed h3 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
body.theme-next .tn-tile-timed p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  max-width: 720px;
  line-height: 1.5;
}
body.theme-next .tn-tile-timed .tn-tile-news-footer {
  margin-top: auto;
  padding-top: 18px;
}
body.theme-next .tn-tile-timed .tn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5c4dd;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
body.theme-next .tn-tile-timed .tn-more .material-icons {
  font-size: 18px;
  transition: transform 0.18s;
}
body.theme-next .tn-tile-timed .tn-more:hover .material-icons { transform: translateX(4px); }

/* Zeit-Badge oben */
body.theme-next .tn-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}
body.theme-next .tn-time-badge .material-icons {
  font-size: 13px;
  color: #f5c4dd;
}


/* Dezenter Stand-Hinweis unter dem Bento */
body.theme-next .tn-bento-stand {
  margin-top: 18px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--tn-text-muted);
  font-style: italic;
  letter-spacing: 0.01em;
}
body.theme-next .tn-bento-stand:empty { display: none; }

/* Angepinnte News — gleicher Look wie News-Tile, kompaktere Größe, Pin-Marker */
body.theme-next .tn-tile-pinned {
  grid-column: span 2;
  grid-row: span 2;
  color: #fff;
  padding: 28px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 480px 320px at 22% 28%, rgba(100, 165, 235, 0.55), transparent 60%),
    radial-gradient(ellipse 420px 300px at 88% 78%, rgba(59, 123, 200, 0.48), transparent 62%),
    linear-gradient(135deg, #07193a 0%, #0d2a58 45%, #1e4d8c 100%);
}
body.theme-next .tn-tile-pinned > * { position: relative; z-index: 1; }
body.theme-next .tn-tile-pinned h3 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
}
body.theme-next .tn-tile-pinned p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-next .tn-tile-pinned .tn-tile-news-footer {
  margin-top: auto;
  padding-top: 16px;
}
body.theme-next .tn-tile-pinned .tn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tn-orange);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
/* Pin-Badge oben links — eigene Zeile, kollidiert nicht mit dem Chip darunter */
body.theme-next .tn-pin-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.22);
  border: 1px solid rgba(255, 140, 66, 0.45);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: fit-content;
}
body.theme-next .tn-pin-badge .material-icons {
  font-size: 12px;
  color: var(--tn-orange);
  transform: rotate(35deg);
}

/* ── EXPERIMENT: aktuelle News-Tile in Grün ─────────────────────
   Pinned-Tile bleibt unverändert Navy. Diesen Block komplett löschen,
   um zur ursprünglichen blauen News-Tile zurückzukehren.            */
body.theme-next .tn-tile-news {
  background:
    radial-gradient(ellipse 620px 420px at 18% 25%, rgba(120, 230, 160, 0.55), transparent 58%),
    radial-gradient(ellipse 540px 380px at 92% 80%, rgba(60, 170, 110, 0.50), transparent 60%),
    radial-gradient(ellipse 460px 320px at 55% 45%, rgba(180, 240, 200, 0.28), transparent 65%),
    linear-gradient(135deg, #052918 0%, #0c3a26 45%, #1d7a52 100%);
}
body.theme-next .tn-tile-news::before {
  background: radial-gradient(circle, rgba(200, 245, 215, 0.55) 0%, rgba(120, 220, 160, 0.25) 35%, transparent 70%);
}
body.theme-next .tn-tile-news::after {
  /* Komplementärer warmer Glow rechts unten — bleibt orange für Akzent */
  background: radial-gradient(circle, rgba(255, 200, 100, 0.28), transparent 65%);
}
body.theme-next .tn-tile-news .tn-more { color: #ffd166; }
body.theme-next .tn-tile-news .tn-more:hover { color: #ffe39b; }
body.theme-next .tn-tile-news .tn-more:hover .material-icons { color: #ffe39b; }
/* ── /EXPERIMENT ───────────────────────────────────────────────── */

body.theme-next .tn-tile-event {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(ellipse 320px 260px at 18% 22%, rgba(255, 200, 140, 0.55), transparent 60%),
    radial-gradient(ellipse 300px 240px at 88% 78%, rgba(210, 80, 30, 0.45), transparent 62%),
    radial-gradient(ellipse 260px 200px at 55% 55%, rgba(255, 170, 100, 0.25), transparent 65%),
    linear-gradient(160deg, var(--tn-orange) 0%, var(--tn-orange-deep) 100%);
  color: #fff;
  padding: 28px;
  position: relative;
  isolation: isolate;
}

/* Warmer Glow-Blob driftet durchs Event-Tile — analog zum News-Tile,
   damit beide gross-farbigen Tiles "leben". */
body.theme-next .tn-tile-event::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 260px;
  border-radius: 50%;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 230, 180, 0.50) 0%, rgba(255, 200, 140, 0.20) 40%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  animation: tn-event-drift 16s ease-in-out infinite;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes tn-event-drift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(200px, 40px) scale(1.15); }
  50%  { transform: translate(240px, 220px) scale(0.92); }
  75%  { transform: translate(-20px, 180px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-tile-event::before { animation: none; }
}
body.theme-next .tn-tile-event > * { position: relative; z-index: 1; }
body.theme-next .tn-tile-event h3 { color: #fff; }
body.theme-next .tn-tile-event .tn-big-date {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  color: #fff;
}
body.theme-next .tn-tile-event .tn-big-date .tn-day {
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
}
body.theme-next .tn-tile-event .tn-big-date .tn-month {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.82;
}
body.theme-next .tn-tile-event .tn-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
body.theme-next .tn-tile-event .tn-evt-title {
  font-family: var(--tn-font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-top: auto;
}
body.theme-next .tn-tile-event .tn-evt-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 6px;
}
body.theme-next .tn-tile-event .tn-tile-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Mobile: Pill oben rechts braucht eigene Zeile — mehr Top-Padding,
   damit Chip/Label nicht unter den Pill rutschen. Steht bewusst NACH
   den Haupt-Tile-Regeln, damit das padding-shorthand von oben nicht
   das padding-top ueberschreibt. */
@media (max-width: 1000px) {
  body.theme-next .tn-tile-news { padding: 58px 32px 32px; }
  body.theme-next .tn-tile-event { padding: 58px 28px 28px; }
  body.theme-next .tn-tile-news .tn-chip,
  body.theme-next .tn-tile-news h3,
  body.theme-next .tn-tile-news > p,
  body.theme-next .tn-tile-event .tn-label,
  body.theme-next .tn-tile-event .tn-big-date,
  body.theme-next .tn-tile-event .tn-evt-title,
  body.theme-next .tn-tile-event .tn-evt-meta {
    padding-right: 0;
  }
  body.theme-next .tn-tile-news .tn-more-alt,
  body.theme-next .tn-tile-event .tn-more-alt {
    top: 14px;
    right: 14px;
  }
}

body.theme-next .tn-tile-weather { grid-column: span 2; background: var(--tn-card); }
body.theme-next .tn-tile-weather .tn-tw-label {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--tn-text-muted);
}
body.theme-next .tn-tile-weather .tn-temp {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 3rem;
  color: var(--tn-navy-deep);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: auto;
}
body.theme-next .tn-tile-weather .tn-temp .tn-deg { color: #4fa8d6; }
body.theme-next .tn-tile-weather .tn-cond {
  font-size: 0.88rem;
  color: var(--tn-text-muted);
  margin-top: 6px;
}
body.theme-next .tn-tile-weather .tn-chips { display: flex; gap: 8px; font-size: 0.72rem; margin-top: 14px; flex-wrap: wrap; }
body.theme-next .tn-tile-weather .tn-wchip {
  padding: 4px 10px;
  background: rgba(79, 168, 214, 0.12);
  color: #3c8eb8;
  border-radius: 999px;
  font-weight: 600;
}

body.theme-next .tn-tile-photos {
  grid-column: span 4;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  background: #0a1a2e;
}
body.theme-next .tn-photo-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
}
body.theme-next .tn-photo-mosaic .tn-p {
  position: relative;
  overflow: hidden;
}
body.theme-next .tn-photo-mosaic .tn-p:first-child { grid-row: span 2; }
body.theme-next .tn-photo-mosaic .tn-p .tn-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.theme-next .tn-photo-mosaic .tn-p:hover .tn-bg { transform: scale(1.04); }
body.theme-next .tn-tile-photos .tn-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 26, 46, 0.85));
  pointer-events: none;
}
body.theme-next .tn-tile-photos .tn-caption {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}
body.theme-next .tn-tile-photos .tn-caption h3 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
body.theme-next .tn-tile-photos .tn-caption p { color: rgba(255, 255, 255, 0.75); }

body.theme-next .tn-tile-member {
  grid-column: span 2;
  background: var(--tn-surface);
  border: 1.5px dashed rgba(245, 165, 36, 0.4);
}
body.theme-next .tn-tile-member h3 { color: var(--tn-navy-deep); }
body.theme-next .tn-tile-member .tn-cta {
  margin-top: auto;
  color: var(--tn-orange-deep);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 4px;
}
body.theme-next .tn-tile-member .tn-tile-icon {
  background: rgba(245, 165, 36, 0.15);
  color: #d9890d;
}

/* ───────── Timeline (Termine) ───────── */
body.theme-next .tn-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
body.theme-next .tn-evt {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
body.theme-next .tn-evt:hover {
  transform: translateY(-2px);
  border-color: var(--tn-orange);
  box-shadow: 0 10px 28px rgba(20, 50, 90, 0.08);
}
body.theme-next .tn-evt-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: 10px 0;
  border-radius: 14px;
  background: rgba(30, 77, 140, 0.06);
}
body.theme-next .tn-evt-date .tn-ed {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--tn-navy-deep);
  letter-spacing: -0.02em;
}
body.theme-next .tn-evt-date .tn-em {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tn-orange-deep);
  margin-top: 4px;
}
body.theme-next .tn-evt-body {
  min-width: 0;
  flex: 1;
}
body.theme-next .tn-evt-body .tn-et {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tn-navy-deep);
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}
body.theme-next .tn-evt-body .tn-esm {
  font-size: 0.85rem;
  color: var(--tn-text-muted);
  margin-top: 4px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}
body.theme-next .tn-evt-body .tn-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.12);
  color: var(--tn-orange-deep);
}

/* ───────── Kategorie-Seiten (Verein / Flugplatz / Mitmachen) ───────── */
body.theme-next .tn-cat-hero {
  position: relative;
  padding: 92px 32px 28px;
  background: var(--tn-surface);
  /* Kein overflow: hidden — dadurch darf der Orange-Glow sanft in
     die naechste Sektion hinueberflossen und dort durch seinen
     eigenen Gradient auslaufen. Horizontal clippt der Body
     ohnehin via overflow-x: hidden. */
}

/* Animierter Orange-Akzent. Der Gradient selbst hat sehr viele
   Opacity-Stops, dadurch faden die Raender weich aus — kein
   filter:blur, keine mask-image noetig (die zusammen auf manchen
   Browsern harte Kanten produzierten). */
body.theme-next .tn-cat-hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 600px;
  top: -200px;
  right: -220px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 140, 66, 0.30) 0%,
    rgba(255, 140, 66, 0.22) 18%,
    rgba(255, 140, 66, 0.14) 32%,
    rgba(255, 140, 66, 0.07) 48%,
    rgba(255, 140, 66, 0.025) 62%,
    transparent 78%
  );
  pointer-events: none;
  animation: tn-cat-drift 14s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  z-index: 0;
}

/* Kuehler Blau-Akzent unten-links als ruhiger Gegenpol, ebenfalls
   mit viel-stop-Gradient fuer weichen Auslauf. */
body.theme-next .tn-cat-hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 480px;
  bottom: -160px;
  left: -180px;
  background: radial-gradient(
    ellipse at center,
    rgba(30, 77, 140, 0.12) 0%,
    rgba(30, 77, 140, 0.06) 30%,
    rgba(30, 77, 140, 0.02) 55%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 0;
}
@keyframes tn-cat-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-120px, 40px) scale(1.1); }
  66%  { transform: translate(50px, 20px) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-cat-hero::before { animation: none; }
}

body.theme-next .tn-cat-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
body.theme-next .tn-cat-hero h1 {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--tn-navy-deep);
  margin: 0 0 14px;
}
body.theme-next .tn-cat-lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--tn-text-muted);
  max-width: 640px;
  margin: 0;
}

body.theme-next .tn-content-card {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 22px;
  padding: 32px 36px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tn-text);
  box-shadow: 0 2px 10px rgba(20, 50, 90, 0.04);
}
body.theme-next .tn-content-card > :first-child { margin-top: 0; }
body.theme-next .tn-content-card > :last-child { margin-bottom: 0; }
body.theme-next .tn-content-card h2,
body.theme-next .tn-content-card h3 {
  font-family: var(--tn-font-heading);
  color: var(--tn-navy-deep);
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}
body.theme-next .tn-content-card h2 { font-size: 1.5rem; font-weight: 700; }
body.theme-next .tn-content-card h3 { font-size: 1.15rem; font-weight: 700; }
body.theme-next .tn-content-card p { margin: 0 0 14px; }
body.theme-next .tn-content-card ul,
body.theme-next .tn-content-card ol { margin: 0 0 16px 22px; }
body.theme-next .tn-content-card li { margin-bottom: 6px; }
body.theme-next .tn-content-card a {
  color: var(--tn-orange-deep);
  text-decoration: underline;
}
body.theme-next .tn-content-card a:hover { color: var(--tn-orange); }

body.theme-next .tn-info-box {
  background: rgba(30, 77, 140, 0.05);
  border-left: 3px solid var(--tn-navy);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

/* Vorstand-Grid */
body.theme-next .tn-vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
body.theme-next .tn-vorstand-card {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
body.theme-next .tn-vorstand-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 140, 66, 0.4);
  box-shadow: 0 10px 24px rgba(20, 50, 90, 0.08);
}
body.theme-next .tn-vorstand-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tn-navy), var(--tn-navy-deep));
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  font-family: var(--tn-font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  overflow: hidden;
}
body.theme-next .tn-vorstand-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-next .tn-vorstand-name {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  color: var(--tn-navy-deep);
  margin-bottom: 4px;
}
body.theme-next .tn-vorstand-funktion {
  font-size: 0.82rem;
  color: var(--tn-orange-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
body.theme-next .tn-vorstand-email {
  font-size: 0.82rem;
  color: var(--tn-text-muted);
}

/* Wetter-Widget: eine Kopfzeile (Icon + Temp + Beschreibung) + Detail-Rows. */
body.theme-next .tn-wetter-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--tn-border);
}
body.theme-next .tn-wicon {
  font-size: 72px !important;
  line-height: 1 !important;
  color: #4fa8d6;
  flex: 0 0 auto;
}
body.theme-next .tn-whead-text { flex: 1 1 0; min-width: 0; }
body.theme-next .tn-wtemp {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 3rem;
  color: var(--tn-navy-deep);
  letter-spacing: -0.03em;
  line-height: 1;
}
body.theme-next .tn-wtemp .tn-wdeg { color: #4fa8d6; }
body.theme-next .tn-wcond {
  font-size: 0.95rem;
  color: var(--tn-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
body.theme-next .tn-wetter-rows { padding-top: 4px; }
body.theme-next .tn-wetter-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--tn-border);
}
body.theme-next .tn-wetter-row:last-child { border-bottom: none; }
body.theme-next .tn-wetter-row .material-icons {
  color: var(--tn-navy);
  font-size: 22px !important;
}
body.theme-next .tn-wetter-label {
  font-size: 0.78rem;
  color: var(--tn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
body.theme-next .tn-wetter-value {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  color: var(--tn-navy-deep);
}

/* Beitrags-Grid */
body.theme-next .tn-beitrag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
body.theme-next .tn-beitrag-box {
  background: rgba(30, 77, 140, 0.04);
  border: 1px solid var(--tn-border);
  border-radius: 16px;
  padding: 18px 20px;
}
body.theme-next .tn-beitrag-title {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  color: var(--tn-navy-deep);
  margin-bottom: 10px;
}
body.theme-next .tn-beitrag-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(30, 77, 140, 0.08);
  font-size: 0.95rem;
}
body.theme-next .tn-beitrag-row:last-child { border-bottom: none; }
body.theme-next .tn-beitrag-row strong { color: var(--tn-navy-deep); }
body.theme-next .tn-beitrag-note {
  background: rgba(255, 140, 66, 0.07);
  border-left: 3px solid var(--tn-orange);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
body.theme-next .tn-beitrag-note-title {
  font-weight: 700;
  color: var(--tn-orange-deep);
  margin-bottom: 4px;
}

/* Zurueck-Link oben in News-Detail (Next-Theme) */
body.theme-next .tn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--tn-orange-deep);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.08);
  transition: background 0.15s;
}
body.theme-next .tn-back-link:hover { background: rgba(255, 140, 66, 0.15); }

/* News-Card (Uebersicht auf #/news) */
body.theme-next .tn-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
body.theme-next .tn-news-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 20px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
body.theme-next .tn-news-card.tn-has-thumb {
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 16px;
  align-items: stretch;
}
body.theme-next .tn-news-card:hover {
  transform: translateY(-2px);
  border-color: var(--tn-orange);
  box-shadow: 0 10px 28px rgba(20, 50, 90, 0.08);
}
body.theme-next .tn-news-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 16/10;
}
body.theme-next .tn-news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-next .tn-news-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
body.theme-next .tn-news-date {
  font-size: 0.78rem;
  color: var(--tn-orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
body.theme-next .tn-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
body.theme-next .tn-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.theme-next .tn-news-badge .material-icons {
  font-size: 13px;
}
body.theme-next .tn-news-badge-pin {
  background: rgba(255, 140, 66, 0.14);
  color: var(--tn-orange-deep);
}
body.theme-next .tn-news-badge-time {
  background: rgba(30, 77, 140, 0.10);
  color: var(--tn-navy-deep);
}
body.theme-next .tn-archiv-item .tn-news-badge {
  margin-right: 8px;
  font-size: 0.68rem;
  padding: 2px 8px;
}
@media (max-width: 600px) {
  body.theme-next .tn-archiv-item .tn-news-badge {
    display: none;
  }
}
body.theme-next .tn-news-title {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tn-navy-deep);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
body.theme-next .tn-news-teaser {
  font-size: 0.92rem;
  color: var(--tn-text-muted);
  line-height: 1.5;
  margin: 0;
}
body.theme-next .tn-news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tn-orange-deep);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 4px;
}
@media (max-width: 640px) {
  body.theme-next .tn-news-card.tn-has-thumb {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.theme-next .tn-news-thumb { aspect-ratio: 16/9; }
}

body.theme-next .tn-news-empty-hint {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 16px;
  padding: 20px 24px;
  color: var(--tn-text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* News-Archiv: Jahresgruppen mit kompakter Linkliste */
body.theme-next .tn-archiv-jahr {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
body.theme-next .tn-archiv-jahr summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  color: var(--tn-text);
  transition: background 0.15s;
}
body.theme-next .tn-archiv-jahr summary::-webkit-details-marker { display: none; }
body.theme-next .tn-archiv-jahr summary:hover { background: rgba(30, 77, 140, 0.04); }
body.theme-next .tn-archiv-chev {
  font-size: 22px !important;
  color: var(--tn-text-muted);
  transition: transform 0.2s;
}
body.theme-next .tn-archiv-jahr[open] .tn-archiv-chev { transform: rotate(180deg); }
body.theme-next .tn-archiv-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--tn-text-muted);
  font-weight: 400;
}
body.theme-next .tn-archiv-list {
  border-top: 1px solid var(--tn-border);
  display: flex;
  flex-direction: column;
}
body.theme-next .tn-archiv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--tn-text);
  border-bottom: 1px solid var(--tn-border);
  transition: background 0.15s, padding-left 0.15s;
  font-size: 0.94rem;
}
body.theme-next .tn-archiv-item:last-child { border-bottom: none; }
body.theme-next .tn-archiv-item:hover {
  background: rgba(30, 77, 140, 0.04);
  padding-left: 26px;
}
body.theme-next .tn-archiv-date {
  flex-shrink: 0;
  width: 56px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  color: var(--tn-text-muted);
}
body.theme-next .tn-archiv-title {
  flex: 1;
  font-weight: 500;
}
body.theme-next .tn-archiv-arrow {
  font-size: 18px !important;
  color: var(--tn-text-muted);
  flex-shrink: 0;
}

/* Event-Card (Termine-Seite) */
body.theme-next .tn-event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
body.theme-next .tn-event-card {
  display: grid;
  grid-template-columns: 120px auto 1fr;
  gap: 20px;
  align-items: stretch;
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
body.theme-next .tn-event-card.tn-has-thumb {
  grid-template-columns: 160px 120px auto 1fr;
}
body.theme-next .tn-event-card:hover {
  transform: translateY(-2px);
  border-color: var(--tn-orange);
  box-shadow: 0 10px 28px rgba(20, 50, 90, 0.08);
}
body.theme-next .tn-event-thumb {
  width: 160px;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
}
body.theme-next .tn-event-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-next .tn-event-datebox {
  width: 120px;
  text-align: center;
  padding: 14px 0;
  border-radius: 14px;
  background: rgba(30, 77, 140, 0.06);
  align-self: center;
}
body.theme-next .tn-event-datebox .tn-ed {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--tn-navy-deep);
  letter-spacing: -0.03em;
}
body.theme-next .tn-event-datebox .tn-em {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tn-orange-deep);
  margin-top: 4px;
}
body.theme-next .tn-event-info { align-self: center; }
body.theme-next .tn-event-info .tn-et {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tn-navy-deep);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
body.theme-next .tn-event-info .tn-em-meta {
  font-size: 0.88rem;
  color: var(--tn-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
}
body.theme-next .tn-event-info .tn-em-meta .material-icons {
  font-size: 16px !important;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--tn-navy);
}
body.theme-next .tn-event-info .tn-edesc {
  font-size: 0.92rem;
  color: var(--tn-text-muted);
  line-height: 1.5;
  margin: 0;
}
body.theme-next .tn-event-info .tn-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.12);
  color: var(--tn-orange-deep);
  margin-top: 6px;
}

/* Foto-Albums (Fotos-Seite) */
body.theme-next .tn-album { margin-bottom: 40px; }
body.theme-next .tn-album:last-child { margin-bottom: 0; }
body.theme-next .tn-album-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
body.theme-next .tn-album-title {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--tn-navy-deep);
  letter-spacing: -0.01em;
  margin: 0;
}
body.theme-next .tn-album-count {
  color: var(--tn-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
body.theme-next .tn-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
body.theme-next .tn-photo-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #eef2f7;
}
body.theme-next .tn-photo-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.theme-next .tn-photo-cell:hover img { transform: scale(1.05); }
body.theme-next .tn-photo-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 35, 71, 0.7));
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
body.theme-next .tn-photo-cell:hover::after { opacity: 1; }
body.theme-next .tn-photo-caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2;
  line-height: 1.3;
}
body.theme-next .tn-photo-cell:hover .tn-photo-caption {
  opacity: 1;
  transform: translateY(0);
}

body.theme-next .tn-btn-slideshow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--tn-card);
  border: 1.5px solid rgba(30, 77, 140, 0.18);
  color: var(--tn-navy-deep);
  font-family: var(--tn-font-body);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
body.theme-next .tn-btn-slideshow:hover {
  background: rgba(30, 77, 140, 0.05);
  border-color: rgba(30, 77, 140, 0.35);
}

/* ── Kalender-Galerie (Hero-Monat, Monatskacheln, Archiv) ────────────── */

body.theme-next .tn-month-feature {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 24px;
  padding: 28px 28px 32px;
  box-shadow: 0 10px 32px rgba(13, 35, 71, 0.06);
}
body.theme-next .tn-month-feature-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tn-border);
  flex-wrap: wrap;
}
body.theme-next .tn-month-feature-head h2 {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 1.85rem;
  color: var(--tn-navy-deep);
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
body.theme-next .tn-month-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tn-font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-orange-deep);
}
body.theme-next .tn-month-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--tn-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.6);
  animation: tnMonthDotPulse 2s ease-in-out infinite;
}
@keyframes tnMonthDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 140, 66, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-month-eyebrow::before { animation: none; }
}
body.theme-next .tn-month-count {
  color: var(--tn-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}
body.theme-next .tn-count-sm { font-size: 0.82rem; font-weight: 600; }

body.theme-next .tn-event-block { margin-bottom: 26px; }
body.theme-next .tn-event-block:last-child { margin-bottom: 0; }
body.theme-next .tn-event-title {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tn-navy-deep);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
body.theme-next .tn-event-title-loose {
  color: var(--tn-text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.theme-next .tn-months-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
body.theme-next .tn-month-card {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 18px;
  padding: 22px 24px 26px;
  transition: box-shadow 0.2s;
}
body.theme-next .tn-month-card:hover { box-shadow: 0 8px 24px rgba(13, 35, 71, 0.07); }
body.theme-next .tn-month-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
body.theme-next .tn-month-card-head h3 {
  font-family: var(--tn-font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tn-navy-deep);
  margin: 0;
  letter-spacing: -0.005em;
}
body.theme-next .tn-month-card-body .tn-event-title { font-size: 0.95rem; margin-bottom: 10px; }

body.theme-next .tn-archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.theme-next .tn-archive-year {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 14px;
  overflow: hidden;
}
body.theme-next .tn-archive-year summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}
body.theme-next .tn-archive-year summary::-webkit-details-marker { display: none; }
body.theme-next .tn-archive-year-num {
  font-family: var(--tn-font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--tn-navy-deep);
  letter-spacing: -0.01em;
  min-width: 60px;
}
body.theme-next .tn-archive-year-count {
  flex: 1;
  color: var(--tn-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
body.theme-next .tn-archive-chev {
  color: var(--tn-text-muted);
  transition: transform 0.2s;
}
body.theme-next .tn-archive-year[open] .tn-archive-chev { transform: rotate(180deg); }
body.theme-next .tn-archive-months {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--tn-border);
}
body.theme-next .tn-archive-month-card {
  border: 1px solid var(--tn-border);
  padding: 18px 20px 22px;
  background: rgba(255,255,255,0.6);
}
body.theme-next .tn-archive-month-card:hover { box-shadow: none; }

body.theme-next .tn-empty-gallery {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 20px;
  padding: 56px 24px;
  text-align: center;
  color: var(--tn-text-muted);
  max-width: 720px;
  margin: 0 auto;
}
body.theme-next .tn-empty-gallery .material-icons {
  font-size: 48px;
  color: rgba(30, 77, 140, 0.18);
  display: block;
  margin-bottom: 14px;
}
body.theme-next .tn-empty-gallery p {
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  body.theme-next .tn-photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  body.theme-next .tn-month-feature { padding: 20px 16px 22px; }
  body.theme-next .tn-month-feature-head h2 { font-size: 1.5rem; }
  body.theme-next .tn-months-grid { gap: 16px; }
  body.theme-next .tn-month-card { padding: 18px 16px 20px; }
  body.theme-next .tn-archive-months { padding: 14px 14px 18px; gap: 14px; }
  body.theme-next .tn-archive-month-card { padding: 14px 14px 18px; }
  body.theme-next .tn-archive-year summary { padding: 14px 16px; gap: 10px; }
  body.theme-next .tn-archive-year-num { font-size: 1.2rem; min-width: 50px; }
}
@media (max-width: 420px) {
  body.theme-next .tn-photo-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
}

@media (max-width: 768px) {
  body.theme-next .tn-event-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.theme-next .tn-event-card.tn-has-thumb { grid-template-columns: 1fr; }
  body.theme-next .tn-event-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }
  body.theme-next .tn-event-datebox {
    width: auto;
    padding: 10px 16px;
    display: inline-flex;
    gap: 12px;
    align-items: baseline;
    align-self: flex-start;
  }
  body.theme-next .tn-event-datebox .tn-ed { font-size: 1.8rem; }
}

/* Karten-/Map-Card */
body.theme-next .tn-map-card {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 22px;
  overflow: hidden;
}
body.theme-next .tn-map-card iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
}

@media (max-width: 768px) {
  body.theme-next .tn-cat-hero { padding: 76px 20px 20px; }
  body.theme-next .tn-content-card { padding: 24px 22px; }
}

@media (max-width: 640px) {
  body.theme-next .tn-wetter-head { gap: 16px; padding-bottom: 16px; }
  body.theme-next .tn-wicon { font-size: 60px !important; }
  body.theme-next .tn-wtemp { font-size: 2.4rem; }
  body.theme-next .tn-wcond { font-size: 0.88rem; }
}

/* ───────── Footer ───────── */
.next-footer {
  background: var(--tn-navy-darker, #0d2347);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 32px 32px;
  margin-top: 80px;
  font-family: var(--tn-font-body, 'Open Sans', sans-serif);
}
.next-footer .tn-foot-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.next-footer .tn-foot-brand img { width: 200px; opacity: 0.95; margin-bottom: 18px; display: block; }
.next-footer .tn-foot-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}
.next-footer .tn-foot-col h4 {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  font-weight: 700;
}
.next-footer .tn-foot-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 5px 0;
  font-size: 0.92rem;
  transition: color 0.15s, transform 0.15s;
}
.next-footer .tn-foot-col a:hover { color: #ff8c42; transform: translateX(3px); }
.next-footer .tn-foot-bot {
  max-width: 1280px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.next-footer .tn-socials { display: flex; gap: 10px; }
.next-footer .tn-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.next-footer .tn-socials a:hover { background: #ff8c42; color: #fff; }

/* ───────── Fade-up ───────── */
body.theme-next .tn-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.theme-next .tn-fade.tn-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  body.theme-next .tn-fade,
  body.theme-next .tn-float,
  body.theme-next .tn-hero-kicker .tn-dot {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  body.theme-next .tn-hero-inner,
  .next-footer .tn-foot-top { grid-template-columns: 1fr; }
  body.theme-next .tn-hero { padding-top: 120px; }
  body.theme-next .tn-hero-visual { aspect-ratio: 4 / 3; max-height: 360px; }
  body.theme-next .tn-section-head { flex-direction: column; align-items: flex-start; }
  body.theme-next .tn-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; grid-auto-flow: row; }
  body.theme-next .tn-tile-news,
  body.theme-next .tn-tile-photos,
  body.theme-next .tn-tile-event,
  body.theme-next .tn-tile-pinned,
  body.theme-next .tn-tile-timed { grid-column: span 2; grid-row: auto; min-height: 280px; }
  body.theme-next .tn-tile-timed { padding: 24px 22px; }
  body.theme-next .tn-tile-timed h3 { font-size: 1.55rem; }
  body.theme-next .tn-tile-timed p { font-size: 0.95rem; }
  body.theme-next .tn-tile-weather,
  body.theme-next .tn-tile-member { grid-column: span 1; min-height: 220px; }
  body.theme-next .tn-timeline { grid-template-columns: 1fr; }
  body.theme-next .tn-evt { padding: 18px; gap: 14px; }
  body.theme-next .tn-evt-date { width: 56px; padding: 8px 0; }
  body.theme-next .tn-evt-date .tn-ed { font-size: 1.5rem; }
  body.theme-next .tn-evt-body .tn-et { font-size: 0.98rem; }
  body.theme-next .tn-evt-body .tn-esm { font-size: 0.8rem; }
  .next-topbar .tn-nav { display: none; }
  /* 1fr laesst die Brand-Spalte sauber schrumpfen, Hamburger bleibt sichtbar */
  .next-topbar { grid-template-columns: 1fr auto; gap: 12px; }
  .next-topbar .tn-hamburger { display: inline-flex; }
  .next-topbar .tn-brand { min-width: 0; }
  .next-topbar .tn-brand-text { min-width: 0; overflow: hidden; }
  .next-topbar .tn-brand-name,
  .next-topbar .tn-brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Mobile: Topbar am oberen Rand andocken (keine Pill-Form, keine
     Abrundung), damit sie einheitlich zur Status-Bar wirkt.
     Leicht transparent mit staerkerem Blur — Content scheint sanft
     durch, Text bleibt aber gut lesbar. */
  .next-topbar {
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(30, 77, 140, 0.12);
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 2px 10px rgba(20, 50, 90, 0.06);
  }
}

@media (max-width: 640px) {
  body.theme-next .tn-hero { padding: 110px 20px 60px; }
  body.theme-next .tn-hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  body.theme-next .tn-hero-stats { gap: 24px; flex-wrap: wrap; }
  body.theme-next .tn-section { padding: 70px 20px; }
  body.theme-next .tn-bento { grid-template-columns: 1fr; grid-auto-flow: row; }
  body.theme-next .tn-tile-news,
  body.theme-next .tn-tile-photos,
  body.theme-next .tn-tile-event,
  body.theme-next .tn-tile-pinned,
  body.theme-next .tn-tile-timed,
  body.theme-next .tn-tile-weather,
  body.theme-next .tn-tile-member { grid-column: auto; grid-row: auto; }
  body.theme-next .tn-tile-timed h3 { font-size: 1.35rem; }
  .next-footer { padding: 48px 20px 24px; }
  .next-footer .tn-foot-top { gap: 32px; padding-bottom: 32px; }
  .next-footer .tn-foot-bot { font-size: 0.75rem; }
  /* Mobile: Float-Karten kleiner und nur leicht aus dem Foto-Rand ragend */
  body.theme-next .tn-float {
    width: 56%;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
  }
  body.theme-next .tn-float .tn-icon {
    width: 32px; height: 32px;
  }
  body.theme-next .tn-float .tn-icon .material-icons { font-size: 18px; }
  body.theme-next .tn-float .tn-main { font-size: 0.9rem; }
  body.theme-next .tn-float .tn-sub { font-size: 0.68rem; }
  body.theme-next .tn-float-weather {
    top: -14px;
    left: -16px;
  }
  body.theme-next .tn-float-weather .tn-main { font-size: 1.15rem; }
  body.theme-next .tn-float-event {
    bottom: -14px;
    right: -16px;
    top: auto;
  }

  /* Badge oben rechts, kompakt — Koordinaten auf Mobile ausgeblendet. */
  body.theme-next .tn-hero-photo-badge {
    top: 12px; right: 12px;
    max-width: 62%;
    gap: 3px;
  }
  body.theme-next .tn-hero-photo-badge .tn-where { font-size: 0.88rem; }
  body.theme-next .tn-hero-photo-badge .tn-meta  { font-size: 0.68rem; }
  body.theme-next .tn-hero-photo-badge .tn-coord { display: none; }
}

/* ── Privacy-Hinweis (kein Cookie-Banner; nur Server-Logs-Info) ─────── */
.privacy-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 520px; margin-left: auto;
  display: none; align-items: flex-start; gap: 10px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--tn-border);
  border-left: 4px solid var(--tn-orange);
  border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(20, 50, 90, 0.15);
  font-size: 0.85rem; color: var(--tn-text);
  z-index: 5000; opacity: 0; transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.privacy-notice.visible { opacity: 1; transform: translateY(0); }
.privacy-notice .material-icons { color: var(--tn-orange-deep); flex-shrink: 0; font-size: 22px; }
.privacy-notice-text { flex: 1; line-height: 1.4; }
.privacy-notice-text a { color: var(--tn-navy); font-weight: 600; }
.privacy-notice-close {
  background: none; border: none; cursor: pointer; padding: 2px; flex-shrink: 0;
  border-radius: 50%; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tn-text-muted);
}
.privacy-notice-close:hover { background: rgba(0, 0, 0, 0.06); color: var(--tn-text); }
.privacy-notice-close .material-icons { font-size: 18px; color: inherit; }
@media (max-width: 600px) {
  .privacy-notice { font-size: 0.8rem; padding: 10px 12px; }
}

/* Video-Tile in der Foto-Galerie — Play-Symbol overlay */
body.theme-next .tn-video-cell { position: relative; cursor: pointer; }
body.theme-next .tn-video-cell video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
body.theme-next .tn-video-cell:hover video { transform: scale(1.05); }
body.theme-next .tn-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: background .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
body.theme-next .tn-video-cell:hover .tn-video-play {
  background: var(--tn-orange-deep);
  transform: translate(-50%, -50%) scale(1.08);
}
body.theme-next .tn-video-play .material-icons { font-size: 32px !important; }

/* ── Video-Galerie (eigene Seite #/videos) ─────────── */
body.theme-next .tn-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
body.theme-next .tn-video-tile {
  background: var(--tn-card);
  border: 1px solid var(--tn-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
body.theme-next .tn-video-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(20, 50, 90, 0.15);
}
body.theme-next .tn-video-tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
body.theme-next .tn-video-tile-media video {
  width: 100%; height: 100%;
  object-fit: contain;        /* Format wird beibehalten — Letterbox bei abweichendem Ratio */
  display: block;
}
body.theme-next .tn-video-tile-media .tn-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: background .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
body.theme-next .tn-video-tile:hover .tn-video-play {
  background: var(--tn-orange-deep);
  transform: translate(-50%, -50%) scale(1.08);
}
body.theme-next .tn-video-tile-media .tn-video-play .material-icons { font-size: 32px !important; }
body.theme-next .tn-video-tile-meta { padding: 12px 14px; }
body.theme-next .tn-video-tile-title {
  font-weight: 700; font-size: .95rem; color: var(--tn-text);
  line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-next .tn-video-tile-sub {
  font-size: .78rem; color: var(--tn-text-muted);
}

/* Lightbox-<video>: Original-Format beibehalten, kein object-fit:cover */
#lightboxMedia video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  display: block;
  background: #000;
}
