/* ==========================================================================
   PRAXIS FÜR ERGOTHERAPIE WEPNER – CSS DESIGN SYSTEM
   ========================================================================== */

/* ── Fonts Import ── */
@import url('fonts.css');

/* ── Custom Properties / Design Tokens ── */
:root {
  /* Color Palette */
  --color-bg: #FBF5F2;
  --color-bg-soft: #F4ECE7;
  --color-primary: #4E6E6D;
  --color-primary-dark: #2C5C5A;
  --color-primary-light: #7F9592;
  --color-secondary: #BCA48C;
  --color-secondary-light: #C8BAAA;
  --color-border: #E4DCD4;
  --color-text: #2F3F3E;
  --color-white: #FFFFFF;

  /* Backward compatibility mappings */
  --clr-bg: var(--color-bg);
  --clr-bg-alt: var(--color-bg-soft);
  --clr-brand: var(--color-primary);
  --clr-brand-dark: var(--color-primary-dark);
  --clr-brand-light: var(--color-primary-light);
  --clr-accent: var(--color-secondary);
  --clr-accent-dark: var(--color-secondary-light);
  --clr-text: var(--color-text);
  --clr-text-muted: rgba(47, 63, 62, 0.8);
  --clr-text-light: rgba(47, 63, 62, 0.75);
  --clr-terracotta: #C57B64;
  --clr-copper: #A67C52;
  --clr-white: var(--color-white);
  --clr-border: var(--color-border);
  --clr-error: #B04A33;
  --clr-success: #3E604F;

  /* Typography */
  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'La Belle Aurore', 'Sacramento', 'Dawning of a New Day', cursive;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Shadows (Depth system) */
  --shadow-sm: 0 2px 10px rgba(45, 74, 62, 0.04);
  --shadow-md: 0 10px 30px rgba(45, 74, 62, 0.06);
  --shadow-lg: 0 20px 50px rgba(45, 74, 62, 0.09);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.03);

  /* Transitions */
  --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s ease;
  
  /* Layout Constraints */
  --max-width: 1200px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Skip Navigation for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--clr-brand);
  color: var(--clr-white);
  padding: var(--space-md) var(--space-lg);
  z-index: 9999;
  transition: top 0.2s ease;
  font-weight: 600;
  border-bottom-right-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography & Headings ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--clr-brand);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
  position: relative;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-brand);
}

p {
  margin-bottom: var(--space-md);
  color: var(--clr-text-muted);
}
p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
  color: var(--clr-text);
}

em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 400;
  font-size: 1.25em;
  color: var(--clr-terracotta);
  letter-spacing: 0.02em;
}

/* Utility class for using the signature accent font */
.font-accent {
  font-family: var(--font-accent) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

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

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

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

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  margin-bottom: var(--space-md);
}

.section-intro {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
  font-size: 1.125rem;
  color: var(--clr-text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Interactive Elements & Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--clr-brand);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(45, 74, 62, 0.12);
}
.btn-primary:hover {
  background-color: var(--clr-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 74, 62, 0.2);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-brand);
  border-color: var(--clr-brand);
}
.btn-outline:hover {
  background-color: var(--clr-brand);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 74, 62, 0.15);
}
.btn-outline:active {
  transform: translateY(0);
}

.btn-accent {
  background-color: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(143, 158, 139, 0.12);
}
.btn-accent:hover {
  background-color: var(--clr-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(143, 158, 139, 0.2);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* ── Header & Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(249, 248, 246, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(216, 212, 205, 0.5);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header .container {
  max-width: var(--max-width);
}

.site-header.scrolled {
  background-color: rgba(249, 248, 246, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  transition: transform var(--transition);
}
.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo .nav-logo-img-horizontal {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img-horizontal {
  transform: scale(1.03);
}

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

.nav-logo-text .name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-brand);
}

.nav-logo-text .sub {
  font-size: 0.72rem;
  color: var(--clr-terracotta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-brand);
  background-color: rgba(143, 158, 139, 0.1);
}

.nav-cta {
  margin-left: var(--space-sm);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--clr-brand);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Hero Section ── */
.hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  background: linear-gradient(180deg, rgba(249, 248, 246, 1) 0%, rgba(234, 230, 223, 0.7) 100%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #ffffff 0%, #fbf8f6 100%);
  border: 1px solid rgba(197, 123, 100, 0.4);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-brand);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 15px rgba(197, 123, 100, 0.1);
  position: relative;
  overflow: hidden;
  
  /* Entrance animation */
  opacity: 0;
  transform: translateY(-20px);
  animation: badge-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.4s;
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shimmer-swipe 6s infinite;
  animation-delay: 1.5s;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--clr-terracotta);
  animation: badge-pulse-ring 1.8s infinite;
}

.hero-badge .badge-highlight {
  color: var(--clr-terracotta);
  font-weight: 800;
  margin-left: 0.2rem;
}

@keyframes badge-entrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer-swipe {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

@keyframes badge-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 123, 100, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(197, 123, 100, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 123, 100, 0);
  }
}

