/* ============================================
   Familienpraxis Dr. Niemann - Modern Website
   Color: Green palette, warm & heartful design
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Green palette - warm and natural */
  --green-50:  #f0faf0;
  --green-100: #dcf5dc;
  --green-200: #b8e8b8;
  --green-300: #86d486;
  --green-400: #5cb85c;
  --green-500: #3d9b3d;
  --green-600: #2d7d2d;
  --green-700: #256425;
  --green-800: #1e4f1e;
  --green-900: #183f18;

  /* Warm neutrals */
  --sand-50:  #fdfcfa;
  --sand-100: #f9f6f1;
  --sand-200: #f0ebe3;
  --sand-300: #e4ddd2;
  --sand-400: #c5bba9;
  --sand-500: #a69b87;

  /* Text colors - all pass WCAG AA 4.5:1 on sand-50 */
  --text-primary:   #1a2e1a;
  --text-secondary:  #2f4a2f;
  --text-muted:     #4a6349;
  --text-light:     #5a7359;

  /* Functional */
  --white: #ffffff;
  --bg-primary: var(--sand-50);
  --bg-secondary: var(--sand-100);
  --bg-accent: var(--green-50);
  --accent: var(--green-500);
  --accent-hover: var(--green-600);
  --accent-light: var(--green-100);
  --accent-soft: var(--green-50);

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 46, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 46, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 46, 26, 0.1);
  --shadow-xl: 0 16px 48px rgba(26, 46, 26, 0.12);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Focus Styles --- */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.nav__links a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-full);
}

.hours a:focus-visible,
.hero a:focus-visible {
  outline-color: var(--green-200);
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text-primary);
}

.section__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section__title em {
  font-style: italic;
  color: var(--green-600);
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

.section__header--center .section__description {
  margin-inline: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

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

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.nav--scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav__container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  transition: color var(--transition);
}

.nav--scrolled .nav__logo {
  color: var(--text-primary);
}

.nav__logo-icon {
  display: flex;
  color: var(--green-400);
}

.nav--scrolled .nav__logo-icon {
  color: var(--accent);
}

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

.nav__logo-text strong {
  font-size: 1.05rem;
  font-family: 'Playfair Display', serif;
}

.nav__logo-text small {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
}

.nav--scrolled .nav__links a {
  color: var(--text-secondary);
}

.nav__links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav--scrolled .nav__links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav__links a.active,
.nav__links a[aria-current="page"] {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.nav__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
}

.nav__cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

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

.nav--scrolled .nav__toggle span {
  background: var(--text-primary);
}
.nav-item {
    white-space: nowrap; /* Verhindert Umbruch */
}

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

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(24, 63, 24, 0.82) 0%,
    rgba(45, 125, 45, 0.65) 50%,
    rgba(30, 79, 30, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  padding: 8rem 0 4rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero__title em {
  font-style: italic;
  color: var(--green-200);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero__info-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  max-width: 560px;
  box-sizing: border-box;
}

.hero__info-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero__info-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero__info-text a {
  color: var(--green-200);
  text-decoration: underline;
}

.hero__info-text a:hover {
  color: var(--white);
}

.hero__info-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  max-width: 560px;
  box-sizing: border-box;
}

.hero__info-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero__info-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero__info-text a {
  color: var(--green-200);
  text-decoration: underline;
}

.hero__info-text a:hover {
  color: var(--white);
}

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

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Philosophy Section --- */
.philosophy {
  background: var(--bg-primary);
}

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

.philosophy__images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.philosophy__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.philosophy__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.philosophy__img:hover img {
  transform: scale(1.03);
}

.philosophy__img--main {
  grid-row: 1 / 3;
  min-height: 450px;
}

.philosophy__img--accent {
  border-radius: var(--radius-lg);
  align-self: end;
  max-height: 280px;
}

.philosophy__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.philosophy__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

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

.philosophy__highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy__highlight strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

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

/* --- Services Section --- */
.services {
  background: var(--bg-secondary);
}

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

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--accent);
  color: var(--white);
}

.service-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* --- Praxis Impressions --- */
.impressions {
  background: var(--bg-primary);
}

.impressions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.impressions__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.impressions__item--large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.impressions__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.impressions__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}

.impressions__item:hover .impressions__caption {
  opacity: 1;
}

/* --- Team Section --- */
.team {
  background: var(--bg-secondary);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.team-cards-container {
  display: flex;
  gap: 20px;
}

.team-card {
  flex: 1;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.team-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.team-card__image {
  overflow: hidden;
  background: var(--accent-light);
}

.team-card--featured .team-card__image {
  width: 320px;
  min-height: 360px;
  flex-shrink: 0;
}

.team-card:not(.team-card--featured) .team-card__image {
  height: 80px;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-300);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
}

.team-card__content {
  padding: 2rem;
  flex: 1;
}

.team-card__content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-card__qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-card__qualifications li {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  color: var(--green-700);
  border-radius: var(--radius-full);
  font-weight: 500;
}

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

.team__badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-200);
}

