/* ============================================
   EXTRAFEIN KIRCHHELLEN - MAIN STYLESHEET
   Optimiert, bereinigt, DRY-Prinzip
   ============================================ */

/* ========== FONTS ========== */
@font-face {
  font-family: "MADE";
  src: url("../assets/fonts/MADE.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========== CSS CUSTOM PROPERTIES ========== */

/* Default: Light Mode */
:root {
  --bg: #FFF9EA;
  --surface: #F9F1DD;
  --sep: #F1E5C7;
  --accent: #D4AF37;
  --gold: #B8860B;
  --highlight: #F7E0A3;
  --text: #111111;
  --text-muted: rgba(17, 17, 17, 0.7);
  /* Brand Colors */
  --peach: var(--accent);
  --peach-soft: var(--highlight);
  --peach-strong: var(--gold);
  --gold-rich: var(--gold);
  --gold-soft: var(--accent);
  --gold-light: var(--highlight);
  --cream-highlight: var(--bg);
  --umber: var(--text);
  --deep-lake: var(--text);

  /* Light Mode Colors */
  --text-base: var(--text);
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --ef-text-color: var(--text);
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg);
  --bg-elevated: var(--surface);
  --bg-card: var(--surface);
  --border-color: var(--sep);
  --shadow-soft: 0 18px 60px rgba(201, 162, 74, 0.08);
  --shadow-card: 0 12px 32px rgba(201, 162, 74, 0.08);

  /* Gradient Overlays */
  --gradient-1: radial-gradient(1800px 900px at 12% 8%, rgba(212, 175, 55, 0.16), transparent 65%);
  --gradient-2: radial-gradient(1400px 760px at 88% 6%, rgba(184, 134, 11, 0.12), transparent 70%);
  --gradient-3: radial-gradient(1200px 680px at 45% 0%, rgba(247, 224, 163, 0.18), transparent 62%);
  --gradient-base: linear-gradient(180deg, var(--surface) 0%, var(--bg) 35%, var(--bg) 100%);
  --gradient-hero: linear-gradient(90deg, var(--surface) 0%, var(--bg) 45%, var(--sep) 100%);

  /* Header */
  --header-bg: transparent;
  --header-bg-solid: rgba(255, 249, 234, 0.9);
  --header-border: transparent;
  --header-border-solid: rgba(17, 17, 17, 0.08);

  /* 8-Point Spacing Scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;

  /* Radien */
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  /* Fonts */
  --font-sans: "Lato";
  --font-serif: "MADE", Georgia, "Times New Roman", serif;
  --font-accent: "MADE", serif;

  /* Layout */
  --media-w: clamp(360px, 38vw, 560px);
  --header-h: 60px;
  --intro-gap: var(--space-7);

  /* Typography Scale (rem) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: clamp(2.5rem, 4vw, 3.5rem);
  --fs-5xl: clamp(3rem, 7vw, 5.5rem);
}

/* Force light palette even if a dark theme attribute is present. */
html[data-theme="dark"] {
  --bg: #FFF9EA;
  --surface: #F9F1DD;
  --sep: #F1E5C7;
  --accent: #D4AF37;
  --gold: #B8860B;
  --highlight: #F7E0A3;
  --text: #111111;
  --text-muted: rgba(17, 17, 17, 0.7);
  --peach: var(--accent);
  --peach-soft: var(--highlight);
  --peach-strong: var(--gold);
  --gold-rich: var(--gold);
  --gold-soft: var(--accent);
  --gold-light: var(--highlight);
  --cream-highlight: var(--bg);
  --umber: var(--text);
  --deep-lake: var(--text);
  --text-base: var(--text);
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --ef-text-color: var(--text);
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg);
  --bg-elevated: var(--surface);
  --bg-card: var(--surface);
  --border-color: var(--sep);
  --shadow-soft: 0 18px 60px rgba(201, 162, 74, 0.08);
  --shadow-card: 0 12px 32px rgba(201, 162, 74, 0.08);
  --gradient-1: radial-gradient(1800px 900px at 12% 8%, rgba(212, 175, 55, 0.16), transparent 65%);
  --gradient-2: radial-gradient(1400px 760px at 88% 6%, rgba(184, 134, 11, 0.12), transparent 70%);
  --gradient-3: radial-gradient(1200px 680px at 45% 0%, rgba(247, 224, 163, 0.18), transparent 62%);
  --gradient-base: linear-gradient(180deg, var(--surface) 0%, var(--bg) 35%, var(--bg) 100%);
  --gradient-hero: linear-gradient(90deg, var(--surface) 0%, var(--bg) 45%, var(--sep) 100%);
  --header-bg: transparent;
  --header-bg-solid: rgba(255, 249, 234, 0.9);
  --header-border: transparent;
  --header-border-solid: rgba(17, 17, 17, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #FFF9EA;
    --surface: #F9F1DD;
    --sep: #F1E5C7;
    --accent: #D4AF37;
    --gold: #B8860B;
    --highlight: #F7E0A3;
    --text: #111111;
    --text-muted: rgba(17, 17, 17, 0.7);
    --peach: var(--accent);
    --peach-soft: var(--highlight);
    --peach-strong: var(--gold);
    --gold-rich: var(--gold);
    --gold-soft: var(--accent);
    --gold-light: var(--highlight);
    --cream-highlight: var(--bg);
    --umber: var(--text);
    --deep-lake: var(--text);
    --text-base: var(--text);
    --text-primary: var(--text);
    --text-secondary: var(--text-muted);
    --ef-text-color: var(--text);
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg);
    --bg-elevated: var(--surface);
    --bg-card: var(--surface);
    --border-color: var(--sep);
    --shadow-soft: 0 18px 60px rgba(201, 162, 74, 0.08);
    --shadow-card: 0 12px 32px rgba(201, 162, 74, 0.08);
    --gradient-1: radial-gradient(1800px 900px at 12% 8%, rgba(212, 175, 55, 0.16), transparent 65%);
    --gradient-2: radial-gradient(1400px 760px at 88% 6%, rgba(184, 134, 11, 0.12), transparent 70%);
    --gradient-3: radial-gradient(1200px 680px at 45% 0%, rgba(247, 224, 163, 0.18), transparent 62%);
    --gradient-base: linear-gradient(180deg, var(--surface) 0%, var(--bg) 35%, var(--bg) 100%);
    --gradient-hero: linear-gradient(90deg, var(--surface) 0%, var(--bg) 45%, var(--sep) 100%);
    --header-bg: transparent;
    --header-bg-solid: rgba(255, 249, 234, 0.9);
    --header-border: transparent;
    --header-border-solid: rgba(17, 17, 17, 0.08);
  }

  html,
  body {
    color-scheme: light;
  }
}

