/* ============================================================
   Herzstrahlen – Hauptstylesheet
   Autorin: Simone | Mütterpflege mit Herz
   ============================================================ */


/* ── WCAG: Skip-Link (unsichtbar außer bei Fokus) ── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 8px 16px;
  background: var(--rot);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}

/* WCAG: Fokus-Stile für alle interaktiven Elemente */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rot);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ── Grundeinstellungen ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --hintergrund: #cdc4c4;
  --rot:         #7d1a28;
  --schrift:     #7a0000;
  --kreis:       #dcccc0;
  --nav-hoehe:   68px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--hintergrund);
  color: var(--schrift);
  /* Systemschriften – kein externer Server, DSGVO-konform */
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.75;
}


/* ── Navigation ── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-hoehe);
  background: rgba(205, 196, 196, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 26, 40, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
}

/* Scrolled-Zustand – etwas dunkler & mit Schatten */
nav.gescrollt {
  background: rgba(195, 185, 185, 0.92);
  box-shadow: 0 2px 20px rgba(122, 0, 0, .08);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--schrift);
  padding: 4px 0;
  transition: color .25s;
}

/* Unterstrich-Animation beim Hover */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rot);
  transition: width .3s ease;
}

nav ul li a:hover { color: var(--rot); }
nav ul li a:hover::after { width: 100%; }

/* Aktiver Menüpunkt */
nav ul li a.aktiv {
  color: var(--rot);
}
nav ul li a.aktiv::after {
  width: 100%;
}

/* Hamburger-Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rot);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobiles Menü – geöffneter Zustand */
.nav-offen ul {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-hoehe);
  left: 0; right: 0;
  background: var(--hintergrund);
  padding: 24px 32px 32px;
  border-bottom: 1px solid rgba(125, 26, 40, .15);
  gap: 20px;
}

.nav-offen .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-offen .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-offen .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Hero / Startbereich ── */

#start {
  padding-top: calc(var(--nav-hoehe) + 56px);
  padding-bottom: 64px;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 0px;
  width: 920px;
  max-width: 90%;
}

#start p {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  max-width: 580px;
  text-align: center;
  margin: 0 auto;
}

/* CTA-Button */
.cta-button {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 32px;
  border: 1.5px solid var(--rot);
  color: var(--rot);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  border-radius: 2px;
}

.cta-button:hover {
  background: var(--rot);
  color: #fff;
}


/* ── Sektionen (allgemein) ── */

.sektion {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px;
  border-top: 1px solid rgba(125, 26, 40, .12);
}

/* Kreis-Überschrift */
.titel-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 52px;
}

.titel-kreis {
  width: 160px;
  height: 160px;
  background-color: var(--kreis);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.titel-kreis h2 {
    font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rot);
  text-align: center;
  line-height: 1.5;
}


/* ── Mütterpflege-Bereich ── */

.muetterpflege-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.muetterpflege-text p {
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.muetterpflege-bild {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.muetterpflege-bild img {
  width: 100% !important;
  height: auto !important;
}

.muetterpflege-bild .bildunterschrift {
  font-family: Georgia, 'Palatino Linotype', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--schrift);
  text-align: center;
}


/* ── Über-mich-Bereich ── */

.ueber-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ueber-text p {
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.ueber-bild img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}


/* ── Leistungen ── */

.leistungen-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.leistung-karte {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(125, 26, 40, .1);
  border-radius: 8px;
  padding: 24px 22px;
}

.leistung-karte h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 10px;
}

.leistung-karte p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.leistungen-info {
  margin-top: 32px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--schrift);
  border-top: 1px solid rgba(125, 26, 40, .1);
  padding-top: 24px;
}


/* ── Kontakt ── */

#kontakt {
  text-align: center;
}

.kontakt-kreis {
  width: 230px !important;
  height: 230px !important;
  flex-direction: column;
  gap: 14px;
}

.kontakt-kreis-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.kontakt-kreis-icons a {
  display: flex;
  transition: transform .25s;
}

.kontakt-kreis-icons a:hover {
  transform: scale(1.15);
}

#kontakt p {
  font-size: 0.93rem;
  margin-top: 20px;
}


/* ── FAQ ── */

.faq-liste {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-eintrag {
  border-bottom: 1px solid rgba(125, 26, 40, .12);
}

.faq-eintrag:first-child {
  border-top: 1px solid rgba(125, 26, 40, .12);
}

.faq-frage {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--schrift);
  text-align: left;
  transition: color .2s;
}

.faq-frage:hover {
  color: var(--rot);
}

.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--rot);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.faq-icon::before {
  width: 16px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 16px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-frage[aria-expanded="true"] .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-antwort {
  padding-bottom: 20px;
}

.faq-antwort p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 10px;
  color: var(--schrift);
}

.faq-antwort p:last-child {
  margin-bottom: 0;
}


/* ── Fußzeile ── */

footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(122, 0, 0, .45);
  border-top: 1px solid rgba(125, 26, 40, .12);
}

.footer-nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-nav a {
  color: rgba(122, 0, 0, .6);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: color .2s;
}

.footer-nav a:hover {
  color: var(--rot);
}


/* ── Responsive – Tablet & Smartphone ── */

@media (max-width: 700px) {
  /* Navigation: Hamburger anzeigen, Links verstecken */
  nav ul { display: none; }
  .nav-toggle { display: flex; }
  nav { padding: 0 20px; }

  /* Hero */
  #start { padding-left: 0; padding-right: 0; }
  .hero-logo {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  /* Mütterpflege: einspaltig + Bild zentriert */
  .muetterpflege-layout { grid-template-columns: 1fr; }

  /* Über mich: einspaltig */
  .ueber-layout { grid-template-columns: 1fr; }
  .muetterpflege-bild {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .muetterpflege-bild img { max-width: 90%; }

  /* Leistungen: einspaltig */
  .leistungen-raster { grid-template-columns: 1fr; }

  /* Sektionen */
  .sektion { padding: 60px 20px; }
}

@media (max-width: 440px) {
  .titel-kreis { width: 140px; height: 140px; }
}