.hero-title {
  margin-bottom: var(--space-md);
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.15;
}

.hero-title em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.8vw, 3.8rem);
  color: var(--clr-terracotta);
}

.hero-claim {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-family: var(--font-sans);
  font-style: normal;
  line-height: 1.6;
  color: var(--clr-brand);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 380px;
  z-index: 2;
}

/* Layered depth effects and mountain contours in background */
.topo-lines-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  color: var(--clr-brand);
  pointer-events: none;
  z-index: 1;
}

.organic-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(60px);
  opacity: 0.35;
  transition: all 5s ease;
  pointer-events: none;
}

.blob-1 {
  width: 320px;
  height: 320px;
  background-color: var(--clr-accent);
  top: -10%;
  right: -10%;
  animation: blob-float-1 25s infinite alternate;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background-color: var(--clr-bg-alt);
  bottom: -10%;
  left: -5%;
  animation: blob-float-2 20s infinite alternate;
}

.logo-showcase {
  position: relative;
  background-color: var(--clr-white);
  padding: 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(216, 212, 205, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 80vw);
  height: min(340px, 80vw);
  z-index: 3;
  animation: logo-morph-float 12s ease-in-out infinite;
  overflow: hidden;
}

.logo-ring {
  position: absolute;
  inset: -12px;
  border: 1.5px dashed var(--clr-border);
  animation: ring-morph-clockwise 15s ease-in-out infinite;
}

.logo-ring-2 {
  position: absolute;
  inset: -24px;
  border: 1px solid rgba(143, 158, 139, 0.2);
  animation: ring-morph-counter 20s ease-in-out infinite;
}

.hero-logo-img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  animation: logo-reverse-rotate 12s ease-in-out infinite;
}

@keyframes logo-morph-float {
  0% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    transform: translateY(0) rotate(0deg);
  }
  25% {
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    transform: translateY(-6px) rotate(1.5deg);
  }
  50% {
    border-radius: 50% 50% 40% 60% / 45% 55% 45% 55%;
    transform: translateY(-12px) rotate(3deg);
  }
  75% {
    border-radius: 55% 45% 55% 45% / 50% 50% 50% 50%;
    transform: translateY(-6px) rotate(1.5deg);
  }
  100% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes logo-reverse-rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(-1.5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes ring-morph-clockwise {
  0% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    transform: rotate(180deg);
  }
  100% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    transform: rotate(360deg);
  }
}

@keyframes ring-morph-counter {
  0% {
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    transform: rotate(360deg);
  }
  50% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    transform: rotate(180deg);
  }
  100% {
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    transform: rotate(0deg);
  }
}

/* ── Trust Anchor / Brief Positioning ── */
.trust-anchor {
  padding-block: var(--space-3xl);
  text-align: center;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(216, 212, 205, 0.5);
  border-bottom: 1px solid rgba(216, 212, 205, 0.5);
}

.trust-anchor-content {
  max-width: 860px;
  margin-inline: auto;
}

.trust-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.55;
  color: var(--clr-brand);
  margin-bottom: var(--space-xl);
  font-weight: 500;
}

.trust-quote em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 400;
  font-size: 1.25em;
  color: var(--clr-terracotta);
}

.trust-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.trust-meta::before,
.trust-meta::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--clr-border);
}

/* ── Services (Leistungen) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-xl);
}

.card {
  background-color: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 212, 205, 0.4);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--clr-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
  z-index: 5;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(216, 212, 205, 0.8);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img-wrapper {
  height: 180px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--clr-bg-alt);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--clr-brand);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.card-body p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

/* Future expansion badge for card 6 */
.card--future {
  background-color: rgba(234, 230, 223, 0.25);
  border-style: dashed;
  border-width: 1.5px;
}

.card--future::before {
  background-color: var(--clr-terracotta);
}

.card-future-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  background-color: rgba(197, 123, 100, 0.1);
  color: var(--clr-terracotta);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-md);
}

/* ── Specialization Section ── */
.special-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-inline: auto;
  gap: var(--space-4xl);
  align-items: center;
}

.special-content h2 {
  margin-bottom: var(--space-lg);
}

.special-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.special-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: transform 0.4s ease;
  cursor: default;
}

.special-item-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-terracotta);
  line-height: 1;
  background-color: rgba(197, 123, 100, 0.08);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background-color 0.4s ease,
              color 0.4s ease,
              box-shadow 0.4s ease;
}

