/*
Theme Name: Format Filmkunst
Theme URI: https://format-filmkunst.de
Author: Format Filmkunst e.V.
Description: Basis-Theme für Format Filmkunst e.V.
Version: 1.0.9
License: GNU General Public License v2 or later
Text Domain: format-filmkunst
Tags: custom-menu, custom-logo, featured-images, full-width-template
*/

/* =========================================
   FONTS
   ========================================= */
@font-face {
  font-family: 'CooperHewitt';
  src: url('assets/CooperHewitt-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('assets/CooperHewitt-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CooperHewitt';
  src: url('assets/CooperHewitt-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Phosphate';
  src: url('assets/Phosphate-Inline.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --color-bg:        #1A1919;
  --color-bg-card:   #1c1c1c;
  --color-surface:   #242424;
  --color-border:    #2e2e2e;

  --color-text:      #ffffff;
  --color-text-muted:#888888;
  --color-label:     #aaaaaa;

  --color-pink:      #e8007d;
  --color-orange:    #e8451e;
  --color-yellow:    #f5c800;
  --color-teal:      #009b9e;
  --color-red:       #cc2222;
  --color-green:     #22aa44;

  --font-display:    'CooperHewitt',  Arial, sans-serif;
  --font-display-card: 'Phosphate', sans-serif;
  --font-headline:   'Phosphate', sans-serif;
  --font-body:       'CooperHewitt',  Arial, sans-serif;

  --radius-card:     10px;
  --radius-btn:      6px;

  --nav-height:      120px;
  --container:       1400px;
  --container-wide:  1800px;
  --gap:             32px;

  /* Schriftgrößen – überschreibbar per Customizer (wp_head) */
  --fs-body:       16px;
  --fs-nav:        12px;
  --fs-hero:       100px;
  --fs-heading:    80px;
  --fs-h2:         36px;
  --fs-h3:         32px;
  --fs-h4:         24px;
  --fs-card-title: 80px;
  --fs-footer:     13px;
  --fs-headline-footer: 16px
}

/* =========================================
   SWUP PAGE TRANSITIONS
   ========================================= */
#swup { transition: opacity 0.35s ease, transform 0.35s ease; }
html.is-animating #swup { opacity: 0; transform: translateY(10px); }

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Swup setzt is-animating + is-changing während Seitenwechsel –
   scroll-behavior:auto verhindert, dass scrollTo(0,0) als 300ms-Animation läuft */
html.is-animating,
html.is-changing { scroll-behavior: auto; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

 ul {
  list-style: none;
 
}

.entry-content ul {
  list-style: none;
  padding-left: 0;
}

.entry-content ul li {
  display: flex;
  align-items: flex-start; 
  gap: 0.6em;
}

.entry-content ul li::before {
  content: "●";
  color: var(--color-orange);
  font-size: 0.6em;
  flex-shrink: 0;
  margin-top: 0; 
}
  
/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h1, h2 {
  font-family: var(--font-headline);
}


.entry-content h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, var(--fs-h3)) !important;
  font-weight: 800;
  text-transform: none;
  line-height: clamp(1.2em, 2vw, 1.4em);
  letter-spacing: 0.01em;
}
.entry-content h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, var(--fs-h4))!important;
  font-weight: 800;
  text-transform: none;
  line-height: clamp(1.0em, 2vw, 1.2em);
  letter-spacing: 0.01em;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-label);
  /* margin-bottom: 24px; */
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s ease;
}
.site-header.scrolled {
  background: linear-gradient(to bottom, var(--color-bg), transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--nav-height);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-mark {
  width: 72px;
  height: 72px;
  background: var(--color-pink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px;
  transform: rotate(-8deg);
}

.logo-mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* Main nav */
.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav ul a {
  font-size: var(--fs-nav);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
}

.nav-link-inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav ul a::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .main-nav ul a:hover .nav-link-inner { transform: translateY(-135%); }
  .main-nav ul a:hover::after          { transform: translateY(0); }
}

.main-nav .current-menu-item a .nav-link-inner,
.main-nav .current-menu-item a::after {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Header actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-actions-mobile { display: none; }
.nav-close { display: none; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  appearance: none;
  font-family: inherit;
  transition: opacity 0.15s;
  white-space: nowrap;
  text-indent: 0.06em;

}

.btn svg { flex-shrink: 0; }

.btn span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 2px;
  top: 1px;
}

.btn-text-inner {
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  top: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover span .btn-text-inner { transform: translateY(-135%); }
  .btn:hover span::after          { transform: translateY(0); }
}

.btn:hover { opacity: 0.85; }

.btn-sammlung {
  background: var(--color-orange);
  color: #fff;
  border: none;
}

.btn-spenden {
  background: var(--color-yellow);
  color: #111;
  border: none;
}

.btn-spenden svg:last-child {
  transition: transform 0.2s ease;
}

.btn-spenden-wrap {
  position: relative;
  display: inline-flex;
}

.btn-spenden-wrap.is-open .btn-spenden svg:last-child {
  transform: rotate(180deg);
}

.spenden-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}

