/* ===========================
   JOHANNISLOGE ZUR CEDER
   Design System & Stylesheet
   =========================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --navy-deep: #0a1628;
  --navy: #0e1b33;
  --navy-mid: #162040;
  --navy-light: #1e2d52;
  --navy-muted: #2a3a60;
  --gold: #c9a227;
  --gold-light: #e0b84a;
  --gold-pale: #f5e8c0;
  --gold-dark: #9e7d1a;
  --cream: #f8f4ec;
  --cream-dark: #ede7d9;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-body: #2d3748;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-light: rgba(201, 162, 39, 0.25);
  --border-navy: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 5rem;
  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 4vw, 3rem);

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.3);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--navy-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

address { font-style: normal; }

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===========================
   TYPOGRAPHY
   =========================== */

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
}

.section-header.centered .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline-small {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-muted);
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}
.btn-outline-small:hover {
  background: var(--navy);
  color: var(--white);
}

.link-external {
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-base);
}
.link-external:hover { color: var(--gold-light); }

.link-inline {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition-base);
}
.link-inline:hover { color: var(--gold-dark); }

/* ===========================
   NAVIGATION
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(8, 16, 30, 0.99);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-navy);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem var(--container-pad);
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  color: var(--white);
  transition: opacity var(--transition-base);
}
.nav-logo:hover { opacity: 0.9; }

.logo-kreuz {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-link.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  margin-left: 0.5rem;
}
.nav-link.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-deep);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.dropdown a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-link.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ===========================
   SUBPAGE HERO BANNER
   =========================== */

.subpage-hero {
  background: linear-gradient(135deg, #07101f 0%, #0d1b36 60%, #080f1f 100%);
  padding: 8.5rem 0 4rem;
  border-bottom: 1px solid rgba(201,162,39,0.2);
  text-align: center;
  position: relative;
}

.subpage-hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.subpage-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.subpage-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(10, 22, 40, 0.65) 50%,
    rgba(10, 22, 40, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  padding-top: 80px;
  color: var(--white);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.badge-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-pale);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===========================
   CONTENT SECTIONS
   =========================== */

.content-section {
  padding: var(--section-pad) 0;
}

.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-lead { color: rgba(255,255,255,0.8); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark h3 { color: var(--white); }
.section-dark h4 { color: var(--gold-pale); }
.section-dark .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.section-dark .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ===========================
   INTRO SECTION
   =========================== */

.intro-section {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text {
  color: var(--text-dark);
}

.intro-text .section-title {
  color: var(--navy-deep);
}

.intro-text p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pillar:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pillar strong {
  display: block;
  color: var(--navy-deep);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.intro-image-wrapper {
  position: relative;
}

.intro-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.intro-image-caption {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--navy-deep);
  color: var(--gold-pale);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
}

/* ===========================
   JUBILÄUM TEASER
   =========================== */

.jubileum-teaser {
  background: var(--navy);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.jubileum-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,162,39,0.08) 0%, transparent 70%);
}

.jubileum-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  color: var(--white);
  position: relative;
}

.jubileum-years {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.year-from, .year-to {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-pale);
  line-height: 1;
}

.year-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.year-divider-line {
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.year-divider-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.jubileum-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.jubileum-text p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  max-width: 55ch;
}

.jubileum-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   FREIMAUREREI SECTION
   =========================== */

.fm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.fm-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.fm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fm-card-icon {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.fm-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy-deep);
  margin-bottom: 0.75rem;
}

.fm-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
}

.fm-extended {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--navy-deep);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--white);
}

.fm-extended-text h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.fm-extended-text p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 1rem;
}

.fm-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.fm-quote {
  border-left: 3px solid var(--gold);
  padding-left: 2rem;
}

.fm-quote blockquote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-pale);
  line-height: 1.5;
}

/* ===========================
   TAB NAVIGATION (ÜBER DIE CEDER)
   =========================== */

.tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-navy);
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.tab-btn:hover { color: rgba(255,255,255,0.85); }

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tab-grid.reverse {
  direction: rtl;
}
.tab-grid.reverse > * {
  direction: ltr;
}

