/* ===== TCM FOR LIFE — Andrea Seiner ===== */
/* Design: Organic Warm, Font: Vollkorn + Lora */
/* Palette: #f8f9f5 (bg) + #76af31 (accent) + #7743b6 (secondary) */
/* Signature: Organische Wellen-Uebergaenge & Papier-Textur */

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

:root {
  /* Basis-Farben */
  --bg: #f8f9f5;
  --surface: #eef3e8;
  --text: #272e1f;
  --accent: #76af31;
  --accent-hover: color-mix(in srgb, #76af31, #272e1f 18%);
  --accent-subtle: color-mix(in srgb, #76af31, #f8f9f5 85%);

  /* Sekundaerfarbe */
  --secondary: #7743b6;
  --secondary-hover: color-mix(in srgb, #7743b6, #272e1f 18%);
  --secondary-subtle: color-mix(in srgb, #7743b6, #f8f9f5 85%);

  /* TCM-Element-Farben */
  --wood: #8b6b3d;
  --fire: #c45c3e;
  --earth: #c9a959;
  --metal: #9a9a8a;
  --water: #3d5a6b;

  /* UI-Farben */
  --border: #d4d9cf;
  --text-secondary: #5a6350;

  /* Design Tokens */
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1280px;
  --shadow-sm: 0 2px 8px rgba(39, 46, 31, 0.06);
  --shadow: 0 8px 32px rgba(39, 46, 31, 0.08);
  --shadow-warm: 0 8px 32px rgba(118, 175, 49, 0.12);

  /* Fluid Typography */
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.125rem + 1.5vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.25rem + 3vw, 3.25rem);
  --text-display: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

  /* Font Stacks */
  --font-heading: 'Vollkorn', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* --- Texture (disabled — feTurbulence kills iOS Safari GPU) --- */
.textured {
  position: relative;
}

/* Mobile: Function over design — kill EVERYTHING that costs GPU */
@media (max-width: 768px) {
  /* Nuclear option: no animations, no transitions, no filters anywhere */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Elements hidden by animation must be visible */
  .reveal, .stagger-item,
  [style*="--i"],
  .courses-hero-label, .courses-hero-title, .courses-hero-desc,
  .philosophy-hero-label, .philosophy-hero-title, .philosophy-hero-divider,
  .legal-icon-wrapper, .legal-title, .legal-updated {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Kill deco blur circles entirely — filter:blur() is GPU-killer on Mobile Safari */
  .deco-circle { display: none; }

  /* Header: solid background */
  .header.scrolled {
    background-color: rgba(248, 249, 245, 0.97);
  }

  .btn-secondary {
    background-color: rgba(255,255,255,0.25);
  }

  .highlight-panel {
    background: rgba(20, 25, 18, 0.8);
  }

  .service-card:hover,
  .feature-card:hover {
    transform: none;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-2xl); font-weight: 500; line-height: 1.3; }
h3 { font-size: var(--text-xl); font-weight: 500; }
h4 { font-size: var(--text-lg); }

p {
  margin-bottom: 1em;
  text-wrap: pretty;
}

.lead {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(248, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header.hero-transparent:not(.scrolled) .logo-main {
  color: #fff;
}

.header.hero-transparent:not(.scrolled) .logo-sub {
  color: rgba(255,255,255,0.7);
}

.header.hero-transparent:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.85);
}

.header.hero-transparent:not(.scrolled) .nav-link:hover {
  color: #fff;
}

.header.hero-transparent:not(.scrolled) .hamburger span {
  background-color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */
.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

/* --- Desktop Navigation --- */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}

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

.nav-link.active {
  color: var(--accent);
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

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

/* --- Mobile Navigation --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 2rem;
  z-index: 200;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.25rem;
}

.mobile-nav-links {
  margin-top: 3rem;
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  font-size: 1.125rem;
  color: var(--text);
  display: block;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}

.mobile-nav-links a:hover {
  color: var(--accent);
}

.mobile-nav-links a.active {
  color: var(--accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-bg img,
.hero-bg picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39, 46, 31, 0.75) 0%, rgba(39, 46, 31, 0.45) 50%, rgba(118, 175, 49, 0.35) 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: clamp(2rem, 5vw, 4rem);
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  font-style: italic;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(118, 175, 49, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(118, 175, 49, 0.4);
}

.btn-secondary {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-ghost:hover {
  background-color: var(--accent-subtle);
  transform: translateY(-2px);
}

.btn-accent-solid {
  background-color: var(--secondary);
  color: #fff;
}

.btn-accent-solid:hover {
  background-color: var(--secondary-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Wave Divider --- */
.wave-divider {
  position: relative;
  height: 80px;
  margin-top: -1px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave-divider path {
  fill: var(--bg);
}

.wave-divider.flip {
  transform: scaleY(-1);
  margin-top: 0;
  margin-bottom: -1px;
}

.wave-divider.flip path {
  fill: var(--surface);
}

/* --- Sections --- */
.section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.section-surface {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* --- Intro / Quote Section --- */
.intro-section {
  padding: clamp(2rem, 5vw, 5rem) 0;
  overflow: hidden;
}

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

.intro-grid .intro-quote-wrapper {
  order: 1;
}

.intro-grid .intro-image {
  order: 2;
}

.intro-grid .intro-content {
  order: 3;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto auto;
    gap: 0 3rem;
    align-items: center;
  }

  .intro-grid .intro-image {
    grid-column: 1;
    grid-row: 1 / -1;
    order: unset;
  }

  .intro-grid .intro-quote-wrapper {
    grid-column: 2;
    grid-row: 1;
    order: unset;
    padding-top: 1rem;
  }

  .intro-grid .intro-content {
    grid-column: 2;
    grid-row: 2;
    order: unset;
    padding-bottom: 1rem;
  }
}

.intro-image {
  position: relative;
}

.intro-image img,
.intro-image picture img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.intro-image::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent-subtle);
  border-radius: calc(var(--radius) + 12px);
  z-index: -1;
}

.intro-content {
  padding: 0;
}

.intro-quote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.intro-quote::before {
  content: '\201E';
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: 3em;
  color: var(--accent-subtle);
  font-style: normal;
  line-height: 1;
}

.intro-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.intro-signature {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signature-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

.signature-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-image {
  position: relative;
  overflow: hidden;
}

.feature-image img,
.feature-image picture img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .feature-image img,
.feature-card:hover .feature-image picture img {
  transform: scale(1.03);
}

.feature-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}

.feature-content {
  padding: 1.75rem;
}

.feature-title {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: gap 0.3s ease, color 0.25s ease;
}

.feature-link:hover {
  gap: 0.75rem;
  color: var(--accent-hover);
}

.feature-link svg {
  width: 16px;
  height: 16px;
}

/* --- Split Content Section --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split-section {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }

  .split-section.reverse {
    grid-template-columns: 1fr 1.2fr;
  }

  .split-section.reverse .split-image {
    order: 2;
  }
}

.split-image img,
.split-image picture img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-content h3 {
  margin-bottom: 1.5rem;
}

.split-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.split-list {
  list-style: none;
  margin: 1.5rem 0;
}

.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.split-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
}

/* --- Card (generic) --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-accent {
  background: var(--accent-subtle);
  color: var(--accent);
}

.badge-secondary {
  background: var(--secondary-subtle);
  color: var(--secondary);
}

/* --- Footer --- */
.footer {
  background-color: var(--text);
  color: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 1rem;
}

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

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo-main {
  color: var(--bg);
}

.footer-brand .logo-sub {
  color: rgba(248, 249, 245, 0.6);
  margin-bottom: 1.5rem;
}

.footer-address {
  font-style: normal;
  line-height: 1.8;
  color: rgba(248, 249, 245, 0.7);
}

.footer-address a {
  color: rgba(248, 249, 245, 0.7);
  transition: color 0.25s ease;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(248, 249, 245, 0.7);
}

.footer-contact-item svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(248, 249, 245, 0.7);
  transition: color 0.25s ease;
}

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

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--bg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(248, 249, 245, 0.7);
  transition: color 0.25s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(248, 249, 245, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(248, 249, 245, 0.5);
}

.footer-made-with {
  font-size: var(--text-sm);
  color: rgba(248, 249, 245, 0.4);
  font-style: italic;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(248, 249, 245, 0.1);
  color: var(--bg);
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  --i: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 80ms);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance choreography */
.hero-content .hero-badge {
  animation: fadeInUp 0.6s 0.15s ease-out both;
}

.hero-content h1 {
  animation: fadeInUp 0.7s 0.3s ease-out both;
}

.hero-content .hero-subtitle {
  animation: fadeInUp 0.7s 0.45s ease-out both;
}

.hero-content .hero-cta {
  animation: fadeInUp 0.6s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* --- Content Body (Article pages) --- */
.content-body {
  max-width: 780px;
  margin: 0 auto;
}

.content-body h2 {
  margin: 2.5rem 0 1rem;
}

.content-body h3 {
  margin: 2rem 0 0.75rem;
}

.content-body p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-body ul, .content-body ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.35rem;
}

.content-body strong {
  color: var(--text);
}

.content-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content-body blockquote p {
  color: var(--text);
  margin-bottom: 0;
}

.content-body img,
.content-body picture img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* --- TCM Element Colors (for themed sections) --- */
.element-wood { color: var(--wood); }
.element-fire { color: var(--fire); }
.element-earth { color: var(--earth); }
.element-metal { color: var(--metal); }
.element-water { color: var(--water); }

.bg-wood { background-color: var(--wood); }
.bg-fire { background-color: var(--fire); }
.bg-earth { background-color: var(--earth); }
.bg-metal { background-color: var(--metal); }
.bg-water { background-color: var(--water); }

/* --- 404 Page --- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(6rem, 15vw, 12rem);
  color: var(--accent-subtle);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.error-page h2 {
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* --- Decorative Background Elements --- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.deco-circle-accent {
  background: var(--accent);
  opacity: 0.08;
}

.deco-circle-secondary {
  background: var(--secondary);
  opacity: 0.06;
}

/* --- Dot Grid Background --- */
.dot-grid {
  background-image: radial-gradient(circle, rgba(39, 46, 31, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .section { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== HOME PAGE ===== */

/* --- Hero Placeholder (when no image uploaded) --- */
.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a4a2e 0%, #272e1f 40%, #1a2015 100%);
}

/* --- Home Feature Icon --- */
.home-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .home-feature-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

/* --- Intro Image Placeholder --- */
.intro-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface) 0%, var(--accent-subtle) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.placeholder-icon {
  color: var(--accent);
  opacity: 0.4;
}

/* --- Home CTA Section --- */
.home-cta-section {
  position: relative;
  overflow: hidden;
}

.home-cta-wrapper {
  position: relative;
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent-subtle), var(--bg) 50%) 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-cta-inner {
  position: relative;
  z-index: 1;
}

.home-cta-inner h2 {
  margin-bottom: 1rem;
}

.home-cta-inner .section-desc {
  max-width: 540px;
  margin: 0 auto 2rem;
}

.home-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Five Element Floating Icons --- */
.home-cta-elements {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
}

.home-cta-element {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  animation: elementFloat 3s ease-in-out infinite alternate;
}

@keyframes elementFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --- Features Section relative positioning for deco --- */
#features {
  position: relative;
  overflow: hidden;
}

/* --- Home Responsive --- */
@media (max-width: 480px) {
  .home-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .home-cta-element {
    width: 40px;
    height: 40px;
  }

  .home-cta-element svg {
    width: 18px;
    height: 18px;
  }
}

/* ===================================================================
   ABOUT PAGE — Über mich
   =================================================================== */

/* --- About Hero: Split Layout --- */
.about-hero {
  position: relative;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.about-deco-1 {
  width: 35vw;
  height: 35vw;
  top: -10%;
  right: -5%;
}

.about-deco-2 {
  width: 25vw;
  height: 25vw;
  bottom: -5%;
  left: -8%;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 768px) {
  .about-hero-grid {
    grid-template-columns: 380px 1fr;
    gap: clamp(3rem, 5vw, 5rem);
  }
}

@media (min-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: 440px 1fr;
  }
}

/* --- Portrait --- */
.about-hero-portrait {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-hero-portrait {
    max-width: none;
  }
}

.about-portrait-img,
.about-hero-portrait picture img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.about-portrait-frame {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent-subtle);
  border-radius: calc(var(--radius) + 10px);
  z-index: 0;
}

.about-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface) 0%, var(--accent-subtle) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

/* --- Hero Content --- */
.about-hero-content {
  padding: 1rem 0;
}

.about-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.about-hero-label svg {
  color: var(--accent);
}

.about-hero-title {
  font-size: var(--text-display);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

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

/* Hero entrance choreography */
.about-hero-content .about-hero-label {
  animation: fadeInUp 0.6s 0.2s ease-out both;
}

.about-hero-content .about-hero-title {
  animation: fadeInUp 0.7s 0.35s ease-out both;
}

.about-hero-content .about-hero-subtitle {
  animation: fadeInUp 0.7s 0.5s ease-out both;
}

.about-hero-content .about-hero-cta {
  animation: fadeInUp 0.6s 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* --- Story Section --- */
.about-story {
  max-width: 800px;
  margin: 0 auto;
}

.about-story-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-story-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-story-header .section-label svg {
  color: var(--accent);
}

.about-story-body p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-story-body p:last-child {
  margin-bottom: 0;
}

/* --- Timeline Section --- */
.about-timeline-section {
  position: relative;
  overflow: hidden;
}

.about-timeline-section .section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-timeline-section .section-header .section-label svg {
  color: var(--accent);
}

.about-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-subtle) 10%, var(--accent-subtle) 90%, transparent);
  transform: translateX(-50%);
}

.about-timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.about-timeline-item:last-child {
  margin-bottom: 0;
}

/* --- Timeline Marker --- */
.about-timeline-marker {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.about-timeline-year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(118, 175, 49, 0.3);
}

/* --- Timeline Card --- */
.about-timeline-card {
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-timeline-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.about-timeline-left .about-timeline-card {
  grid-column: 1;
  text-align: right;
}

.about-timeline-right .about-timeline-card {
  grid-column: 3;
  text-align: left;
}

.about-timeline-left .about-timeline-marker {
  grid-row: 1;
}

.about-timeline-right .about-timeline-marker {
  grid-row: 1;
}

.about-timeline-title {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about-timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Timeline mobile: single column */
@media (max-width: 768px) {
  .about-timeline-line {
    left: 32px;
  }

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

  .about-timeline-marker {
    flex-shrink: 0;
  }

  .about-timeline-year {
    width: 52px;
    height: 52px;
    font-size: 0.85rem;
  }

  .about-timeline-left .about-timeline-card,
  .about-timeline-right .about-timeline-card {
    text-align: left;
  }
}

/* --- Values Section --- */
.about-values-section {
  position: relative;
}

.about-values-section .section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-values-section .section-header .section-label svg {
  color: var(--accent);
}

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

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

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

.about-value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.about-value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.about-value-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.about-value-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- CTA Section --- */
.about-cta-section {
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.about-cta-inner {
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.about-cta-inner h2 {
  color: var(--bg);
  font-size: var(--text-2xl);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-cta-inner p {
  color: rgba(248, 249, 245, 0.7);
  font-size: var(--text-base);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.about-cta-deco {
  width: 30vw;
  height: 30vw;
  top: -30%;
  right: -10%;
  opacity: 0.12;
}

.about-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.about-cta-buttons .btn-ghost {
  color: var(--bg);
  border-color: rgba(248, 249, 245, 0.3);
}

.about-cta-buttons .btn-ghost:hover {
  background-color: rgba(248, 249, 245, 0.1);
  border-color: rgba(248, 249, 245, 0.5);
}

/* --- About Page Responsive --- */
@media (max-width: 480px) {
  .about-hero-cta {
    flex-direction: column;
  }

  .about-hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .about-cta-buttons {
    flex-direction: column;
  }

  .about-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================================
   PHILOSOPHY PAGE — Philosophie der TCM
   =================================================================== */

/* --- Philosophy Hero --- */
.philosophy-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--text) 0%, color-mix(in srgb, var(--text), var(--accent) 20%) 50%, color-mix(in srgb, var(--text), var(--secondary) 15%) 100%);
}

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

.philosophy-hero-bg img,
.philosophy-hero-bg picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1) saturate(0.9);
}

.philosophy-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(39, 46, 31, 0.82) 0%, rgba(39, 46, 31, 0.55) 50%, rgba(119, 67, 182, 0.25) 100%);
}

.philosophy-deco-1 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  top: -10%;
  right: -10%;
  opacity: 0.1;
}

