/*
 * Stildefinitionen für die Praxis‑Website „Team Koppelmann UG - Praxis für Physiotherapie“.
 *
 * Dieses Stylesheet definiert eine moderne, leichtgewichtige Oberfläche mit
 * klarer Typografie und sanften Animationen. Sämtliche Farben und
 * Abstände werden über CSS‑Variablen gesteuert, sodass Anpassungen
 * zentral vorgenommen werden können. Die Karten der Leistungsübersicht
 * erscheinen mit einer sanften Einblendung beim Scrollen und heben sich
 * beim Überfahren leicht an. Das Layout passt sich dank flexibler
 * Grid‑Systeme automatisch an verschiedene Bildschirmgrößen an.
 */

:root {
  /* Farbpalette angelehnt an das Praxislogo (tiefes Petrol und helles Türkis) */
  --primary-color: #006f80;       /* dunkles Petrol für Header und Überschriften */
  --secondary-color: #fdfaf6;    /* warmes Cremeweiß für große Flächen (ähnlich Vorlage) */
  --accent-color: #2fc5c6;       /* helles Türkis für Hover‑Effekte */
  --text-color: #203a43;         /* dunkler Petrolton für Fließtext */
  --muted-text-color: #4f6a74;   /* dezenter Grauton mit Petrolanteil für Untertitel */

  /* Zusätzliche Wellenfarben für den mehrlagigen Wellenübergang */
  --wave-dark: var(--primary-color);
  --wave-medium-dark: #007a8c; /* mittlerer Türkiston zwischen primär und akzent */
  --wave-medium: var(--accent-color);
  --wave-light: var(--secondary-color);

  /* Abstände */
  --section-padding: 1rem;
  --card-padding: 1.5rem;

  /* Sonstiges */
  --border-radius: 12px;
  --transition-duration: 0.5s;
}

/* Globale Basisstile */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
  /* Entfernt das statische Blasenbild – stattdessen definieren wir weiter unten eine eigene Blasenstruktur via ::before */
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

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

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

/* Navigationsleiste */
header {
  /* Transparenter, heller Hintergrund für die Navigationsleiste wie in der Vorlage */
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.navbar h1 {
  display: none;
}

/* Logo-Container für Bild und Schriftzug in der Navigationsleiste */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-container img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-container span {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--primary-color);
  font-weight: bold;
  transition: color var(--transition-duration);
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--accent-color);
}

/* Hero Abschnitt */
/* Hero Abschnitt mit Hintergrundbild und Overlay */
.hero {
  position: relative;
  background-image: url('images/rooms/image.jpg');
  background-size: cover;
  background-position: left center;
  color: #ffffff;
  padding: 6rem 1rem;
  overflow: visible;

  /* Größere Mindesthöhe, damit das Headerbild gut sichtbar ist */
  min-height: 70vh;
}

.hero::before {
  /* Früher diente ::before zur Wellenform. Wird jetzt nicht genutzt, daher leer */
  content: none;
  background-image: none;
  height: 0;
}

.hero::after {
  /* halbtransparente Farbverlaufsschicht, um Lesbarkeit zu erhöhen */
  content: "";
  position: absolute;
  inset: 0;
  /* Leichtere Tönung über dem Hintergrundbild, damit das Foto besser zur Geltung kommt */
  background: linear-gradient(180deg, rgba(0, 45, 52, 0.3) 0%, rgba(0, 45, 52, 0.6) 100%);
  z-index: 0;
}

/* Wellencontainer im Hero-Bereich */
/* Wellencontainer enthält mehrere übereinander liegende SVG‑Elemente für den Wellenübergang */
.wave-container {
  position: absolute;
  left: 0;
  right: 0;
  /* Verschiebt die Wellen nach oben, sodass sie sich etwa zur Hälfte über das Hintergrundbild legen */
  bottom: 0px;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  z-index: 1;
}

/* Größenanpassung für das neue Wave-SVG (vier Wellen mit vertikalem Offset) */
.wave-container #wave {
  display: block;
  width: 100%;
  /* Größere Höhe, damit die Wellen weit in das Titelbild hineinragen */
  height: 260px;
}




/* Platzierung des Inhalts über dem Overlay */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0;
  color: #ffffff;
}

/* Allgemeine Sektionen */
section {
  padding: var(--section-padding) 1rem;
}

/* Blasen-Hintergrund für den Leistungsbereich */
#leistungen {
  position: relative;
  overflow: hidden;
}