.special-item-text {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.special-item:hover .special-item-num {
  transform: scale(1.15) rotate(-5deg);
  background-color: var(--clr-brand);
  color: var(--clr-white);
  box-shadow: 0 6px 15px rgba(78, 110, 109, 0.25);
}

.special-item:hover .special-item-text {
  transform: translateX(8px);
}

.special-item-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  transition: color 0.4s ease;
}

.special-item:hover .special-item-text h4 {
  color: var(--clr-brand);
}

.special-item-text p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.special-visual {
  background-color: var(--clr-brand);
  color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-visual::before {
  content: '';
  position: absolute;
  inset: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.special-visual-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.special-badge-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  margin-bottom: var(--space-lg);
}

.special-badge-quote {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--clr-white);
  font-style: normal;
  font-weight: 500;
}

/* ── Home Visits Section (Hausbesuche) ── */
.hausbesuche-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-3xl);
  align-items: center;
}

.region-map-placeholder {
  background-color: var(--clr-brand-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(188, 164, 140, 0.25);
  padding: var(--space-xl);
  box-shadow: 0 15px 35px rgba(47, 63, 62, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.region-map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(188, 164, 140, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.8;
  pointer-events: none;
}

.harz-contour {
  width: 100%;
  height: auto;
  max-width: 380px;
  overflow: visible;
}

/* Boundary contour line */
.harz-boundary {
  stroke: rgba(188, 164, 140, 0.35);
  stroke-width: 1.2px;
  stroke-dasharray: 6, 4;
  fill: rgba(78, 110, 109, 0.15);
}

/* Connections styling */
.conn-line {
  stroke: rgba(188, 164, 140, 0.2);
  stroke-width: 1.2px;
}

.pulse-line {
  stroke: var(--clr-accent);
  stroke-width: 1.8px;
  stroke-linecap: round;
  opacity: 0.75;
  stroke-dasharray: 6 18;
  animation: map-pulse-dash 4s infinite linear;
}

/* Different speeds/delays for natural organic flow */
.pulse-1 { animation-duration: 3.5s; animation-delay: 0.2s; }
.pulse-2 { animation-duration: 4.2s; animation-delay: 0.5s; }
.pulse-3 { animation-duration: 3.8s; animation-delay: 0.8s; }
.pulse-4 { animation-duration: 4.5s; animation-delay: 0.1s; }
.pulse-5 { animation-duration: 3.2s; animation-delay: 0.6s; }
.pulse-6 { animation-duration: 4s; animation-delay: 0.4s; }

@keyframes map-pulse-dash {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: -24;
  }
}

/* Nodes grouping & interactivity */
.map-node-group {
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}

/* Halo rings */
.node-halo {
  fill: rgba(197, 123, 100, 0.15);
  stroke: rgba(197, 123, 100, 0.25);
  stroke-width: 0.8px;
  transition: fill 0.3s ease, stroke 0.3s ease, r 0.3s ease;
}

.node-dot {
  fill: var(--clr-accent);
  transition: fill 0.3s ease, r 0.3s ease;
}

.node-label {
  font-family: var(--font-sans);
  font-size: 6.5px;
  font-weight: 700;
  fill: rgba(255, 255, 255, 0.9);
  paint-order: stroke fill;
  stroke: var(--clr-brand-dark);
  stroke-width: 2px;
  stroke-linejoin: round;
  transition: fill 0.3s ease, font-size 0.3s ease;
}

/* Main practice node (Ilsenburg) special styling */
.node-group--main .node-halo {
  fill: rgba(197, 123, 100, 0.25);
  stroke: rgba(197, 123, 100, 0.4);
  animation: main-halo-pulse 2.5s infinite ease-in-out;
}

.node-group--main .node-dot {
  fill: var(--clr-accent);
}

.node-group--main .node-label {
  fill: var(--clr-accent);
  font-weight: 800;
  font-size: 7.5px;
}

@keyframes main-halo-pulse {
  0%, 100% {
    r: 9px;
    fill: rgba(197, 123, 100, 0.2);
  }
  50% {
    r: 13px;
    fill: rgba(197, 123, 100, 0.05);
  }
}

/* Group interaction behavior: dim other nodes, highlight active */
.harz-contour:hover .map-node-group {
  opacity: 0.45;
}

.harz-contour .map-node-group:hover {
  opacity: 1;
  transform: scale(1.15);
}

.harz-contour .map-node-group:hover .node-halo {
  fill: rgba(197, 123, 100, 0.3);
  stroke: rgba(197, 123, 100, 0.6);
  r: 11px;
}

.harz-contour .map-node-group:hover .node-dot {
  fill: var(--clr-white);
}

.harz-contour .map-node-group:hover .node-label {
  fill: var(--clr-accent);
  font-size: 7px;
}

/* ── Service Area Card Layout ── */
.service-area-card {
  background-color: var(--clr-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(216, 212, 205, 0.6);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-area-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-area-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-brand);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.service-area-title .icon {
  font-size: 1.25rem;
  animation: slow-float 3s infinite ease-in-out;
}

.service-area-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  border-bottom: 1px dashed rgba(216, 212, 205, 0.8);
  padding-bottom: var(--space-lg);
}

.service-group h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.service-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.service-group li {
  font-size: 0.95rem;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.service-group li::before {
  content: '•';
  color: var(--clr-brand-light);
  font-size: 1.2rem;
  line-height: 1;
}

.service-area-note {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--clr-text-muted);
  margin: 0;
  font-style: normal;
}

@media (max-width: 576px) {
  .service-area-cols {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ── About Section (Über Lisa Wepner) ── */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-4xl);
  align-items: flex-start;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about-pulse-bg {
  position: absolute;
  width: 108%;
  height: 108%;
  top: -4%;
  left: -4%;
  z-index: 1;
  background: linear-gradient(135deg, rgba(197, 123, 100, 0.26) 0%, rgba(214, 184, 154, 0.2) 100%);
  filter: blur(2px);
  box-shadow: 0 8px 30px rgba(197, 123, 100, 0.08);
  animation: liquid-blob-morph-pulse 10s ease-in-out infinite;
  transform-origin: center;
  transition: background 0.6s var(--transition);
}

.about-img-frame {
  position: relative;
  z-index: 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(47, 63, 62, 0.15);
  background-color: var(--clr-brand);
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(216, 212, 205, 0.5);
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

@keyframes liquid-blob-morph-pulse {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: scale(0.98) translate(0, 0) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: scale(1.02) translate(4px, -4px) rotate(2deg);
  }
  66% {
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    transform: scale(0.99) translate(-4px, 4px) rotate(-2deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: scale(0.98) translate(0, 0) rotate(0deg);
  }
}

@keyframes liquid-blob-morph-pulse-hover {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: scale(1.03) translate(0, 0) rotate(0deg);
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: scale(1.07) translate(6px, -6px) rotate(4deg);
  }
  66% {
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    transform: scale(1.04) translate(-6px, 6px) rotate(-4deg);
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transform: scale(1.03) translate(0, 0) rotate(0deg);
  }
}

.about-qualifications {
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-xl);
}

.about-qualifications h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--clr-border);
}

