/*
Theme Name: Bloom
Theme URI: https://lukas-unger.de
Author: Lukas Unger
Author URI: https://lukas-unger.de
Description: Kampagnenwebsite-Theme fuer Lukas Unger - nachhaltige Mobilitaet, Klimaschutz und Wirtschaft.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloom
*/

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Custom Font ──────────────────────────────────────────── */
@font-face {
  font-family: 'GrueneTypeNeue';
  src: url('assets/fonts/GrueneTypeNeue-Regular.woff2') format('woff2'),
       url('assets/fonts/GrueneTypeNeue-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens (CSS Custom Properties) ────────────────── */
:root {
  --background: hsl(80, 20%, 97%);
  --foreground: hsl(160, 25%, 8%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(160, 25%, 8%);
  --primary: hsl(152, 38%, 18%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(150, 12%, 92%);
  --secondary-foreground: hsl(152, 38%, 18%);
  --muted: hsl(80, 8%, 93%);
  --muted-foreground: hsl(160, 8%, 42%);
  --accent: hsl(82, 85%, 45%);
  --accent-foreground: hsl(152, 38%, 18%);
  --border: hsl(150, 12%, 88%);
  --input: hsl(150, 12%, 88%);
  --ring: hsl(82, 85%, 45%);
  --radius: 0.75rem;

  /* Gradient helpers */
  --gradient-accent-1: linear-gradient(135deg, hsl(82 85% 45% / .20), hsl(82 85% 45% / .05));
  --gradient-accent-2: linear-gradient(135deg, hsl(152 38% 18% / .15), hsl(152 38% 18% / .05));
  --gradient-accent-3: linear-gradient(135deg, hsl(82 85% 45% / .15), hsl(152 38% 18% / .05));
  --gradient-accent-4: linear-gradient(135deg, hsl(152 38% 18% / .20), hsl(82 85% 45% / .05));
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ─── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-padding {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 5rem 5rem;
  }
}

/* ─── Glass Card ───────────────────────────────────────────── */
.glass-card {
  background-color: hsl(0 0% 100% / .80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(150 12% 88% / .50);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px hsl(0 0% 0% / .08);
}

/* ─── Navigation Link ──────────────────────────────────────── */
.nav-link {
  position: relative;
  color: hsl(152 38% 18% / .80);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.5rem 1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover {
  color: var(--primary);
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: hsl(152 38% 14%);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(to right, #10b981, #059669);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.btn-accent:hover {
  opacity: 0.9;
}

/* ─── Badge / Tag ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.725rem;
  font-weight: 600;
}

/* Badge: kurze Version nur Mobile, volle Version nur Desktop */
.badge-short { display: none; }

@media (max-width: 768px) {
  .hero-title-line1 { font-size: 14vw !important; }
  .hero-title-line2 { font-size: 4vw !important; }

  .hero-content {
    padding-bottom: 2rem;
    transform: translateY(-10%);
  }

  .hero-badge {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 0.4rem;
  }
  .hero-badge .badge {
    white-space: nowrap;
    font-size: clamp(0.45rem, 2.8vw, 0.875rem);
    padding: 0.3rem 0.75rem;
  }
  .badge-full  { display: none; }
  .badge-short { display: inline-block; }
}

.category-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: hsl(82 85% 45% / .10);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ─── Scroll Animation Base Classes ───────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Variants */
.anim-slide-left {
  transform: translateX(-40px) scale(0.96);
}

.anim-slide-right {
  transform: translateX(40px);
}

.anim-scale {
  transform: scale(0.96) translateY(20px);
}

.anim-fade {
  transform: none;
}

/* Stagger helpers (set via style attribute in PHP) */
.delay-1 {
  transition-delay: 0.13s;
}

.delay-2 {
  transition-delay: 0.26s;
}

.delay-3 {
  transition-delay: 0.39s;
}

.delay-4 {
  transition-delay: 0.52s;
}

/* ─── Hero Section ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      hsl(152 38% 18% / .90) 0%,
      hsl(152 38% 18% / .20) 45%,
      transparent 50%);
}

.hero-content {
  position: relative;
  width: 100%;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding-bottom: 5rem;
  }
}

.hero-title-line1 {
  display: block;
  font-family: 'GrueneTypeNeue', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 11rem);
  color: var(--primary-foreground);
  line-height: 1;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.hero-title-line2 {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: clamp(1.125rem, 1.8vw, 1.875rem);
  margin-top: 0rem;
}

/* Hero entry animations */
.hero-badge {
  animation: fadeUp 0.7s ease forwards;
}

.hero-heading {
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-chevron {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: hsl(0 0% 100% / .60);
  animation: fadeIn 0.5s 1.2s ease both;
}

.hero-chevron svg {
  animation: bounceDrop 1.8s ease-in-out infinite;
}

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #fff;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 1px 8px hsl(0 0% 0% / .06);
  transform: translateY(-80px);
  transition: transform 0.3s ease-in-out;
}

.site-header.is-visible,
.site-header.no-home {
  transform: translateY(0);
}

.site-header.sticky-header {
  position: sticky;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem !important;
}

.site-logo {
  font-family: 'GrueneTypeNeue', system-ui, sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav .nav-item {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: hsl(152 38% 18% / .80);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-dropdown-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-dropdown-btn:hover::after,
.nav-dropdown-btn.parent-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown-btn:hover {
  color: var(--primary);
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-chevron,
.nav-item.dropdown-open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px hsl(0 0% 0% / .12);
  overflow: hidden;
  margin-top: 0;
  padding-top: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Unsichtbare Brücke schließt die Lücke zwischen Nav-Link und Dropdown */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: transparent;
}

.nav-item:hover .dropdown-panel,
.nav-item.dropdown-open .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(160 25% 8% / .75);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-panel a:hover,
.dropdown-panel a.active {
  background-color: hsl(82 85% 45% / .12);
  color: var(--primary);
}

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  padding: 0.25rem;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

@media (max-width: 1023px) {
  .mobile-nav {
    display: block;
  }
}

.mobile-nav.is-open {
  max-height: 600px;
  opacity: 1;
}

.mobile-nav-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-dropdown-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: hsl(152 38% 18% / .80);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-dropdown-btn:hover {
  color: var(--primary);
}

.mobile-dropdown-btn .chev {
  transition: transform 0.2s ease;
}

.mobile-dropdown-btn.open .chev {
  transform: rotate(180deg);
}

.mobile-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 1rem;
}

.mobile-sub.is-open {
  max-height: 300px;
}

.mobile-sub a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(160 25% 8% / .70);
  transition: color 0.2s;
}

.mobile-sub a:hover {
  color: var(--primary);
}

/* ─── Introduction Section ─────────────────────────────────── */
.intro-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.intro-image {
  aspect-ratio: 4/5;
  border-radius: 1rem;
  background-color: var(--secondary);
  overflow: hidden;
  position: relative;
}

.intro-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(152 38% 18% / .20), transparent);
}

.intro-quote {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 0rem;
  margin-top: 1rem;
}

/* ─── Core Topics Section ──────────────────────────────────── */
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── Fancy Topic Card (tfc) ─────────────────────────────────── */
.tfc {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--card);
  min-height: 20vw;
  box-shadow: 0 2px 16px hsl(0 0% 0% / .06);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  text-decoration: none;
}


.tfc:hover {
  box-shadow: 0 12px 40px hsl(0 0% 0% / .13);
  transform: translateY(-3px);
}

/* Left: content column */
.tfc-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 70%;
  min-width: 0;
  padding: 2rem 2.5rem 2rem 3.5rem;
}

.tfc-spacer {
  flex: 0 0 0; /* kein Abstand – Titel ganz oben */
}

/* Title: large GENUINE, green, overflows slightly into image */
.tfc-title {
  font-family: 'GrueneTypeNeue', 'DM Sans', sans-serif;
  color: var(--primary);
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1;
  margin: 0 0 2rem 0;
  width: 110%;
  text-transform: uppercase;
}

.tfc-body {
  max-width: 81%;
}

.tfc-body p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 1.25rem 0;
}

.tfc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.tfc:hover .tfc-cta {
  gap: 0.65rem;
}

/* Right: image column */
.tfc-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 43%;
  height: 100%;
  overflow: hidden;
}

.tfc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}

