/* ============================================
   KEMANKES FRANKFURT - Minimalist Stylesheet
   ============================================ */

/* ============================================
   FONTS — lokal gehostet (kein Google-Server-Kontakt)
   ============================================ */

/* Cormorant Garamond — Normal (400 / 500 / 600 / 700) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond — Italic 400 */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit — Normal (300 / 400 / 500 / 600) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variables */
:root {
  --primary: #A91D1D;
  --primary-dark: #8A1717;
  --black: #1a1a1a;
  --gray-dark: #4a4a4a;
  --gray: #7a7a7a;
  --gray-light: #f5f5f5;
  --white: #ffffff;
  --cream: #fdfbf9;
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   ANIMATIONS - Webflow Style
   ============================================ */

/* Fade up animation */
.animate {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

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

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.stagger-children.in-view > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(n+7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Fade in */
.fade-in {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
}

.fade-in.in-view {
  opacity: 1;
}

/* Scale up */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.scale-in.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Slide in from left */
.slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.slide-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.slide-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Line reveal */
.line-reveal {
  position: relative;
  overflow: hidden;
}

.line-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  transform: translateX(0);
  transition: transform 1.2s var(--ease-out-expo);
}

.line-reveal.in-view::after {
  transform: translateX(101%);
}

/* Parallax */
.parallax {
  will-change: transform;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1.125rem;
  color: var(--gray-dark);
  max-width: 600px;
}

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

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.container--narrow {
  max-width: 900px;
}

section {
  padding: 10rem 0;
}

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

.nav {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  overflow-x: clip;
  transition: top 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  top: 0.5rem;
}

.nav--hidden {
  transform: translateY(-130%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 0.4rem 0.75rem 0.4rem 0.75rem;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
  min-width: 0;
  overflow: visible;
}

.nav.scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex-shrink: 0;
}

.nav__logo img {
  height: 56px;
  width: auto;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav__logo:hover img {
  transform: scale(1.05);
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.nav__logo-city {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav__menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__lang-switch {
  display: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: var(--primary);
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.35s var(--ease-out-expo);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Backdrop overlay (created by JS) */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.nav__overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Close button (injected by JS) — hidden on desktop */
.nav__menu-close {
  display: none;
}

/* Mobile — fullscreen overlay menu */
@media (max-width: 1100px) {
  .nav__toggle {
    display: flex;
  }

  /* Backdrop not needed — the fullscreen menu is the overlay */
  .nav__overlay {
    display: none;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: none;
  }

  .nav__menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  /* Close button — fixed top-right corner */
  .nav__menu-close {
    display: flex;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: var(--black);
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
  }

  .nav__menu-close:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  /* Nav links — large, centered */
  .nav__link {
    font-size: clamp(2rem, 6vw, 3rem);
    font-family: var(--font-display);
    font-weight: 400;
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-light);
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  }

  .nav__link::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__link:hover::after,
  .nav__link.active::after {
    width: 40%;
  }

  /* Stagger animation — nth-child(1) is the close button */
  .nav__menu.open .nav__link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.07s; }
  .nav__menu.open .nav__link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
  .nav__menu.open .nav__link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.21s; }
  .nav__menu.open .nav__link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
  .nav__menu.open .nav__link:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

  /* CTA button */
  .nav__cta {
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s, background 0.3s;
    font-size: clamp(2rem, 6vw, 3rem);
    font-family: var(--font-display);
    font-weight: 400;
    padding: 0.3em 0.75em;
    border-radius: 0.5em;
  }

  .nav__menu.open .nav__cta {
    opacity: 1;
    transform: translateY(0);
  }

  /* Mobile language switch */
  .nav__lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s;
  }

  .nav__menu.open .nav__lang-switch {
    opacity: 1;
    transform: translateY(0);
  }

  .nav__lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
  }

  .nav__lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  .nav__lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
  }

  /* Dark mode */
  [data-theme="dark"] .nav__menu {
    background: var(--bg);
  }

  [data-theme="dark"] .nav__menu-close {
    border-color: #2e2e2e;
    color: #e0e0e0;
  }

  [data-theme="dark"] .nav__link {
    border-color: #1d1d1d;
  }

  [data-theme="dark"] .nav__lang-btn {
    border-color: #2e2e2e;
    color: #b0b0b0;
  }

  [data-theme="dark"] .nav__lang-btn:hover {
    border-color: var(--primary-light, #D03030);
    color: var(--primary-light, #D03030);
  }

  [data-theme="dark"] .nav__lang-btn.active {
    background: var(--primary-light, #D03030);
    border-color: var(--primary-light, #D03030);
    color: #111111;
  }
}

/* Mobile nav — prevent overflow */
@media (max-width: 768px) {
  .nav__inner {
    gap: 0.5rem;
    padding: 0.4rem 0.625rem;
  }

  .nav__logo img {
    height: 44px;
  }

  .lang-switch {
    margin-right: 0.25rem;
  }
}

@media (max-width: 400px) {
  .nav__inner {
    padding: 0.35rem 0.5rem;
  }

  .nav__logo img {
    height: 36px;
  }

  .lang-switch__toggle {
    padding: 0.35rem 0.5rem 0.35rem 0.45rem;
    font-size: 0.7rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-toggle svg {
    width: 14px;
    height: 14px;
  }
}

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

.hero {
  display: flex;
  align-items: flex-start;
  min-height: 90vh;
  padding-top: 120px;
  padding-bottom: 4rem;
  position: relative;
  overflow: visible;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero__label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--primary);
}

.hero__title {
  margin-bottom: 2rem;
}

.hero__title span {
  color: var(--primary);
}

.hero__text {
  margin-bottom: 3rem;
  font-size: 1.25rem;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero__image {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 45%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-inner {
  width: 100%;
}

.hero__image-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 20px;
}

/* Image placeholder styling */
.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-light) 0%, #e8e8e8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid var(--gray);
  border-radius: 50%;
  opacity: 0.3;
}

.image-placeholder::after {
  content: '📷';
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.image-placeholder span {
  opacity: 0.6;
}

/* Placeholder with logo (articles) */
.image-placeholder .placeholder-logo {
  width: 100px;
  height: auto;
  opacity: 0.15;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.image-placeholder:has(.placeholder-logo)::before,
.image-placeholder:has(.placeholder-logo)::after {
  display: none;
}

.image-placeholder:has(.placeholder-logo) {
  background: linear-gradient(135deg, #f2f0ed 0%, #e8e5e0 100%);
}

/* Actual images */
.hero__image img,
.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 3rem;
  }

  .hero__content {
    max-width: 70%;
  }

  .hero__text {
    font-size: 1.125rem;
  }

  .hero__image {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin: 3rem 0 0;
    padding: 0 5vw;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 1.125rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(169, 29, 29, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: 5rem;
}

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

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background: var(--cream);
  margin-top: 16rem;
}

.about--page {
  padding-top: 6rem;
  margin-top: 0;
  background: var(--white);
}

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

.about__image {
  position: relative;
}

.about__image-inner {
  width: 100%;
  overflow: hidden;
}

.about__image-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.about__image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary);
  z-index: -1;
  transition: transform 0.5s var(--ease-out-expo);
}

.about__image:hover::before {
  transform: translate(10px, 10px);
}

.about__content {
  max-width: 500px;
}

.about__text {
  margin-bottom: 2rem;
}

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

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__feature-icon {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.about__feature-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about__feature-text {
  font-size: 0.875rem;
  color: var(--gray);
}

@media (max-width: 900px) {
  .about {
    margin-top: 8rem;
  }

  .about--page {
    padding-top: 4rem;
    margin-top: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about__image {
    order: 2;
  }

  .about__content {
    order: 1;
  }

  .about__grid--reversed {
    direction: ltr;
  }

  .about__content {
    max-width: none;
  }

  .about__image::before {
    top: -10px;
    left: -10px;
  }
}

/* about 480px rules consolidated in RESPONSIVE — Index Page section */

/* ============================================
   STATS
   ============================================ */

.stats {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0;
}

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

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat__number {
    font-size: 3rem;
  }
}

/* ============================================
   TRAINING SECTION
   ============================================ */

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

.training__card {
  padding: 3rem;
  background: var(--gray-light);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out-expo);
}

.training__card:hover {
  transform: translateY(-5px);
}

.training__card--featured {
  background: var(--primary);
  color: var(--white);
}

.training__card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  color: var(--primary);
}

.training__card--featured .training__card-icon {
  color: var(--white);
}

.training__card-title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.training__card-text {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.training__card--featured .training__card-text {
  color: rgba(255, 255, 255, 0.8);
}

.training__time {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.training__time svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

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

/* ============================================
   INSTAGRAM SECTION
   ============================================ */

.instagram {
  background: var(--gray-light);
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.instagram__item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.instagram__item img,
.instagram__item .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.instagram__item:hover img,
.instagram__item:hover .image-placeholder {
  transform: scale(1.1);
}

.instagram__overlay {
  position: absolute;
  inset: 0;
  background: rgba(169, 29, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.instagram__item:hover .instagram__overlay {
  opacity: 1;
}

.instagram__overlay svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.instagram__cta {
  text-align: center;
  margin-top: 4rem;
}

.instagram__handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: var(--black);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   BOARD / VORSTAND
   ============================================ */

.board {
  padding-top: 3rem;
  background: var(--cream);
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.board__member {
  text-align: center;
}

.board__member-image {
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.board__member-image img,
.board__member-image .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.board__member:hover .board__member-image img,
.board__member:hover .board__member-image .image-placeholder {
  transform: scale(1.05);
}

.board__member-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.board__member-role {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.board__member-text {
  font-size: 0.875rem;
  color: var(--gray);
  max-width: 280px;
  margin: 0 auto;
}

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

@media (max-width: 600px) {
  .board__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   CALENDAR
   ============================================ */

.calendar {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  max-width: 100%;
  overflow: hidden;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.calendar__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.calendar__nav {
  display: flex;
  gap: 0.5rem;
}

.calendar__nav button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.calendar__nav button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.calendar__weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: default;
  transition: all 0.3s var(--ease-out-expo);
}

.calendar__day--empty {
  visibility: hidden;
}

.calendar__day--training {
  background: rgba(169, 29, 29, 0.1);
  color: var(--primary);
}

.calendar__day--trial {
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
}

.calendar__day--trial:hover {
  transform: scale(1.1);
}

.calendar__day--past {
  opacity: 0.3;
  pointer-events: none;
}

.calendar__day-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.calendar__legend {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.calendar__legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray);
}

.calendar__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.calendar__legend-dot--trial {
  background: var(--primary);
}

.calendar__legend-dot--training {
  background: rgba(169, 29, 29, 0.2);
}

/* ============================================
   BOOKING FORM
   ============================================ */

.booking-form {
  background: var(--white);
  padding: 3rem;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  max-width: 100%;
  overflow: hidden;
}

.booking-form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.booking-form__selected {
  background: rgba(169, 29, 29, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.booking-form__selected-label {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.booking-form__selected-date {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* Formular-Validierung */
.field--error {
  border-color: #ef4444 !important;
  background: #fff5f5;
}

.form-error {
  display: block;
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

/* Kapazitätsanzeige */
.booking-capacity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.booking-capacity--available {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.booking-capacity--full {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* Kontakt – Probetraining Hinweis */
.contact-trial-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #1e40af;
  line-height: 1.5;
}

.contact-trial-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #2563eb;
}

.contact-trial-hint a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}

/* Buchungs-Feedback */
.booking-feedback {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.booking-feedback--success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.booking-feedback--waitlist {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.booking-feedback--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* Custom Select Dropdown */
.custom-select {
  position: relative;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s;
  text-align: left;
}

.custom-select__trigger:focus {
  outline: none;
  border-color: var(--primary);
}

.custom-select__chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.custom-select.open .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.375rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
  z-index: 50;
  overflow: hidden;
}

.custom-select.open .custom-select__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select__option {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.custom-select__option:hover,
.custom-select__option--focused {
  background: var(--gray-light);
  color: var(--black);
}

.custom-select__option--active {
  color: var(--primary);
  font-weight: 500;
}

.custom-select--disabled .custom-select__trigger {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   CONTACT
   ============================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(169, 29, 29, 0.1);
  color: var(--primary);
  flex-shrink: 0;
  border-radius: 12px;
}

.contact__item-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact__item-value {
  color: var(--gray);
}

.contact__item-value a {
  color: var(--primary);
  transition: opacity 0.3s;
}

.contact__item-value a:hover {
  opacity: 0.7;
}

.contact__social {
  background: var(--primary);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 16px;
}

.contact__social-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact__social-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

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

  .contact__grid > .slide-left,
  .contact__grid > .slide-right {
    display: contents;
  }

  .contact-trial-hint {
    order: 1;
  }

  .booking-form {
    order: 2;
  }

  .contact__info {
    order: 3;
  }

  .contact__social {
    order: 4;
    margin-top: 0;
  }
}

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

.footer {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer__logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.footer__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

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

.footer__link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: 2rem;
}

.footer__legal a,
.footer__legal .footer__cookie-btn {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.footer__legal a:hover,
.footer__legal .footer__cookie-btn:hover {
  color: var(--white);
}

.footer__cookie-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   PAGE HEADER (for subpages)
   ============================================ */

.page-header {
  padding: 12rem 0 6rem;
  text-align: center;
  background: var(--cream);
}

.page-header__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.page-header__title {
  margin-bottom: 1.5rem;
}

.page-header__text {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.cta__title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta__text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   LANGUAGE SWITCHER (Icon + Dropdown)
   ============================================ */

.lang-switch {
  position: relative;
  margin-left: auto;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Toggle trigger button */
.lang-switch__toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-dark);
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.lang-switch__toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.lang-switch__toggle svg:first-child {
  color: var(--gray);
  flex-shrink: 0;
}

.lang-switch__chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.lang-switch.open .lang-switch__chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-switch__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 30px -4px rgba(0,0,0,0.12);
  overflow: hidden;
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo);
  z-index: 200;
}

.lang-switch.open .lang-switch__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Individual language buttons inside dropdown */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.lang-btn span {
  font-weight: 300;
  color: var(--gray);
  font-size: 0.75rem;
}

.lang-btn:hover {
  background: var(--gray-light);
  color: var(--black);
}

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

.lang-btn.active span {
  color: var(--primary);
  opacity: 0.7;
}

.nav__lang-btn.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .nav__lang-btn.lang-btn.active {
  background: var(--primary-light, #D03030);
  border-color: var(--primary-light, #D03030);
  color: #111111;
}

@media (max-width: 900px) {
  .lang-switch__dropdown {
    right: 0;
  }
}

/* ============================================
   LEGAL PAGES (Datenschutz, Impressum)
   ============================================ */

.legal-content {
  max-width: 100%;
}

.legal-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--black);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.legal-section p {
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.legal-section ul {
  color: var(--gray-dark);
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section ul li {
  margin-bottom: 0.375rem;
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Smooth page transitions */
.page-transition {
  animation: pageIn 0.6s var(--ease-out-expo);
}

/* ============================================
   RESPONSIVE — Abstände & Padding (Mobile)
   ============================================ */

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .page-header {
    padding: 7rem 0 3rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .training__card {
    padding: 1.75rem;
  }

  .calendar {
    padding: 1.25rem;
  }

  .booking-form {
    padding: 1.25rem;
  }

  .stats {
    padding: 3.5rem 0;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer__grid {
    gap: 2rem;
  }

  .about__grid {
    gap: 2.5rem;
  }

  .cta {
    padding: 4rem 0;
  }
}

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

/* ============================================
   NEUIGKEITEN / BLOG
   ============================================ */

/* Filter */
.news-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.news-filter__btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-filter__btn:hover,
.news-filter__btn.active {
  background: var(--primary);
  color: #fff;
}

[data-theme="dark"] .news-filter__btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: #aaaaaa;
}

[data-theme="dark"] .news-filter__btn:hover,
[data-theme="dark"] .news-filter__btn.active {
  background: var(--primary-light, #D03030);
  border-color: var(--primary-light, #D03030);
  color: #111111;
}

/* Search */
.news-search {
  position: relative;
  margin-bottom: 1.5rem;
}

.news-search__input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.news-search__input::placeholder {
  color: var(--gray);
}

.news-search__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(169, 29, 29, 0.08);
}

.news-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: color 0.25s;
}

.news-search:focus-within .news-search__icon {
  color: var(--primary);
}

[data-theme="dark"] .news-search__input {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

[data-theme="dark"] .news-search__input:focus {
  border-color: var(--primary-light, #D03030);
  box-shadow: 0 0 0 3px rgba(208, 48, 48, 0.15);
}

[data-theme="dark"] .news-search__input:-webkit-autofill,
[data-theme="dark"] .news-search__input:-webkit-autofill:hover,
[data-theme="dark"] .news-search__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* No results */
.news-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem 3rem;
}

.news-no-results__scene {
  margin-bottom: 0.25rem;
}

.news-no-results__caption {
  font-size: 0.8125rem;
  color: var(--gray);
  font-style: italic;
  margin: 0 auto 2rem;
  max-width: 480px;
}

.news-no-results__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 auto 0.75rem;
  max-width: 480px;
}

.news-no-results__hint {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto 2rem;
}

[data-theme="dark"] .news-no-results__title {
  color: #e8e8e8;
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

/* Card */
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .news-card {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .news-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-light);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__image .image-placeholder {
  width: 100%;
  height: 100%;
  border: none;
}

.news-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-card__category {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 0.2em 0.6em;
  border-radius: 3px;
}

.news-card__date {
  font-size: 0.8rem;
  color: var(--gray);
}

.news-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.news-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

[data-theme="dark"] .news-card__title {
  color: #e8e8e8;
}

.news-card__excerpt {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.65;
  max-width: none;
  flex: 1;
  margin-bottom: 1.25rem;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: gap 0.2s;
}

.news-card__link:hover {
  gap: 0.7rem;
}

.news-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Featured card (large, spans 2 cols) */
.news-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.news-card--featured .news-card__image {
  width: 50%;
  flex-shrink: 0;
  aspect-ratio: unset;
}

.news-card--featured .news-card__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

@media (max-width: 1024px) {
  .news-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }
  .news-card--featured .news-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .news-card--featured {
    grid-column: span 1;
  }
}

/* ---- Article Page ---- */
.article-header {
  padding: 8rem 0 4rem;
  background: var(--gray-light);
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-header__category {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 0.2em 0.6em;
  border-radius: 3px;
}

.article-header__date {
  font-size: 0.85rem;
  color: var(--gray);
}

.article-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.article-header__lead {
  font-size: 1.2rem;
  color: var(--gray-dark);
  max-width: 620px;
  line-height: 1.7;
}

.article-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.article-header__back:hover {
  color: var(--black);
}

.article-header__back svg {
  width: 14px;
  height: 14px;
}

.article-image {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.article-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
}

.article-image .image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.article-content {
  padding: 5rem 0 8rem;
}

.article-content__inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-content__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
}

.article-content__inner h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

.article-content__inner p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--gray-dark);
  max-width: none;
  margin-bottom: 1.5rem;
}

.article-content__inner ul,
.article-content__inner ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content__inner li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}

.article-content__inner blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--black);
  line-height: 1.5;
}

[data-theme="dark"] .article-content__inner blockquote {
  color: #e0e0e0;
  border-left-color: var(--primary-light, #D03030);
}

/* News preview on index */
.news-preview {
  padding: 8rem 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .news-preview {
  border-top-color: rgba(255, 255, 255, 0.07);
}

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

@media (max-width: 1024px) {
  .news-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-preview__grid .news-card:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .news-preview__grid {
    grid-template-columns: 1fr;
  }
  .news-preview__grid .news-card:nth-child(2),
  .news-preview__grid .news-card:nth-child(3) {
    display: none;
  }
}

.news-preview__cta {
  margin-top: 3rem;
  text-align: center;
}

/* ============================================
   RESPONSIVE — Index Page
   ============================================ */

/* Tablet (1000px) — hero image stacks below, already handled */

/* Medium screens */
@media (max-width: 768px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 2rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__label {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .hero__label::before {
    width: 24px;
  }

  .hero__title {
    margin-bottom: 1.5rem;
  }

  .hero__text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .hero__image {
    margin-top: 2rem;
  }

  .hero__image-inner img {
    border-radius: 14px;
  }

  .about {
    margin-top: 6rem;
  }

  .section-label {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .news-preview {
    padding: 5rem 0;
  }

  .news-preview__cta {
    margin-top: 2rem;
  }

  .instagram__cta {
    margin-top: 2.5rem;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 1.5rem;
  }

  .hero__label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }

  .hero__label::before {
    width: 20px;
  }

  .hero__title {
    margin-bottom: 1.25rem;
  }

  .hero__text {
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
  }

  .hero__image {
    margin-top: 1.5rem;
    max-width: none;
  }

  .hero__image-inner img {
    border-radius: 10px;
  }

  .about {
    margin-top: 3rem;
  }

  .about--page {
    margin-top: 0;
    padding-top: 3rem;
  }

  .about__grid {
    gap: 2rem;
  }

  .about__image::before {
    display: none;
  }

  .about__features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .about__text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .stats {
    padding: 3rem 0;
  }

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

  .stat__number {
    font-size: 2.25rem;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .training__card {
    padding: 1.5rem;
  }

  .training__card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 1.25rem;
  }

  .training__card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .training__card-text {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }

  .training__time {
    font-size: 0.875rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .training__time svg {
    width: 16px;
    height: 16px;
  }

  .instagram__cta {
    margin-top: 2rem;
  }

  .news-preview {
    padding: 3.5rem 0;
  }

  .news-preview__cta {
    margin-top: 1.5rem;
  }

  .cta {
    padding: 3rem 0;
  }

  .cta__title {
    font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  }

  .cta__text {
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
  }

  .btn {
    font-size: 0.875rem;
    padding: 1rem 1.75rem;
    gap: 0.5rem;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }

  .footer {
    padding: 2.5rem 0 1.25rem;
  }

  .footer__grid {
    gap: 2rem;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__logo img {
    height: 48px;
  }

  .footer__text {
    font-size: 0.875rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.8125rem;
  }

  .footer__legal {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .page-header {
    padding: 5.5rem 0 2rem;
  }

  .page-header__title {
    font-size: clamp(2.75rem, 8vw, 3.5rem);
  }

  .page-header__text {
    font-size: 0.9375rem;
  }

  /* Contact */
  .contact__grid {
    gap: 2.5rem;
  }

  .contact__social {
    padding: 1.5rem;
  }

  /* Calendar */
  .calendar {
    padding: 1rem;
  }

  .calendar__day {
    font-size: 0.8125rem;
  }

  .calendar__legend {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Cookie banner */
  .cookie-banner__inner {
    padding: 1rem;
    border-radius: 12px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-btn--text {
    order: 0;
    margin-right: 0;
  }
}

/* ============================================
   ABOUT PAGE — Sections & Gallery
   ============================================ */

.about-page__history {
  padding: 8rem 0;
  background: var(--cream);
}

.about-page__values {
  padding: 8rem 0;
  background: var(--gray-light);
}

.about-page__gallery {
  padding: 8rem 0;
}

/* Reversed grid — image on right, text on left */
.about__grid--reversed {
  direction: rtl;
}

.about__grid--reversed > * {
  direction: ltr;
}

/* Values — vertical list variant */
.about__features--values {
  max-width: 600px;
  margin: 0 auto;
  gap: 2rem;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}

.about__feature--value {
  gap: 1.5rem;
}

.about__feature-icon--lg {
  width: 12px;
  height: 12px;
}

.about__feature-title--lg {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.about__feature-text--lg {
  font-size: 1rem;
  line-height: 1.7;
}

/* Gallery grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--focus-bottom img {
  object-position: center bottom;
}

/* Responsive — About page sections */
@media (max-width: 900px) {
  .about-page__history,
  .about-page__values,
  .about-page__gallery {
    padding: 5rem 0;
  }
}

@media (max-width: 768px) {
  .about-page__history,
  .about-page__values,
  .about-page__gallery {
    padding: 4rem 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery__item {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery__item {
    aspect-ratio: 16/10;
  }
}

/* ============================================
   TRAINING PAGE — Sections
   ============================================ */

.training-page__info {
  padding: 6rem 0;
  background: var(--white);
}

.training-page__booking {
  padding: 6rem 0;
  background: var(--gray-light);
}

.training-page__faq {
  padding: 6rem 0;
  background: var(--white);
}

.training__card-text--sub {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.training__card-btn {
  margin-top: 1.25rem;
  display: inline-flex;
  align-self: flex-start;
}

/* Booking grid (calendar + form side by side) */
.booking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 100%;
  overflow: hidden;
}

/* Form row (name fields side by side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Disabled form input */
.form-group__input--disabled {
  background: var(--gray-light);
  color: var(--gray);
  cursor: not-allowed;
}

/* Map section (shared by training & contact) */
.map-section {
  padding: 4rem 0;
  background: var(--gray-light);
}

.map-section__wrapper {
  margin-top: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.map-section__embed {
  width: 100%;
  height: 420px;
  border-radius: 1rem;
  overflow: hidden;
}

/* ============================================
   BOARD PAGE — Contact Section
   ============================================ */

.board-page__contact {
  padding: 6rem 0;
  background: var(--primary);
  color: var(--white);
}

.board-page__contact .section-label,
.board-page__contact .section-title,
.board-page__contact p {
  color: var(--white);
}

.board-page__contact-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT PAGE — Main Section
   ============================================ */

.contact-page__main {
  padding: 6rem 0;
  background: var(--white);
}

/* ============================================
   NEWS PAGE — Main Section
   ============================================ */

.news-page__main {
  padding: 6rem 0 8rem;
}

/* ============================================
   RESPONSIVE — Training Page
   ============================================ */

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

@media (max-width: 768px) {
  .training-page__info,
  .training-page__booking,
  .training-page__faq {
    padding: 4rem 0;
  }

  .booking__grid {
    margin-top: 2rem;
  }

  .calendar {
    padding: 1.5rem;
  }

  .booking-form {
    padding: 1.5rem;
  }

  .map-section {
    padding: 3rem 0;
  }

  .map-section__embed {
    height: 320px;
  }

  .board-page__contact {
    padding: 4rem 0;
  }

  .contact-page__main {
    padding: 4rem 0;
  }

  .news-page__main {
    padding: 4rem 0 5rem;
  }
}

@media (max-width: 480px) {
  .training-page__info,
  .training-page__booking,
  .training-page__faq {
    padding: 3rem 0;
  }

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

  .booking__grid {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .calendar {
    padding: 0.75rem;
  }

  .map-section {
    padding: 2.5rem 0;
  }

  .map-section__embed {
    height: 260px;
  }

  .map-section__wrapper {
    border-radius: 0.75rem;
  }

  .board-page__contact {
    padding: 3rem 0;
  }

  .contact-page__main {
    padding: 3rem 0;
  }

  .news-page__main {
    padding: 3rem 0 4rem;
  }

  .news-filter {
    gap: 0.375rem;
  }

  .news-filter__btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.7rem;
  }

  .booking-form {
    padding: 1.25rem;
  }

  .booking-form__title {
    font-size: 1.25rem;
  }

  .faq-question {
    font-size: 1.05rem;
    padding: 1.25rem 0;
  }
}

/* ============================================
   RESPONSIVE — Board Page (Small)
   ============================================ */

@media (max-width: 480px) {
  .board__member-image {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .board__member-name {
    font-size: 1.25rem;
  }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] {
  --white: #111111;
  --cream: #161412;
  --gray-light: #1d1d1d;
  --gray-dark: #aaaaaa;
  --gray: #777777;
  --primary-light: #D03030;
}

[data-theme="dark"] body {
  color: #e0e0e0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #e8e8e8;
}

/* Nav */
[data-theme="dark"] .nav__inner {
  background: rgba(35, 28, 25, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav.scrolled .nav__inner {
  background: rgba(38, 30, 26, 0.99);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .nav__link {
  color: #e0e0e0;
}

[data-theme="dark"] .nav__toggle span {
  background: #e0e0e0;
}

/* Lang switch */
[data-theme="dark"] .lang-switch__toggle {
  border-color: rgba(255, 255, 255, 0.15);
  color: #b0b0b0;
}

[data-theme="dark"] .lang-switch__dropdown {
  background: #1d1d1d;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .lang-btn {
  color: #b0b0b0;
}

[data-theme="dark"] .lang-btn span {
  color: #555555;
}

[data-theme="dark"] .lang-btn:hover {
  background: #252525;
  color: #e0e0e0;
}

/* Buttons */
[data-theme="dark"] .btn--outline {
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .btn--outline:hover {
  background: #e0e0e0;
  color: #111111;
}

/* Fix: elements using --white as text color on dark/colored bg */
[data-theme="dark"] .stats {
  color: #e8e8e8;
}

[data-theme="dark"] .cta__title,
[data-theme="dark"] .training__card--featured,
[data-theme="dark"] .contact__social-title {
  color: #ffffff;
}

/* Forms */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #1d1d1d;
  color: #e0e0e0;
  border-color: #2e2e2e;
}

[data-theme="dark"] .custom-select__trigger {
  background: #1d1d1d;
  color: #e0e0e0;
  border-color: #2e2e2e;
}

[data-theme="dark"] .custom-select__dropdown {
  background: #1d1d1d;
  border-color: #2e2e2e;
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .custom-select__option {
  color: #c0c0c0;
}

[data-theme="dark"] .custom-select__option:hover,
[data-theme="dark"] .custom-select__option--focused {
  background: #2e2e2e;
  color: #e0e0e0;
}

[data-theme="dark"] .custom-select__option--active {
  color: var(--primary-light, #D03030);
}

[data-theme="dark"] .form-group input:-webkit-autofill,
[data-theme="dark"] .form-group input:-webkit-autofill:hover,
[data-theme="dark"] .form-group input:-webkit-autofill:focus,
[data-theme="dark"] .form-group textarea:-webkit-autofill,
[data-theme="dark"] .form-group textarea:-webkit-autofill:hover,
[data-theme="dark"] .form-group textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1d1d1d inset !important;
  -webkit-text-fill-color: #e0e0e0 !important;
  border-color: #2e2e2e !important;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .form-group label {
  color: #c0c0c0;
}

[data-theme="dark"] .field--error {
  background: #2a1010 !important;
}

/* Calendar */
[data-theme="dark"] .calendar {
  border-color: #2e2e2e;
}

[data-theme="dark"] .calendar__nav button,
[data-theme="dark"] .calendar__header button {
  background: rgba(208, 48, 48, 0.1);
  border-color: rgba(208, 48, 48, 0.3);
  color: var(--primary-light, #D03030);
}

[data-theme="dark"] .calendar__legend {
  border-color: #2e2e2e;
}

/* Booking form */
[data-theme="dark"] .booking-form {
  border-color: #2e2e2e;
}

/* Contact trial hint */
[data-theme="dark"] .contact-trial-hint {
  background: #0a1528;
  border-color: #1a3050;
  color: #7ab3e8;
}

[data-theme="dark"] .contact-trial-hint svg {
  color: #5a9fd4;
}

[data-theme="dark"] .contact-trial-hint a {
  color: #7ab3e8;
}

/* Image placeholders */
[data-theme="dark"] .image-placeholder {
  background: linear-gradient(135deg, #1d1d1d 0%, #252525 100%);
}

[data-theme="dark"] .image-placeholder:has(.placeholder-logo) {
  background: linear-gradient(135deg, #1d1d1d 0%, #252525 100%);
}

[data-theme="dark"] .image-placeholder .placeholder-logo {
  opacity: 0.1;
  filter: invert(1);
}

/* Legal pages */
[data-theme="dark"] .legal-section {
  border-color: #2e2e2e;
}

[data-theme="dark"] .legal-section h2,
[data-theme="dark"] .legal-section h3 {
  color: #e0e0e0;
}

[data-theme="dark"] .legal-section a {
  color: var(--primary-light);
}

/* --- Primary color: brighter red for text on dark backgrounds --- */
[data-theme="dark"] .hero__label,
[data-theme="dark"] .hero__title span,
[data-theme="dark"] .hero__label::before {
  color: var(--primary-light);
}

[data-theme="dark"] .hero__label::before {
  background: var(--primary-light);
}

[data-theme="dark"] .section-label,
[data-theme="dark"] .page-header__label {
  color: var(--primary-light);
}

[data-theme="dark"] .stat__number {
  color: var(--primary-light);
}

[data-theme="dark"] .board__member-role {
  color: var(--primary-light);
}

[data-theme="dark"] .contact__item-icon {
  background: rgba(208, 48, 48, 0.12);
  color: var(--primary-light);
}

[data-theme="dark"] .contact__item-value a {
  color: var(--primary-light);
}

[data-theme="dark"] .booking-form__selected-label {
  color: var(--primary-light);
}

[data-theme="dark"] .booking-form__selected {
  background: rgba(208, 48, 48, 0.08);
}

[data-theme="dark"] .calendar__day--training {
  background: rgba(208, 48, 48, 0.12);
  color: var(--primary-light);
}

[data-theme="dark"] .calendar__legend-dot--training {
  background: rgba(208, 48, 48, 0.25);
}

[data-theme="dark"] .about__image::before {
  border-color: var(--primary-light);
}

[data-theme="dark"] .about__feature-icon {
  background: var(--primary-light);
}

[data-theme="dark"] .training__card-icon {
  color: var(--primary-light);
}

[data-theme="dark"] .training__card-text {
  color: #aaaaaa;
}

[data-theme="dark"] .text-primary {
  color: var(--primary-light);
}

[data-theme="dark"] .news-search__input:focus {
  border-color: var(--primary-light);
}

/* --- Buttons: fix text on colored backgrounds --- */
[data-theme="dark"] .btn--primary {
  background: var(--primary-light);
  color: #111111;
}

[data-theme="dark"] .btn--primary:hover {
  background: #A91D1D;
  box-shadow: 0 20px 40px -10px rgba(208, 48, 48, 0.3);
}

[data-theme="dark"] .btn--white {
  background: #1d1d1d;
  color: var(--primary-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn--white:hover {
  background: #252525;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cookie-btn--primary {
  background: var(--primary-light);
  color: #111111;
}

[data-theme="dark"] .cookie-btn--primary:hover {
  background: #A91D1D;
}

[data-theme="dark"] .cookie-banner__text a {
  color: var(--primary-light);
}

/* --- Footer: fix text visibility --- */
[data-theme="dark"] .footer {
  background: #0a0a0a;
  color: #e0e0e0;
}

[data-theme="dark"] .footer__text {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .footer__title {
  color: #e0e0e0;
}

[data-theme="dark"] .footer__link {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .footer__link:hover {
  color: #ffffff;
}

[data-theme="dark"] .footer__bottom {
  color: rgba(255, 255, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer__legal a,
[data-theme="dark"] .footer__legal .footer__cookie-btn {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .footer__legal a:hover,
[data-theme="dark"] .footer__legal .footer__cookie-btn:hover {
  color: #ffffff;
}

[data-theme="dark"] .footer__logo-name {
  color: #e8e8e8;
}

[data-theme="dark"] .footer__logo img {
  filter: brightness(0) invert(1);
}

/* --- CTA section: fix text on primary bg --- */
[data-theme="dark"] .cta {
  background: #251010;
  border-top: 1px solid rgba(208, 48, 48, 0.15);
  border-bottom: 1px solid rgba(208, 48, 48, 0.15);
}

[data-theme="dark"] .cta__title {
  color: #f0f0f0;
}

[data-theme="dark"] .cta__text {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Board page contact section: match CTA dark style --- */
[data-theme="dark"] .board-page__contact {
  background: #251010;
  border-top: 1px solid rgba(208, 48, 48, 0.15);
  border-bottom: 1px solid rgba(208, 48, 48, 0.15);
  color: #e0e0e0;
}

[data-theme="dark"] .board-page__contact .section-label {
  color: var(--primary-light);
}

[data-theme="dark"] .board-page__contact .section-title {
  color: #f0f0f0;
}

[data-theme="dark"] .board-page__contact p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .board-page__contact .btn--outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #e0e0e0;
}

/* --- Calendar trial day: fix text on primary bg --- */
[data-theme="dark"] .calendar__day--trial {
  background: var(--primary-light);
  color: #111111;
}

[data-theme="dark"] .calendar__legend-dot--trial {
  background: var(--primary-light);
}

/* --- Training card featured: fix on primary bg --- */
[data-theme="dark"] .training__card--featured {
  background: #251010;
  border: 1px solid rgba(208, 48, 48, 0.2);
  color: #e8e8e8;
}

[data-theme="dark"] .training__card--featured .training__card-icon {
  color: var(--primary-light);
}

[data-theme="dark"] .training__card--featured .training__card-text {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .training__card {
  background: #1d1d1d;
}

/* --- Contact social box: fix on primary bg --- */
[data-theme="dark"] .contact__social {
  background: #251010;
  border: 1px solid rgba(208, 48, 48, 0.15);
}

[data-theme="dark"] .contact__social-title {
  color: #f0f0f0;
}

[data-theme="dark"] .contact__social-text {
  color: rgba(255, 255, 255, 0.6);
}

/* --- Instagram overlay --- */
[data-theme="dark"] .instagram__overlay {
  background: rgba(208, 48, 48, 0.85);
}

[data-theme="dark"] .instagram__handle {
  color: #e0e0e0;
}

/* --- Booking feedback / capacity indicators --- */
[data-theme="dark"] .booking-capacity--available {
  background: rgba(22, 163, 74, 0.1);
  color: #4ade80;
  border-color: rgba(22, 163, 74, 0.25);
}

[data-theme="dark"] .booking-capacity--full {
  background: rgba(194, 65, 12, 0.1);
  color: #fb923c;
  border-color: rgba(194, 65, 12, 0.25);
}

[data-theme="dark"] .booking-feedback--success {
  background: rgba(22, 163, 74, 0.1);
  color: #4ade80;
  border-color: rgba(22, 163, 74, 0.25);
}

[data-theme="dark"] .booking-feedback--waitlist {
  background: rgba(133, 77, 14, 0.12);
  color: #fbbf24;
  border-color: rgba(133, 77, 14, 0.25);
}

[data-theme="dark"] .booking-feedback--error {
  background: rgba(185, 28, 28, 0.1);
  color: #f87171;
  border-color: rgba(185, 28, 28, 0.25);
}

[data-theme="dark"] .form-error {
  color: #f87171;
}

/* --- Page header on dark bg --- */
[data-theme="dark"] .page-header {
  background: #161412;
}

[data-theme="dark"] .page-header__text {
  color: #aaaaaa;
}

/* --- Selection color fix --- */
[data-theme="dark"] ::selection {
  background: var(--primary-light);
  color: #111111;
}

/* --- Focus states: brighter ring --- */
[data-theme="dark"] .nav__link:focus-visible,
[data-theme="dark"] .nav__cta:focus-visible,
[data-theme="dark"] .footer__link:focus-visible,
[data-theme="dark"] .footer__legal a:focus-visible,
[data-theme="dark"] .btn:focus-visible,
[data-theme="dark"] .theme-toggle:focus-visible,
[data-theme="dark"] .lang-switch__toggle:focus-visible,
[data-theme="dark"] .lang-btn:focus-visible,
[data-theme="dark"] .nav__lang-btn:focus-visible,
[data-theme="dark"] .nav__toggle:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] textarea:focus-visible,
[data-theme="dark"] select:focus-visible {
  outline-color: var(--primary-light);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .custom-select__trigger:focus {
  border-color: var(--primary-light);
}

/* --- Back to top button --- */
[data-theme="dark"] .back-to-top {
  background: var(--primary-light);
  color: #111111;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(208, 48, 48, 0.25);
}

[data-theme="dark"] .back-to-top:hover {
  background: #A91D1D;
  box-shadow: 0 6px 20px rgba(208, 48, 48, 0.35);
}

/* --- Cookie toggle checked --- */
[data-theme="dark"] .cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--primary-light);
}

/* --- News filter buttons --- */
[data-theme="dark"] .news-filter__btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: #aaaaaa;
}

[data-theme="dark"] .news-filter__btn:hover,
[data-theme="dark"] .news-filter__btn.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #111111;
}

[data-theme="dark"] .news-card__category {
  background: var(--primary-light);
  color: #111111;
}

[data-theme="dark"] .news-card__read-more,
[data-theme="dark"] .news-card__link {
  color: var(--primary-light);
}

/* --- Article blockquote --- */
[data-theme="dark"] .article-content__inner blockquote {
  border-left-color: var(--primary-light);
}

/* --- FAQ expanded/hover: brighter red --- */
[data-theme="dark"] .faq-question:hover,
[data-theme="dark"] .faq-question[aria-expanded="true"] {
  color: var(--primary-light);
}

[data-theme="dark"] .faq-question[aria-expanded="true"] .faq-icon {
  color: var(--primary-light);
}

[data-theme="dark"] .faq-answer > p {
  border-left-color: var(--primary-light);
}

/* --- Calendar nav buttons --- */
[data-theme="dark"] .calendar__nav button:hover,
[data-theme="dark"] .calendar__header button:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* --- Custom select active option --- */
[data-theme="dark"] .custom-select__option--active {
  color: var(--primary-light);
}

/* --- Theme toggle hover --- */
[data-theme="dark"] .theme-toggle:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

/* Dark mode toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  cursor: pointer;
  color: var(--gray-dark);
  transition: all 0.3s var(--ease-out-expo);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.15);
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-accordion {
  display: flex;
  flex-direction: column;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question[aria-expanded="true"] {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
  color: var(--gray);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-out-expo);
}

.faq-answer.is-open {
  max-height: 400px;
}

.faq-answer > p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray-dark);
  line-height: 1.8;
  padding: 0 0 1.5rem 1.25rem;
  border-left: 2px solid var(--primary);
  margin-left: 0.25rem;
}

[data-theme="dark"] .faq-question {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .faq-question[aria-expanded="true"] {
  color: var(--primary-light, #D03030);
}

[data-theme="dark"] .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq-answer > p {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   COOKIE CONSENT BANNER & MODAL
   ============================================ */

/* Banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translateY(calc(100% + 1rem));
  transition: transform 0.4s var(--ease-out-expo);
}

.cookie-banner--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
  padding: 1.25rem 2rem;
}

.cookie-banner__text {
  flex: 1;
  min-width: 260px;
}

.cookie-banner__title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.cookie-banner__text p {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
  max-width: none;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  border-radius: 0.375rem;
  padding: 0.625rem 1.25rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.cookie-btn--primary {
  background: var(--primary);
  color: var(--white);
}

.cookie-btn--primary:hover {
  background: var(--primary-dark);
}

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

.cookie-btn--outline:hover {
  border-color: var(--black);
}

.cookie-social-enable-btn.cookie-btn--outline {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cookie-social-enable-btn.cookie-btn--outline:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cookie-btn--text {
  background: transparent;
  color: var(--gray);
  padding-left: 0;
  padding-right: 0;
}

.cookie-btn--text:hover {
  color: var(--black);
}

/* Maps blocked placeholder */
.cookie-map-placeholder {
  width: 100%;
  height: 420px;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray);
}

.cookie-map-placeholder p {
  font-size: 0.9375rem;
  color: var(--gray);
  margin: 0;
  max-width: none;
}

/* Social blocked placeholder */
.cookie-social-placeholder {
  width: 100%;
  min-height: 200px;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray);
  border-radius: 1rem;
  margin: -2rem 0;
}

.cookie-social-placeholder p {
  font-size: 0.9375rem;
  color: var(--gray);
  margin: 0;
  max-width: none;
}

/* Modal overlay */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal--visible .cookie-modal__overlay {
  opacity: 1;
}

.cookie-modal__box {
  position: relative;
  background: var(--white);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.cookie-modal--visible .cookie-modal__box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.cookie-modal__header h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--black);
  margin: 0;
}

.cookie-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  border-radius: 0.25rem;
  transition: color 0.2s;
}

.cookie-modal__close:hover {
  color: var(--black);
}

.cookie-modal__body {
  padding: 0.5rem 0;
}

.cookie-modal__footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.cookie-modal__footer .cookie-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

/* Cookie categories */
.cookie-category {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-category__info strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.cookie-category__info p {
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

.cookie-always-active {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2d8a4e;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s var(--ease-out-expo);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Dark mode */
[data-theme="dark"] .cookie-banner__inner {
  background: rgba(26, 26, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cookie-banner__title {
  color: #e0e0e0;
}

[data-theme="dark"] .cookie-banner__text p,
[data-theme="dark"] .cookie-banner__text a {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .cookie-banner__text a {
  color: var(--primary-light, #D03030);
}

[data-theme="dark"] .cookie-btn--outline {
  color: #e0e0e0;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cookie-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .cookie-social-enable-btn.cookie-btn--outline {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

[data-theme="dark"] .cookie-social-enable-btn.cookie-btn--outline:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

[data-theme="dark"] .cookie-btn--text {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FOCUS STATES (WCAG 2.1 AA)
   ============================================ */

.nav__link:focus-visible,
.nav__cta:focus-visible,
.footer__link:focus-visible,
.footer__legal a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 50%;
}

.lang-switch__toggle:focus-visible,
.lang-btn:focus-visible,
.nav__lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.news-filter__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.article-share__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

[data-theme="dark"] .cookie-btn--text:hover {
  color: #e0e0e0;
}

[data-theme="dark"] .cookie-map-placeholder,
[data-theme="dark"] .cookie-social-placeholder {
  background: #1d1d1d;
}

[data-theme="dark"] .cookie-modal__box {
  background: #1a1a1a;
}

[data-theme="dark"] .cookie-modal__header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cookie-modal__header h3,
[data-theme="dark"] .cookie-category__info strong {
  color: #e0e0e0;
}

[data-theme="dark"] .cookie-modal__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cookie-category {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cookie-category__info p,
[data-theme="dark"] .cookie-map-placeholder p,
[data-theme="dark"] .cookie-social-placeholder p {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .cookie-toggle__slider {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cookie-toggle__slider::before {
  background: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    border-radius: 14px;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-btn--text {
    order: -1;
    margin-right: auto;
  }
}

/* ============================================
   Article Share Buttons
   ============================================ */

.article-share {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
  margin-top: 2.5rem;
}

.article-share__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.article-share__buttons {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--black);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
  line-height: 1;
}

.article-share__btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.article-share__btn svg {
  flex-shrink: 0;
}

[data-theme="dark"] .article-share {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .article-share__btn {
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 998;
  box-shadow: 0 4px 16px rgba(169, 29, 29, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #8b1010;
  box-shadow: 0 6px 20px rgba(169, 29, 29, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

