/* ==========================================================================
   Lokal eingebundene Schriften (DSGVO-konform, kein Laden von Google-Servern).
   Dateien liegen in /fonts. Zeichensatz: latin (inkl. ä ö ü ß).
   ========================================================================== */
@font-face {
  font-family: "Arvo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arvo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Arvo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arvo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-pro-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-pro-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-pro-latin-700-normal.woff2") format("woff2");
}

/* ==========================================================================
   gemeinsame-babyzeit.de – Stylesheet
   Farbpalette unverändert aus der Vorversion übernommen (Kundenvorgabe).
   Layout, Typografie und Komponenten überarbeitet.
   ========================================================================== */

:root {
  --color-heading: #824000;
  --color-heading-light: #a35a1f;
  --color-sage: #a3b8a0;
  --color-sage-dark: #6f8a6b;
  --color-pink: #a22257;
  --color-pink-dark: #7c1a42;
  --color-text: #3a3230;
  --color-text-muted: #6b6560;
  --color-bg: #f7f4ef;
  --color-surface: #ffffff;
  --color-border: #e4ddd2;

  --font-heading: "Arvo", "Georgia", serif;
  --font-body: "Source Sans Pro", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 18px rgba(58, 50, 48, 0.09);
  --shadow-hover: 0 8px 26px rgba(58, 50, 48, 0.16);
  --max-width: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-pink);
  text-decoration: none;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-pink-dark);
  text-decoration: underline;
}

/* Browser chrome carries the palette too, not just the drawn UI. */
::selection {
  background: var(--color-sage);
  color: #23301f;
}

:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
  border-radius: 3px;
}

* {
  scrollbar-color: var(--color-sage-dark) var(--color-bg);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-sage-dark);
  border-radius: 8px;
  border: 3px solid var(--color-bg);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

.prose {
  max-width: 62ch;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* One authored moment: sections rise into place as they enter view. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0.7em 1.6em;
  border-radius: 6px;
  border: 3px solid var(--color-sage-dark);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--color-sage-dark);
  color: #fff;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-pink-dark);
  border-color: var(--color-pink-dark);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(163, 184, 160, 0.94);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo strong {
  color: #fff;
}

.logo:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

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

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

.main-nav a:hover {
  text-decoration: none;
  color: #4a3020;
}

.main-nav .dropdown > a::after {
  content: " \25BE";
  font-size: 0.75em;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 230px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown-menu a {
  color: var(--color-text);
  display: block;
  padding: 0.5rem 1.1rem;
  font-weight: 400;
  font-size: 0.93rem;
}

.main-nav .dropdown-menu a:hover {
  background: var(--color-bg);
  color: var(--color-pink);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--color-heading);
  transition: background 0.2s ease;
}

.header-icons a:hover {
  background: #fff;
  text-decoration: none;
}

.header-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
/* The welcome line and the site name are one heading, not a label plus a
   title — the brand line is read in one breath. */

.hero-wrap {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: 2rem 4vw 2rem 1.5rem;
}

.hero {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(58, 50, 48, 0.06) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: min(400px, 34vw);
  text-align: left;
  background: rgba(58, 50, 48, 0.4);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  padding: 2rem 2.1rem;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.55em;
}

.hero-content h1 .welcome {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.42em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0.5em;
  text-shadow: none;
}

.hero-quote {
  margin: 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.96;
}

.hero-quote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Page header (Innenseiten) ---------- */

.page-intro {
  padding: 3.5rem 0 1.2rem;
}

.page-intro .lede {
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- Generic sections ---------- */

.section {
  padding: 3.5rem 0;
}

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

.section-head {
  margin-bottom: 2.4rem;
  text-align: center;
}

.section-head .rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.two-col.reverse {
  direction: rtl;
  align-items: start;
}

.two-col.reverse > * {
  direction: ltr;
}

/* ---------- Home: Angebote als asymmetrisches Editorial-Paar ---------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-row .feature-media {
  position: relative;
  min-height: 280px;
}

.feature-row .feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.feature-row .feature-body {
  padding: 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-row .feature-body p {
  color: var(--color-text-muted);
}

.feature-row .feature-body .btn {
  align-self: flex-start;
}

/* ---------- Home: Markenbild ---------- */

.brand-photo {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
}

.brand-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.brand-photo a:hover img,
.brand-photo a:focus-visible img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ---------- Google-Bewertungen: Stimmenwand statt Kachelraster ---------- */

.testimonial-feature {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3rem;
}

.testimonial-feature::before {
  content: "\201C";
  display: block;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-sage-dark);
  margin-bottom: -0.6rem;
}