.tab-text h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.tab-text p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 1rem;
}

.tab-text em {
  color: var(--gold-pale);
  font-style: italic;
}

.tab-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-navy);
}

.logenhaus-address {
  font-size: 1rem;
  color: var(--gold) !important;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hannover-info {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.hannover-info h4 {
  color: var(--gold-pale) !important;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.hannover-info p {
  font-size: 0.9rem;
  margin: 0;
}

.tab-text-wide {
  max-width: 800px;
  margin: 0 auto;
}

.history-intro {
  font-size: 1.15rem;
  color: var(--gold-pale) !important;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ===========================
   TIMELINE
   =========================== */

.timeline {
  margin: 2rem 0 3rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.2));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy-deep);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.3);
}

.timeline-future::before {
  background: transparent;
  border-color: var(--gold);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.timeline-content h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.history-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ===========================
   BRÜDERSTIMMEN
   =========================== */

.brueder-section {
  background: var(--cream);
}

.brueder-section .section-title {
  color: var(--navy-deep);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.quote-card.featured {
  background: var(--navy-deep);
  color: var(--white);
  border-color: transparent;
  grid-column: span 1;
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.7;
  margin-bottom: 0.5rem;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.quote-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  padding-top: 2rem;
}

.quote-card.featured blockquote {
  color: var(--gold-pale);
}

.quote-attr {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.quote-card.featured .quote-attr { color: var(--gold); }

.brueder-cta {
  text-align: center;
}

.section-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===========================
   GÄSTE & INTERESSENTEN
   =========================== */

.gaeste-intro {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 4rem;
}

.gaeste-intro h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.gaeste-intro p {
  color: rgba(255,255,255,0.78);
  max-width: 65ch;
}

.gaeste-intro p strong {
  color: var(--gold-pale);
}

.hint-text {
  font-style: italic;
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-navy);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Weg-Steps */
.weg-section {
  margin-bottom: 4rem;
}

.weg-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  text-align: center;
}

.weg-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.weg-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.weg-step h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.weg-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.weg-connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), rgba(201,162,39,0.3));
  margin-top: 2.5rem;
  align-self: flex-start;
}

.weg-cta {
  text-align: center;
}

/* FAQ */
.faq-section {
  margin-top: 2rem;
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-navy);
}

.faq-item summary {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 0.95rem;
  transition: color var(--transition-base);
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--gold-pale); }

.faq-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding-bottom: 1.25rem;
  line-height: 1.7;
}

.faq-mehr {
  text-align: center;
  margin-top: 2.5rem;
}

.faq-mehr p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ===========================
   JUBILÄUM SECTION
   =========================== */

.jubileum-section {
  background: var(--cream);
}

.jubileum-full { }

.jubileum-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.jubileum-header .section-title { color: var(--navy-deep); }
.jubileum-header .section-lead { color: var(--text-body); margin: 0 auto; }

.jubileum-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.jubileum-main-text p {
  color: var(--text-body);
  margin-bottom: 1rem;
}

.baumspende-box {
  background: var(--navy-deep);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: var(--white);
}

.baumspende-inner {
  text-align: center;
}

.baumspende-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.baumspende-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.baumspende-box p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.baumspende-box p:first-of-type {
  font-size: 1rem;
  color: var(--gold-pale);
  font-style: italic;
  margin-bottom: 1rem;
}

.baumspende-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-top: 1rem;
}

/* ===========================
   TERMINE
   =========================== */

.termine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.termin-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition-base), transform var(--transition-base);
}

.termin-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.termin-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-width: 70px;
  flex-shrink: 0;
}