.spenden-dropdown form {
  display: contents;
}

.btn-spenden-wrap.is-open .spenden-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.spenden-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.spenden-dropdown-item:hover {
  background: #f3f3f3;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: var(--hero-height, 100vh);
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero--page {
  height: var(--hero-height, 100vh);
  min-height: 200px;
  align-items: flex-end;
  padding-top: 0;
}
/* Overlay als Multiply-Farbton über dem Bild */
.hero--page .hero-overlay {
  background: #000;        /* überschrieben per inline-style */
  mix-blend-mode: multiply;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-teal);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}


.hero-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

/* Verlauf unten → #1A1919, über dem Multiply-Overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1A1919 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(16px, 3vw, 24px) clamp(32px, 6vw, 60px);
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(40px, 8vw, var(--fs-hero));
  color: #fff;
  max-width: 1050px;
}


.hero-scroll {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hero-scroll:hover { border-color: #fff; }

/* =========================================
   AKTUELLES (Feature Card)
   ========================================= */
.feature-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-bg-card);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}

.feature-card-bg {
  position: absolute;
  inset: 0;
}

.feature-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.4) 60%,
    transparent 100%
  );
}

.feature-card-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 600px;
}

.feature-card-title {
  font-size: clamp(36px, 5vw, 64px);
  color: #fff;
  margin-bottom: 16px;
}

.feature-card-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card-meta {
  font-size: 14px;
  color: var(--color-text-muted);
}

.feature-card-logo {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
  max-width: 120px;
}

/* =========================================
   FILM GRID (Neu im Verleih)
   ========================================= */
.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

#neuheiten .film-grid {
  grid-template-columns: repeat(8, 1fr);
}

.film-neuheiten-swiper {
  position: relative;
}

@media (max-width: 768px) {
  .film-neuheiten-swiper.swiper {
    overflow: hidden;
    padding-bottom: 32px;
  }
  .film-neuheiten-swiper.swiper .film-grid.swiper-wrapper {
    display: flex;
    gap: 0; /* Swiper steuert Abstände über spaceBetween – CSS-gap würde die Positionsberechnung verschieben */
  }
  .film-neuheiten-swiper.swiper .film-card.swiper-slide {
    flex-shrink: 0;
  }
  .neuheiten-pagination {
    bottom: 0 !important;
  }
  .neuheiten-pagination .swiper-pagination-bullet {
    background: var(--color-text);
    opacity: .25;
  }
  .neuheiten-pagination .swiper-pagination-bullet-active {
    opacity: 1;
  }
}

.film-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s;
}

.film-card:hover { transform: translateY(-4px); }

.film-card-poster {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--color-surface);
}

.film-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.film-card:hover .film-card-poster img { transform: scale(1.04); }

.film-card-info {
  padding: 14px 16px;
}

.film-card-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.film-card-year {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.film-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted);
}

.film-format-badges {
  display: flex;
  gap: 4px;
  align-items: center;
}

.badge-format {
  background: var(--color-surface);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.status-ausgeliehen { color: var(--color-red); font-weight: 700; }
.status-verfügbar   { color: var(--color-green); font-weight: 700; }

.badge-format-logo {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}
.site-footer .container {
  max-width: var(--container-wide);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding: 0px 40px;
}

.footer-logo .logo-mark {
  margin-bottom: 0;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--fs-headline-footer);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-footer);
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.footer-contact svg {
  flex-shrink: 0;
  display: block;
}

.footer-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}

.footer-hours dt {
  font-size: var(--fs-footer);
  color: var(--color-text-muted);
}

.footer-hours dd {
  font-size: var(--fs-footer);
  color: var(--color-text-muted);
}

.footer-newsletter p {
  font-size: var(--fs-headline-footer);
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}


p.footer-col-title  {
  font-size: var(--fs-headline-footer);
  color: var(--color-text);

}

.btn-newsletter {
  background: var(--color-orange);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-legal,
.footer-legal ul {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--color-text); }

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color 0.15s;
}

.footer-social a:hover { color: var(--color-text); }

/* =========================================
   STICKY CARD STACK (Aktuelles)
   ========================================= */
.stack-section {
  padding: 0;
}