.team__badge img {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.team__badge p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

/* Team section sub-headings */
.team__section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green-200);
}

.team__section-title + .team__grid {
  margin-bottom: 3rem;
}

/* Team Image Container */
.team-image-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Staff Cards Container */
.staff-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.staff-card {
  flex: 1 1 calc(33.333% - 1rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition);
  min-width: 250px;
}

.staff-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.staff-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-card__icon--nara {
  background: var(--green-100);
  color: var(--green-600);
}

.staff-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.staff-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.staff-card--special {
  background: var(--green-50);
  border: 1px solid var(--green-200);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .staff-card {
    flex: 1 1 100%;
  }
  
  .staff-cards-container {
    gap: 0.75rem;
  }
  
  .staff-card {
    padding: 1rem;
  }
}

/* --- Hours Section --- */
.hours {
  background: var(--green-700);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hours::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hours .section__label {
  color: var(--green-200);
}

.hours .section__title {
  color: var(--white);
}

.hours__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
}

.hours__table {
  margin: 2rem 0;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours__day {
  font-weight: 600;
  font-size: 0.95rem;
}

.hours__time {
  color: var(--green-200);
  font-size: 0.95rem;
}

.hours__note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.hours__note svg {
  flex-shrink: 0;
  color: var(--green-200);
  margin-top: 2px;
}

.hours__note small {
  color: rgba(255,255,255,0.75);
}

.hours__emergency-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.hours__emergency-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hours__emergency-item {
  margin-bottom: 1.5rem;
}

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

.hours__emergency-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 0.25rem;
}

.hours__emergency-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.hours__emergency-number:hover {
  color: var(--green-200);
}

.hours__emergency-number--urgent {
  color: #ff6b6b;
  font-size: 2rem;
}

.hours__emergency-number--urgent:hover {
  color: #ff5252;
}

/* --- Contact Section --- */
.contact {
  background: var(--bg-primary);
}

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

.contact__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sand-200);
}

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

.contact__item:not(:last-child) {
  border-bottom: 1px solid var(--sand-200);
}

.contact__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  font-family: 'DM Sans', sans-serif;
}

.contact__item p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.contact__item a {
  color: var(--text-primary);
  font-weight: 500;
}

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

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 520px;
}

.contact__map iframe {
  border-radius: var(--radius-lg);
}

/* --- Footer --- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer__logo svg {
  color: var(--green-400);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer__links h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--green-300);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

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

.footer__legal a {
  color: rgba(255,255,255,0.6);
}

.footer__legal a:hover {
  color: var(--green-300);
}

/* --- Legal Pages (Impressum / Datenschutz) --- */
.legal-page {
  padding: 7rem 0 4rem;
  min-height: 80vh;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
}

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

.legal-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand-200);
}

.legal-page h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 750px;
}

.legal-page ul {
  margin: 0.75rem 0 1rem 1.5rem;
  list-style: disc;
  max-width: 750px;
}

.legal-page li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-page a {
  color: var(--accent);
}

.legal-page__date {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/* =========================================================================
   RESPONSIVE DESIGN (GLOBAL BREAKPOINTS)
   ========================================================================= */

/* --- 1. Tablets & Medium Screens (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy__images {
    order: -1;
  }

  .philosophy__img--main {
    min-height: 300px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impressions__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .impressions__item--large {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16/9;
  }

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

  .team-card--featured {
    flex-direction: column;
  }

  .team-card--featured .team-card__image {
    width: 100%;
    height: auto;
    min-height: unset;
    max-height: 380px;
  }

  .staff__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hours__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* --- 2. Tablets in Transition (1024px bis 769px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  #draggableIframe.desktop-appointment-widget {
    width: 320px;   
    height: 500px;  
    top: 100px;
  }
}

/* --- 2b. Navigation Mobile & Tablet Breakpoint (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    color: var(--text-primary) !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav__links a:hover {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
  }

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

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__toggle.active span {
    background: var(--text-primary);
  }
}

/* --- 3. Smartphones & Small Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
  .hero__content {
    padding: 7rem 0 5rem;
  }

  .hero__scroll {
    display: none;
  }

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

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

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

  .impressions__item--large {
    aspect-ratio: 4/3;
  }

  .impressions__caption {
    opacity: 1;
  }

  .team-card:not(.team-card--featured) .team-card__image {
    display: none;
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- 4. Small Mobile Devices (max-width: 480px) --- */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }


  /* Hero Info Box Styles */
  .hero__info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
  }

  .hero__info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
  }

  .hero__info-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }


  /* Hero Info Box Styles */
  .hero__info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
  }

  .hero__info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
  }

  .hero__info-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

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

  .philosophy__img--main {
    min-height: 250px;
  }

  .philosophy__img--accent {
    max-height: 200px;
  }
}