.timeline-item {
  position: relative;
  padding-left: var(--space-xl);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--clr-terracotta);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background-color 0.4s ease,
              box-shadow 0.4s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
}

.timeline-item:hover::before {
  transform: scale(1.5);
  background-color: var(--clr-brand);
  box-shadow: 0 0 0 6px rgba(78, 110, 109, 0.25);
}

.timeline-year {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--clr-terracotta);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
  line-height: 1;
  transition: color 0.4s ease;
}

.timeline-item:hover .timeline-year {
  color: var(--clr-brand);
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-brand);
  margin-bottom: 0.15rem;
  transition: color 0.4s ease;
}

.timeline-item:hover .timeline-title {
  color: var(--clr-accent);
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
  transition: color 0.4s ease;
}

.timeline-item:hover .timeline-desc {
  color: var(--clr-text);
}

/* ── Therapeutic Philosophy (Therapieverständnis) ── */
.principles-grid {
  /* Set to 0 to restore the plain white card backs. */
  --principle-watermark-opacity: 0.09;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  perspective: 1000px;
}

.principles-hint {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--clr-terracotta);
  font-weight: 600;
  margin-top: var(--space-sm);
  display: inline-block;
  opacity: 0.95;
  animation: pulse-hint 2.5s infinite ease-in-out;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.75; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.principle-card-wrapper {
  background-color: transparent;
  width: 100%;
  height: 220px;
  perspective: 1000px;
}

.principle-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Rotate each complete face independently so clipped image layers remain
   visible when returning to the front, including in Safari. */
.principle-card-wrapper.flipped .principle-card-front {
  transform: rotateY(-180deg);
}

.principle-card-wrapper.flipped .principle-card-back {
  transform: rotateY(0deg);
}

@media (hover: hover) and (pointer: fine) {
  .principle-card-wrapper:hover .principle-card-front {
    transform: rotateY(-180deg);
  }

  .principle-card-wrapper:hover .principle-card-back {
    transform: rotateY(0deg);
  }
}

.principle-card-front,
.principle-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
  border-radius: var(--radius-md);
  border: 1px solid rgba(216, 212, 205, 0.5);
  overflow: hidden;
}

/* Front styling: image with dark text-protection overlay */
.principle-card-front {
  background-color: var(--clr-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
}

.principle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.principle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47, 63, 62, 0.8) 0%, rgba(47, 63, 62, 0.35) 60%, rgba(47, 63, 62, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: var(--space-xl);
}