.stack-label {
  padding: 0 clamp(16px, 3vw, 24px) clamp(40px, 6vw, 32px);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.stack-cards {
  /* Height = N × card-height; sticky cards all lock at the same top position.
     Later cards (higher z-index) slide in on top of earlier scaled-down ones. */
}

.card-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  padding: 0 28px;
  margin-bottom: 30px;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
}
.card-sticky:last-child {
  margin-bottom: 0;
}

.portfolio-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  height: var(--card-height, 76vh);
  min-height: 400px;
  /* border: 1px solid #1c1c1c; */
  will-change: transform, filter;
  transform-origin: 50% 50%;
  position: relative;
}

.card-image {
  position: absolute;
  inset: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.portfolio-card:hover .card-image img {
  transform: scale(1.03);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
}

.card-label {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 5;
  pointer-events: none;
}

/* Vertikale Position */
.card--valign-top    .card-label { top: 2.5rem;  bottom: auto; }
.card--valign-middle .card-label { top: 50%;     bottom: auto; transform: translateY(-50%); }
.card--valign-bottom .card-label { bottom: 2.5rem; top: auto; }

/* Horizontale Position */
.card--halign-right  .card-label { text-align: right; }
.card--halign-right  .card-subheadline { margin-left: auto; }
.card--halign-right  .card-title { margin-left: auto; }
.card--halign-center .card-label { text-align: center; }
.card--halign-center .card-subheadline { margin-left: auto; margin-right: auto; }
.card--halign-center .card-title { margin-left: auto; margin-right: auto; }

.card-index {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.card-title {
  display: block;
  font-family: var(--font-display-card);
  font-size: clamp(40px, 5vw, var(--fs-card-title));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.0;
  color: var(--color-text);
  pointer-events: auto;
  transition: opacity 0.2s;
  max-width: var(--hl-w-d, none);
}
@media (max-width: 1024px) {
  .card-title { max-width: var(--hl-w-t, var(--hl-w-d, none)); }
}


.card-title:hover { opacity: 0.75; }

.card-meta {
  margin-top: 12px;
  font-size: clamp(16px, 1.4vw, 30px);
  color: #fff;
  font-family: var(--font-body);
  font-weight: bold;
}

/* ── Text-Farb-Variante: dunkel ──────────────────── */
.card--dark-text .card-title  { color: #111; }
.card--dark-text .card-meta   { color: rgba(0,0,0,0.55); }
.card--dark-text .card-index  { color: rgba(0,0,0,0.35); }
.card--dark-text .card-subheadline { color: rgba(0,0,0,0.75); }

/* ── Subheadline ─────────────────────────────────── */
.card-subheadline {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.4;
  color: #fff;
  max-width: var(--sub-w-d, 700px);
}
@media (max-width: 1024px) {
  .card-subheadline { max-width: var(--sub-w-t, var(--sub-w-d, 700px)); }
}
.is-masonry .card-sticky:not(.card-sticky--wide) .card-subheadline {
  max-width: var(--sub-w-d, 350px);
}
@media (max-width: 1024px) {
  .is-masonry .card-sticky:not(.card-sticky--wide) .card-subheadline {
    max-width: var(--sub-w-t, var(--sub-w-d, 350px));
  }
}
.card-subheadline--bold     { font-weight: 700; }
.card-subheadline--semibold { font-weight: 600; }

/* ── Vordergrundbild (Anschnitt) ─────────────────── */
.card-fg {
  position: absolute;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.card-fg--right {
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
}
.card-fg--right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.card-fg--left {
  left: 0;
  top: 0;
  width: 45%;
  height: 100%;
}
.card-fg--left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom left;
}

.card-fg--bottom {
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  bottom: -6%;
}
.card-fg--bottom img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card-fg--center {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: 100%;
}
.card-fg--center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Textblock nach links schieben wenn Bild rechts */
.portfolio-card:has(.card-fg--right)  .card-label  { right: 50%; }
.portfolio-card:has(.card-fg--left)   .card-label  { left: 50%; right: 2.5rem; }
/* Bei Mitte: Text bleibt am Rand, Bild liegt darüber */
.portfolio-card:has(.card-fg--center) .card-label  { z-index: 4; }

/* ── Badge ────────────────────────────────────────── */
.card-badge {
  position: absolute;
  z-index: 4;
  background: var(--color-pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 4vw, var(--badge-fs, 26px));
  letter-spacing: 0.02em;
  padding: 0.4em 1em;
  white-space: normal;
  transform: rotate(-4deg);
  pointer-events: none;
}
.card-badge--bottom-left  { bottom: 12%; left: 2.5rem; }
.card-badge--bottom-right { bottom: 12%; right: 2.5rem; }
.card-badge--center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
}
.card-badge--side-left {
  left: 0;
}
.card-badge--side-right {
  right: 0;
}

/* ── Seitliche Bildbeschreibung ───────────────────── */
.card-side-caption {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right center;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #fff;
  white-space: normal;
  z-index: 5;
  font-family: var(--font-body);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  max-height: 80%;
  transform: rotate(0deg);
  top: 40px;
  right: 10px;
}

/* word-split spans for GSAP stagger */
.word-wrap { overflow: hidden; display: inline-block; vertical-align: bottom; }
.word      { display: inline-block; }

/* =========================================
   INNER PAGES
   ========================================= */
.page-header {
  padding: 80px 0 48px;
  margin-bottom: 64px;
}

.page-header h1 {
  font-size: clamp(28px, 6vw, var(--fs-heading));
}

.entry-content {
  max-width: 1190px;
  font-size: var(--fs-body);
  line-height: 1.6;
  /* line-height: clamp(1.4em, 2vw, 1.0em); */
  color: rgba(255,255,255,0.85);
}

.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { font-size: var(--fs-h2); margin: 2em 0 0.5em; }
.entry-content h3 { font-size: var(--fs-h3); margin: 1.5em 0 0.5em; }
.entry-content a { color: var(--color-orange); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.entry-content li { margin-bottom: 0.5em; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .film-grid { grid-template-columns: repeat(3, 1fr); }
  #neuheiten .film-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .main-nav,
  .nav-actions {
    display: none;
  }

  .nav-actions-mobile { display: none; }

  .logo-mark { width: 52px; height: 52px; font-size: 10px; }
  .nav-inner { gap: 0; padding: 0 16px; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    padding: 24px 24px 40px;
    overflow-y: auto;
    z-index: 200;
  }

  .nav-close {
    display: none;
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 32px;
    color: var(--color-text);
  }
  .nav-close svg { display: block; }

  .main-nav.open .nav-close { display: flex; }

  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav.open ul a {
    font-size: 16px;
    padding: 12px 0;
    display: block;
    overflow: visible;
  }

  .main-nav.open ul a::after { display: none; }
  .main-nav.open ul a .nav-link-inner {
    transition: none;
    transform: none !important;
  }

  .nav-actions-mobile .btn {
    padding: 14px 20px;
    width: 100%;
    font-size: 13px;
  }
  .nav-actions-mobile .btn-spenden-wrap {
    width: 100%;
  }
  .nav-actions-mobile .spenden-dropdown {
    left: 0;
    right: 0;
  }
  .nav-actions-mobile .btn span::after { display: none; }
  .nav-actions-mobile .btn span .btn-text-inner {
    transition: none;
    transform: none !important;
  }

  .btn-anmelden {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border) !important;
  }

  .nav-social-mobile {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 8px;
  }
  .nav-social-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-text);
    overflow: visible !important;
  }
  .nav-social-mobile a::after { display: none !important; }

  .main-nav.open .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .logo-mark { width: 38px; height: 38px; border-radius: 4px; padding: 5px; }
  .logo-mark span { font-size: 9px; }

  /* Freisteller rechts/links/mitte: volle Höhe, gestreckt */
  .card-fg--right,
  .card-fg--left { width: 52%; }

  /* Mitte → auf Mobile wie Bottom behandeln */
  .card-fg--center {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 0;
    height: auto;
    width: 65%;
  }
  .card-fg--center img { object-fit: contain; object-position: bottom center; height: auto; }

  .card-fg--right img { object-fit: contain; object-position: bottom right; }
  .card-fg--left img  { object-fit: contain; object-position: bottom left; }

  /* Headline auf mobil volle Breite */
  .portfolio-card:has(.card-fg--right) .card-label,
  .portfolio-card:has(.card-fg--left)  .card-label { left: 2.5rem; right: 2.5rem; }

  /* Unteres Anschnitt-Bild: kein negativer Offset, etwas breiter */
  .card-fg--bottom { bottom: 0; width: 70%; }

  .film-grid { grid-template-columns: repeat(2, 1fr); }
  #neuheiten .film-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-hours { grid-template-columns: auto 1fr; }

  .feature-card-content { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .film-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-title { font-size: 40px; }
}

/* =========================================
   MASONRY LAYOUT
   ========================================= */

/* CSS Grid – ermöglicht grid-column: span 2 auf Event-Kacheln */
.stack-cards.is-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 12px;
  max-width: var(--container-wide);   /* 1800px */
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

/* Event-Kacheln spannen 2 Spalten */
.stack-cards.is-masonry .card-sticky--event,
.stack-cards.is-masonry .card-sticky--wide {
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  align-self: stretch;
}

.stack-cards.is-masonry .card-sticky--event .masonry-event-card,
.stack-cards.is-masonry .card-sticky--event .masonry-event-swiper {
  height: 100%;
}

.stack-cards.is-masonry .card-sticky {
  position: static;
  padding: 0;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.stack-cards.is-masonry .card-sticky:has(.nt-card) {
  align-self: stretch;
}

/* Portfolio-Karte im Masonry: natürliche Höhe statt vh-fixed */
.stack-cards.is-masonry .portfolio-card {
  height: auto;
  min-height: 400px;
  transform: none !important;
  filter: none !important;
}

/* Label bleibt absolut positioniert, Karte wächst durch min-height */
.stack-cards.is-masonry .card-label {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
}

/* valign-middle transform zurücksetzen */
.stack-cards.is-masonry .card--valign-middle .card-label {
  top: auto;
  bottom: 2.5rem;
  transform: none;
}

/* Headlines im Masonry deutlich kleiner */
.stack-cards.is-masonry .card-title {
  font-size: clamp(32px, 2.2vw, 48px);
}


/* ── Veranstaltungs-Karte im Masonry ── */
.masonry-event-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-teal);
  color: #fff;
  text-decoration: none;
  position: relative;
}
/* Mit Bild: 2-Spalten-Grid, Text links, Bild rechts */
.masonry-event-card--has-img {
  display: grid;
  grid-template-areas: "text img";
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
  min-height: 400px;
}