.tfc:hover .tfc-image img {
  transform: scale(1.04);
}

/* Sanfter Übergang: Bild läuft weich in den Content aus */
.tfc-image-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    hsl(0 0% 100% / 1)     0%,
    hsl(0 0% 100% / .7)    20%,
    hsl(0 0% 100% / .2)    45%,
    hsl(0 0% 100% / 0)     70%);
  pointer-events: none;
}

/* ── Variante: Bild links ───────────────────────────────────── */
.tfc--image-left .tfc-image {
  left: 0;
  right: auto;
}

.tfc--image-left .tfc-image-fade {
  background: linear-gradient(to left,
    hsl(0 0% 100% / 1)     0%,
    hsl(0 0% 100% / .7)    20%,
    hsl(0 0% 100% / .2)    45%,
    hsl(0 0% 100% / 0)     70%);
}

.tfc--image-left .tfc-inner {
  margin-left: 30%;
  padding-left: 2rem;
  padding-right: 2.5rem;
}

/* Text rechtsbündig bei Bild-links */
.tfc--image-left .tfc-inner {
  text-align: right;
}

.tfc--image-left .tfc-cta {
  flex-direction: row-reverse;
}

.tfc--image-left .tfc-body {
  padding-left: 0;
  padding-right: 1rem;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Titel bei Bild-links: leicht nach links überlappen */
.tfc--image-left .tfc-title {
  width: 110%;
  margin-left: -10%; /* läuft leicht ins Bild hinein */
}

/* Mobile: Bild oben, Content darunter */
@media (max-width: 640px) {
  .tfc {
    flex-direction: column;
    min-height: auto;
  }

  .tfc-inner {
    width: 100%;
    padding: 1.5rem;
    order: 2;
  }

  .tfc-spacer { display: none; }

  .tfc-title {
    width: 100%;
    font-size: clamp(2rem, 8vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .tfc-body {
  }

  .tfc-image {
    position: relative;
    width: 100%;
    height: 240px;
    order: 1;
    transform: none;
    top: auto;
  }

  .tfc-image-fade,
  .tfc--image-left .tfc-image-fade {
    background: linear-gradient(to top,
      hsl(82 85% 45% / .35)   0%,
      hsl(82 85% 45% / .10)   40%,
      hsl(82 85% 45% / 0)     70%);
  }

  /* Bild-links auf Mobile: alles zurücksetzen */
  .tfc--image-left .tfc-inner {
    margin-left: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: left;
  }

  .tfc--image-left .tfc-body {
    margin-left: 0;
    padding-right: 0;
    align-items: flex-start;
    max-width: 100%;
  }

  .tfc--image-left .tfc-cta {
    flex-direction: row;
  }

  .tfc--image-left .tfc-image {
    left: 0;
    position: relative;
    transform: none;
  }

  .tfc--image-left .tfc-title {
    margin-left: 0;
    width: 100%;
  }
}

/* ─── News Section ─────────────────────────────────────────── */
.news-grid {
  display: flex;
  flex-wrap: nowrap;        /* alle Karten in einer Reihe – Slider schiebt via translateX */
  gap: 1.5rem;
}

/* Jede Slide-Karte: exakt 1/3 des Containers minus Gaps */
.news-slide-item {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

/* Auf kleinen Screens: eine Karte sichtbar */
@media (max-width: 767px) {
  .news-slide-item {
    flex: 0 0 100%;
  }
}

.news-card {
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px hsl(0 0% 0% / .12);
}

.news-card h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.news-card:hover h3 {
  color: var(--accent);
}

.news-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.news-card:hover .read-more {
  gap: 0.5rem;
}

/* ─── Events List ──────────────────────────────────────────── */
.social-column,
.events-column {
  display: flex;
  flex-direction: column;
}

.events-column .carousel-controls {
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .events-social-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    align-items: stretch;
  }
  .social-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .events-column {
    display: flex;
    flex-direction: column;
    align-self: stretch; /* Panel zieht sich auf volle Höhe der Social-Spalte */
    height: 100%;
  }
  /* Panel füllt die volle Höhe seines Grid-Cells */
  .fp-events-panel {
    flex: 1;
    min-height: 0;
  }
}

.col-header {
  padding-bottom: 0;
  margin-top: 0.75rem;
}

/* ── Front-page Events Panel ─────────────────────────────────── */
.fp-events-panel {
  background: linear-gradient(160deg, hsl(152 38% 14%) 0%, hsl(152 38% 20%) 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}
.fp-events-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .22) 0%, transparent 70%);
  pointer-events: none;
}
.fp-events-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .14) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Events-Panel Desktop-Layout (eigenständig, ohne Subgrid-Abhängigkeit) ── */
@media (min-width: 1024px) {
  /* Panel selbst: kein Padding – Kinder steuern ihren Abstand */
  .fp-events-panel {
    padding: 0;
  }

  /* ── Exakte Höhenausrichtung Social ↔ Events ──────────────────
     Beide Selektoren mit gleicher Spezifität (0,3,0) setzen
     margin-top: 0 und padding-top: 1.25rem → garantiert gleiche Höhe.
  ─────────────────────────────────────────────────────────────── */
  .events-social-grid .social-column > .col-header {
    margin-top: 0;
    padding-top: 1.25rem;
  }
  .events-social-grid .fp-events-panel > .fp-events-panel-header {
    margin-top: 0;
    padding-top: 2.25rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-bottom: 0;
  }

  /* Event-Karten: füllen verfügbare Höhe, seitliches Padding */
  .fp-events-panel-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    overflow: hidden;
  }
  /* Carousel-Controls: am unteren Rand des Panels */
  .fp-events-panel-footer {
    padding: 0 2.5rem 1.5rem;
    margin-top: 0;
  }
}