.principle-overlay h3 {
  color: var(--clr-white) !important;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.principle-overlay h3::before {
  content: '✦';
  color: var(--clr-accent);
  display: inline-block;
  animation: spin-slow 12s infinite linear;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Back styling: same layout as old card */
.principle-card-back {
  background-color: var(--clr-white);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
  box-shadow: inset 0 0 15px rgba(78, 110, 109, 0.03);
}

.principle-card-back::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: url('../images/logo-brain-watermark.svg') center / auto 92% no-repeat;
  opacity: var(--principle-watermark-opacity);
  pointer-events: none;
}

.principle-card-back > * {
  position: relative;
  z-index: 1;
}

.principle-card-back h3 {
  font-size: 1.2rem;
  color: var(--clr-brand);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
}

.principle-card-back h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--clr-accent);
  margin: var(--space-xs) auto 0;
  border-radius: var(--radius-full);
}

.principle-card-back p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--clr-text-muted);
}

/* ── Praxisräume / Atmosphäre ── */
.atmosphere-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4xl);
  align-items: center;
}

/* Interactive Gallery */
.practice-photo-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: var(--space-2xl);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  background-color: var(--clr-bg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.practice-photo-placeholder p {
  margin-bottom: 0;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.gallery-main-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(216, 212, 205, 0.4);
  background-color: var(--clr-white);
}

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

.gallery-main-img.fade-out {
  opacity: 0;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(47, 63, 62, 0.9) 0%, rgba(47, 63, 62, 0) 100%);
  color: var(--clr-white);
  padding: var(--space-xl) var(--space-md) var(--space-md);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-block: var(--space-xs);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb-btn {
  flex: 1 0 calc(25% - 8px);
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.gallery-thumb-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-thumb-btn span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.gallery-thumb-btn.active img {
  border-color: var(--clr-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-btn.active span {
  color: var(--clr-terracotta);
}

.gallery-thumb-btn:hover img {
  border-color: rgba(197, 123, 100, 0.4);
}

@media (max-width: 576px) {
  .gallery-thumb-btn {
    flex: 0 0 78px;
  }
}

/* ── For Doctors (Für Zuweiser) ── */
.referrer-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4xl);
  align-items: center;
}

.referrer-info h2 {
  margin-bottom: var(--space-lg);
}

.referrer-info p {
  margin-bottom: var(--space-lg);
}

.referrer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.referrer-card {
  background-color: var(--clr-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid rgba(216, 212, 205, 0.4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.referrer-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--clr-accent);
  transform: scaleY(0);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: top;
}

.referrer-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 25px rgba(47, 63, 62, 0.05);
  border-color: rgba(188, 164, 140, 0.4);
}

.referrer-card:hover::after {
  transform: scaleY(1);
}

.referrer-card h4 {
  font-size: 1.05rem;
  color: var(--clr-brand);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.referrer-card:hover h4 {
  color: var(--clr-brand-dark);
}

.referrer-card h4::before {
  content: '✔';
  color: var(--clr-accent);
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}

.referrer-card:hover h4::before {
  transform: scale(1.25) rotate(10deg);
  color: var(--clr-brand);
}

.referrer-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--clr-text-muted);
}

/* ── Process Section (Ablauf) ── */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
}

.step-card {
  background-color: var(--clr-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid rgba(216, 212, 205, 0.4);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              background-color 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

.step-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--clr-accent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: center;
}

.step-card:hover, .step-card.active {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(45, 74, 62, 0.08);
  border-color: rgba(78, 110, 109, 0.3);
}

.step-card:hover::after, .step-card.active::after {
  transform: scaleX(1);
}

.step-card.active {
  border-color: var(--clr-accent);
  background-color: var(--clr-bg-soft);
}

.step-num {
  width: 44px;
  height: 44px;
  background-color: var(--clr-brand);
  color: var(--clr-white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 10px rgba(45, 74, 62, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background-color 0.4s ease,
              color 0.4s ease,
              box-shadow 0.4s ease;
}

.step-card:hover .step-num, .step-card.active .step-num {
  transform: scale(1.15) translateY(-2px);
  background-color: var(--clr-accent);
  box-shadow: 0 6px 15px rgba(188, 164, 140, 0.4);
}

.step-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.step-card:hover h3, .step-card.active h3 {
  color: var(--clr-brand);
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--clr-text-muted);
}

.notice {
  background-color: rgba(166, 124, 82, 0.05);
  border-left: 4px solid var(--clr-copper);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  color: var(--clr-text);
  line-height: 1.6;
  max-width: 860px;
  margin-inline: auto;
}

.notice strong {
  color: var(--clr-copper);
}

.notice--legal {
  background-color: rgba(176, 74, 51, 0.05);
  border-left-color: var(--clr-error);
  color: var(--clr-text);
}

.notice--legal strong {
  color: var(--clr-error);
}

/* ── Location Area ── */
.location-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4xl);
  align-items: center;
}