.masonry-event-card--has-img .masonry-event-card-text { grid-area: text; }
.masonry-event-card--has-img .masonry-event-card-img  { grid-area: img; }

.masonry-event-card-text {
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.masonry-event-card-img {
  overflow: hidden;
}

.masonry-event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center center);
  display: block;
}

/* Tablet + Mobile: Bild oben, Text darunter */
@media (max-width: 1024px) {
  .masonry-event-card--has-img {
    grid-template-areas: "img" "text";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: unset;
  }
  .masonry-event-card--has-img .masonry-event-card-img {
    aspect-ratio: 16 / 9;
  }
}

.masonry-event-dachzeile {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 8px;
}

.masonry-event-card p,
.masonry-event-content p {
  font-size: clamp(18px, 2vw, 20px);
  line-height: clamp(1.4em, 2vw, 1.6em);
  font-weight: 600;
  margin: 12px 0 0;
}

.masonry-event-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
}

.masonry-event-badge--running {
  background: var(--color-accent, #e8007d);
}

/* ── Event-Swiper (Startseite, mehrere Events am selben Tag) ── */
.masonry-event-swiper {
  width: 100%;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
}
.masonry-event-swiper .masonry-event-card {
  border-radius: 0;
  height: 100%;
}
.masonry-event-swiper .swiper-slide {
  height: auto;
}

.masonry-swiper-pagination {
  bottom: 12px !important;
}
.masonry-swiper-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
}
.masonry-swiper-pagination .swiper-pagination-bullet-active {
  background: #fff;
}