.philosophy-deco-2 {
  width: 30vw;
  height: 30vw;
  max-width: 380px;
  max-height: 380px;
  bottom: -5%;
  left: -8%;
  opacity: 0.08;
}

.philosophy-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: clamp(6rem, 10vw, 10rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}

.philosophy-hero-label {
  color: var(--accent);
  opacity: 0;
  animation: fadeInUp 0.6s 0.2s ease-out both;
}

.philosophy-hero-title {
  color: #fff;
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 0;
  opacity: 0;
  animation: fadeInUp 0.7s 0.4s ease-out both;
}

.philosophy-hero-title em {
  font-style: italic;
  color: var(--accent-subtle);
}

.philosophy-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.6s ease-out both;
}

.philosophy-hero-divider::before,
.philosophy-hero-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35));
}

.philosophy-hero-divider::after {
  background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.35));
}

.philosophy-hero-leaf {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin: 0 1rem;
  opacity: 0.7;
}

/* --- Concept Cards --- */
.philosophy-concepts {
  position: relative;
  overflow: hidden;
}

.philosophy-concepts-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.philosophy-concepts > .container {
  position: relative;
  z-index: 1;
}

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

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

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }
}

.philosophy-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 2.25rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.35s ease;
  box-shadow: var(--shadow-sm);
}

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