.address-block {
  font-style: normal;
  margin-block: var(--space-lg);
  line-height: 1.7;
  color: var(--clr-text-muted);
  border-left: 2px solid var(--clr-border);
  padding-left: var(--space-md);
}

.hours-table {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

.hours-table td {
  padding-block: var(--space-xs);
  font-size: 0.95rem;
}

.hours-table td.day {
  font-weight: 600;
  color: var(--clr-brand);
  width: 120px;
}

.hours-table td.hours {
  color: var(--clr-text-muted);
}

.map-card {
  background-color: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 212, 205, 0.4);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.map-gdpr-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(47, 63, 62, 0.25); /* Subtle brand forest tint */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1000;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.map-gdpr-content {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--clr-border);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 12;
}

.map-gdpr-content svg {
  color: var(--clr-brand);
  margin-bottom: var(--space-xs);
}

.map-gdpr-content h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--clr-brand);
  font-weight: 700;
  margin: 0;
}

.map-gdpr-content p {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.4;
  margin: 0;
  margin-bottom: var(--space-sm);
}

/* Custom Leaflet Map Marker Styling */
.custom-map-marker {
  position: relative;
}
.custom-map-marker .marker-pin {
  top: 14px;
}
.marker-logo {
  position: absolute;
  top: 36px;
  left: 0;
  width: 84px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(78, 110, 109, 0.45);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(47, 63, 62, 0.16);
}
.marker-logo img {
  display: block;
  width: 76px;
  height: 20px;
  object-fit: contain;
}
.marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--clr-brand);
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -14px 0 0 -14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--clr-white);
}
.marker-pin::after {
  content: '';
  width: 12px;
  height: 12px;
  margin: 6px 0 0 6px;
  background: var(--clr-white);
  position: absolute;
  border-radius: 50%;
}
.marker-pulse {
  background: rgba(78, 110, 109, 0.2);
  border-radius: 50%;
  height: 14px;
  width: 14px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 8px 0 0 -7px;
  transform: rotateX(55deg);
  z-index: -2;
}
.marker-pulse::after {
  content: "";
  border-radius: 50%;
  height: 40px;
  width: 40px;
  position: absolute;
  margin: -13px 0 0 -13px;
  animation: map-pulsate 1.5s ease-out;
  animation-iteration-count: infinite;
  opacity: 0;
  box-shadow: 0 0 1px 2px var(--clr-brand);
  animation-delay: 1.1s;
}
@keyframes map-pulsate {
  0% {
    transform: scale(0.1, 0.1);
    opacity: 0.0;
  }
  50% {
    opacity: 1.0;
  }
  100% {
    transform: scale(1.2, 1.2);
    opacity: 0.0;
  }
}

/* ── Contact Section & Form ── */
.contact-header {
  margin-bottom: var(--space-3xl);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-4xl);
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background-color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid rgba(216, 212, 205, 0.4);
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}
.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon-wrap {
  width: 42px;
  height: 42px;
  background-color: var(--clr-brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--clr-brand);
  flex-shrink: 0;
}

.contact-item-details strong {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.contact-item-details span,
.contact-item-details a {
  font-size: 1.05rem;
  color: var(--clr-text);
  font-weight: 600;
}

.contact-item-details a:hover {
  color: var(--clr-terracotta);
}

.contact-form-card {
  background-color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid rgba(216, 212, 205, 0.4);
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.form-group {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--clr-brand);
  margin-bottom: 0.35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-brand);
  background-color: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1);
}

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

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 16px;
  height: 16px;
  accent-color: var(--clr-brand);
}