/* ========== RESET & BASICS ========== */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color-scheme: light;
}

body {
  color: var(--ef-text-color);
  background: var(--gradient-hero), var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-base);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  letter-spacing: 0.01em;
  font-weight: 400;
}

@media (max-width: 900px) {
  body {
    background: var(--gradient-hero), var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-base);
    background-color: var(--bg);
  }
}

/* H1 bleibt mit MADE */
h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: center;
  font-size: var(--fs-4xl);
  line-height: 1.1;
}

/* H2 mit MADE */
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 var(--space-4);
}

.heading-soft {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

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

.news .heading-soft,
.section-cta .heading-soft {
  font-size: var(--fs-3xl);
}

.section-cta .cta__copy .tabs-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ef-text-color);
  margin: var(--space-4) 0 0;
}

/* H3 mit Lato */
h3 {
  font-family: "Lato", var(--font-sans);
  font-weight: 400;
  text-align: center;
  font-size: var(--fs-2xl);
  line-height: 1.25;
}

/* H4, H5, H6 mit Lato Regular */
h4, h5, h6 {
  font-family: "Lato", var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.3;
}

/* Globale Paragraph Farbe für dunkle Hintergründe */
p {
  color: inherit;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
}

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

video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

/* ========== ACCESSIBILITY ========== */
.skip-link,
.visually-hidden {
  position: absolute;
  top: -999px;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fde488;
  color: var(--text);
  font-weight: 600;
  outline: 3px solid var(--peach-strong);
  clip: auto;
}

/* ========== LAYOUT ========== */
.page-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 55%),
              radial-gradient(circle at top center, rgba(255, 249, 234, 0.45), transparent 60%),
              radial-gradient(circle at bottom right, rgba(184, 134, 11, 0.12), transparent 50%);
  pointer-events: none;
}

.container {
  width: min(1240px, 90vw);
  margin: 0 auto;
}

.container-large {
  width: min(1240px, 90vw);
  margin: 0 auto;
}

.section-padding-lg {
  padding-block: var(--space-8);
}

.page-intro {
  padding-bottom: 0;
}

.text-block {
  max-width: 70ch;
}

.theme-text {
  color: var(--ef-text-color) !important;
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-solid {
  backdrop-filter: blur(14px);
  background: var(--header-bg-solid);
  border-bottom: 1px solid var(--header-border-solid);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.2vw, 14px) var(--space-3);
  padding-left: max(var(--space-3), env(safe-area-inset-left));
  padding-right: max(var(--space-3), env(safe-area-inset-right));
  gap: clamp(20px, 4vw, 60px);
  position: relative;
}

/* Logo in der Mitte */
.brand {
  order: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 50px;
  flex-shrink: 0;
  z-index: 1;
}

.brand img {
  height: 76px;
  max-height: 76px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Hamburger rechts */
.hamburger {
  order: 3;
  margin-left: auto;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: clamp(var(--space-3), 1.5vw, var(--space-5));
  align-items: center;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: var(--space-1) 0;
  opacity: 0.78;
  overflow: visible;
  white-space: nowrap;
  font-size: var(--fs-sm);
  text-decoration: none;
  min-height: 44px;
}

.nav__link:hover,
.nav__link.active {
  opacity: 1;
}

.nav__link.active {
  color: var(--peach);
}

.nav__label {
  position: relative;
  display: block;
  height: 1.25em;
  overflow: hidden;
}

.nav__copy {
  display: block;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.48s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav__copy.is-absolute {
  position: absolute;
  left: 0;
  top: 115%;
  transition-delay: 0.08s;
}

.nav__link:hover .nav__copy {
  transform: translate3d(0, -115%, 0);
  transition-delay: 0s;
}

.nav__link:hover .nav__copy.is-absolute {
  transform: translate3d(0, -115%, 0);
  transition-delay: 0.02s;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 70;
  position: relative;
}

.hamburger__line {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
}

.hamburger:hover .hamburger__line,
.hamburger.is-active .hamburger__line {
  background: var(--peach);
}

.hamburger__line:nth-child(1) {
  margin-bottom: 6px;
}

.hamburger__line:nth-child(2) {
  margin-bottom: 6px;
}

/* Hamburger Active State (X) */
.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  margin-bottom: 6px;
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu Backdrop Overlay */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(251, 247, 231, 0.12);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 50;
}

.menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Slide-in Menu für alle Bildschirmgrößen */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(500px, 90vw);
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--header-border);
  color: var(--ef-text-color);
  flex-direction: column;
  align-items: flex-start;
  padding: 4rem 2rem 1.5rem;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -4px 0 24px rgba(251, 247, 231, 0.12);
  z-index: 65;
  overflow-y: auto;
}

.nav-menu .nav__link {
  color: #d4af37;
}

.nav-menu.is-open {
  transform: translateX(0);
}

.nav__link {
  width: 100%;
  padding: clamp(var(--space-2), 1.8vw, var(--space-4)) 0;
  color: var(--ef-text-color);
  border-bottom: none;
  font-size: var(--fs-lg);
  min-height: 44px;
}

.nav__link:first-child {
  border-top: none;
}

/* Hide CTA button, show in menu instead */
.site-header .btn--cta {
  display: none;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  text-transform: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-size: clamp(var(--fs-sm), 0.95vw, var(--fs-md));
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.25), 0 0 0 2px rgba(184, 134, 11, 0.18);
  background: var(--highlight);
  text-decoration: none;
}