.philosophy-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.philosophy-card:hover .philosophy-card-accent {
  opacity: 1;
}

.philosophy-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.philosophy-card:hover .philosophy-card-icon {
  transform: scale(1.1);
}

.philosophy-icon-svg {
  width: 28px;
  height: 28px;
}

.philosophy-card-title {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
}

.philosophy-card-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.philosophy-card-desc p {
  margin-bottom: 0;
}

/* --- Five Elements Band --- */
.philosophy-elements-band {
  padding: clamp(1rem, 2vw, 1.75rem) 0;
  background: var(--surface);
}

.philosophy-elements-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.philosophy-element-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--el-color, var(--text));
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.philosophy-element-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--el-color, var(--border));
}

.philosophy-el-icon {
  width: 18px;
  height: 18px;
}

/* --- Quote Section --- */
.philosophy-quote-section {
  position: relative;
}

.philosophy-quote-wrapper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.philosophy-quote-mark {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.philosophy-quote-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  position: relative;
  z-index: 1;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
}

.philosophy-quote-author {
  display: block;
  margin-top: 1.5rem;
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.philosophy-quote-leaf {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.philosophy-quote-leaf-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  opacity: 0.4;
}

/* --- CTA Section --- */
.philosophy-cta {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.philosophy-cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.philosophy-cta-inner h2 {
  margin-bottom: 1rem;
}

.philosophy-cta-inner p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.philosophy-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Philosophy Responsive --- */
@media (max-width: 768px) {
  .philosophy-hero {
    min-height: 55vh;
    min-height: 55dvh;
  }

  .philosophy-hero-title {
    font-size: var(--text-xl);
  }

  .philosophy-quote-wrapper {
    padding: 2rem 1rem;
  }

  .philosophy-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .philosophy-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .philosophy-element-chip {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* ===================================================================
   PRICING PAGE — Preisliste
   =================================================================== */

/* --- Pricing Hero (no background image) --- */
.pricing-hero {
  position: relative;
  padding-top: calc(clamp(4rem, 8vw, 8rem) + 80px);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, var(--bg) 0%, var(--surface) 60%, color-mix(in srgb, var(--accent-subtle), var(--surface) 50%) 100%);
  overflow: hidden;
  text-align: center;
}

.pricing-hero__inner {
  position: relative;
  z-index: 1;
}

.pricing-hero__icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 0.25rem;
}

.pricing-hero__title {
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pricing-hero__subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Pricing Decorative Elements --- */
.pricing-deco-1 {
  width: 35vw;
  height: 35vw;
  max-width: 500px;
  max-height: 500px;
  top: -10%;
  right: -8%;
}

.pricing-deco-2 {
  width: 25vw;
  height: 25vw;
  max-width: 350px;
  max-height: 350px;
  bottom: -5%;
  left: -5%;
}

.pricing-deco-3 {
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  bottom: -10%;
  right: -8%;
}

/* --- Individual Pricing Grid --- */
.individual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

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

.individual-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.individual-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.individual-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.individual-card:hover .individual-card__icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.individual-icon {
  width: 24px;
  height: 24px;
}

.individual-card__content {
  margin-bottom: 1rem;
}

.individual-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.individual-card__unit {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.individual-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* --- Packages Section --- */
.pricing-packages {
  position: relative;
  overflow: hidden;
}

/* --- Pricing Card Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
  padding-top: 1.25rem;
}

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

/* --- Pricing Card --- */
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

/* --- Highlighted Card --- */
.pricing-card--highlight {
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-warm);
  z-index: 1;
}

@media (min-width: 768px) {
  .pricing-card--highlight {
    transform: scale(1.04);
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pricing-card--highlight:hover {
    transform: scale(1.04) translateY(-8px);
  }
}

.pricing-card--highlight .pricing-card__name {
  color: var(--accent);
}

/* --- Glow Pulse Animation --- */
.pricing-card--highlight.glow-pulse {
  box-shadow: 0 8px 32px rgba(118, 175, 49, 0.2), 0 0 0 3px rgba(118, 175, 49, 0.08);
}

/* --- Card Badge --- */
.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(118, 175, 49, 0.3);
}

.pricing-badge-icon {
  width: 14px;
  height: 14px;
}

/* --- Card Header --- */
.pricing-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pricing-card__price-wrap {
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pricing-card--highlight .pricing-card__price {
  color: var(--accent);
}

.pricing-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-duration-icon {
  width: 14px;
  height: 14px;
}

/* --- Card Divider --- */
.pricing-card__divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin-bottom: 1.5rem;
}

.pricing-card--highlight .pricing-card__divider {
  background: linear-gradient(to right, transparent, var(--accent-subtle), transparent);
}

/* --- Feature List --- */
.pricing-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-check-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Card Footer --- */
.pricing-card__footer {
  margin-top: auto;
  text-align: center;
}

.pricing-card__footer .btn {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* --- CTA Section --- */
.pricing-cta {
  position: relative;
}

.pricing-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent-subtle), var(--bg) 50%) 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .pricing-cta__inner {
    grid-template-columns: 1.3fr 1fr;
    text-align: left;
  }
}

.pricing-cta__content h2 {
  margin-bottom: 0.75rem;
}

.pricing-cta__content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.pricing-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-cta__actions .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .pricing-cta__actions {
    justify-content: flex-end;
  }
}