.checkbox-group label {
  font-weight: 400;
  color: var(--clr-text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.form-submit-btn {
  width: 100%;
  margin-top: var(--space-sm);
}

.form-success-panel {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  border: 2px solid rgba(62, 96, 79, 0.15);
  background-color: rgba(62, 96, 79, 0.03);
  border-radius: var(--radius-md);
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.form-success-panel h3 {
  font-size: 1.5rem;
  color: var(--clr-success);
  margin-bottom: var(--space-sm);
}

.form-success-panel p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-lg);
}

.form-success-note {
  font-size: 0.8rem;
  color: var(--clr-text-light);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
}

.form-success-note a {
  text-decoration: underline;
  color: var(--clr-brand);
}

/* ── Footer ── */
.site-footer {
  background-color: var(--clr-brand);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.site-footer h4 {
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand .nav-logo .nav-logo-img-horizontal {
  height: 90px;
}

.footer-brand .nav-logo img {
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-brand .nav-logo-text .name {
  color: var(--clr-white);
}

.footer-brand .nav-logo-text .sub {
  color: var(--clr-accent);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a:hover {
  color: var(--clr-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom a:hover {
  color: var(--clr-white);
}

/* ── Scroll-to-Top Button ── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--clr-brand);
  color: var(--clr-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 99;
  font-size: 1.25rem;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--clr-brand-dark);
  transform: translateY(-3px);
}

/* ── Scroll Reveals and Animations ── */
.fade-in {
  opacity: 1;
  transform: none;
}

.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Keyframe animations */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes slow-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes rotate-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotate-counter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes blob-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Responsive Styling (Mobile First Grid System) ── */
@media (max-width: 1024px) {
  :root {
    --section-pad: clamp(3.5rem, 8vw, 6rem);
  }
  .hero-inner,
  .special-layout,
  .about-layout,
  .referrer-layout,
  .location-container,
  .contact-layout,
  .atmosphere-layout,
  .hausbesuche-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-visual {
    min-height: 320px;
    order: -1; /* Display hero logo visual above text on mobile */
  }

  .about-visual {
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 1279px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(0);
    opacity: 0;
    visibility: hidden;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background-color: var(--clr-bg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-md);
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1005;
  }

  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    font-size: 1.05rem;
  }

}

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

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

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

/* Custom styling for Leaflet Popup to match theme */
.leaflet-popup-content-wrapper {
  background-color: var(--clr-white) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--clr-border) !important;
}

.leaflet-popup-tip {
  background-color: var(--clr-white) !important;
  border: 1px solid var(--clr-border) !important;
}

/* ── Floating Opening Announcement Toast ── */
.opening-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: var(--clr-white);
  border: 1px solid rgba(197, 123, 100, 0.3);
  box-shadow: 0 10px 30px rgba(47, 63, 62, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 9999;
  max-width: 380px;
  width: calc(100% - 48px);
  
  /* Initial hidden state for slide-in transition */
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.6s ease;
  pointer-events: none;
}

.opening-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: slow-wiggle 4s infinite ease-in-out;
}

.toast-calendar {
  width: 30px;
  overflow: hidden;
  border: 1px solid rgba(47, 63, 62, 0.18);
  border-radius: 3px;
  background: var(--clr-white);
  text-align: center;
  font-family: var(--font-sans);
  line-height: 1;
  box-shadow: 0 2px 4px rgba(47, 63, 62, 0.08);
}

.toast-calendar-month {
  display: block;
  background: var(--clr-terracotta);
  color: var(--clr-white);
  padding: 3px 0;
  font-size: 0.5rem;
  font-weight: 700;
}

.toast-calendar-day {
  display: block;
  color: var(--clr-brand-dark);
  padding: 3px 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.toast-body {
  flex-grow: 1;
}

.toast-body strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--clr-brand-dark);
  margin-bottom: 0;
  font-family: var(--font-sans);
}

.toast-body p {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.35;
  margin: 0;
}

.toast-close-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--clr-text-light);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  align-self: flex-start;
  margin-top: -4px;
  margin-right: -8px;
}

.toast-close-btn:hover {
  color: var(--clr-terracotta);
}

@keyframes slow-wiggle {
  0%, 100% { transform: rotate(0deg); }
  8%, 24% { transform: rotate(-10deg); }
  16%, 32% { transform: rotate(10deg); }
  40% { transform: rotate(0deg); }
}

@media (max-width: 576px) {
  .opening-toast {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: var(--space-md);
  }

  .site-header .nav-logo-text {
    display: none;
  }
}

/* ═══ APPOINTMENT INQUIRIES & MODALS ═══ */
.inquiry-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 41, 37, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.inquiry-modal-container {
  background-color: var(--clr-white);
  max-width: 680px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.inquiry-modal-overlay.active .inquiry-modal-container {
  transform: scale(1);
  opacity: 1;
}

.inquiry-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.25rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--clr-text-light);
  line-height: 0.8;
  padding: 4px;
  transition: color 0.2s ease;
}

.inquiry-modal-close:hover {
  color: var(--clr-terracotta);
}

.inquiry-modal-header {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: var(--space-md);
}

.inquiry-modal-header h2 {
  font-family: var(--font-serif);
  color: var(--clr-brand);
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.inquiry-modal-sub {
  font-size: 0.92rem;
  color: var(--clr-text-light);
  line-height: 1.4;
}

.inquiry-form-element {
  display: none;
}

.inquiry-form-element.active {
  display: block;
}

/* Form Styles */
.form-row {
  margin-bottom: var(--space-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-brand);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  font-family: inherit;
  width: 100%;
  padding: 0.75rem var(--space-md);
  font-size: 0.95rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background-color: var(--clr-bg-alt);
  color: var(--clr-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-brand);
  background-color: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(143, 158, 139, 0.15);
}

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

.required {
  color: var(--clr-terracotta);
  font-weight: bold;
  margin-left: 2px;
}

/* Custom checkbox rules */
.consent-row {
  margin: var(--space-md) 0 var(--space-lg);
}

.consent-row-vertical {
  margin: var(--space-md) 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--clr-text-light);
  user-select: none;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  flex-shrink: 0;
  height: 18px;
  width: 18px;
  background-color: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, border-color 0.2s;
  margin-top: 2px;
}