/* Die Leistungssektion braucht keinen eigenen Blasenhintergrund mehr, da das Muster global gesetzt wird. */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Über uns Abschnitt */
.about {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: var(--card-padding);
  position: relative;
  overflow: visible;
}

/* Leistungsbereich */
/* Dienste in Kategorien zusammengefasst */
.service-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Neue Anordnung für die Leistungssektion basierend auf der Vorlage */
.leistungen-custom {
  padding-top: var(--section-padding);
  padding-bottom: calc(var(--section-padding));
}

.leistungen-custom h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Container für jede Reihe der Leistungen */
.leistungen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;

  /* Für eine sanfte Einblendung beim Scrollen */
  opacity: 0;
  transform: translateY(40px);
  transition: transform var(--transition-duration), opacity var(--transition-duration);
}

/* Wenn die Reihe sichtbar ist (über JS hinzugefügt), setzt sie die Übersetzung und Opazität zurück */
.leistungen-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.leistungen-text,
.leistungen-image {
  flex: 1 1 300px;
}

.leistungen-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leistungen-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;              /* Schatten kommt vom Badge */
  border: 0;                     /* Rahmen entfällt – Badge ist weiß */
}
.leistungen-image { position: relative; }
.image-badge{
  position: relative;
  width: clamp(320px, 36vw, 420px);
  height: clamp(320px, 36vw, 420px);
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.image-badge img{
  width: 95%;
  height: 95%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;  /* eigener Schatten entfällt, Badge hat Schatten */
  border: 0;        /* Rahmen entfällt, Badge ist weiß */
}

/* Individuelle Verschiebungen je Reihe */


/* Textkarte über dem Bild halten, falls sich Ebenen überlappen */
.row-wellness .service-block{ position: relative; z-index: 2; }

.service-block {
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-block h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.6rem;
  color: var(--primary-color);
}

/* Icon + Überschrift in einer Zeile */
.service-header{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem; /* Abstand zur Liste darunter */
}
.service-header h3{
  margin: 0;               /* kein Extra-Abstand, damit sauber ausgerichtet */
}
.service-header .icon-wrapper{
  margin: 0;               /* Icon nicht mehr nach unten absetzen */
}

.service-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.service-block ul li {
  margin-bottom: 0.4rem;
  color: var(--muted-text-color);
  list-style: disc;
}

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

.icon-wrapper.yellow {
  background-color: #f5b846;
}

.icon-wrapper img {
  width: 45px;
  height: 45px;
}

.service-category {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  align-items: stretch;
  gap: 2rem;
  background-color: #ffffff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(40px);
  transition: transform var(--transition-duration), opacity var(--transition-duration);
}

.service-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-category img {
  /* Bilder in den Leistungskarten sollen kreisförmig sein wie in der Vorlage */
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
}

.service-category .category-details {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-category .category-details h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-size: 1.6rem;
}

.service-category .category-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.service-category .category-details ul li {
  margin-bottom: 0.5rem;
  color: var(--muted-text-color);
  list-style: disc;
}

/* Überschrift mit Icon innerhalb der Kategorien */
.category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.category-header img {
  width: 48px;
  height: 48px;
}

.category-header h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  margin-left: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-duration), transform var(--transition-duration);
}

.btn:hover,
.btn:focus {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Globales Tupfenmuster via ::before
   Statt eines einzelnen Bildes verwenden wir mehrere radial-gradients, um unregelmäßige, unterschiedlich große Blasen auf dem gesamten Seitenhintergrund zu verteilen. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(47,197,198,0.15) 0%, rgba(47,197,198,0.15) 80px, transparent 81px),
    radial-gradient(circle at 80% 35%, rgba(0,111,128,0.12) 0%, rgba(0,111,128,0.12) 60px, transparent 61px),
    radial-gradient(circle at 30% 80%, rgba(47,197,198,0.1) 0%, rgba(47,197,198,0.1) 70px, transparent 71px),
    radial-gradient(circle at 70% 70%, rgba(0,111,128,0.1) 0%, rgba(0,111,128,0.1) 90px, transparent 91px);
  background-repeat: no-repeat;
}

.hero-btn {
  margin-top: 2rem;
}

/* Hero Button innerhalb des Blob: schiebt ihn nach rechts und ändert die Farbe */
.hero-text .btn {
  display: inline-block;
  margin-left: 0px;
  margin-right: 60px;
  background-color: var(--primary-color);
}

.hero-text .btn:hover,
.hero-text .btn:focus {
  background-color: #ffffff;
}

/* -------------------------------------------- */
/* Burger‑Menü für kleine Bildschirme */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animationszustand für das Burger-Menü */
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}