.btn--cta {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--gold);
  text-decoration: none;
}

.btn--cta:hover {
  background: var(--highlight);
  color: var(--text);
  border: 1px solid var(--gold);
}

.btn:focus-visible,
.btn--cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.25), 0 12px 30px rgba(255, 249, 234, 0.2);
}

/* ========== COVER VIDEO ========== */
.cover {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  --cover-scale: 1;
  --cover-radius: 0px;
  clip-path: inset(0% round var(--cover-radius));
  transform: scale(var(--cover-scale));
  transform-origin: center top;
  will-change: transform, clip-path;
}

.cover__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249, 241, 221, 0.08) 0%, rgba(255, 249, 234, 0.12) 60%, rgba(241, 229, 199, 0.14) 100%);
  pointer-events: none;
}

.cover__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-base);
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.cover__title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: var(--fs-5xl);
  line-height: 1.05;
  margin: 0 0 var(--space-3);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cover__subline {
  max-width: 700px;
  margin: 0 auto var(--space-2);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.cover__desc {
  max-width: 780px;
  margin: 0 auto var(--space-4);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  opacity: 0.9;
  line-height: 1.5;
}

/* ========== HERO SECTION ========== */
.section-hero {
  padding: var(--space-5) 0;
  position: relative;
  overflow: hidden;
}

/* Keep the Impressionen headline clear of the fixed centered logo. */
[data-page="impressionen"] .hero.container-hero {
  padding-top: clamp(7rem, 12vw, 9.5rem);
}

.section-hero__title {
  text-align: center;
  margin: 0 auto var(--space-6);
  max-width: 900px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 3.4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  position: relative;
}

.section-hero__title::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, rgba(184, 134, 11, 0), rgba(184, 134, 11, 0.85), rgba(184, 134, 11, 0));
  border-radius: 999px;
}

.section-hero__grid {
  display: grid;
  grid-template-columns: var(--media-w) minmax(0, 1fr);
  gap: clamp(var(--space-6), 6vw, var(--space-8));
  align-items: center;
  margin-bottom: var(--space-6);
}

.section-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

.media-card {
  position: relative;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(251, 247, 231, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: min(var(--media-w), 100%);
  animation: cotyFloat 7s ease-in-out infinite;
  will-change: transform;
}

.chip-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-3) 0;
  border: 1px solid rgba(17,17,17,0.08);
  background: radial-gradient(120% 80% at 20% 10%, rgba(17,17,17,0.05), transparent 60%),
              linear-gradient(180deg, rgba(251, 247, 231, 0.12), rgba(251, 247, 231, 0.12));
}

.chip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-glow,
.media-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0px);
  will-change: transform, opacity;
}

.media-glow {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(238, 216, 146, 0.55), transparent 70%);
  z-index: -1;
  animation: glowPulse 6.5s ease-in-out infinite;
}

.media-orb {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(251, 247, 231, 0.12), transparent 62%);
  right: -90px;
  top: -40px;
  z-index: -2;
  animation: orbDrift 14s ease-in-out infinite;
}

.section-hero__copy {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subheader {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-xl), 2.2vw, var(--fs-2xl));
  font-weight: 300;
  line-height: 1.2;
  margin: 0 auto var(--space-4);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.section-hero__copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 1.15;
  margin: 0 0 var(--space-5);
  letter-spacing: 0.01em;
  color: var(--text-primary);
  font-weight: 300;
  text-wrap: balance;
}

.eyebrow {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(17, 17, 17, 0.68);
  margin-bottom: var(--space-3);
}

.lead {
  font-family: var(--font-sans);
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  font-weight: 400;
  line-height: 1.6;
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  color: rgba(17, 17, 17, 0.88);
  letter-spacing: 0.01em;
}

.section-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) auto var(--space-4);
  justify-content: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  margin: var(--space-6) auto var(--space-4);
  justify-content: center;
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(var(--space-7), 7vw, var(--space-9)) 0;
}

.section + .section {
  border-top: 1px solid rgba(201, 162, 74, 0.35);
}

.section.page-intro {
  padding-top: calc(var(--header-h, 0px) + var(--intro-gap));
  padding-bottom: 0;
}

.section.page-intro .section-head {
  margin-bottom: var(--intro-gap);
}

.section.page-intro .section-head h1 {
  margin: 0.67em 0 1.2rem;
  font-size: var(--fs-4xl);
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

@media (max-width: 720px) {
}

.values-content .section-head {
  max-width: min(1040px, 92vw);
}

.values-content .section-head p {
  max-width: none;
  white-space: normal;
}

.values-content .eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ef-text-color);
  margin-bottom: var(--space-4);
}

.section-head h2 {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 300;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0.65rem auto 0;
  background: var(--gold);
  border-radius: 999px;
  opacity: 0.85;
}

.section-head p {
  margin: 0 auto;
  max-width: 60ch;
}

.section-inspiration .section-head__lead {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(var(--fs-lg), 1.6vw, var(--fs-xl));
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  white-space: nowrap;
}

/* Remove underline for the inspiration section heading only */
.section-inspiration .section-head h2::after {
  display: none;
}

/* ========== NEWS TEASER (DEBUG VISIBLE) ========== */
.news {
  margin: var(--space-7) 0;
  padding: var(--space-6) 0;
  position: relative;
  z-index: 5;
  background: transparent;
}

.news-list {
  display: grid;
  gap: var(--space-5);
}

.news-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(251, 247, 231, 0.7);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(251, 247, 231, 0.12);
  border-color: rgba(238, 216, 146, 0.45);
}

.news-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-card__image,
.news-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.news-card__image {
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.news-card__placeholder {
  border: 2px dashed rgba(17, 17, 17, 0.35);
  background: rgba(17, 17, 17, 0.04);
}

.news-card__copy p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.news-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.news-card__date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-card__copy span {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== NEWS DETAIL ========== */
.news-detail__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  align-items: start;
}

.news-detail__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: var(--shadow-card);
}

