/* =====================
   CSS VARIABLEN
===================== */
:root {
  --rose:        #CDAAA6;
  --rose-light:  #CDAAA6;
  --rose-pale:   #CDAAA6;
  --rose-dark:   #a87b72;
  --beige:       #f5f0ec;
  --text-dark:   #3a3028;
  --text-mid:    #6b5a52;
  --text-light:  #9e8880;
  --white:       #ffffff;
  --card-bg:     #ede3de;
  --text-black:  #000;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Raleway", sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose-dark); }

u {
  text-decoration: none;
  position: relative;
}

u::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 2px;
  background-color: var(--rose);
}

/* =====================
   NAVBAR
===================== */
.navbar {
  background-color: var(--rose) !important;
  padding: 1rem 2rem;
  transition: background-color 0.3s ease;
}

.navbar.navbar-scrolled {
  background-color: var(--white) !important;
}

.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--rose-dark) !important;
}

.navbar-nav .nav-link {
  color: var(--text-mid) !important;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 1rem !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: var(--rose-dark) !important;
}

/* =====================
   HERO SECTION
===================== */
.hero {
  position: relative;
  background-color: var(--rose-light);
  overflow: hidden;
  padding: 80px 0 0 0;
  min-height: 650px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 150px;
  min-height: 550px;
}

.hero-text {
  display: flex;
  align-items: center;
  min-height: 500px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.25;
  color: var(--text-dark);
}

.hero-content h1 em {
  color: var(--rose-dark);
  font-style: italic;
}

.hero-img {
  width: 130%;
  max-width: 680px;
  display: block;
  margin-left: auto;
}

@media (max-width: 768px) {
  .hero-img {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* =====================
   SECTION ALLGEMEIN
===================== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.7rem, 6vw, 3.2rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

/* =====================
   UEBER MICH
===================== */
#ueber-mich {
  background-color: var(--white);
}

.ueber-mich-card {
  background-color: var(--white);
  border: 3px solid var(--rose-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ueber-mich-img {
  width: 100%;
  max-width: 300px;
  border-radius: 18px;
  border-color: var(--rose);
  display: block;
  margin: 0 auto;
}

.ueber-mich-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-black);
  margin-bottom: 0.9rem;
}

/* =====================
   DOULA vs HEBAMME
===================== */
.venn-desktop { display: block; }
.venn-mobile  { display: none; }

@media (max-width: 576px) {
  .venn-desktop { display: none; }
  
  .venn-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
  }

  .venn-mobile-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    overflow: visible;
  }
}

/* =====================
   PHILOSOPHIE
===================== */
#philosophie {
  background-color: var(--white);
}

.philosophie-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  max-width: 750px;
}

.philosophie-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
}

.philosophie-item--right {
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
  text-align: right;
}

.philosophie-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophie-icon svg {
  width: 70px;
  height: 70px;
  stroke: var(--rose-dark);
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.philosophie-text h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.philosophie-text p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 768px) {
  .philosophie-item,
  .philosophie-item--right {
    flex-direction: column;
    align-items: center;      /* ← war: flex-start */
    text-align: center;       /* ← war: left */
    margin-left: 0;
    margin-right: 0;
  }

  .philosophie-item--right {
    flex-direction: column-reverse;
  }

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

/* =====================
   LEISTUNGEN
===================== */

/* Äußerer Container – perspektive für 3D */
.leistung-card-wrap {
  perspective: 1000px;
  cursor: pointer;
  height: 300px;
}

.leistung-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 14px;
}

/* Dog-ear – scharfe Falzkante (Border-Trick) */
.leistung-front::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 32px 32px;
  border-color: transparent transparent var(--rose-dark) transparent;
  box-shadow: -2px -2px 3px rgba(70, 35, 25, 0.25);
  border-top-left-radius: 4px;
  z-index: 3;
  pointer-events: none;
  transition: border-width 0.3s ease;
}

/* Dunkle Ecke obendrauf – simuliert die Seite die "umgeklappt" ist */
.leistung-front::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-color: transparent transparent var(--rose-dark) transparent;
  z-index: 4;
  pointer-events: none;
  transition: border-width 0.3s ease;
}

