/* Hebamme Katrin Mäder – gemeinsames Stylesheet */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #3A3347;
  --muted: #5E566B;
  --plum: #5B4B6B;
  --plum-dark: #4A3F5C;
  --gold: #B8956A;
  --blush: #F3DEDF;
  --sage: #DFE9DF;
  --lilac: #E7E0EF;
  --sand: #F1E8DA;
  --mist: #DDE8EE;
  --line: #E3D8DD;
  --field: #8A8197;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  background: #F1EEEA linear-gradient(180deg, #F3E9EC 0%, #F1EEEA 45%, #E4ECE5 100%) fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--plum); }
a:hover { color: #2B2338; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--plum); color: #fff; padding: 12px 20px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 14px; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 28px; font-weight: 700; }
p { margin: 0 0 16px; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.todo { background: #FFF3CC; color: #5A4300; padding: 0 6px; border-radius: 4px; }

/* Header */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 54px; width: 54px; display: block; flex: none; }
.brand-name { white-space: nowrap; font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.05; display: block; }
.brand-sub { font-size: 14px; color: var(--muted); display: block; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--plum); background: transparent; border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .btn { border-bottom: 0; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 700; padding: 13px 26px; border-radius: 999px; border: 1px solid var(--plum); cursor: pointer; min-height: 46px; line-height: 1.3; text-align: center; }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: rgba(91, 75, 107, 0.08); color: var(--plum-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* Hero */
.hero { padding: 36px 0 56px; text-align: center; }
.hero-emblem { position: relative; width: 320px; height: 320px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.hero-emblem svg { position: absolute; inset: 0; }
.hero-emblem img[src$=".svg"] { height: 100%; width: 100%; }
.hero-emblem img { position: relative; height: 150px; width: auto; }
.hero p.lead { max-width: 640px; margin: 0 auto 26px; color: var(--muted); font-size: 18px; }
.hero h1 { max-width: 780px; margin-inline: auto; }

.page-hero { padding: 28px 0 24px; text-align: center; }
.page-hero p.lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Foto-Bögen */
.photo-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding-bottom: 56px; }
.photo-row a { flex: 0 1 270px; min-width: 200px; text-decoration: none; color: var(--ink); text-align: center; display: block; }
.photo-row img { width: 100%; height: 190px; object-fit: cover; border-radius: 140px 140px 20px 20px; display: block; margin-bottom: 10px; }
.photo-row span { font-family: var(--serif); font-weight: 600; font-size: 25px; }

/* Mondphasen */
.moons { display: block; margin: 0 auto 18px; }
.quote { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; max-width: 740px; margin: 0 auto; }
.band { padding: 8px 0 64px; text-align: center; }

/* Karten */
.cards { display: flex; flex-wrap: wrap; gap: 18px; }
.card { flex: 1 1 270px; min-width: 0; border-radius: 24px; padding: 28px; text-decoration: none; color: var(--ink); display: block; }
.card:hover { color: var(--ink); box-shadow: 0 6px 22px rgba(58, 51, 71, 0.12); transform: translateY(-2px); }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p { margin: 0 0 12px; }
.card strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.c-blush { background: var(--blush); } .c-sage { background: var(--sage); } .c-lilac { background: var(--lilac); }
.c-sand { background: var(--sand); } .c-mist { background: var(--mist); }
@media (prefers-reduced-motion: no-preference) { .card { transition: box-shadow .2s, transform .2s; } }
.section { padding: 0 0 64px; }
.section > .container > h2, .section > .narrow > h2 { text-align: center; }

/* Glas-Karten */
.glass { background: rgba(255, 255, 255, 0.78); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.badge { display: inline-block; background: var(--sand); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.badge.sage { background: var(--sage); }
.two { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two > * { flex: 1 1 340px; min-width: 0; }

/* Inhaltsseiten */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 0 36px; }
.subnav a { text-decoration: none; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--ink); }
.subnav a:hover { border-color: var(--gold); }
.topic { background: rgba(255, 255, 255, 0.78); border: 1px solid var(--line); border-radius: 28px; padding: 32px 36px; margin-bottom: 22px; scroll-margin-top: 20px; }
.topic h2 { text-align: left; font-size: 36px; }
.topic p:last-child { margin-bottom: 0; }
.cta-box { background: linear-gradient(135deg, var(--lilac) 0%, var(--sage) 100%); border-radius: 32px; padding: 40px 32px; text-align: center; margin: 24px 0 64px; }
.cta-box h2 { font-size: 36px; }
.cta-box p { max-width: 560px; margin: 0 auto 22px; }
.next-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding-bottom: 56px; }

/* Formulare */
.form-card { background: #fff; border-radius: 28px; padding: 32px; border: 1px solid var(--line); }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--field); background: #fff; color: var(--ink); min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field .hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.row2 { display: flex; flex-wrap: wrap; gap: 16px; }
.row2 > .field { flex: 1 1 220px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: inline-block; margin: 0; font-weight: 600; border: 1px solid var(--plum); border-radius: 16px; padding: 11px 18px; min-height: 46px; cursor: pointer; background: #fff; }
.chips input:checked + label { background: var(--plum); color: #fff; }
.chips input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 3px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 22px; height: 22px; margin-top: 4px; flex: none; accent-color: var(--plum); }
.check label { font-weight: 400; font-size: 15px; margin: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note { background: var(--sand); border-radius: 16px; padding: 14px 18px; font-size: 15px; }

/* Schritte (Terminanfrage) */
.stepper { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.stepper span { padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: #fff; border: 1px solid var(--line); }
.stepper span.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.js .step { display: none; }
.js .step.active { display: block; }
.step-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.linkbtn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 6px; }

/* Info-Streifen */
.contact-lines p { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--plum-dark); color: #EDE6F2; padding: 44px 0 28px; margin-top: 40px; }
.site-footer a { color: #EDE6F2; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.footer-grid h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; }
.footer-small { margin-top: 28px; font-size: 14px; color: #CFC5DA; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 18px; }

/* Rechtstexte */
.legal h2 { text-align: left; font-size: 30px; margin-top: 30px; }
.legal h3 { font-size: 22px; margin-top: 18px; }
.legal ul { padding-left: 22px; }

/* Responsive */
@media (max-width: 1599px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #FBF7F8; border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; flex-direction: column; align-items: stretch; gap: 6px; box-shadow: 0 10px 30px rgba(58, 51, 71, 0.15); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
  .nav .btn { margin-top: 6px; }
  .header-inner { position: relative; }
  .site-header .container { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 48px; width: 48px; }
  .brand-name { font-size: 23px; }
  .hero-emblem { width: 250px; height: 250px; }
  .hero-emblem img { height: 112px; }
  .topic, .form-card, .glass { padding: 24px 20px; }
  .photo-row a { flex-basis: 150px; min-width: 140px; }
  .photo-row img { height: 120px; border-radius: 80px 80px 14px 14px; }
  .photo-row span { font-size: 21px; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Intro ---------- */
.intro{position:fixed;inset:0;z-index:9999;background:linear-gradient(180deg,#2A2339,#4A3F5C);display:flex;align-items:center;justify-content:center;transition:opacity .8s ease;overflow:hidden}
.intro.out{opacity:0;pointer-events:none}
.intro-svg{width:100%;height:100%;overflow:visible;display:block}
.intro-skip{position:absolute;right:16px;bottom:16px;z-index:2;font:inherit;font-size:.9rem;font-weight:600;color:#F6EBD3;background:rgba(246,235,211,.12);border:1px solid rgba(246,235,211,.45);border-radius:999px;padding:10px 18px;min-height:44px;cursor:pointer}
.intro-skip:hover,.intro-skip:focus-visible{background:rgba(246,235,211,.25);outline:2px solid #F6EBD3;outline-offset:2px}
.intro-star{animation:introTw 4s ease-in-out infinite}
@keyframes introTw{0%,100%{opacity:.25}50%{opacity:.9}}
html.intro-on,html.intro-on body{overflow:hidden}
.no-intro .intro{display:none}
@media (prefers-reduced-motion:reduce){.intro{display:none}}

/* Buttons im Menü: Spezifität der Nav-Links überschreiben */
.nav a.btn { padding: 11px 22px; border: 1px solid var(--plum); }
.nav a.btn-primary { color: #fff; }
.nav a.btn-ghost { color: var(--plum); }
.intro-skip { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* Fieldsets in Formularen ohne Rahmen */
.form-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-card legend { padding: 0; margin-bottom: 8px; font-weight: 700; }

/* Zusatzqualifikationen */
.quals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.quals li { display: grid; grid-template-columns: 4.6em 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quals li:last-child { border-bottom: 0; }
.quals .yr { font-family: var(--serif); font-weight: 700; font-size: 1.15em; color: #86663F; font-variant-numeric: tabular-nums; }
.topic h2 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) { .topic h2 { font-size: 30px; } }

/* Startseite-Text, Kurs-Gruppen */
.hero-text { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.hero-text p { margin: 0 0 14px; }
.hero-text .signature { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--plum); margin-top: 18px; }
.group-title { font-size: 34px; margin: 38px 0 6px; text-align: left; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.badges .badge { margin: 0; }

/* Fotos */
.wide-photo { margin: 0 0 26px; }
.wide-photo img { width: 100%; height: auto; max-height: 380px; object-fit: cover; object-position: 60% 40%; display: block; border-radius: 160px 160px 22px 22px; box-shadow: 0 10px 30px rgba(58, 51, 71, 0.12); }
.portrait { display: flex; justify-content: center; margin: 0 0 18px; }
.portrait img { width: 210px; height: 210px; max-width: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 0 8px rgba(184, 149, 106, 0.18), 0 10px 26px rgba(58, 51, 71, 0.15); display: block; }
@media (max-width: 480px) { .wide-photo img { border-radius: 100px 100px 18px 18px; max-height: 260px; } }

.portrait-lg { margin: 0; }
.portrait-lg img { width: 320px; height: 320px; }
@media (max-width: 480px) { .portrait-lg img { width: 260px; height: 260px; } }

/* Sprachumschalter DE | EN */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--plum); border-radius: 999px; padding: 2px; flex: none; }
.nav .lang-switch a { padding: 5px 11px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--plum); line-height: 1.2; min-width: 38px; text-align: center; }
.nav .lang-switch a:hover { background: rgba(91, 75, 107, 0.1); }
.nav .lang-switch a[aria-current="true"] { background: var(--plum); color: #fff; }
@media (max-width: 1599px) { .nav .lang-switch { align-self: flex-start; margin-top: 10px; } }
.site-header .container { width: min(1560px, 100% - 48px); }
@media (min-width: 1400px) {
  .nav { gap: 12px; }
  .nav a.btn { padding: 10px 18px; }
  .header-inner { gap: 12px; }
}

/* Kopfzeile: Markenname bleibt frei, Menü rückt kompakter */
.brand { flex: none; }
@media (min-width: 1400px) and (max-width: 1599px) {
  .brand-name { font-size: 25px; }
  .brand img { height: 48px; width: 48px; }
  .nav { gap: 9px; }
  .nav a { font-size: 15px; }
  .nav a.btn { padding: 9px 15px; }
  .nav .lang-switch a { font-size: 12px; padding: 5px 9px; min-width: 34px; }
}