.veranstaltung-template-default .section {
  padding-top: 120px!important;
}

/* ── Standalone Veranstaltungen-Sektion (Stack-Modus + Termine-Seite) ── */
.termine-section { padding-block: clamp(32px, 8vw, 48px); }
.termine-section--past { padding-top: 0; }

/* ── Kompakte Termine-Liste (ff_termin im Grid-View) ── */
.termin-compact-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 24px;
}
.termin-compact-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border: none;
  border-left: 3px solid #6ca985;
  border-radius: 0 6px 6px 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.termin-compact-item:hover { background: rgba(255,255,255,.08); }
.termin-compact-date {
  font-size: 13px;
  font-weight: 600;
  opacity: .55;
  white-space: nowrap;
}
.termin-compact-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.termin-compact-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.termin-compact-desc {
  font-size: 13px;
  opacity: .55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.termin-compact-time {
  font-size: 13px;
  opacity: .55;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .termin-compact-item {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }
  .termin-compact-time { display: none; }
  .termin-compact-desc { display: none; }
}
.termine-grid--past .termin-card a { background: #2a2a2a; }
.termine-grid--past .termin-date { opacity: 0.45; }

.termine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.termin-card {
  break-inside: avoid;
  display: flex;
}

.termin-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-teal);
  color: #fff;
  text-decoration: none;
  padding: clamp(20px, 2.5vw, 32px);
  min-height: 200px;
}

.termin-card-img {
  margin: calc(-1 * clamp(20px, 2.5vw, 32px));
  margin-bottom: clamp(16px, 2vw, 24px);
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,.06);
}

.termin-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.termin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--color-accent, #e8007d);
  color: #fff;
}