.news-detail__media img {
  width: 100%;
  height: auto;
  display: block;
}

.news-detail__copy h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
}

.news-detail__date {
  margin: 0 0 var(--space-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.news-detail__text {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.news-detail__text p {
  margin: 0 0 var(--space-4);
}

/* ========== INTRO ========== */
.section-intro {
  position: relative;
  min-height: auto;
  background: var(--bg);
  padding: clamp(var(--space-4), 4vw, var(--space-8)) 0 clamp(var(--space-4), 3.5vw, var(--space-7));
}

.intro-pin {
  height: 100%;
  position: relative;
  padding: 0 var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
}

.intro-title {
  text-align: center;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 auto var(--space-7);
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--text);
  max-width: 900px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.intro-text {
  color: var(--text);
  padding-right: var(--space-6);
}

.intro-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 var(--space-5);
  color: var(--text);
}

.intro-style {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  color: inherit;
  letter-spacing: 0.01em;
}

.intro-style--bullets {
  margin: var(--space-5) 0 var(--space-4);
  list-style: none;
  padding: 0;
  text-align: left;
  display: grid;
  gap: var(--space-3);
}

.intro-style--bullets li {
  padding-left: 1.2rem;
  position: relative;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: inherit;
}

.intro-style--bullets li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--peach);
  position: absolute;
  top: 0.45rem;
  left: 0;
}

/* ========== TABS (STICKY) ========== */
.section-rooms {
  --rooms-panel-top: 15vh;
  --rooms-panel-h: clamp(400px, calc(100vh - 15vh - 1rem), 780px);
  position: relative;
  z-index: 2;
  background: transparent;
  border-radius: 2rem;
  margin: 0;
  padding-block: clamp(56px, 6vw, 80px);
}

.tabs-height {
  height: 400vh;
  position: relative;
}

.tabs-sticky {
  position: sticky;
  top: var(--rooms-panel-top);
  height: var(--rooms-panel-h);
}

.tabs-sticky.is-fixed,
.tabs-sticky.is-at-end {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: var(--rooms-panel-top);
  height: var(--rooms-panel-h);
  z-index: 10;
}

.tabs-sticky.is-at-end {
  position: absolute;
  top: auto;
  bottom: 0;
}

.tabs-grid {
  height: var(--rooms-panel-h);
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: var(--space-4);
  padding: 0 var(--space-5);
}

.tabs-left {
  border-radius: 1.25rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
}

.tabs-left-top {
  position: relative;
  flex: 1;
}

.tabs-pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 0 1rem;
  pointer-events: none;
  overflow-y: auto;
}

.tabs-pane.is-1 {
  opacity: 1;
  pointer-events: auto;
}

.tabs-h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.tabs-h3.nowrap {
  white-space: nowrap;
}

.tabs-line {
  height: 1px;
  background: rgba(184, 134, 11, 0.35);
  margin: 0.75rem 0;
}

.tabs-desc {
  color: var(--text);
  opacity: 0.9;
  margin: 0;
}

strong.tabs-desc + p.tabs-desc {
  margin-top: var(--space-4);
}

.tabs-left-bottom {
  margin-top: var(--space-3);
  display: flex;
  justify-content: center;
}

.tabs-right {
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}

.tabs-video {
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tabs-video.is-1 {
  opacity: 1;
  transform: translateY(0);
}

.tabs-video video,
.tabs-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
}

/* ========== GALLERY ========== */
.gallery-wrap {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem) 0;
}

.gallery {
  width: clamp(360px, 90vw, 720px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: clamp(72px, 16vmin, 110px);
  row-gap: clamp(var(--space-3), 2.2vw, var(--space-5));
  column-gap: clamp(var(--space-1), 1vw, var(--space-2));
  margin: 0;
  padding: 0;
}

.gallery .item {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(251, 247, 231, 0.12), 0 2px 6px rgba(251, 247, 231, 0.12);
  transition: transform 1.35s ease, opacity 1.35s ease, box-shadow 1.35s ease, filter 1.35s ease;
  transform: scale(0.98);
  opacity: 0.9;
  filter: saturate(0.9);
  will-change: transform, opacity;
}

.gallery .item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 247, 231, 0.12), rgba(251, 247, 231, 0.12));
  opacity: 0.25;
  transition: opacity 0.25s ease;
}

.gallery .item:hover::before {
  opacity: 0.18;
}

.gallery .item:nth-of-type(1) {
  background-image: url('../assets/images/gallery-wrap/freie-trauung-hochzeit-extrafein-kirchhellen.webp');
}

.gallery .item:nth-of-type(2) {
  background-image: url('../assets/images/gallery-wrap/hochzeitssaal-extrafein-kirchhellen-lichterketten.webp');
}

.gallery .item:nth-of-type(3) {
  background-image: url('../assets/images/gallery-wrap/hochzeitslocation-innenraum-extrafein-kirchhellen.webp');
}

.gallery .item:nth-of-type(4) {
  background-image: url('../assets/images/gallery-wrap/tischdeko-hochzeit-extrafein-kirchhellen.webp');
}

.gallery .item:nth-of-type(5) {
  background-image: url('../assets/images/gallery-wrap/extrafein-witten-eventsaal-barbereich.webp');
}

.gallery .item:nth-of-type(6) {
  background-image: url('../assets/images/gallery-wrap/brautpaar-mit-ponys-extrafein-kirchhellen.webp');
}

.gallery li[data-pos='1'] {
  grid-column: 1/6;
  grid-row: 1/6;
  cursor: default;
  box-shadow: 0 16px 48px rgba(251, 247, 231, 0.12), 0 4px 10px rgba(251, 247, 231, 0.12);
  transform: scale(1);
  opacity: 1;
  filter: saturate(1);
}

.gallery .item:not([data-pos='1']) {
  cursor: pointer;
}

/* Inline gallery sizing for content blocks. */
.content__bild--gallery {
  width: 100%;
  justify-self: stretch;
  align-self: start;
}

.content__bild--gallery .gallery-wrap {
  width: 100%;
}