@media (max-width: 1023px) {
  .social-column > .col-header {
    margin-bottom: 1rem;
  }
  .social-posts-grid {
    margin-bottom: 1rem;
  }
  .fp-events-panel-list,
  #events-list {
    margin-bottom: 0.5rem;
  }
  .carousel-controls {
    justify-content: flex-start;
  }
  /* Events-Panel: Innenabstand + Lücken auf Mobile/Tablet */
  .fp-events-panel {
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .fp-events-panel .col-header,
  .fp-events-panel-header {
    border-bottom: 1px solid hsl(0 0% 100% / .10);
    padding-bottom: 1rem;
  }
  .fp-events-panel .carousel-controls,
  .fp-events-panel-footer {
    padding-top: 0.25rem;
  }
}

#events-list,
.fp-events-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.event-list-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: hsl(0 0% 100% / .07);
  border: 1px solid hsl(0 0% 100% / .12);
  border-radius: 0.875rem;
  padding: 0.875rem 1.125rem;
  transition: background 0.2s, transform 0.25s ease;
}

.event-list-card:hover {
  background: hsl(0 0% 100% / .11);
  transform: translateY(-2px);
}

.event-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(82 85% 65%);
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.375rem;
}

.event-list-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.event-list-location {
  color: hsl(0 0% 100% / .50);
  font-size: 0.8125rem;
  margin: 0;
}