/* --- Pricing Responsive --- */
@media (max-width: 768px) {
  .pricing-card--highlight {
    border-width: 2px;
  }

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

  .pricing-cta__actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pricing-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .pricing-cta__actions .btn {
    width: 100%;
  }
}

/* ===================================================================
   CONTACT PAGE — Kontakt
   =================================================================== */

/* --- Contact Hero --- */
.contact-hero {
  position: relative;
  padding: clamp(8rem, 15vw, 12rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 50%, color-mix(in srgb, var(--accent-subtle), var(--bg) 60%) 100%);
  overflow: hidden;
  text-align: center;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.contact-hero-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 0.25rem;
}

.contact-hero h1 {
  font-size: var(--text-display);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.contact-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* --- Contact Section (Split Layout) --- */
.contact-section {
  position: relative;
}

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2.5rem, 4vw, 4rem);
  }
}

/* --- Contact Form Card --- */
.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  position: relative;
}

.contact-form-card h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.contact-form-intro {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: var(--text-sm);
}

/* --- Form Styling --- */
.contact-form .form-field {
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.contact-form label .required {
  color: var(--fire);
  font-weight: 400;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form textarea::placeholder {
  color: var(--metal);
  font-style: italic;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 85%);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.contact-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

/* Form field focus animation state */
.form-field--focused label {
  color: var(--accent);
}

.form-field--filled label {
  color: var(--text);
}

/* --- Submit Button --- */
.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1.125rem 2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(118, 175, 49, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.5rem;
}

.contact-form button[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(118, 175, 49, 0.4);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

/* --- Privacy Note --- */
.contact-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-privacy-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-privacy-note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}

.contact-privacy-note a:hover {
  color: var(--accent-hover);
}

/* --- Contact Info Cards --- */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-info-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
}

.contact-info-item + .contact-info-item {
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 50%);
}