.content__bild--gallery .gallery {
  width: 80%;
  max-width: clamp(420px, 46vw, 900px);
  margin-inline: auto;
  grid-auto-rows: clamp(84px, 11vmin, 135px);
}

/* Keep non-inline content galleries inside the left grid column on mid widths. */
.content__bild:not(.content__bild--gallery) .gallery {
  width: clamp(320px, 43vw, 720px);
  margin-inline: auto;
}

/* ========== STORY CARDS ========== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.story-card {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(251, 247, 231, 0.65);
  box-shadow: var(--shadow-card);
  contain: layout style paint;
}

.story-card h3 {
  margin: 0 0 var(--space-2);
  text-transform: none;
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  color: var(--text-primary);
}

[data-page="leistungen"] .story-card h3 {
  min-height: 2.4em;
}

.story-card p {
  margin: 0;
}

.story-card .story-card__separator {
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  width: 100%;
  margin: var(--space-3) 0;
}

.story-card__logo {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
}

.story-card__logo img {
  width: min(180px, 70%);
  height: auto;
  opacity: 0.9;
}

.story-card--center {
  text-align: center;
}

.story-card--center .story-card__logo {
  justify-content: center;
}

/* ========== APPLICATIONS (CARDS) ========== */
.section-inspiration {
  background: linear-gradient(90deg, var(--surface) 0%, var(--bg) 45%, var(--sep) 100%);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.app-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--sep);
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 16px 35px rgba(251, 247, 231, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  contain: layout style paint;
  text-decoration: none;
}

.app-card__media {
  display: grid;
  place-items: center;
  width: min(240px, calc(100% - (var(--space-6) * 2)));
  aspect-ratio: 1 / 1;
  margin: var(--space-5) auto 0;
  padding: clamp(18px, 2vw, 24px);
  border-radius: calc(var(--radius-md) - 2px);
  background: radial-gradient(120% 120% at 50% 12%, rgba(255, 255, 255, 0.98), rgba(247, 224, 163, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.app-card img {
  display: block;
  width: min(100%, 180px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  animation: cardFloat 9s ease-in-out infinite;
  transition: transform 0.4s ease;
  will-change: transform;
  filter: drop-shadow(0 10px 18px rgba(184, 134, 11, 0.12));
}

.app-card:nth-child(2) img {
  animation-delay: 1.6s;
}

.app-card:nth-child(3) img {
  animation-delay: 3s;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(251, 247, 231, 0.12);
}

.app-card:hover img {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.03);
}

.app-card__body {
  padding: var(--space-5);
}

.app-card h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-2xl);
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
  color: var(--text-primary);
}

.app-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.75);
}

/* ========== NEUE KLASSEN FÜR RÄUME ========== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.room-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(19, 14, 12, 0.7);
  border: 1px solid rgba(17, 17, 17, 0.09);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(251, 247, 231, 0.12);
}

.room-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.room-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room-card:hover .room-card__media img {
  transform: scale(1.05);
}

.room-card__body {
  padding: var(--space-5);
}

.room-card h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
}

.room-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.6;
}

/* ========== NEUE KLASSEN FÜR PLANUNG ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(251, 247, 231, 0.65);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--peach);
}

.step h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
}

.step p {
  margin: 0;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.6;
}

.step .section-separator {
  width: 100%;
  margin: var(--space-3) 0;
}

.faq {
  display: grid;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(251, 247, 231, 0.65);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.faq-item summary::marker {
  color: var(--peach);
}

.faq-item summary::-webkit-details-marker {
  color: var(--peach);
}

.faq-item p {
  margin: var(--space-3) 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item[open] {
  border-color: rgba(17, 17, 17, 0.18);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.testimonial {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(19, 14, 12, 0.7);
  border: 1px solid rgba(17, 17, 17, 0.09);
  box-shadow: var(--shadow-card);
}

.testimonial img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.testimonial blockquote {
  margin: 0;
  padding: 1.5rem;
  font-style: italic;
  color: rgba(17, 17, 17, 0.85);
  line-height: 1.7;
}

.testimonial figcaption {
  padding: 0 1.5rem 1.5rem;
  color: var(--peach);
  font-weight: 600;
}

/* ========== NARRATIVE ========== */
.section-story {
}

.section-story .heading-soft {
  font-size: var(--fs-3xl);
}

.section-story .container {
  max-width: 1200px;
  padding-inline: var(--space-4);
}

.narrative__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: center;
}

.narrative__image img {
  width: clamp(320px, 42vw, 560px);
  border-radius: var(--radius-md);
  animation: slowParallax 12s ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 960px) {
  .section-story .container {
    width: 100%;
    padding-inline: var(--space-4);
  }

  .narrative__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .narrative__image img {
    width: clamp(320px, 90vw, 640px);
  }
}

.narrative__copy ul {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.narrative__copy li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--ef-text-color);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.narrative__copy p {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ef-text-color);
}

.narrative__copy .tabs-desc {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ef-text-color);
  opacity: 1;
  margin-top: var(--space-4);
}

.content,
.moderne-eventlocation,
.brauhaus-saal {
  padding-top: var(--space-6);
}

.content .container,
.moderne-eventlocation .container,
.brauhaus-saal .container {
  width: min(96vw, 1800px);
  padding-inline: var(--space-3);
}

.content__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: flex-start;
}

.content__bild img {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(251, 247, 231, 0.12);
  transition: transform 0.35s ease;
  transform-origin: center;
  will-change: transform;
}

.content__bild {
  align-self: center;
  justify-self: center;
}

.content__bild:hover img {
  transform: scale(1.04);
}

.brauhaus-saal .content__bild img {
  width: 100%;
  max-width: 570px;
}

.content-small-image .content__bild img {
  width: 100%;
  max-width: 720px;
}

.content-image-compact .content__bild img {
  width: 100%;
  max-width: 560px;
}

.content-image-portrait .content__bild img {
  width: 100%;
  max-width: 500px;
}


.content-image-landscape .content__bild img {
  width: 100%;
  max-width: 720px;
}