.event-list-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: hsl(0 0% 100% / .50);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  background: none;
  cursor: pointer;
}

.carousel-btn:hover {
  background-color: var(--secondary);
}

.ev-dark-btn {
  border-color: hsl(0 0% 100% / .20);
  color: #fff;
  background: hsl(0 0% 100% / .06);
}

.ev-dark-btn:hover {
  background: hsl(0 0% 100% / .12);
}

/* ─── Social Posts Grid ────────────────────────────────────── */
.social-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.social-post-tile {
  border-radius: 1rem;
  padding: 1rem;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-post-tile:hover {
  transform: scale(1.03);
}

.social-post-tile p {
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-post-tile .post-date {
  color: hsl(0 0% 100% / .60);
  font-size: 0.625rem;
  margin-top: 0.5rem;
}

/* Instagram tiles */
.ig-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  background: #111;
}

.ig-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
  z-index: 1;
  transition: background 0.35s ease;
}

.ig-tile:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 50%, hsl(82 85% 45% / .18) 100%);
}

.ig-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ig-tile:hover .ig-tile-img {
  transform: scale(1.06);
}

.ig-tile-content {
  position: relative;
  z-index: 2;
}

.ig-tile p {
  color: #fff !important;
}

.ig-tile .post-date {
  color: rgba(255,255,255,0.65) !important;
}

/* Social tile gradients */
.grad-1 {
  background: linear-gradient(135deg, #10b981, #15803d);
}

.grad-2 {
  background: linear-gradient(135deg, #14b8a6, #047857);
}

.grad-3 {
  background: linear-gradient(135deg, #16a34a, #0f766e);
}

.grad-4 {
  background: linear-gradient(135deg, #059669, #166534);
}

/* Social link buttons */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Tablet: genug Platz für 4 nebeneinander */
@media (min-width: 640px) and (max-width: 1023px) {
  .social-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

/* Desktop: alle Buttons in einer Reihe */
@media (min-width: 1024px) {
  .social-links {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
  }
}

.social-links .btn-accent {
  justify-content: center;
}

/* ─── Image Banner ─────────────────────────────────────────── */
.image-banner {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .image-banner {
    height: 60vh;
  }
}

.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-banner-overlay-r {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(150 12% 92% / .85), hsl(150 12% 92% / .50), transparent);
}

.image-banner-overlay-l {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, hsl(150 12% 92% / .85), hsl(150 12% 92% / .50), transparent);
}

.image-banner-overlay-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(150 12% 92% / .60), transparent);
}

.image-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.image-banner blockquote {
  max-width: 32rem;
}

.image-banner blockquote p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.image-banner blockquote footer {
  margin-top: 1rem;
  color: hsl(152 38% 18% / .70);
  font-weight: 500;
}

.image-banner.reverse .image-banner-content>.container {
  text-align: right;
}

.image-banner.reverse blockquote {
  margin-left: auto;
}

/* ─── About Page – Values ──────────────────────────────────── */
.values-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: hsl(82 85% 45% / .10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-icon-wrap {
  transform: scale(1.18) rotate(6deg);
}

/* ─── About: Hero mit Foto ─────────────────────────────────── */
.about-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.about-hero-text {
  flex: 1;
  min-width: 0;
}

.about-hero-photo {
  flex-shrink: 0;
  width: clamp(160px, 22vw, 280px);
  align-self: flex-end;
}

.about-hero-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 -8px 40px hsl(0 0% 0% / .25);
  border: 2px solid hsl(82 85% 45% / .4);
  border-bottom: none;
}

.about-hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 767px) {
  .about-hero-photo {
    display: none;
  }
}