.contact-info-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon {
  width: 20px;
  height: 20px;
}

.contact-info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.contact-info-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
}

.contact-info-link {
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-info-link:hover {
  color: var(--accent);
}

/* --- Availability Card --- */
.contact-availability-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-availability-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-availability-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-availability-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-availability-header h3 {
  font-size: var(--text-lg);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-availability-time {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-availability-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

/* --- CTA Card --- */
.contact-cta-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-subtle), var(--bg) 30%) 0%, var(--bg) 100%);
  border: 1px solid var(--accent-subtle);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  text-align: center;
  box-shadow: var(--shadow-warm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-cta-card:hover {
  box-shadow: 0 12px 40px rgba(118, 175, 49, 0.18);
  transform: translateY(-3px);
}

.contact-cta-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin-bottom: 1rem;
}

.contact-cta-icon {
  width: 28px;
  height: 28px;
}

.contact-cta-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.75rem;
}

.contact-cta-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-cta-card .btn {
  padding: 0.875rem 2rem;
}

/* --- Form Success/Error Message Styling --- */
.contact-form .form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-top: 1rem;
  line-height: 1.6;
}

/* --- Contact Page Reveal Animations --- */
.contact-hero .reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.contact-hero .reveal:nth-child(1) { transition-delay: 0.15s; }
.contact-hero .reveal:nth-child(2) { transition-delay: 0.3s; }
.contact-hero .reveal:nth-child(3) { transition-delay: 0.45s; }
.contact-hero .reveal:nth-child(4) { transition-delay: 0.6s; }