.js .zweispalter-animate .content__bild {
  opacity: 0;
  transform: translateX(-120%);
  will-change: transform, opacity;
}

.js .zweispalter-animate.is-inview .content__bild {
  animation: zweispalter-fly-in 2.6s cubic-bezier(0.51, 0.77, 0.6, 0.77) both,
    storyblock-fade-in 1.6s ease-out 0.2s both;
}

@keyframes zweispalter-fly-in {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  85% {
    transform: translateX(-8%);
    opacity: 0.96;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes storyblock-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes storyblock-text-fly-in {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  85% {
    transform: translateX(8%);
    opacity: 0.96;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.content__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-3xl);
  line-height: 1.2;
  margin: 0 0 3rem;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}

/* Match EFK brauhaus intro H1 sizing for selected section titles. */
.content-title-h1-size .content__title {
  font-size: var(--fs-4xl);
}

/* Swap sizing on "Unseregeschichte": larger intro title, normal content title. */
[data-page="brauhaus-am-ring"] .section.page-intro .section-head h1,
[data-page="geschichte"] .section.page-intro .section-head h1,
[data-page="eventsaal"] .section.page-intro .section-head h1,
[data-page="meetingraum"] .section.page-intro .section-head h1 {
  font-size: var(--fs-4xl);
}


.js .zweispalter-animate .content__title {
  opacity: 0;
}

.js .zweispalter-animate.is-inview .content__title {
  animation: storyblock-fade-in 1.6s ease-out 2.6s both;
}

.js .zweispalter-animate .content__text,
.js .zweispalter-animate .content__list {
  opacity: 0;
  transform: translateX(120%);
  will-change: transform, opacity;
}

.js .zweispalter-animate.is-inview .content__text,
.js .zweispalter-animate.is-inview .content__list {
  animation: storyblock-text-fly-in 2.6s cubic-bezier(0.51, 0.77, 0.6, 0.77) both;
}

.section-separator {
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  margin: var(--space-7) auto;
  width: min(96vw, 1800px);
}

.content__inhalt p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  font-family: var(--font-sans);
  max-width: none;
  text-align: left;
  margin: 0 0 var(--space-6);
}

.content .content__inhalt p,
.moderne-eventlocation .content__inhalt p,
.brauhaus-saal .content__inhalt p {
  font-size: var(--fs-sm);
}

.content__inhalt p:last-child {
  margin-bottom: 0;
}

.content__inhalt ul {
  font-size: var(--fs-sm);
  line-height: 1.6;
  font-family: var(--font-sans);
  margin: 0 0 var(--space-6);
  padding-left: 1.2em;
}

.content__inhalt ul:last-child {
  margin-bottom: 0;
}

.content__inhalt li {
  margin: 0 0 var(--space-2);
}

.content__inhalt {
  max-width: none;
  width: 100%;
}

@media (max-width: 960px) {
  .content__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .content__bild:not(.content__bild--gallery) .gallery {
    width: clamp(320px, 90vw, 720px);
  }

  .content__bild img {
    width: clamp(320px, 90vw, 720px);
  }

}

.narrative__copy li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--peach);
  position: absolute;
  top: 0.45rem;
  left: 0;
}

/* ========== CTA ========== */
.section-cta {
  background: linear-gradient(90deg, rgba(243, 227, 176, 0.35), rgba(251, 247, 231, 0.2));
  border-block: 1px solid rgba(201, 162, 74, 0.2);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.cta__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.cta__socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cta__socials-title {
  margin: 0;
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cta__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 0px solid rgba(17, 17, 17, 0.12);
  background: linear-gradient(135deg, rgba(243, 227, 176, 0.35), rgba(251, 247, 231, 0.2));
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 30px rgba(251, 247, 231, 0.12);
}

.social-pill:focus {
  outline: none;
}

.social-pill:focus-visible {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(238, 216, 146, 0.35), 0 14px 30px rgba(251, 247, 231, 0.12);
}

.social-pill:active {
  outline: none;
  border-color: var(--peach);
  box-shadow: 0 12px 30px rgba(251, 247, 231, 0.12);
}

/* Normalize social icon focus/active styling (no white outline on Google) */
.cta__social-list .social-pill:focus,
.cta__social-list .social-pill:focus-visible,
.cta__social-list .social-pill:active {
  outline: none !important;
  border-color: inherit;
  box-shadow: 0 12px 30px rgba(251, 247, 231, 0.12);
}

.social-pill:hover {
  border-color: var(--peach);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(251, 247, 231, 0.12);
}

.social-pill svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-pill--tiktok {
  background: inherit;
  color: inherit;
}

.social-pill--instagram {
  background: inherit;
  color: inherit;
}

.social-pill--whatsapp {
  background: inherit;
  color: inherit;
}

.social-pill--facebook {
  background: inherit;
  color: inherit;
}

.social-pill--gnews {
  background: inherit;
  color: inherit;
  border-color: inherit;
}

.social-pill--youtube {
  background: inherit;
  color: inherit;
  border-color: inherit;
}

.about__headline {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  font-size: var(--fs-3xl);
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 auto 1.2rem;
  max-width: 980px;
}

.about__copy {
  max-width: 880px;
  margin: 0 auto;
  color: var(--ef-text-color);
}

.copy-centered {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

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

/* ========== KONTAKT FORM (MINIMAL) ========== */
.section-contact {
  background: var(--bg);
  color: var(--text);
  padding: clamp(var(--space-7), 6vw, var(--space-8)) 0;
}

.section-contact .container-large {
  padding: 0;
}

.contact-wrap-minimal {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(var(--space-6), 4vw, var(--space-8));
}

.contact-head-minimal {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-title-minimal {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 300;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.contact-sub-minimal {
  font-size: var(--fs-md);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-field {
  position: relative;
}

.form-field--full {
  width: 100%;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form input[type="tel"],
.newsletter-form select,
.newsletter-form textarea {
  width: 100%;
  padding: var(--space-3) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  outline: none;
  font-size: var(--fs-md);
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.3s ease;
  min-height: 44px;
}

.newsletter-form select {
  appearance: none;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23111" d="M6 8L0 0h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: var(--space-5);
}

.newsletter-form textarea {
  resize: vertical;
  min-height: 120px;
  padding: 0.75rem 0;
  line-height: 1.6;
}

.newsletter-form input[type="text"]::placeholder,
.newsletter-form input[type="email"]::placeholder,
.newsletter-form input[type="tel"]::placeholder,
.newsletter-form textarea::placeholder {
  color: var(--text);
  font-weight: 400;
}

.newsletter-form select option:first-child {
  color: var(--text);
}

.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus,
.newsletter-form input[type="tel"]:focus,
.newsletter-form select:focus,
.newsletter-form textarea:focus {
  border-bottom-color: var(--text);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.5;
  cursor: pointer;
}

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

.form-checkbox a:hover {
  color: var(--peach-strong);
}

.form-actions {
  margin-top: 1rem;
  text-align: center;
}

.form-status {
  margin-top: 0.9rem;
  text-align: center;
  font-size: var(--fs-sm);
  color: #575656;
}

.form-status.is-success {
  color: #2f7a45;
}

.form-status.is-error {
  color: #b42318;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: var(--font-sans);
  min-height: 44px;
}

.btn-subscribe:hover {
  background: var(--highlight);
  transform: translateY(-2px);
}

.btn-subscribe:active {
  transform: translateY(0);
}

/* ========== FOOTER ========== */
.site-footer {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  align-items: flex-start;
}

.footer-heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-base);
  margin-bottom: var(--space-3);
  text-align: left;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-md);
  color: var(--text-secondary);
}

.footer-list a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: rgba(241, 201, 162, 0.3);
  transform: translateY(-1px);
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 6px 18px rgba(251, 247, 231, 0.12));
}

.footer-separator {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  margin: var(--space-6) 0 var(--space-4);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.footer-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.footer-meta a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .site-footer {
    padding: var(--space-6) 0 var(--space-5);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes cotyFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-0.4deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(0.6deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale3d(0.96, 0.96, 1);
    opacity: 0.6;
  }
  50% {
    transform: scale3d(1.08, 1.08, 1);
    opacity: 0.85;
  }
}

@keyframes orbDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.38;
  }
  50% {
    transform: translate3d(25px, -18px, 0) rotate(10deg);
    opacity: 0.6;
  }
}