/* Wächst bei Hover / Nähe */
.leistung-card-wrap:not(.is-flipped):hover .leistung-front::before,
.leistung-card-wrap.near:not(.is-flipped) .leistung-front::before {
  border-width: 0 0 48px 48px;
}

.leistung-card-wrap:not(.is-flipped):hover .leistung-front::after,
.leistung-card-wrap.near:not(.is-flipped) .leistung-front::after {
  border-width: 0 0 42px 42px;
}

/* Dog-ear Rückseite – invertiert (hell auf dunklem Hintergrund) */
.leistung-back::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 32px 32px;
  border-bottom-right-radius: 14px;
  border-color: transparent transparent var(--white) transparent;
  box-shadow: -2px -2px 3px rgba(0, 0, 0, 0.2);
  border-top-left-radius: 4px;
  z-index: 3;
  pointer-events: none;
  transition: border-width 0.3s ease;
}

.leistung-back::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0 28px 28px;
  border-bottom-right-radius: 14px;
  border-color: black transparent var(--white) transparent;
  z-index: 4;
  pointer-events: none;
  transition: border-width 0.3s ease;
}

/* Hover & Nähe auf der Rückseite */
.leistung-card-wrap.is-flipped:hover .leistung-back::before,
.leistung-card-wrap.is-flipped.near .leistung-back::before {
  border-width: 0 0 48px 48px;
}

.leistung-card-wrap.is-flipped:hover .leistung-back::after,
.leistung-card-wrap.is-flipped.near .leistung-back::after {
  border-width: 0 0 42px 42px;
}
.leistung-card-wrap.is-flipped .leistung-front::before,
.leistung-card-wrap.is-flipped .leistung-front::after {
  display: none;
}
.leistung-card.flipped {
  transform: rotateY(180deg);
}

.leistung-card.no-anim {
  animation: none !important;
}

.leistung-front,
.leistung-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

/* Vorderseite */
.leistung-front {
  background-color: var(--white);
  border: 1px solid var(--rose-light);
  overflow: hidden;
}

.leistung-front h5 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0;
}

/* Rückseite */
.leistung-back {
  background-color: var(--rose-dark);
  transform: rotateY(180deg);
  border: 1px solid var(--rose-light);
}

.leistung-back h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.leistung-back p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin: 0;
}

/* Icon */
.leistung-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  overflow: hidden;
}

.leistung-icon-wrap img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* =====================
   PAKETE
===================== */
#pakete {
  background-color: var(--white);
}

.paket-card {
  background-color: var(--rose);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.paket-card h4 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  text-align: center;
  margin-bottom: 0.2rem;
}

.paket-subtitle {
  font-size: 1rem;
  text-align: center;
  color: var();
  font-style: italic;
  margin-bottom: 1.2rem;
  min-height: 1.2em;
}

.paket-card ul {
  list-style: inside;
  padding: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}

.paket-card ul li {
  font-size: 0.9rem;
  color: var(--text-black);
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.paket-card ul li::before {
  position: absolute;
  left: 0;
  color: var(--rose-dark);
  font-size: 2.5rem;
  line-height: 1;
}

.paket-preis {
  font-size: 1.7rem;
  color: var(--text-dark);
  text-align: center;
  border-top: 1px solid var(--rose-light);
  padding-top: 1rem;
  margin-top: auto;
}

.paket-preis span {
  display: inline-block;
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.paket-hinweis {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 680px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(201,164,154,0.18), rgba(201,164,154,0.08));
  border: 1.5px solid var(--rose);
  border-radius: 16px;
  position: relative;
  animation: hinweis-einblenden 0.8s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

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

.paket-hinweis-icon {
  font-size: 1.3rem;
  color: var(--rose-dark);
  flex-shrink: 0;
  line-height: 1.6;
  animation: pulse-star 3s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%       { transform: scale(1.25) rotate(20deg); opacity: 0.7; }
}

.paket-hinweis p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .paket-hinweis {
    margin: 2rem 1rem 0;
    padding: 1.2rem 1.4rem;
  }
}
.info-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.6rem;
  cursor: pointer;
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1.5px solid var(--rose);
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.info-bubble:hover .info-dot,
.info-bubble:focus-within .info-dot {
  background-color: var(--rose);
  transform: scale(1.1);
}

.info-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 280px;
  background-color: var(--white);
  border: 1.5px solid var(--rose);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.65;
  font-style: italic;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

/* kleines Dreieck unten */
.info-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--rose);
}