.contact-hero .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-section .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-section .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info-card.reveal { transition-delay: 0.15s; }
.contact-availability-card.reveal { transition-delay: 0.3s; }
.contact-cta-card.reveal { transition-delay: 0.45s; }

/* --- Contact Responsive --- */
@media (max-width: 768px) {
  .contact-hero {
    padding: clamp(7rem, 12vw, 9rem) 0 clamp(1.5rem, 3vw, 2rem);
  }

  .contact-grid {
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-info-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-info-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .contact-info-icon {
    width: 18px;
    height: 18px;
  }
}

/* ===================================================================
   LEGAL PAGE — Impressum, Datenschutz
   =================================================================== */

/* --- Legal Header --- */
.legal-header {
  position: relative;
  padding-top: clamp(8rem, 12vw, 12rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  background: linear-gradient(160deg, var(--surface) 0%, color-mix(in srgb, var(--accent-subtle), var(--bg) 60%) 100%);
  overflow: hidden;
}

.legal-header-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.legal-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.15s ease-out both;
}

.legal-title {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  opacity: 0;
  animation: fadeInUp 0.7s 0.3s ease-out both;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeInUp 0.6s 0.45s ease-out both;
}

.legal-updated svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Legal Content Section --- */
.legal-content {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Table of Contents (Sidebar on desktop) --- */
.legal-toc {
  order: -1;
}

.legal-toc-inner {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.legal-toc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.legal-toc-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.legal-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-toc-nav a {
  display: block;
  padding: 0.4rem 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  line-height: 1.4;
}

.legal-toc-nav a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.legal-toc-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* Desktop: Side-by-side layout when TOC is present */
@media (min-width: 1024px) {
  .legal-layout:has(.legal-toc) {
    max-width: var(--max-width);
    grid-template-columns: 260px 1fr;
    gap: 3rem;
  }

  .legal-toc {
    order: 0;
  }

  .legal-body {
    max-width: 780px;
  }
}

/* --- Legal Cards (Impressum structured data) --- */
.legal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.legal-card:hover {
  box-shadow: var(--shadow);
}

.legal-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.legal-card-header svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.legal-card-header h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}

.legal-card-body {
  padding: 1.5rem 1.75rem;
}

/* --- Definition List (inside legal cards) --- */
.legal-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-dl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 50%);
  align-items: baseline;
}