/* =========================================================================
   UNTERSEITEN / NAVIGATION FÜR LEGAL PAGES
   ========================================================================= */

.nav-dark a {
  color: #333333 !important;
  font-weight: 600;
}

.nav-dark a:hover {
  color: var(--accent) !important;
}

body:not(.home) header { 
  background-color: var(--accent);
  padding: 15px 0;
}

.nav--subpage {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.nav--subpage .nav__logo {
  color: var(--text-primary);
}

.nav--subpage .nav__logo-icon {
  color: var(--accent);
}

.nav--subpage .nav__links a {
  color: var(--text-secondary);
}

.nav--subpage .nav__links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav--subpage .nav__toggle span {
  background: var(--text-primary);
}


/* =========================================================================
   TERMIN-WIDGET & DIALOG MODAL (COMPLEX REFAC)
   ========================================================================= */

/* --- A. Desktop View (Default) --- */
#draggableIframe.desktop-appointment-widget {
  position: fixed;
  top: 140px; 
  right: 20px;
  width: 400px;
  max-width: calc(100% - 40px);
  height: 600px; 
  max-height: calc(100vh - 160px);
  background-color: var(--sand-50, #fdfcfa);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--green-200, #b8e8b8);
  transition: width 0.2s ease, height 0.2s ease;
}

.window-header {
  padding: 12px 16px;
  background-color: var(--green-600, #2d7d2d);
  color: var(--white);
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
}

.window-hint {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: normal;
}

.window-body {
  flex: 1;
  width: 100%;
  height: 100%;
}

.window-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Button standardmäßig sichtbar (für alle Unterseiten) */
.mobile-appointment-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--green-600, #2d7d2d);
  color: var(--white);
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mobile-appointment-trigger:active {
  transform: scale(0.95);
}

/* Auf index.html (Desktop): Button verstecken, iframe zeigen */
body.page-index #draggableIframe.desktop-appointment-widget {
  display: block;
}

body.page-index .mobile-appointment-trigger {
  display: none;
}

/* Auf Mobile: immer Button, nie iframe */
@media (max-width: 768px) {
  #draggableIframe.desktop-appointment-widget {
    display: none !important;
  }

  .mobile-appointment-trigger {
    display: flex !important;
  }
}

/* --- C. Mobile Fullscreen Modal (Wird per JS getriggert) --- */
.mobile-modal-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: flex-end;    /* geändert */
  align-items: flex-start;      /* geändert */
  padding-top: 140px;           /* neu */
  padding-right: 20px;          /* neu */
}

.mobile-modal-content {
  background-color: var(--white);
  width: 400px;                 /* geändert */
  height: 600px;                /* geändert */
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .mobile-modal-overlay {
    justify-content: center;
    align-items: flex-end;
    padding-top: 0;
    padding-right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }

  .mobile-modal-content {
    width: 100%;
    height: 85vh;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }
}
@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--green-200, #b8e8b8);
  flex-shrink: 0;
}

.mobile-modal-body {
  flex: 1;
  overflow: hidden;
}

.mobile-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.mobile-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary, #1a2e1a);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary, #2f4a2f);
  cursor: pointer;
  padding: 0 4px;
}

.mobile-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}


/* === SERVICE MODAL === */
.service-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.service-modal-overlay.active {
  display: flex;
}
.service-modal {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2rem 2rem;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.service-modal h2 {
  font-size: 1.4rem;
  color: #2d7d2d;
  margin-bottom: 1rem;
  padding-right: 2rem;
}
#serviceModalBody {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}
.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.service-modal-close:hover {
  color: #222;
}

/* --- Mehr-erfahren Button (Werte-Seite) --- */
.philosophy__mehr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.75rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.philosophy__mehr-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Liste im Philosophie-Modal --- */
.philosophy-modal__list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.philosophy-modal__list li {
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.65;
  color: #444;
}

.philosophy-modal__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

#philosophyModalContent p {
  margin-bottom: 0.85rem;
  color: #444;
  line-height: 1.7;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  font-family: sans-serif;
  transition: transform 0.3s ease-in-out;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h3 {
  margin-top: 0;
  color: #2c3e50;
}

.cookie-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 5px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Toggle Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3; /* Farbe anpassen */
}

input:checked + .slider:before {
  transform: translateX(20px);
}

input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn.primary {
  background-color: #2196F3;
  color: white;
}

.btn.secondary {
  background-color: #e0e0e0;
  color: #333;
}

.btn.outline {
  background-color: transparent;
  border: 1px solid #ccc;
  color: #666;
}

.btn:hover {
  opacity: 0.9;
}