/* -------------------------------------------- */
/* Hand‑Karussell */
.hand-carousel-section {
  margin-top: 4rem;
  text-align: center;
}

.hand-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
}

.hand-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s ease;
}

.hand-icon-svg {
  width: 200px;
  height: auto;
  fill: var(--primary-color);
}

.hand-content {
  margin-top: 1.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hand-content img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.hand-content p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* ------------------------------------------------------------------ */
/* Hero‑Inner‑Styles
 *
 * Der innere Container des Heroes beschränkt die Breite, fügt einen
 * Schatten und abgerundete Ecken hinzu und enthält das Hintergrundbild.
 * Zudem wird ein halbtransparentes Overlay darüber gelegt, um den
 * Kontrast zum Text zu erhöhen. Innerhalb des Containers befindet
 * sich der Blob mit dem Willkommens‑Text.
 */
.hero-inner {
  position: relative;
  /* Vollbreite Hero‑Container. Keine Begrenzung mehr, so dass das Bild wieder
     über die gesamte Bildschirmbreite geht. Randabstand und Schatten
     werden entfernt. */
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background-size: cover;
  background-position: center center;
  z-index: 1;
  /* Mindesthöhe, damit das Haus im Hintergrund groß zu sehen ist */
}

/* Halbtransparentes Overlay im Hero, das das Bild abdunkelt */
.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Container für die Blob‑Grafik und den Text */
.hero-blob-container {
  position: relative;
  max-width: 750px;
  margin-left: -5rem;
  z-index: 2;
}

/* Blob‑Grafik: nimmt die volle Breite des Containers ein */
.hero-blob {
  width: 100%;
  height: auto;
  display: block;
}

/* Text innerhalb des Blob positionieren */
.hero-text {
  position: absolute;
  top: 54%;
  left: 45%;
  transform: translate(-45%, -50%);
  width: 80%;
  max-width: 500px;
  text-align: center;
  /* Weißer Text für bessere Lesbarkeit auf dem farbigen Blob */
  color: #ffffff;
  z-index: 3;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 0rem;
  color: #f4faf9;
}


/* Spezifische Regel für das Wort "Koppelmann" im Hero-Text */
.hero-text h1 .highlight-koppelmann {
  font-size: 3.5rem;
  /* Optional: noch stärker hervorheben, z.B. font-weight oder letter-spacing */
}


/* Wir verwenden keine separate .wave-Klasse mehr für den Trenner,
   stattdessen liegt die Wellenform im Hero-Bereich in .wave-container. */


/* Team Vorschau */
.team-preview {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background-color: #ffffff;
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.team-member h3 {
  margin-bottom: 0.2rem;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
  margin: 0;
}

/* Kontaktbereich */
.contact {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: var(--card-padding);
}

.contact address {
  font-style: normal;
  line-height: 1.6;
}

/* Impressum und Datenschutz */
.legal {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto;
}

.legal h2 {
  margin-top: 0;
}

/* Teamseite */
.team-page {
  padding: var(--section-padding) 1rem;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-container .member {
  background-color: #ffffff;
  padding: var(--card-padding);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.team-container .member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-container .member img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.team-container .member h3 {
  margin-bottom: 0.3rem;
}

.team-container .member p {
  margin: 0;
  color: var(--muted-text-color);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: #222222;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}


/* Rundes Logo-Badge in der "Über uns"-Karte */
.about-logo-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  /* 30% in der Karte, 70% außerhalb: Badge über die Ecke hinausschieben */
  transform: translate(-30%, 50%);
  z-index: 2;
}
.about-logo-badge img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

@media (max-width: 768px) {
  /* --- Mobile Optimierungen (≤768px) --- */
  .logo-container span {
    /* Navbar-Titel kleiner */
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .nav-links li a {
    /* Menüpunkte etwas kompakter */
    font-size: 0.95rem;
  }

  .hero {
    /* ...deine bestehenden Zeilen... */
    background-position: center 55%;   /* vorher: left center */             /* zoomt leicht ins Bild */
    min-height: 65vh;                  /* bleibt */
  }

  .hero-blob-container {
    /* Blob größer darstellen und weniger negativen Versatz */
    margin-left: 0rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
      transform: translate(0%, -28%);
  }

  .hero-blob {
    /* Blob optisch größer skalieren */
    transform: scale(1.3);
    transform-origin: center;
  }

  .hero-text {
    /* Text zentrierter und etwas breiter */
    top: 52%;
    left: 50%;
    transform: translate(-50%, -38%);
    width: 88%;
    max-width: 520px;
    text-align: center;
  }

  .hero-text h1 {
    /* Überschrift im Header kleiner auf Mobile */
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.15;
  }

  .hero-text h1 .highlight-koppelmann {
    font-size: 2.2rem;
    /* Optional: noch stärker hervorheben, z.B. font-weight oder letter-spacing */
  }

  .hero-text p {
    font-size: clamp(14px, 3.8vw, 18px);
    margin-bottom: 0.5rem;
  }

  .hero-text .btn {
    font-size: 0.85rem;         /* kleiner */
    padding: 0.35rem 0.7rem;    /* kompakter */
    margin-left: 0;
    transform: translate(-10%, -90%);
    margin-right: 30px;         /* vorher: 60px */
  }

  .wave-container {
    /* ... */
    bottom: 0px;      /* vorher: -80px */
  }
  
  .wave-container #wave {
    /* ... */
    height: 220px;      /* vorher: 320px */
  }

  .service-category {
    grid-template-columns: 1fr;
  }
  .leistungen-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  /* --- Mobile: Abstände zwischen den Leistungsreihen und zum Team-Block reduzieren --- */
  .leistungen-custom h2 { 
    /* Überschriftenabstand kleiner, damit weniger Luft nach unten */
    margin-bottom: 1.6rem; /* vorher 3rem (desktop) */
  }

  .leistungen-row {
    /* Reihen enger zusammenrücken */
    gap: 1rem;            /* vorher 1.5rem */
    margin-bottom: -2rem;  /* zusätzliche Reduktion der Lücke zwischen den Reihen */
  }

  .leistungen-custom {
    /* Weniger Padding unten, damit der Abstand zur nächsten Section (Team) kleiner wird */
    padding-bottom: -3rem; /* vorher calc(var(--section-padding)) */
  }

  .leistungen-custom .leistungen-row:last-of-type {
    /* Letzte Reihe minimaler Abschlussabstand vor "Unser Team" */
    margin-bottom: -3rem;
  }

  /* Global: Sections auf Mobile oben/unten etwas knapper paddingsetzen */
  section { 
    padding: 0.8rem 1rem; /* vorher var(--section-padding) = 1rem → minimal kompakter */
  }

  /* Bild im Badge bleibt kreisrund (gleiches Seitenverhältnis) */
  .image-badge{ width: clamp(220px, 60vw, 280px); height: clamp(220px, 60vw, 280px); }
  .image-badge img{ width: 92%; height: 92%; }

  /* In der zweiten Reihe (row-wellness) Text vor Bild */
  .row-wellness .leistungen-text { order: 1; }
  .row-wellness .leistungen-image { order: 2; }
  .row-wellness .leistungen-image { z-index: 3; }

  .row-therapie .image-badge{ transform: translate(20%, -20%); }
  .row-wellness .image-badge{ transform: translate(20%, -20%); }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links li {
    margin: 0;
  }
  .nav-links li a {
    display: block;
    padding: 0.8rem 0;
  }
  .burger {
    display: flex;
  }
  .service-categories {
    gap: 4rem;
  }
  .about-logo-badge {
    width: 110px;
    height: 110px;
    /* auf kleineren Displays etwas weniger weit herausragen lassen */
    transform: translate(-10%, 50%);
  }
  .icon-wrapper {
    width: 56px;
    height: 56px;
  }
  /* (Entfernt: .leistungen-image img { width: 80%; max-width: 300px; }) */
}


@media (max-width: 400px) {
  .row-therapie .image-badge{ transform: translate(20%, -45%); }
  .row-wellness .image-badge{ transform: translate(20%, -45%); }
  .leistungen-custom .leistungen-row:last-of-type {
    /* Letzte Reihe minimaler Abschlussabstand vor "Unser Team" */
    margin-bottom: -6rem;
  }
  .leistungen-row {
    margin-bottom: -6rem;  /* zusätzliche Reduktion der Lücke zwischen den Reihen */
    }
}

@media (max-width: 440px) {
  .row-therapie .image-badge{ transform: translate(20%, -35%); }
  .row-wellness .image-badge{ transform: translate(20%, -35%); }
  .leistungen-custom .leistungen-row:last-of-type {
    /* Letzte Reihe minimaler Abschlussabstand vor "Unser Team" */
    margin-bottom: -6rem;
  }
  .leistungen-row {
    margin-bottom: -6rem;  /* zusätzliche Reduktion der Lücke zwischen den Reihen */
    }
}