/* ─── About: Bio-Foto mit Akzent-Blob ──────────────────────── */
.bio-photo-blob {
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  bottom: -0.75rem;
  left: 0;
  border-radius: 1.25rem;
  background: hsl(82 85% 45% / .25);
  filter: blur(18px);
  z-index: 0;
}

.bio-photo-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  background-color: var(--secondary);
  overflow: hidden;
}

@media (max-width: 767px) {
  .bio-photo-blob {
    display: none;
  }
}

/* ── Über-Mich Bio-Panel ───────────────────────────────────── */
.about-bio-panel {
  border-radius: 1.5rem;
  align-self: stretch;
}
@media (min-width: 768px) {
  .about-bio-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    border-radius: 1.5rem;
    overflow: hidden;
  }
  .about-bio-grid .bio-photo-wrap {
    border-radius: 0;
  }
  .about-bio-panel {
    border-radius: 0;
  }
}

/* ─── About: Bio Pills + Facts + Lead ──────────────────────── */
.bio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.bio-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  background: hsl(82 85% 45% / .12);
  border: 1px solid hsl(82 85% 45% / .3);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bio-facts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.bio-fact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.bio-fact svg {
  color: var(--accent);
  flex-shrink: 0;
}

.bio-lead {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.7;
}

.bio-body {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ─── About: Zitat-Banner ──────────────────────────────────── */
.about-quote-banner {
  background: var(--primary);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

.about-quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.about-quote-mark {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 4rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 900;
}

.about-quote-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.about-quote-author {
  font-size: 0.9rem;
  color: hsl(0 0% 100% / .6);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ─── About: Kennzahlen ─────────────────────────────────────── */
.about-stats-section {
  background: var(--primary);
  padding: 3rem 0;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .about-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .about-stat + .about-stat {
    border-left: 1px solid hsl(0 0% 100% / .2);
  }
}

.about-stat-number {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-stat-label {
  font-size: 0.8125rem;
  color: hsl(0 0% 100% / .75);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* ─── About: Nummerierte Werte-Karten ──────────────────────── */
.value-card-numbered {
  position: relative;
  padding-top: 1.5rem;
}

.value-number-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.value-number {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  color: hsl(82 85% 45% / .20);
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.value-icon-inner {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(82 85% 45% / .12);
  border-radius: 0.5rem;
  padding: 0.4rem;
}

.value-card-numbered:hover .value-number {
  color: hsl(82 85% 45% / .45);
}

/* ─── Timeline ─────────────────────────────────────────────── */
.timeline {}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.timeline-year {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: hsl(82 85% 45% / .45);
  min-width: 80px;
  line-height: 1;
  padding-top: 0;
  letter-spacing: -0.02em;
  transition: color 0.2s ease, font-size 0.15s ease-out;
}

.timeline-item:hover .timeline-year {
  font-size: 1.9rem;
  color: var(--accent);
}

.timeline-year--active {}

.timeline-body {
  flex: 1;
  padding-left: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child .timeline-body {
  padding-bottom: 0.5rem;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.55s 0.2s ease-out;
}

.timeline-item.is-visible .timeline-line {
  transform: scaleY(1);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent);
  z-index: 1;
  transform: scale(0);
  transition: transform 0.35s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.is-visible .timeline-dot {
  transform: scale(1);
}

/* Letzter (aktiver) Punkt: größer + Daueranimation */
.timeline-dot--active {
  width: 18px;
  height: 18px;
  left: -9px;
  top: 4px;
  box-shadow: 0 0 0 4px hsl(82 85% 45% / .2);
}

.timeline-dot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: hsl(82 85% 45% / .3);
  animation: dotPulseLoop 2s ease-in-out infinite;
}

@keyframes dotPulseLoop {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.7); opacity: 0;   }
}

.timeline-text {
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.6;
  transition: font-weight 0.12s ease-out;
}

.timeline-item:hover .timeline-text {
  font-weight: 700;
}

.timeline-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease-in-out, opacity 0.25s ease-in-out, margin-top 0.25s ease-in-out;
  margin-top: 0;
}

.timeline-item:hover .timeline-description {
  max-height: 200px;
  opacity: 1;
  margin-top: 6px;
}

/* ─── Contact – Split Panel ─────────────────────────────────── */
.contact-split {
  display: grid;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 64px hsl(152 38% 10% / .18);
}
@media (min-width: 768px) {
  .contact-split { grid-template-columns: 2fr 3fr; }
}

/* Left panel – dark */
.contact-panel-left {
  background: linear-gradient(160deg, hsl(152 38% 14%) 0%, hsl(152 38% 20%) 100%);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact-panel-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .22) 0%, transparent 70%);
  pointer-events: none;
}
.contact-panel-left::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .14) 0%, transparent 70%);
  pointer-events: none;
}
/* Aktuelles-Sidebar: sticky überschreibt contact-panel-left's position:relative */
@media (min-width: 1024px) {
  .aktuelles-sidebar {
    position: sticky !important;
    top: 6rem;
    align-self: start;
  }
}