@keyframes slowParallax {
  0%, 100% {
    transform: scale3d(1.02, 1.02, 1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale3d(1.06, 1.06, 1) translate3d(0, -10px, 0);
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

/* ========== VIEW TRANSITIONS ========== */
::view-transition-group(*) {
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1280px) {
  .nav {
    gap: 0.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }

  .site-header .btn--cta {
    padding: 0.45rem 0.95rem;
    font-size: inherit;
  }
}

@media (max-width: 1080px) {
  .section-hero__grid {
    grid-template-columns: 1fr;
  }

  .section-hero__media {
    order: 2;
  }

  .media-card {
    justify-self: center;
  }

  .section-hero__copy {
    order: 1;
    text-align: center;
  }

  .section-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .story-grid,
  .app-grid,
  .narrative__grid,
  .cta__inner,
  .tabs-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  /* Panel darf nie größer als Viewport minus Top-Offset sein */
  .section-rooms {
    --rooms-panel-top: 10vh;
    --rooms-panel-h: clamp(400px, calc(100vh - 10vh - 1rem), 780px);
  }

  .tabs-grid {
    grid-template-rows: 1fr minmax(120px, 0.4fr);
  }

  .tabs-left-bottom {
    flex-shrink: 0;
  }

  .tabs-h3 {
    font-size: clamp(1.25rem, 4vw, var(--fs-3xl));
  }

  .tabs-h3.nowrap {
    white-space: normal;
  }

  .news-detail__grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .intro-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .narrative__image {
    order: -1;
  }

  .nav:not(.nav-menu) {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .values-content .section-head p {
    white-space: normal;
  }

  .section-inspiration .section-head__lead {
    white-space: normal;
  }
}

@media (max-width: 1023px) {
  .brand img {
    height: 64px;
    max-height: 64px;
  }
}

@media (max-width: 767px) {
  .brand img {
    height: 52px;
    max-height: 52px;
  }

  .site-header .container {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: max(var(--space-3), env(safe-area-inset-left));
    padding-right: max(var(--space-3), env(safe-area-inset-right));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-hero {
    padding-top: 2rem;
  }

  .media-card {
    padding: var(--space-5);
  }

  .story-card,
  .app-card__body {
    padding: 1.6rem;
  }

  .btn {
    width: 100%;
  }

  .tabs-height {
    height: 600vh;
  }

  /* Newsletter Form Mobile */
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .contact-wrap-minimal {
    padding: clamp(var(--space-5), 4vw, var(--space-6));
  }

  .contact-head-minimal {
    margin-bottom: 2rem;
  }

.contact-title-minimal {
  font-size: clamp(1.5rem, 6vw, 2rem);
}

.contact-sub-minimal {
  font-size: var(--fs-sm);
}

.newsletter-form {
  gap: var(--space-4);
}

.btn-subscribe {
  width: 100%;
  padding: 0.95rem 2rem;
}

@media (max-width: 640px) {
}

@media (max-width: 640px) {
}

/* Typography alignment to match EFK text sizes */
.cover__title {
  font-size: var(--fs-5xl);
}

.cover__subline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.cover__desc {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.section-hero__title {
  font-size: clamp(2.25rem, 3.4vw, 3.1rem);
}

.hero-subheader {
  font-size: clamp(var(--fs-xl), 2.2vw, var(--fs-2xl));
}

.section-hero__copy h1 {
  font-size: clamp(2.8rem, 7.5vw, 6rem);
}

.eyebrow {
  font-size: var(--fs-sm);
}

.lead {
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
}

.section.page-intro .section-head h1 {
  font-size: var(--fs-4xl);
}

.values-content .eyebrow {
  font-size: var(--fs-md);
}

.section-head h2 {
  font-size: var(--fs-3xl);
}

.section-inspiration .section-head__lead {
  font-size: clamp(var(--fs-lg), 1.6vw, var(--fs-xl));
}
}

@media (max-width: 576px) {
  .tabs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-grid,
  .news-card,
  .cta__inner {
    grid-template-columns: 1fr;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .media-card,
  .media-glow,
  .media-orb,
  .narrative__image img,
  .app-card img {
    animation: none !important;
  }

  .app-card:hover img,
  .app-card:hover {
    transform: none;
  }
}

/* ========== THEME TOGGLE SWITCH (Header) ========== */

/* ========== THEME-SPECIFIC ADJUSTMENTS ========== */

/* Newsletter form (dark theme default) */
[data-theme="dark"] .section-contact {
  background: var(--bg-secondary);
  color-scheme: dark;
}

[data-theme="dark"] .newsletter-form input[type="text"],
[data-theme="dark"] .newsletter-form input[type="email"],
[data-theme="dark"] .newsletter-form input[type="tel"],
[data-theme="dark"] .newsletter-form select,
[data-theme="dark"] .newsletter-form textarea {
  border-bottom-color: rgba(17, 17, 17, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] .newsletter-form select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23111" d="M6 8L0 0h12z"/></svg>');
}

[data-theme="dark"] .newsletter-form select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .newsletter-form input[type="text"]:focus,
[data-theme="dark"] .newsletter-form input[type="email"]:focus,
[data-theme="dark"] .newsletter-form input[type="tel"]:focus,
[data-theme="dark"] .newsletter-form select:focus,
[data-theme="dark"] .newsletter-form textarea:focus {
  border-bottom-color: var(--peach);
}

[data-theme="dark"] .newsletter-form input[type="text"]::placeholder,
[data-theme="dark"] .newsletter-form input[type="email"]::placeholder,
[data-theme="dark"] .newsletter-form input[type="tel"]::placeholder,
[data-theme="dark"] .newsletter-form textarea::placeholder,
[data-theme="dark"] .newsletter-form select option:first-child {
  color: rgba(17, 17, 17, 0.4);
}

[data-theme="dark"] .btn-subscribe {
  background: var(--peach);
  color: var(--text);
}

[data-theme="dark"] .btn-subscribe:hover {
  background: var(--highlight);
}

/* Startseite CTA Varianten pro Raum */

[data-theme="dark"] .section-rooms .btn-subscribe--panorama,
[data-theme="dark"] .section-rooms .btn-subscribe--gartensalon,
[data-theme="dark"] .section-rooms .btn-subscribe--eventsaal,
[data-theme="dark"] .section-rooms .btn-subscribe--partyraum,
[data-theme="dark"] .section-rooms .btn-subscribe--trauzimmer {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--gold);
}

[data-theme="dark"] .section-rooms .btn-subscribe--panorama:hover,
[data-theme="dark"] .section-rooms .btn-subscribe--gartensalon:hover,
[data-theme="dark"] .section-rooms .btn-subscribe--eventsaal:hover,
[data-theme="dark"] .section-rooms .btn-subscribe--partyraum:hover,
[data-theme="dark"] .section-rooms .btn-subscribe--trauzimmer:hover {
  background: var(--highlight);
}

.section-rooms .btn-subscribe--panorama,
.section-rooms .btn-subscribe--gartensalon,
.section-rooms .btn-subscribe--eventsaal,
.section-rooms .btn-subscribe--partyraum,
.section-rooms .btn-subscribe--trauzimmer {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--gold);
}

.section-rooms .btn-subscribe--panorama:hover,
.section-rooms .btn-subscribe--gartensalon:hover,
.section-rooms .btn-subscribe--eventsaal:hover,
.section-rooms .btn-subscribe--partyraum:hover,
.section-rooms .btn-subscribe--trauzimmer:hover {
  background: var(--highlight);
}

/* Galerie: dynamische Filter-Galerie und 3D-Ring */
.hero__gallery {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  background: transparent;
}

.gallery-filtered {
  padding: 0;
  background: transparent;
}

.gallery-filtered .section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.dynamicgalerie_container {
  border-radius: var(--radius-lg, 24px);
  border: 1px solid var(--border-color);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft, 0 18px 60px rgba(15, 8, 5, 0.35));
  backdrop-filter: blur(10px);
}

.gallery-navigation ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-filter {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: none;
  background: transparent;
  color: var(--text-primary);
}

.gallery-filter.is-active,
.gallery-filter:hover {
  color: #050303;
  background: var(--peach, #ffbe98);
  border-color: var(--peach, #ffbe98);
}

.dynamicgalerie.grid {
  position: relative;
  min-height: 320px;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.dynamicgalerie.grid.is-fading {
  opacity: 0.15;
  transform: translateX(-24px);
  pointer-events: none;
}

.dynamicgalerie__item {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 16px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  min-height: 220px;
  transition:
    top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.3s ease;
}

.dynamicgalerie__item.is-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
}

.dynamicgalerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.dynamicgalerie__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.dynamicgalerie__item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.dynamicgalerie__loading {
  text-align: center;
  padding: 2rem 0;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero__gallery {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 600px) {
  .gallery-navigation ul {
    gap: 0.5rem;
  }

  .gallery-filter {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  background: #ffffff;
  color: #2a1e1a;
  border: 1px solid #dad5cf;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  z-index: 120;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}

.cookie-banner__content {
  display: grid;
  gap: 12px;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4a4a4a;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e3ded8;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f8f8;
}

.cookie-banner__actions > * {
  border-right: 1px solid #e3ded8;
}

.cookie-banner__actions > *:last-child {
  border-right: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  color: #2a1e1a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.cookie-btn--accept {
  font-weight: 600;
}

.cookie-btn:hover {
  background: #efebe6;
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    padding: 14px;
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions > * {
    border-right: 0;
    border-top: 1px solid #e3ded8;
  }

  .cookie-banner__actions > *:first-child {
    border-top: 0;
  }
}