.legal-dl-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-dl-row:first-child {
  padding-top: 0;
}

.legal-dl dt {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.legal-dl dd {
  font-size: var(--text-base);
  color: var(--text);
  margin: 0;
}

/* --- Legal Links (inside cards) --- */
.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.25s ease;
}

.legal-link:hover {
  color: var(--accent-hover);
}

.legal-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Legal Prose (Markdown body content) --- */
.legal-prose {
  max-width: 780px;
}

.legal-prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 40%);
  font-size: var(--text-xl);
  font-weight: 600;
  scroll-margin-top: 6rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: var(--text-lg);
  font-weight: 600;
  scroll-margin-top: 6rem;
}

.legal-prose p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 60%);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.legal-prose a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.legal-prose ul, .legal-prose ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

/* --- Back Navigation --- */
.legal-back-section {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.legal-back {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.25s ease, gap 0.25s ease;
}

.legal-back-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.legal-back-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Legal Page Responsive --- */
@media (max-width: 768px) {
  .legal-dl-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.625rem 0;
  }

  .legal-dl dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .legal-card-header {
    padding: 1rem 1.25rem;
  }

  .legal-card-body {
    padding: 1.25rem;
  }

  .legal-header-inner {
    text-align: left;
  }

  .legal-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .legal-toc-inner {
    position: static;
  }
}

@media (max-width: 480px) {
  .legal-card-header h2 {
    font-size: 1.1rem;
  }
}

/* ===================================================================
   COURSES PAGE — Beratungsgebiete & Kurse
   =================================================================== */

/* --- Courses Hero --- */
/* --- Courses Hero (100vh desktop, 50vh mobile) --- */
.courses-hero {
  position: relative;
  min-height: 50vh;
  min-height: 50dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, var(--text) 0%, color-mix(in srgb, var(--text), var(--accent) 15%) 50%, color-mix(in srgb, var(--text), var(--secondary) 10%) 100%);
}

@media (min-width: 1024px) {
  .courses-hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
  }
}

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