.termin-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 8px;
}

.termin-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .stack-cards.is-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .stack-cards.is-masonry .card-sticky:has(.masonry-event-card),
  .stack-cards.is-masonry .card-sticky--wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .stack-cards.is-masonry {
    grid-template-columns: 1fr;
  }
  .stack-cards.is-masonry .card-sticky {
    min-width: 0;
  }
  .termine-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .stack-cards.is-masonry .card-sticky {
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════
   PRESSE – Kachelübersicht
   ══════════════════════════════════════════════════ */

.presse-section {
  padding-block: clamp(48px, 6vw, 80px);
}

.presse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .presse-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .presse-grid { grid-template-columns: 1fr; }
}

/* Kachel */
.presse-card {
  background: var(--color-teal, #2a7f7f);
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, opacity .2s;
  display: flex;
  flex-direction: column;
}
.presse-card:hover {
  opacity: .88;
  transform: translateY(-3px);
}

.presse-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Bild-Container */
.presse-card-thumb {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-teal, #2a7f7f);
}
.presse-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.presse-card:hover .presse-card-img {
  transform: scale(1.04);
}
.presse-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-teal, #2a7f7f);
  opacity: .15;
}

/* Medientyp-Badge */
.presse-card-type-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.presse-card-type-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Farben nach Typ */
.presse-card-type-icon[data-type="pdf"]   { background: rgba(220, 38, 38, .85); color: #fff; }
.presse-card-type-icon[data-type="audio"] { background: rgba(124, 58, 237, .85); color: #fff; }
.presse-card-type-icon[data-type="video"] { background: rgba(220, 38, 38, .85);  color: #fff; }
.presse-card-type-icon[data-type="link"]  { background: rgba(30, 64, 175, .85);  color: #fff; }
.presse-card-type-icon[data-type="image"] { background: rgba(0,0,0,.45);          color: #fff; }

/* Text-Bereich */
.presse-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.presse-card-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  opacity: .65;
}
.presse-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 0;
  color: #fff;
}
.presse-card-date {
  font-size: 12px;
  color: #fff;
  margin-top: auto;
  padding-top: 8px;
}

/* GLightbox PDF iframe */
.glightbox-container .gslide-iframe iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* ── Presse Inline-Popup (Audio/Video) ───────────────── */
.presse-inline-popup {
  background: var(--color-bg, #fff);
  color: var(--color-text, #111);
  max-width: 680px;
  width: 90vw;
  border-radius: 12px;
  overflow: hidden;
}
.presse-popup-cover {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}
.presse-popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.presse-popup-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.presse-popup-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .5;
}
.presse-popup-title {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.presse-popup-date {
  font-size: 12px;
  opacity: .5;
  margin: 0;
}
.presse-popup-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  background: var(--color-teal, #2a7f7f);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity .15s;
}
.presse-popup-btn:hover { opacity: .85; }

/* GLightbox inline override: zentriert und weiß */
.glightbox-container .gslide-inline .presse-inline-popup {
  margin: auto;
}

/* Presse: <button> als Karten-Wrapper */
button.presse-card-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

/* Presse Popup: Audio-Player */
.presse-popup-audio {
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
  accent-color: var(--color-teal, #2a7f7f);
}
.presse-popup-link-small {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-teal, #2a7f7f);
  text-decoration: underline;
}

/* ── Presse Inline-Modal (Audio/Video) ───────────────── */
.presse-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.presse-modal-overlay.is-open {
  display: flex;
}
.presse-modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.presse-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background .15s;
}
.presse-modal-close:hover { background: rgba(0,0,0,.15); }
.presse-modal-content .presse-inline-popup {
  display: block !important;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: none;
}

/* Presse Popup: PDF-Frame */
.presse-popup-body--pdf {
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.presse-pdf-frame-wrap {
  width: 100%;
  height: 70vh;
  min-height: 400px;
}
.presse-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Popup: Vollbild-Bild */
.presse-popup-fullimg {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}

/* Modal breiter für PDF */
.presse-modal-box--pdf {
  max-width: min(1100px, 92vw);
}

/* ── Single-Post: Back-Button ────────────────────── */
.single-back {
  margin-bottom: 32px;
}
.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background .2s, border-color .2s;
}
.single-back-link:hover {
  background: var(--color-border);
  border-color: var(--color-text-muted);
}
.single-back-link svg { flex-shrink: 0; }

/* ── Single-Post: Prev / Next ────────────────────── */
.single-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.single-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 45%;
  text-decoration: none;
  color: var(--color-text);
}
.single-post-nav__item--next {
  text-align: right;
  margin-left: auto;
}
.single-post-nav__dir {
  font-size: var(--fs-small, 0.875rem);
  opacity: .5;
}
.single-post-nav__title {
  font-weight: 600;
  line-height: 1.3;
  transition: color .2s;
  font-size: clamp(16px, 2vw, 20px);
}
.single-post-nav__item:hover .single-post-nav__title {
  color: var(--color-orange);
}
.single-event-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.single-event-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: .5;
}
.single-event-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.single-event-share-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}
.single-event-share-btn svg { flex-shrink: 0; }
.single-post-nav__date {
  font-size: var(--fs-small, 0.875rem);
  opacity: .5;
}

/* ── Termine view toggle ───────────────────────────── */
.termine-view-controls-wrap {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: 0;
}
.termine-view-controls {
  display: flex;
  gap: 4px;
}
.termine-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .15s, color .15s, border-color .15s;
}
.termine-view-btn.is-active {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.termine-view-btn:not(.is-active):hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* ── Termine calendar ──────────────────────────────── */
.termine-calendar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 32px;
}

/* Toolbar: Jahr / Monat tabs */
.cal-toolbar {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
}
.cal-view-tabs {
  display: flex;
  gap: 4px;
}
.cal-view-tab {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cal-view-tab.is-active {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
}
.cal-view-tab:not(.is-active):hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Shared nav button */
.cal-nav {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  opacity: .55;
  transition: opacity .15s, background .15s;
  padding: 0;
  flex-shrink: 0;
}
.cal-nav:hover { background: var(--color-border); opacity: 1; }

.cal-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

/* ── Jahr-Ansicht ── */
.cal-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cal-year-header .cal-title { font-size: 26px; }

.cal-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
}

/* Mini-Monat */
.cal-mini {
  background: var(--color-bg-card);
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  border: none;
  color: var(--color-text);
  transition: background .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.cal-mini:hover { background: rgba(255,255,255,.05); }

.cal-mini-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .6;
  display: block;
}

.cal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.cal-mini-dn {
  font-size: 9px;
  text-align: center;
  opacity: .3;
  padding-bottom: 2px;
}
.cal-mini-cell {
  font-size: 10px;
  text-align: center;
  line-height: 20px;
  border-radius: 3px;
  opacity: .5;
}
.cal-mini-cell.is-today {
  background: var(--color-teal);
  color: #fff;
  opacity: 1;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0 auto;
}
.cal-mini-cell.has-ev {
  opacity: 1;
  color: var(--color-teal);
  font-weight: 700;
}
.cal-mini-cell.has-ev-t {
  opacity: 1;
  color: #6ca985;
  font-weight: 700;
}
.cal-mini-cell.is-today.has-ev {
  background: var(--color-teal);
  color: #fff;
}

/* ── Monats-Ansicht ── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cal-month {
  display: flex;
  flex-direction: column;
}
.cal-day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--color-border);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(100% / 7 - 1px),
    var(--color-border) calc(100% / 7 - 1px),
    var(--color-border) calc(100% / 7)
  );
}
.cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .4;
  padding: 12px 4px;
}
.cal-week-row {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
  min-height: 130px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(100% / 7 - 1px),
    var(--color-border) calc(100% / 7 - 1px),
    var(--color-border) calc(100% / 7)
  );
}
.cal-week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day-cell {
  padding: 6px 8px;
  min-height: 36px;
}
.cal-day-cell--empty { background: transparent; }
.cal-day-num {
  font-size: 14px;
  font-weight: 600;
  opacity: .45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  line-height: 1;
}
.cal-day-cell--today .cal-day-num {
  background: var(--color-teal);
  color: #fff;
  opacity: 1;
}
.cal-event-lane {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 2px 4px;
  gap: 0;
}
.cal-event {
  display: block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--color-teal);
  color: #fff;
  text-decoration: none;
  white-space: normal;
  overflow: hidden;
  line-height: 1.4;
  transition: opacity .15s;
  margin: 0 2px;
  word-break: break-word;
}
.cal-event:hover { opacity: .75; }
.cal-event-title { display: block; }
.cal-event-time {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: .85;
  margin-top: 1px;
}
.cal-event--now { background: var(--color-accent, #e8007d); }
.cal-event--termin { background: #6ca985; }
.cal-ev-link {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  opacity: .75;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .cal-year-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cal-year-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-event { font-size: 10px; padding: 2px 4px; }
  .cal-day-name { font-size: 9px; padding: 8px 2px; }
  .cal-title { font-size: 17px; }
  .cal-day-num { width: 24px; height: 24px; font-size: 12px; }
}

/* ── Kalender-Modal ──────────────────────────────── */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cal-modal-overlay.is-open { display: flex; }

.cal-modal-box {
  background: #fff;
  color: #111;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 40px 36px 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.cal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: background .15s;
}
.cal-modal-close:hover { background: #e0e0e0; }

.cal-modal-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  padding-right: 24px;
}

.cal-modal-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 0 24px;
}