.termin-day {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.termin-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.termin-info {
  flex: 1;
}

.termin-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.termin-title {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.termin-details {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.termine-hinweis {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.termine-hinweis p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===========================
   KONTAKT
   =========================== */

.kontakt-section {
  background: var(--cream);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.kontakt-info .section-title { color: #ffffff !important; }
.kontakt-info .section-lead { color: #ffffff !important; opacity: 0.95; }

.kontakt-details .kontakt-item h4,
.kontakt-option h4,
.kontakt-adresse h4 {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.kontakt-details .kontakt-item p,
.kontakt-option p,
.kontakt-adresse address {
  color: #ffffff !important;
  opacity: 0.9;
  line-height: 1.6;
}

.kontakt-details .kontakt-item a,
.kontakt-option a {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.kontakt-details .kontakt-item a:hover,
.kontakt-option a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14, 27, 51, 0.08);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-privacy {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid var(--cream-dark);
}

.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--navy);
}

.checkbox-label a {
  color: var(--navy);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ===========================
   PRESSE
   =========================== */

.presse-section {
  background: var(--navy-deep);
  color: var(--white);
}

.presse-section .section-title { color: var(--white); }

.presse-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 3rem;
}

.presse-fakten {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.presse-fakten h3 {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.fakten-list {
  display: grid;
  gap: 0.75rem;
}

.fakten-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.1rem;
}

.fakten-list dd {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-left: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fakten-list dd:last-child { border-bottom: none; }

.presse-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.presse-themen {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.presse-themen li {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.presse-hinweis {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--navy-deep);
}

.footer-top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-navy);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-logo-kreuz {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 25ch;
}

.footer-nav-col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-base);
}
.footer-nav-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

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

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-base);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===========================
   MODALS
   =========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-base);
}
.modal-close:hover { background: var(--cream); color: var(--text-dark); }

.modal h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: 1.25rem;
}

.modal h3 {
  font-size: 1rem;
  color: var(--navy-deep);
  margin: 1.25rem 0 0.5rem;
}

.modal p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ===========================
   ANIMATIONS & SCROLL
   =========================== */

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE — MOBILE FIRST
   =========================== */

/* ── 1100px: Tablet Landscape ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .fm-extended { grid-template-columns: 1fr; gap: 2rem; }
  .presse-grid { grid-template-columns: 1fr 1.5fr; }
}

/* ── 900px: Tablet Portrait ── */
@media (max-width: 900px) {
  :root { --section-pad: 3.5rem; }

  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0a1628 !important;
  }

  /* Nav — Slide-in drawer */
  .mobile-menu-btn { display: flex; z-index: 10002; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: #0a1628;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.25rem 2rem;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    box-shadow: -10px 0 40px rgba(0,0,0,0.7);
  }
  .nav-links.open { right: 0; }

  .nav-link, .nav-link.nav-cta {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    margin-left: 0;
    text-align: left;
    min-height: 48px;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 0.25rem 0 0.5rem 0.5rem;
    padding: 0.25rem 0;
    display: block !important;
  }

  .dropdown a {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .dropdown a:hover,
  .dropdown a:focus {
    color: var(--gold-pale);
    background: rgba(201, 162, 39, 0.15);
  }

  /* Countdown bar stacks vertically */
  .neb-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .neb-countdown { margin-left: 0; }
  .neb-cta { margin-left: 0; width: 100%; text-align: center; padding: 0.6rem 1rem; }
  .neb-date { display: none; }

  /* Grids → single column */
  .intro-grid,
  .tab-grid,
  .tab-grid.reverse,
  .jubileum-inner,
  .kontakt-grid,
  .presse-grid,
  .jubileum-content-grid {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .fm-grid       { grid-template-columns: 1fr; }
  .quotes-grid   { grid-template-columns: 1fr; }
  .termine-grid  { grid-template-columns: 1fr; }

  /* Images in tabs */
  .tab-image { order: -1; }
  .tab-image img { height: 220px; object-fit: cover; border-radius: var(--radius-lg); }

  .intro-image-caption { position: static; margin-top: 1rem; }
  .intro-image { height: 240px; }

  /* Jubileum */
  .jubileum-inner  { flex-direction: column; text-align: center; }
  .jubileum-years  { flex-direction: row; gap: 1.5rem; }
  .jubileum-links  { justify-content: center; }

  /* Weg-Steps vertical */
  .weg-steps { flex-direction: column; align-items: center; }
  .weg-connector {
    width: 2px; height: 30px;
    background: linear-gradient(to bottom, var(--gold), rgba(201,162,39,0.3));
  }

  /* Footer */
  .footer-grid         { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Termin cards */
  .termin-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .termin-card .btn-primary-small,
  .termin-card .btn-outline-small { width: 100%; text-align: center; }

  /* Termine highlight grid */
  .termine-grid.termine-highlight { grid-template-columns: 1fr; }
}

/* ── 600px: Mobile ── */
@media (max-width: 600px) {
  :root { --section-pad: 2.75rem; }

  /* Typography scale-down */
  .hero-title  { font-size: clamp(2rem, 10vw, 2.8rem); }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Hero */
  .hero        { min-height: 90svh; }
  .hero-content { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Buttons */
  .btn         { width: 100%; justify-content: center; }
  .fm-links, .jubileum-links { flex-direction: column; align-items: stretch; gap: 0.75rem; }

  /* Intro */
  .intro-image     { height: 200px; }
  .intro-grid      { gap: 1.75rem; }

  /* FM Section */
  .fm-extended     { padding: 1.5rem; }
  .fm-card         { padding: 1.5rem; }

  /* Tabs */
  .tab-nav         { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .tab-btn         { padding: 0.75rem 1rem; font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
  .tab-image img   { height: 180px; }

  /* Gäste */
  .gaeste-intro    { padding: 1.5rem; }
  .weg-step        { padding: 1.25rem 1.5rem; width: 100%; }

  /* FAQ */
  .faq-item summary { padding: 1rem 1.25rem; font-size: 0.92rem; }

  /* Kalender mobile: kompaktes Grid beibehalten */
  .kalender-eintrag { grid-template-columns: 52px 1fr auto; padding: 0.75rem 1rem; min-height: 50px; }
  .ke-datum         { padding-right: 0.75rem; }
  .ke-info          { padding: 0 0.75rem; gap: 0.22rem; }
  .ke-uhr           { padding-left: 0.5rem; font-size: 0.68rem; }
  .ke-tag           { font-size: 0.9rem; }
  /* Badges: niemals uebereinander, immer nebeneinander */
  .ke-badges        { gap: 0.2rem; flex-wrap: nowrap; }
  .ke-badge         { font-size: 0.55rem; padding: 0.1rem 0.4rem; letter-spacing: 0.04em; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .ke-titel         { font-size: 0.8rem; }
  .kalender-monat   { margin-bottom: 1rem; border-radius: 8px; }
  .kalender-container { margin-top: 2rem; padding-top: 1.5rem; }

  /* Forms */
  .contact-form    { padding: 1.5rem 1.25rem; }
  .form-row        { grid-template-columns: 1fr; }
  .kontakt-grid    { gap: 2rem; }

  /* Termin cards */
  .termin-card     { padding: 1.25rem; }
  .termin-date     { flex-direction: row; align-items: baseline; gap: 0.4rem; }
  .termin-day      { font-size: 1.75rem; }

  /* Footer */
  .footer-top      { padding: 2.5rem 0 2rem; }
  .footer-legal    { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* Presse */
  .presse-grid     { grid-template-columns: 1fr; }
  .presse-fakten   { padding: 1.25rem; }

  /* Countdown bar */
  .next-event-bar  { padding: 0.75rem 0; top: 60px; }
  .neb-title       { font-size: 0.9rem; }
  .neb-val         { font-size: 1.25rem; }
  .neb-label       { font-size: 0.6rem; }

  /* Jubileum teaser */
  .jubileum-teaser .container { padding: 0 1rem; }
  .year-from, .year-to        { font-size: 2.5rem; }
}

/* ── 480px: Small Phones ── */
@media (max-width: 480px) {
  .hero-title    { font-size: 1.9rem; }
  .nav-container { padding: 0 1rem; }
  .container     { padding: 0 1rem; }

  /* Logo: hide subtitle on very small screens */
  .logo-subtitle { display: none; }

  /* Kreuz slightly smaller */
  .logo-kreuz    { width: 28px; height: 28px; }
  .logo-img      { width: 40px; height: 40px; }

  /* Single-column everything */
  .fm-grid, .quotes-grid { gap: 1rem; }

  /* Timeline compact */
  .timeline-item { padding-left: 3rem; }
  .timeline-year { width: 2.25rem; font-size: 0.65rem; }

  /* Tabs */
  .tab-btn       { padding: 0.65rem 0.75rem; font-size: 0.75rem; }

  /* Kalender small phones: Grid kompakter */
  .kalender-eintrag {
    grid-template-columns: 44px 1fr auto;
    padding: 0.65rem 0.75rem;
    min-height: 46px;
  }
  .ke-datum      { padding-right: 0.6rem; }
  .ke-wt         { font-size: 0.58rem; }
  .ke-tag        { font-size: 0.85rem; }
  .ke-info       { padding: 0 0.6rem; gap: 0.18rem; }
  /* Badges: immer in einer Reihe, egal wie schmal */
  .ke-badges     { gap: 0.15rem; flex-wrap: nowrap; overflow: hidden; }
  .ke-badge      { font-size: 0.5rem; padding: 0.08rem 0.32rem; max-width: 80px; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.03em; }
  .ke-titel      { font-size: 0.76rem; }
  .ke-uhr        { font-size: 0.6rem; padding-left: 0.35rem; }
}

/* ===========================
   ACCESSIBILITY
   =========================== */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Tap target minimum size — only for interactive controls, not all links */
button { min-height: 44px; }
.btn { min-height: 44px; }
.nav-link, .mobile-menu-btn { min-height: 44px; }
.tab-btn { min-height: 44px; }

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


/* ===========================
   KALENDER / TERMINE 2026
   =========================== */

.termine-highlight-label {
  text-align: center;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.termine-highlight .termin-card {
  border: 1px solid rgba(201,162,39,0.3);
}

.termin-featured {
  background: rgba(201,162,39,0.06);
}

.termin-type-gaest {
  color: var(--gold) !important;
}

.btn-primary-small {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
  align-self: center;
}

.btn-primary-small:hover {
  background: var(--gold-light, #e0b840);
}

/* --- Kalender Container --- */
.kalender-container {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
}

.kalender-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

/* --- Monatsblock --- */
.kalender-monat {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  contain: layout style;
}

.kalender-monat-jubileum {
  border-color: rgba(201,162,39,0.25);
}

.kalender-monat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.05);
}

.kalender-monat-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
}

.kalender-monat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

/* --- Kalender-Einträge --- */
.kalender-liste {
  display: flex;
  flex-direction: column;
}

.kalender-eintrag {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: background 0.18s ease;
  min-height: 56px;
}

.kalender-eintrag:first-child {
  border-top: none;
}

.kalender-eintrag:hover {
  background: rgba(255,255,255,0.04);
}

.kalender-eintrag-gaest {
  background: rgba(201, 162, 39, 0.035);
}

.ke-datum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 1rem;
  border-right: 1px solid rgba(255,255,255,0.06);
  min-height: 40px;
}

.ke-wt {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.ke-tag {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.ke-uhr {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 1rem;
  font-weight: 500;
}

.ke-info {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
}

.ke-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Badge row – badges always side by side ── */
.ke-badges {
  display: flex;
  flex-wrap: nowrap;        /* never stack badges on top of each other */
  gap: 0.3rem;
  align-items: center;
  width: 100%;
  overflow: hidden;         /* clip if too many */
}

.ke-badge-gaest {
  background: rgba(201,162,39,0.18);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.4);
}

.ke-badge-johannis {
  background: rgba(30, 144, 255, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.ke-badge-andreas {
  background: rgba(46, 204, 113, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.ke-badge-kapitel {
  background: rgba(231, 76, 60, 0.22);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.ke-badge-feiertag {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.ke-badge-brueder {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.1);
}

.ke-badge-ta {
  background: rgba(100,130,200,0.12);
  color: #8aafda;
  border: 1px solid rgba(100,130,200,0.2);
}

.ke-badge-besonders {
  background: rgba(201,162,39,0.25);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.5);
}

/* ── Zielgruppen-Badges ── */
.ke-badge-intern {
  background: rgba(120, 120, 140, 0.18);
  color: #b0b0c8;
  border: 1px solid rgba(150, 150, 180, 0.35);
}

.ke-badge-interessenten {
  background: rgba(99, 179, 237, 0.15);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.35);
}

.ke-badge-oeffentlich {
  background: rgba(72, 199, 142, 0.15);
  color: #48c78e;
  border: 1px solid rgba(72, 199, 142, 0.35);
}

.ke-titel {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ke-hinweis {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  width: 100%;
}


/* ===========================
   NEXT EVENT COUNTDOWN BAR
   =========================== */

.next-event-bar {
  background: linear-gradient(90deg, #080f1f 0%, #0d1b36 40%, #0d1b36 60%, #080f1f 100%);
  border-top: 1px solid rgba(201,162,39,0.12);
  border-bottom: 1px solid rgba(201,162,39,0.25);
  position: sticky;
  top: 70px;
  z-index: 90;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  /* Smooth hide on scroll */
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
  overflow: hidden;
}

.next-event-bar.neb-hidden {
  opacity: 0;
  transform: translateY(-100%);
  max-height: 0;
  pointer-events: none;
  border: none;
  box-shadow: none;
}

/* Three-column inner layout */
.neb-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;
  min-height: 68px;
}

/* ── Left column ── */
.neb-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.9rem 2rem 0.9rem 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.neb-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.neb-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Center column: day ring ── */
.neb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 2rem;
}

.neb-days-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(201,162,39,0.07);
  box-shadow: 0 0 0 6px rgba(201,162,39,0.06), inset 0 0 12px rgba(201,162,39,0.04);
  transition: box-shadow 0.3s;
}

.neb-days-ring:hover {
  box-shadow: 0 0 0 8px rgba(201,162,39,0.1), inset 0 0 16px rgba(201,162,39,0.06);
}

.neb-val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.neb-unit-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,162,39,0.7);
  margin-top: 0.1rem;
}

/* ── Right column ── */
.neb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0 0.9rem 2rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.neb-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.neb-cta {
  display: inline-block;
  padding: 0.42rem 1.1rem;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(201,162,39,0.55);
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.neb-cta:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

/* ── Tablet (900px) ── */
@media (max-width: 900px) {
  .neb-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    grid-template-areas:
      "left  center"
      "right center";
    padding: 0;
    min-height: unset;
  }

  .neb-left  { grid-area: left;   border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.6rem 1rem; }
  .neb-right { grid-area: right;  border-left: none;  border-top: none; padding: 0.6rem 1rem; align-items: flex-start; }
  .neb-center { grid-area: center; border-left: 1px solid rgba(255,255,255,0.08); padding: 0.75rem 1.25rem; grid-row: span 2; }

  .neb-days-ring { width: 60px; height: 60px; }
  .neb-val       { font-size: 1.35rem; }
  .neb-cta       { font-size: 0.68rem; padding: 0.35rem 0.85rem; }
}

/* ── Mobile (600px) ── */
@media (max-width: 600px) {
  .next-event-bar { top: 60px; }

  .neb-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left  center"
      "right center";
  }

  .neb-left  { padding: 0.55rem 0.75rem; gap: 0.1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .neb-right { padding: 0.45rem 0.75rem; gap: 0.3rem; align-items: flex-start; border-left: none; }
  .neb-center { padding: 0.6rem 1rem; border-left: 1px solid rgba(255,255,255,0.08); grid-row: span 2; }

  .neb-title     { font-size: 0.875rem; }
  .neb-label     { font-size: 0.55rem; }
  .neb-date      { font-size: 0.68rem; }
  .neb-days-ring { width: 54px; height: 54px; border-width: 1.5px; }
  .neb-val       { font-size: 1.25rem; }
  .neb-unit-label { font-size: 0.48rem; }

  /* compact button on mobile — not full width */
  .neb-cta {
    display: inline-block;
    width: auto;
    padding: 0.3rem 0.75rem;
    font-size: 0.62rem;
  }
}




/* ===========================
   LOGO KREUZ
   =========================== */

.logo-kreuz {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

/* SVG Icons (replacing emojis) */
.pillar-icon-svg svg,
.fm-card-icon-svg svg,
.kontakt-icon-svg svg,
.baumspende-icon-svg svg {
  color: var(--gold);
  width: 28px;
  height: 28px;
}

.pillar-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50%;
  background: rgba(201,162,39,0.07);
  flex-shrink: 0;
}

.fm-card-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 50%;
  background: rgba(201,162,39,0.06);
}

.kontakt-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 50%;
  background: rgba(201,162,39,0.06);
  flex-shrink: 0;
}

.baumspende-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ===========================
   MOBILE POLISH & SCROLL PERF
   =========================== */

/* Smooth momentum scrolling on iOS */
body,
.nav-links,
.tab-nav {
  -webkit-overflow-scrolling: touch;
}

/* Prevent layout thrashing during scroll */
.content-section,
.kalender-monat,
.termin-card,
.fm-card,
.faq-item {
  contain: layout style;
}

/* Hardware-accelerate fixed/sticky elements */
.site-header,
.next-event-bar {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ── Kalender: cleaner mobile rows ── */
@media (max-width: 600px) {
  .kalender-monat-header {
    padding: 0.6rem 0.9rem;
  }

  .kalender-monat-name {
    font-size: 0.82rem;
  }

  .kalender-monat-badge {
    font-size: 0.58rem;
  }

  /* Zielgruppen-Legende kompakt */
  .kalender-container > div[style*="display:flex"] {
    gap: 0.4rem;
  }

  /* Hinweis-Box kompakter */
  .kalender-container > div[style*="border-left"] {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* ── Section transitions – fade-in on scroll ── */
.content-section {
  opacity: 1;
}

/* Reduce motion: respect system preference */
@media (prefers-reduced-motion: no-preference) {
  .kalender-monat {
    animation: none;
  }
}

/* ── Contact section mobile ── */
@media (max-width: 600px) {
  .kontakt-item {
    gap: 0.75rem;
  }

  .kontakt-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .kontakt-item h4 {
    font-size: 0.88rem;
    margin-bottom: 0.1rem;
  }

  .kontakt-item p,
  .kontakt-item a {
    font-size: 0.83rem;
  }
}

/* ── Section header mobile ── */
@media (max-width: 600px) {
  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .section-lead {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ── Hero mobile ── */
@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }

  .hero-title {
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* ── Footer mobile: Logo bleibt immer nebeneinander ── */
@media (max-width: 600px) {
  .footer-logo-wrap {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ── Tap highlight removal (iOS) ── */
a,
button,
[role="button"],
summary {
  -webkit-tap-highlight-color: transparent;
}

/* ── Better touch scrolling for horizontal elements ── */
.tab-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0d1b36 0%, #0a1628 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#cookie-banner.cookie-banner--hiding {
  transform: translateY(100%);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-banner__icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.cookie-banner__text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.cookie-banner__text strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cookie-banner__link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.3rem;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  color: var(--gold-light);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 40px;
}

.cookie-btn--primary {
  background: var(--gold);
  color: #0a1628;
}

.cookie-btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.cookie-btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Mobile: Stack vertically */
@media (max-width: 700px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .cookie-banner__text {
    flex-direction: row;
    gap: 0.65rem;
  }

  .cookie-banner__icon {
    width: 22px;
    height: 22px;
    margin-top: 0.2rem;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
  }
}

/* ===========================
   SCROLL PERFORMANCE – PROFI
   =========================== */

/* Overscroll-Bounce nur vertikal, kein horizontaler Überlauf */
html {
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
}

/* Lazy-render off-screen heavy sections */
.content-section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* Promote images to GPU layer */
.hero-bg-img,
.tab-image img,
.intro-image {
  will-change: transform;
  transform: translateZ(0);
}

/* Prevent paint during scroll on hero overlay */
.hero-overlay {
  will-change: opacity;
}

/* Smooth transition for sticky header */
.site-header {
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

/* Avoid layout recalc on hover for cards */
.fm-card,
.termin-card,
.faq-item,
.kalender-monat {
  transform: translateZ(0);
}

/* Smooth scroll for anchor links within same page */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Reduce repaints on scroll for fixed/sticky elements */
.next-event-bar,
.site-header,
#cookie-banner {
  isolation: isolate;
}