.info-popup::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--white);
  z-index: 1;
  margin-top: -1px;
}

.info-bubble:hover .info-popup,
.info-bubble:focus-within .info-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Mobil: Popup nach unten */
@media (max-width: 576px) {
  .info-popup {
    bottom: auto;
    top: calc(100% + 12px);
    width: 240px;
  }

  .info-popup::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--rose);
  }

  .info-popup::before {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--white);
    margin-top: 0;
    margin-bottom: -1px;
  }
}

/* Hinweis unter Paketen */
.paket-hinweis-schlicht {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hinweis-linie {
  flex: 1;
  height: 1px;
  background-color: var(--rose);
  opacity: 0.6;
}

.paket-hinweis-schlicht p {
  color: var(--text-light);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  text-align: center;
  flex-shrink: 1;
  max-width: 520px;
}

@media (max-width: 576px) {
  .kennenlernen-hinweis {
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.2rem;
  }

  .paket-hinweis-schlicht {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hinweis-linie {
    width: 60px;
    flex: none;
  }
}
.paket-intro {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-mid);
  max-width: 560px;
  margin: -1.5rem auto 2.5rem;
  line-height: 1.75;
}
/* =====================
   EINZELLEISTUNGEN
===================== */


.einzel-item {
  border-bottom: 1px solid var(--rose-light);
  padding: 1.8rem 0;
  cursor: pointer;
}

.einzel-item:first-child { padding-top: 0; }
.einzel-item:last-child { border-bottom: none; }

.einzel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
}

.einzel-header h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.5;
}

.einzel-preis {
  display: block;
  font-size: 0.83rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.2rem;
  font-weight: 400;
}

.mehr-link {
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem 0;
  padding-top: 0.15rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mehr-link:hover { color: var(--rose-dark); }

.einzel-detail {
  display: none;
  margin-top: 0.8rem;
}

.einzel-detail.open { display: block; }

.einzel-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: var(--rose-light);
  border-top: 1px solid var(--rose-light);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dark);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--rose-dark); }
 
.footer-locations {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-pin {
  width: 32px;
  height: 32px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-pin svg {
  width: 16px;
  height: 16px;
  stroke: var(--rose-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-locations span {
  font-size: 0.84rem;
  color: var(--text-mid);
}

.footer-mail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-mail:hover {
  color: var(--rose-dark);
}

.footer-mail svg {
  width: 16px;
  height: 16px;
  stroke: var(--rose-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding-top: 50px; }
  .hero-text { min-height: auto; padding-bottom: 2rem; }
  .hero-content { padding-bottom: 80px; }
  .hero-image-wrap {
    justify-content: center;
    margin-top: 1rem;
  }
  .ueber-mich-card { padding: 1.5rem; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-locations { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }

  /* Leistungskarten: eine pro Zeile statt zwei */
  .leistung-card-wrap {
    height: 260px;
  }

  /* Einzelleistungen: mehr Luft beim Antippen */
  .einzel-item {
    padding: 1.4rem 0;
  }

  /* Navbar: Abstände der Links für Touch */
  .navbar-nav .nav-link {
    padding: 0.6rem 1rem !important;
  }

  /* Paket-Hinweis schmaler */
  .paket-hinweis-schlicht {
    padding: 0 0.5rem;
  }
}

.instagram-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 110%, #f9ed32 0%, #ee2a7b 40%, #d300c5 60%, #7b16ff 80%, #4b57d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.instagram-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.instagram-fab svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 767px) {
  .ueber-mich-mehr-inhalt {
    display: none;
  }
  .ueber-mich-mehr-inhalt.open {
    display: block;
  }
  .ueber-mich-toggle {
    display: inline-block;
    margin-top: 0.5rem;
  }
}

@media (min-width: 768px) {
  .ueber-mich-toggle {
    display: none;
  }
}