.contact-panel-heading {
  font-family: 'GrueneTypeNeue', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: normal;
  color: #fff;
  line-height: 1.15;
}
.contact-panel-sub {
  font-size: 0.9375rem;
  color: hsl(0 0% 100% / .65);
  line-height: 1.7;
  margin-top: 0.75rem;
}
.contact-panel-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-panel-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: hsl(82 85% 45% / .18);
  border: 1px solid hsl(82 85% 45% / .30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(82 85% 45%);
  flex-shrink: 0;
}
.contact-panel-item-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(82 85% 45%);
  margin-bottom: 0.2rem;
}
.contact-panel-item-value {
  font-size: 0.875rem;
  color: hsl(0 0% 100% / .80);
}
.contact-panel-item-value a {
  color: inherit;
  transition: color 0.2s;
}
.contact-panel-item-value a:hover { color: hsl(82 85% 55%); }

/* Right panel – form */
.contact-panel-right {
  background: var(--background);
  padding: 3rem 2.5rem;
}

/* Form fields */
.cf-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.cf-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cf-row { grid-template-columns: 1fr 1fr; }
}
.cf-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.cf-group:focus-within .cf-label { color: var(--accent); }

.cf-input,
.cf-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cf-input:focus,
.cf-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px hsl(82 85% 45% / .15);
  background: hsl(82 85% 45% / .03);
}
.cf-textarea { resize: none; }

.cf-error {
  font-size: 0.875rem;
  color: hsl(0 84% 60%);
  background: hsl(0 84% 97%);
  border: 1px solid hsl(0 84% 85%);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.cf-success {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: scaleIn 0.35s ease forwards;
}
.cf-success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: hsl(82 85% 45% / .12);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin: 0 auto 1.25rem;
}
.cf-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* Legacy aliases so existing JS still works */
.form-input  { }
.form-label  { }
.form-group  { }
.form-error  { }
.form-success { }

/* ─── News Archive Page ────────────────────────────────────── */
.news-archive-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.news-two-col {
  flex: 1;
  display: none;
}

@media (min-width: 1024px) {
  .news-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    overflow: hidden;
    height: calc(100vh - 112px);
    /* subtract header + page-header */
  }
}

.news-scroll-col {
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background-color: var(--background);
}

.news-list-article {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.news-list-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px hsl(0 0% 0% / .12);
}

.events-sidebar {
  border-left: 1px solid var(--border);
  background-color: hsl(150 12% 92% / .30);
  display: flex;
  flex-direction: column;
}

.events-sidebar-head {
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.events-sidebar-list {
  flex: 1;
  overflow: hidden;
  padding: 1rem 1.5rem;
}

.events-sidebar-pagination {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.event-sidebar-card {
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.event-sidebar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px hsl(0 0% 0% / .10);
}

/* Mobile tabs */
.mobile-tabs {
  display: flex;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: relative;
}

@media (min-width: 1024px) {
  .mobile-tabs {
    display: none;
  }
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--muted-foreground);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background-color: var(--primary);
  transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s ease;
}

.tab-panel {
  display: none;
  padding: 1.25rem 1rem;
}

@media (min-width: 1024px) {
  .tab-panel {
    display: none !important;
  }
}

.tab-panel.active {
  display: block;
}

/* mobile news list */
.mobile-news-list {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-news-list {
    display: none;
  }
}

/* ─── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1.5 2rem 2rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero {
    padding: 2.5rem 2rem 2rem;
  }
}

.page-hero--legal {
  padding: 3rem 2rem 2.5rem;
}
@media (min-width: 768px) {
  .page-hero--legal {
    padding: 4.5rem 2rem 3rem;
  }
}

.page-hero .overline {
  color: var(--accent);
}

/* overline auf dunklem Panel-Hintergrund */
.fp-events-panel .overline,
.fp-news-panel .overline {
  color: hsl(82 85% 55%);
  margin-top: 0;
}

/* ── Front-page News Panel ───────────────────────────────────── */
.fp-news-panel {
  background: linear-gradient(160deg, hsl(152 38% 14%) 0%, hsl(152 38% 20%) 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.fp-news-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .18) 0%, transparent 70%);
  pointer-events: none;
}
.fp-news-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .10) 0%, transparent 70%);
  pointer-events: none;
}

/* Horizontales Padding für alle Panel-Sektionen */
.fp-panel-inner {
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 871px) {
  .fp-panel-inner {
    padding: 0 2rem;
  }
}
.fp-news-panel > .fp-panel-inner:first-child {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}
.fp-panel-footer {
  padding-bottom: 2.5rem;
  padding-top: 1.5rem;
}