.testimonial-feature blockquote {
  margin: 0 0 1.1rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.4;
  color: var(--color-heading);
}

.testimonial-feature cite {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-feature .stars {
  color: #b8862b;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-row blockquote {
  margin: 0 0 0.7rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.testimonial-row cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.88rem;
}

/* ---------- Kursangebot: Terminübersicht als Stundenplan ---------- */

.course-location {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding-bottom: 1.6rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--color-border);
}

.course-location .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--color-pink);
}

.course-location h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.course-location p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.course-location .cooperation {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.course-location .cooperation img {
  height: 34px;
  width: auto;
}

.course-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--color-sage-dark);
}

.schedule-row.fenkid {
  border-left-color: var(--color-pink);
}

.schedule-row .date-block {
  font-family: var(--font-heading);
  text-align: center;
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}

.schedule-row .date-block .weekday {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.schedule-row .date-block .day {
  display: block;
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--color-heading);
}

.schedule-row .date-block .month {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.schedule-row .details {
  min-width: 0;
}

.schedule-row .details .type-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.schedule-row .details .type-name {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-size: 1.05rem;
}

.schedule-row .details .age-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-pink-dark);
  background: rgba(162, 34, 87, 0.09);
  border-radius: 999px;
  padding: 0.15em 0.7em;
}

.schedule-row .details .meta {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.schedule-row .details .price {
  font-weight: 700;
  color: var(--color-text);
}

.schedule-row .btn {
  white-space: nowrap;
  padding: 0.55em 1.3em;
  font-size: 0.9rem;
}

.course-note {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.course-section + .course-section {
  margin-top: 3.5rem;
}

.registration-hint {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.registration-hint strong {
  color: var(--color-text);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.contact-card-body {
  padding: 1.5rem 1.7rem 1.8rem;
}

.contact-card-body a {
  display: block;
  margin-top: 0.3rem;
}

form.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  display: grid;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.94rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: var(--color-sage-dark);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--color-sage-dark);
  outline-offset: 1px;
  border-color: var(--color-sage-dark);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Legal pages ---------- */

.legal-content h2 {
  margin-top: 2.2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem;
}

.legal-content p {
  max-width: 68ch;
}

.legal-content a {
  word-break: break-word;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #2f3a2d;
  color: #dfe6dd;
  padding: 2.6rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer a {
  color: #f1c9d8;
}

.site-footer .footer-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.site-footer .footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.site-footer .footer-icons a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-footer .footer-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-footer p {
  margin: 0.3em 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .two-col.reverse {
    direction: ltr;
  }

  .two-col img {
    order: -1;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .feature-row .feature-media {
    min-height: 220px;
  }

  .testimonial-row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .schedule-row {
    grid-template-columns: auto 1fr;
  }

  .schedule-row .btn {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin-top: 0.4rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .header-icons {
    display: none;
  }

  .hero-wrap {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
  }

  .hero {
    position: static;
    inset: auto;
    aspect-ratio: 4 / 3;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    position: static;
    z-index: auto;
    max-width: none;
    width: 100%;
    color: var(--color-text);
    background: var(--color-surface);
    backdrop-filter: none;
    border-radius: 0;
    padding: 1.8rem 1.5rem 2.2rem;
  }

  .hero-content h1 {
    color: var(--color-heading);
    text-shadow: none;
  }

  .hero-content h1 .welcome {
    color: var(--color-pink);
  }

  .hero-quote {
    color: var(--color-text);
    border-top-color: var(--color-border);
    opacity: 1;
  }

  .hero-quote cite {
    opacity: 0.7;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #93ab8f;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.8rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.2rem;
  }

  .main-nav .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.12);
    display: none;
    margin: 0.2rem 0 0.4rem;
  }

  .main-nav .dropdown.open .dropdown-menu {
    display: block;
  }

  .main-nav .dropdown-menu a {
    color: #fff;
  }

  .header-icons {
    margin-left: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: auto 1fr;
  }
}