.cal-modal-section {
  margin-bottom: 24px;
}

.cal-modal-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #888;
  margin: 0 0 8px;
}

.cal-modal-date {
  font-size: 15px;
  color: #222;
  margin: 0;
}

.cal-modal-share-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-modal-share-btn {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 13px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cal-modal-share-btn:hover {
  border-color: #aaa;
  background: #f8f8f8;
}

.cal-modal-event-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-teal, #1a6b6b);
  text-decoration: none;
}
.cal-modal-event-link:hover { text-decoration: underline; }

/* Description with optional collapse */
.cal-modal-desc-wrap {
  margin: 12px 0 0;
}
.cal-modal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 6px;
}
.cal-modal-desc-wrap.is-long .cal-modal-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.cal-modal-desc-wrap.is-long.is-expanded .cal-modal-desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.cal-modal-desc-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-teal, #1a6b6b);
  cursor: pointer;
  text-decoration: underline;
}
.cal-modal-desc-toggle:hover { opacity: .75; }

@media (max-width: 480px) {
  .cal-modal-box { padding: 32px 20px 24px; }
  .cal-modal-share-btns { flex-direction: column; }
  .cal-modal-share-btn { min-width: 0; }
}

/* ── Mobile calendar: dot grid + agenda list ── */
.cal-mob-grid {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
}
.cal-mob-weeks { display: flex; flex-direction: column; }
.cal-mob-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
}
.cal-mob-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 2px 4px;
  cursor: pointer;
  min-height: 52px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}