/* News-Karte auf dunklem Hintergrund */
.fp-news-card {
  background: hsl(0 0% 100% / .07);
  border: 1px solid hsl(0 0% 100% / .12);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  transition: background 0.2s, transform 0.25s ease;
}
.fp-news-card:hover {
  background: hsl(0 0% 100% / .11);
  transform: translateY(-2px);
}
.fp-news-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.fp-news-card .read-more {
  display: none;
}

.page-hero h1 {
  font-family: 'GrueneTypeNeue', sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: normal;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.page-hero p {
  color: hsl(0 0% 100% / .80);
  max-width: 36rem;
  margin-top: 0.2rem;
}

/* ─── Image Hero (wiederverwendbar, alle Innenseiten) ──────── */
.topic-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.topic-hero-bg {
  position: absolute;
  inset: 0;
}
.topic-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.topic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(152 38% 12% / .92) 0%,
    hsl(152 38% 18% / .70) 60%,
    hsl(152 38% 18% / .30) 100%
  );
}
.topic-hero-content {
  position: relative;
  width: 100%;
  padding-bottom: 3.5rem;
}
.topic-hero-orb {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(82 85% 45% / .18) 0%, transparent 70%);
  pointer-events: none;
}
.topic-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsl(82 85% 45% / .15);
  border: 1px solid hsl(82 85% 45% / .30);
  color: hsl(82 85% 45%);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.topic-title-line,
.page-hero-line {
  display: block;
  width: 3rem;
  height: 3px;
  background: hsl(82 85% 45%);
  border-radius: 2px;
  margin: 1rem 0 0.5rem;
}
.topic-image-credit {
  position: absolute;
  bottom: 0.75rem;
  right: 4rem;
  font-size: 0.7rem;
  color: hsl(0 0% 100% / .75);
  text-shadow: 0 1px 4px hsl(0 0% 0% / .60);
  pointer-events: none;
  line-height: 1;
  letter-spacing: 0.02em;
}
.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: hsl(0 0% 100% / .55);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.topic-breadcrumb a { color: inherit; transition: color 0.2s; }
.topic-breadcrumb a:hover { color: #fff; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-inner {
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 3rem 1.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid > div:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 6rem;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

.footer-brand-name {
  font-family: 'GrueneTypeNeue', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: hsl(0 0% 100% / .70);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.625rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(0 0% 100% / .70);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-foreground);
}

.social-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(0 0% 100% / .10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  color: var(--primary-foreground);
}

.social-icon-btn:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Footer social column */
.footer-social-col {
  text-align: left;
}

.footer-social-icons {
  display: grid;
  grid-template-columns: repeat(2, 2.5rem);
  gap: 0.75rem;
  margin-top: 0.25rem;
  width: fit-content;
}

@media (min-width: 768px) {
  .footer-social-col {
    text-align: right;
    padding-right: 0.5rem;
  }
  .footer-social-col .footer-heading {
    margin-right: 0.6rem;
  }
  .footer-social-icons {
    margin-left: auto;
    margin-right: 0.5rem;
  }
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0 0% 100% / .10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(0 0% 100% / .50);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  transition: color 0.2s;
}

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

/* ─── Section Heading Shimmer (alle, bei Hover) ─────────────── */
.heading-shimmer-anim {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: default;
}
.heading-shimmer-anim::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -60%;
  width: 50%;
  height: 35%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    hsl(82 85% 45% / .45) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.heading-shimmer-anim.shimmer-active::after {
  animation: shimmer-pass 1.4s 0.2s ease forwards;
}
@keyframes shimmer-pass {
  from { left: -60%; }
  to   { left: 130%; }
}

/* ─── Section Heading Helper ───────────────────────────────── */
.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.5rem;
}

/* ─── Keyframe Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }

  to {
    opacity: 0;
    transform: translateX(-40px) rotate(-2deg);
  }
}

@keyframes bounceDrop {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes dotPulse {
  from {
    transform: scale(1);
    opacity: 0.6;
  }

  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Entry Content Typografie (global) ────────────────────── */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--foreground);
}
.entry-content p           { margin-bottom: 1.5rem; }
.entry-content h2          { font-family:'DM Sans',sans-serif; font-size:1.5rem; font-weight:700; margin:2.5rem 0 1rem; color:var(--foreground); }
.entry-content h3          { font-family:'DM Sans',sans-serif; font-size:1.25rem; font-weight:700; margin:2rem 0 0.75rem; color:var(--foreground); }
.entry-content ul,
.entry-content ol          { padding-left:1.5rem; margin-bottom:1.5rem; }
.entry-content ul          { list-style:disc; }
.entry-content ol          { list-style:decimal; }
.entry-content li          { margin-bottom:0.375rem; }
.entry-content blockquote,
.entry-content .wp-block-quote { border-left:4px solid var(--accent); padding-left:1.25rem; margin:2rem 0;
                             font-style:italic; color:var(--foreground); font-size:0.9375rem;
                             max-width: 100%; line-height: 1.4; }