.courses-hero-bg img,
.courses-hero-bg picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1) saturate(0.9);
}

.courses-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(39, 46, 31, 0.7) 0%, rgba(39, 46, 31, 0.4) 50%, color-mix(in srgb, var(--accent), transparent 75%) 100%);
}

.courses-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(6rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  .courses-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: clamp(8rem, 12vw, 12rem) 0 clamp(3rem, 5vw, 5rem);
  }
}

.courses-hero-text {
  padding: 0;
}

.courses-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.1s ease-out both;
}

.courses-hero-label svg {
  width: 16px;
  height: 16px;
}

.courses-hero-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInUp 0.7s 0.2s ease-out both;
}

.courses-hero-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  line-height: 1.6;
  max-width: 480px;
  opacity: 0;
  animation: fadeInUp 0.7s 0.35s ease-out both;
}

/* --- Desktop Highlight Panel (glass panel in hero) --- */
.courses-highlight-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .courses-highlight-desktop {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s 0.45s ease-out both;
  }
}

.highlight-panel {
  position: relative;
  background: rgba(20, 25, 18, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
}

.highlight-panel-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--accent), var(--secondary), var(--accent));
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s ease;
}

.highlight-panel-glow.pulsing {
  opacity: 0.4;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.5;
    background-position: 100% 50%;
  }
}

.highlight-panel .highlight-badge {
  background: var(--accent);
  color: #fff;
}

.highlight-panel .highlight-title {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.highlight-panel .highlight-desc {
  color: rgba(255, 255, 255, 0.85);
}

.highlight-panel .highlight-meta-item {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.highlight-panel .highlight-meta-icon {
  color: var(--accent);
}

/* --- Mobile Highlight Card (below hero, no image) --- */
.courses-highlight-mobile {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: var(--bg);
}

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

/* --- Shared Highlight Styles --- */
.highlight-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: visible;
}

.highlight-card-glow {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 7px);
  background: linear-gradient(135deg, var(--accent), var(--secondary), var(--accent));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.highlight-card-glow.pulsing {
  opacity: 1;
  animation: glowPulse 3s ease-in-out infinite;
}

.highlight-card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.highlight-card-content {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.highlight-badge-icon {
  width: 14px;
  height: 14px;
}

.highlight-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.highlight-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: var(--text-base);
}

.highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: var(--surface);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.highlight-meta-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.highlight-cta {
  margin-top: 0.5rem;
}

/* --- Section Label with Icon --- */
.section-label-icon {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
  margin-right: 0.2rem;
}

/* --- Areas Grid (Beratungsgebiete) --- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

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

.area-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  cursor: default;
}

.area-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-subtle);
}

.area-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.area-card:hover .area-card-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.area-icon {
  width: 22px;
  height: 22px;
}

.area-card-content {
  flex: 1;
  min-width: 0;
}

.area-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.area-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.area-card-arrow {
  color: var(--border);
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.area-card:hover .area-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.area-arrow-icon {
  width: 18px;
  height: 18px;
}

/* --- Areas CTA --- */
.areas-cta {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.areas-cta-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* --- Courses Grid --- */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.course-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-subtle);
}

.course-card-number {
  position: absolute;
  top: -0.25rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--surface);
  transition: color 0.4s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.course-card-number.revealed {
  opacity: 1;
}

.course-card:hover .course-card-number {
  color: var(--accent-subtle);
}

.course-card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.course-card:hover .course-card-icon-wrap {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
}

.course-card-icon {
  width: 26px;
  height: 26px;
}

.course-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.course-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.course-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: gap 0.3s ease, color 0.25s ease;
}

.course-card-link:hover {
  gap: 0.75rem;
  color: var(--accent-hover);
}

.course-link-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.course-card-link:hover .course-link-arrow {
  transform: translateX(2px);
}

/* --- Courses CTA Banner --- */
.courses-cta-banner {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.courses-cta-banner-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--text), var(--accent) 15%) 100%);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.courses-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: rgba(248, 249, 245, 0.12);
  flex-shrink: 0;
}

.cta-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.courses-cta-content {
  flex: 1;
}

.courses-cta-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .courses-cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .courses-cta-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .cta-icon {
    width: 24px;
    height: 24px;
  }
}

/* --- Courses Responsive --- */
@media (max-width: 768px) {
  .highlight-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .area-card-arrow {
    display: none;
  }
}

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

  .course-card-number {
    font-size: 3.5rem;
  }

  .highlight-card-content {
    padding: 1.25rem;
  }
}