.checkbox-label:hover input[type="checkbox"] ~ .checkbox-custom {
  border-color: var(--clr-brand);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
  background-color: var(--clr-brand);
  border-color: var(--clr-brand);
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--clr-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
  display: block;
}

.checkbox-text a {
  color: var(--clr-brand);
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-text a:hover {
  color: var(--clr-terracotta);
}

/* Modal Footer */
.inquiry-modal-footer {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-md);
}

.inquiry-modal-footer p {
  font-size: 0.78rem;
  color: var(--clr-text-light);
  line-height: 1.4;
}

/* Success & Error Panels */
.inquiry-success-panel {
  background-color: rgba(143, 158, 139, 0.12);
  border: 1px solid var(--clr-brand);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--clr-brand);
  margin-bottom: var(--space-lg);
}

.inquiry-success-panel .success-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.inquiry-success-panel p {
  font-weight: 600;
  font-size: 1.05rem;
}

.inquiry-error-panel {
  background-color: rgba(214, 122, 107, 0.12);
  border: 1px solid var(--clr-terracotta);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--clr-terracotta);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .inquiry-modal-overlay {
    align-items: flex-end;
  }
  
  .inquiry-modal-container {
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }
  
  .form-row.split {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Impressum: ruhige Lesespalte und einheitliche Abschnittsabstände */
.legal-page .legal-header {
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--space-xl);
}
.legal-page .legal-header .container,
.legal-page .legal-details .container {
  max-width: 900px;
}
.legal-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}
.legal-page .breadcrumb a,
.legal-page .legal-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.legal-page .legal-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}
.legal-page .hero-claim {
  margin: 0;
  font-size: 1rem;
}
.legal-page .legal-details {
  padding-block: 0 var(--space-4xl);
}
.legal-page .legal-block {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--clr-border);
}
.legal-page .legal-block h2 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.45;
  margin: 0 0 var(--space-md);
}
.legal-page .legal-block p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}
.legal-page .legal-block p + p {
  margin-top: var(--space-md);
}

/* Legal page reading aids. */
.legal-page .legal-block ul { padding-left: 1.4rem; margin: var(--space-md) 0 0; }
.legal-page .legal-block li { font-size: 1rem; line-height: 1.8; margin-bottom: .4rem; }
.legal-page .legal-toc { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-block: var(--space-lg); }
.legal-page .legal-toc a { font-size: .9rem; }
.card-img-wrapper { position: relative; }
.map-disable { position: absolute; top: .65rem; right: .65rem; z-index: 1000; background: white; color: var(--clr-brand); border: 1px solid var(--clr-border); border-radius: .4rem; padding: .45rem .65rem; cursor: pointer; font: inherit; font-size: .75rem; }
.map-disable[hidden] { display: none; }
.form-delivery-error { color: var(--clr-error); font-size: .9rem; margin-top: var(--space-md); }

.legal-page .legal-block { scroll-margin-top: 7rem; }
.legal-page .legal-header h1 { overflow-wrap: anywhere; hyphens: auto; }

/* Zwei Kontaktmöglichkeiten und klare Kennzeichnung der Wartelistenfelder. */
.inquiry-cards-grid {
  max-width: 1000px;
  margin-inline: auto;
}

.inquiry-form-element .field-requirement {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--clr-brand);
}

.inquiry-form-element .form-row:not(.split):not(.consent-row-vertical) {
  grid-template-columns: 1fr;
}

/* Tastaturfokus ohne Änderung der bestehenden Farbpalette. */
.principle-card-inner:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--clr-brand);
  outline-offset: 4px;
}

.nav-menu .nav-cta { color: var(--clr-white); }
.nav-menu .nav-cta:hover,
.nav-menu .nav-cta.active { color: var(--clr-white); background-color: var(--clr-brand-dark); }
.checkbox-label input:focus-visible ~ .checkbox-custom { outline: 3px solid var(--clr-brand); outline-offset: 3px; }

/* Discreet, readable disclosures outside the eight selected photographs. */
.ai-image-caption {
  display: block;
  padding: 4px 12px;
  color: #536b68;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}
.principle-card-wrapper.has-ai-caption {
  height: 245px;
}
.has-ai-caption .principle-card-inner {
  height: 220px;
}
.has-ai-caption > .ai-image-caption {
  background: transparent;
}