.cal-mob-cell:last-child { border-right: none; }
.cal-mob-cell--empty { cursor: default; }
.cal-mob-cell:not(.cal-mob-cell--empty):hover { background: rgba(255,255,255,.05); }
.cal-mob-num {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: inherit;
  opacity: .75;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cal-mob-cell--today .cal-mob-num {
  background: var(--color-teal, #1a6b6b);
  color: #fff;
  opacity: 1;
}
.cal-mob-cell--sel:not(.cal-mob-cell--today) .cal-mob-num {
  background: rgba(255,255,255,.15);
  opacity: 1;
}
.cal-dots {
  display: flex;
  gap: 3px;
  margin-top: 3px;
  min-height: 6px;
}
.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}
.cal-dot--v { background: var(--color-teal, #1a6b6b); }
.cal-dot--t { background: #6ca985; }

/* Agenda list */
.cal-agenda { margin-top: 20px; }
.cal-agenda-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .55;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.cal-agenda-list { display: flex; flex-direction: column; gap: 2px; }
.cal-agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  font: inherit;
}
.cal-agenda-item--v { border-left: 3px solid var(--color-teal, #1a6b6b); background: rgba(255,255,255,.05); }
.cal-agenda-item--t { border-left: 3px solid #6ca985; background: rgba(255,255,255,.05); }
.cal-agenda-info { flex: 1; min-width: 0; }
.cal-agenda-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.cal-agenda-desc {
  display: block;
  font-size: 12px;
  opacity: .6;
  margin-top: 2px;
  line-height: 1.4;
}
.cal-agenda-time {
  font-size: 12px;
  opacity: .6;
  text-align: right;
  white-space: nowrap;
  line-height: 1.5;
  flex-shrink: 0;
}
.cal-agenda-empty {
  font-size: 14px;
  opacity: .4;
  padding: 12px 0;
}

/* =========================================
   NÄCHSTE TERMINE KACHEL (Startseite, im Masonry-Grid)
   ========================================= */

/* Kachel füllt die card-sticky-Zelle komplett aus */
.nt-card {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-card, 10px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.nt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.nt-card-header .section-label { margin: 0; }

.nt-card-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-teal);
  opacity: .8;
  transition: opacity .15s;
  white-space: nowrap;
}
.nt-card-link:hover { opacity: 1; }

.nt-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nt-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex: 1;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity .15s;
}
.nt-card-item:hover { opacity: .75; }
.nt-card-item:last-child { border-bottom: none; }

.nt-card-date {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
  width: 56px;
}

.nt-card-wday {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.nt-card-day {
  font-size: 14px;
  font-weight: 700;
  opacity: .85;
}

.nt-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nt-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nt-card-time {
  font-size: 11px;
  opacity: .5;
}


.wp-block-columns { 
  margin-bottom: clamp(32px, 5vw, 48px);
}