.entry-content .wp-block-quote p { font-size:0.9375rem; font-style:italic; }
.entry-content a           { color:var(--primary); font-weight:500; text-decoration:underline;
                             text-underline-offset:3px; transition:color 0.2s; }
.entry-content a:hover     { color:var(--accent); }
.entry-content img         { border-radius:var(--radius); margin:1.5rem 0;
                             box-shadow:0 4px 20px hsl(0 0% 0% / .10); }
.entry-content strong      { font-weight:700; color:var(--foreground); }
.entry-content hr          { border:none; border-top:1px solid var(--border); margin:2.5rem 0; }

/* ─── Startseite: Eingerückter Content ─────────────────────── */
.fp-content {
  padding-left: 10%;
  max-width: 80%;
}
.fp-content blockquote,
.fp-content .wp-block-quote {
  margin-left: -7rem;
  width: calc(100% + 7rem);
}

@media (max-width: 768px) {
  .fp-content {
    padding-left: 0;
    max-width: 100%;
  }
  .fp-content blockquote,
  .fp-content .wp-block-quote {
    margin-left: -1.5rem !important;
    width: calc(100% + 5rem) !important;
  }
  .entry-content blockquote,
  .fp-content blockquote,
  .entry-content .wp-block-quote,
  .fp-content .wp-block-quote,
  .entry-content .wp-block-quote p,
  .fp-content .wp-block-quote p {
    font-size: 1.3rem !important;
  }

  .fp-content p,
  .entry-content.fp-content > p {
    font-size: 1.3rem !important;
  }
}

/* ─── Single Post ──────────────────────────────────────────── */
.single-post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.single-post-content h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.single-post-content .entry-content {
  line-height: 1.8;
  color: var(--muted-foreground);
}

.single-post-content .entry-content p {
  margin-bottom: 1rem;
}

/* ─── 404 ──────────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found h1 {
  font-family: 'GrueneTypeNeue', system-ui, sans-serif;
  font-size: 8rem;
  color: var(--accent);
  line-height: 1;
}

/* ─── Utility ──────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-accent-color {
  color: var(--accent);
}

.text-primary-color {
  color: var(--primary);
}

.bg-secondary-light {
  background-color: hsl(150 12% 92% / .50);
}

.bg-background {
  background-color: var(--background);
}

/* ═══════════════════════════════════════════════════════════════
   Cookie Banner
   ══════════════════════════════════════════════════════════════ */

.cb-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0 1rem 1rem;

  /* Slide-in von unten */
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.cb-banner.cb--visible {
  transform: translateY(0);
}

/* Zentriertes inneres Panel */
.cb-inner {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, hsl(152 38% 13%) 0%, hsl(152 42% 19%) 100%);
  border: 1px solid hsl(0 0% 100% / .10);
  border-radius: 1.25rem;
  box-shadow: 0 -4px 40px hsl(0 0% 0% / .30), 0 8px 32px hsl(0 0% 0% / .20);
}

/* Dekorative Orbs */
.cb-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cb-orb-1 {
  top: -40px; right: 60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, hsl(82 85% 45% / .16) 0%, transparent 70%);
}
.cb-orb-2 {
  bottom: -30px; left: 40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, hsl(152 50% 40% / .18) 0%, transparent 70%);
}

/* Icon + Text Bereich */
.cb-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.cb-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: hsl(82 85% 45% / .18);
  border: 1px solid hsl(82 85% 55% / .28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(82 85% 65%);
  margin-top: 0.1rem;
}

.cb-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(82 85% 55%);
  margin: 0 0 0.3rem;
}

.cb-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: hsl(0 0% 100% / .65);
  line-height: 1.6;
  margin: 0;
}

.cb-body strong {
  color: hsl(0 0% 100% / .85);
  font-weight: 600;
}

.cb-link {
  color: hsl(82 85% 60%);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.cb-link:hover { color: hsl(82 85% 75%); }

/* Button-Gruppe */
.cb-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 0.625rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cb-btn-primary {
  background: hsl(82 85% 45%);
  color: hsl(152 38% 10%);
  box-shadow: 0 2px 12px hsl(82 85% 45% / .35);
}
.cb-btn-primary:hover {
  background: hsl(82 85% 52%);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px hsl(82 85% 45% / .45);
}

.cb-btn-ghost {
  background: hsl(0 0% 100% / .08);
  color: hsl(0 0% 100% / .70);
  border: 1px solid hsl(0 0% 100% / .15);
}
.cb-btn-ghost:hover {
  background: hsl(0 0% 100% / .14);
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 640px) {
  .cb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.125rem 1.125rem 1rem;
  }
  .cb-actions {
    flex-direction: row;
  }
  .cb-btn {
    flex: 1;
  }
}