/* ==========================================================================
   Praxis Vera Popp – Logopädie & Legasthenie-Therapie Hameln
   Schriften lokal eingebunden (SIL Open Font License)
   ========================================================================== */

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

:root {
  --rosa: #f9d4ce;
  --mint: #dbf4f8;
  --weiss: #ffffff;
  --text: #333333;
  --text-hell: #555555;
  --schwarz: #000000;
  --grau-btn: #9a9a9a;
  --rand: #cfcfcf;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Segoe UI", Arial, sans-serif;
  --container: 58rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--rosa);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 1rem;
  font-feature-settings: "liga" 1, "dlig" 1;
}

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

.section { padding: 6rem 0; }
.contact { padding-left: 1.5rem; padding-right: 1.5rem; }
.bg-rosa  { background: var(--rosa); }
.bg-mint  { background: var(--mint); }
.bg-weiss { background: var(--weiss); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--schwarz); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  background: var(--schwarz);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.125rem;
  text-decoration: none;
  padding: .85rem 2.4rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover, .btn:focus-visible { background: #333; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #7aa7b0; outline-offset: 3px; }
.btn--grau { background: var(--grau-btn); }
.btn--grau:hover, .btn--grau:focus-visible { background: #7d7d7d; }
.btn-row { margin-top: 3.5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--rosa); }
.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2.4rem 4rem 1rem;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 3rem; }
.main-nav a {
  text-decoration: none;
  font-size: 1.1rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--text); }
.brand { font-size: 1.1rem; text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 11rem 0 0; }
.hero h1 {
  text-align: center;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.45;
  margin: 0;
}
.hero h1 span { display: block; }
.hero h1 em { font-style: italic; }
.hero .btn-row { margin-top: 9rem; padding-bottom: 1.5rem; }

/* ---------- Über mich ---------- */
.about .grid {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about p { text-align: center; max-width: 36rem; margin: 0 auto; font-size: 1.3rem; }
.about figure { margin: 0; justify-self: center; }
.about img { width: 411px; height: auto; }

/* ---------- Therapieplätze ---------- */
.places h2 { text-align: center; font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: 1.25rem; }
.places h2 em { font-style: italic; }
.places .lead { text-align: center; font-family: var(--serif); font-size: 1.75rem; margin: 0; }

/* ---------- Ist mein Kind hier richtig? ---------- */
.fit h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.fit ul { margin: 2rem 0 0; padding-left: 3.5rem; }
.fit li { padding-left: 1rem; }

/* ---------- Legasthenie ---------- */
.lrs h2 { text-align: center; font-size: clamp(2rem, 3vw, 2.75rem); }
.lrs .sub { font-weight: 700; margin-bottom: 2rem; }
.lrs p { margin: 0; }

/* ---------- Kontakt ---------- */
.contact .card {
  max-width: 104rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--weiss);
}
.contact .form-wrap { padding: 3rem 1.25rem 4rem; }
.contact h2 { font-size: clamp(2rem, 3vw, 2.9rem); padding: 0 1.25rem; margin-bottom: 3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1.15fr 1.3fr; gap: 1.6rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.field label { font-size: 1.3rem; margin-bottom: .7rem; }
.field input, .field textarea {
  font: inherit;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: .9rem 1rem;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.field input { height: 3.9rem; }
.field textarea { min-height: 11.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #7aa7b0; border-color: #7aa7b0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.3rem; line-height: 1.75; margin: 1.25rem 0 1.5rem; }
.consent input { margin-top: .6rem; width: 1rem; height: 1rem; flex: none; }
.privacy-note { font-size: 1.3rem; padding: 0 1rem; }
.submit-row { text-align: center; margin-top: 2rem; }

.form-status { margin: 1rem 0; padding: .9rem 1.1rem; border-radius: 8px; font-size: 1.05rem; }
.form-status.ok   { background: #e3f5e8; color: #1f5b2e; }
.form-status.fehler { background: #fde7e4; color: #8a2419; }

/* Karte: 2-Klick-Lösung */
.map { position: relative; min-height: 32rem; background: #e9eef0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 2rem 2.5rem; gap: 1rem;
  background:
    radial-gradient(circle at 62% 58%, rgba(214,69,65,.18) 0 10px, transparent 11px),
    repeating-linear-gradient(35deg, transparent 0 58px, rgba(255,255,255,.55) 58px 61px),
    repeating-linear-gradient(-55deg, transparent 0 96px, rgba(255,255,255,.65) 96px 100px),
    linear-gradient(160deg, transparent 0 40%, rgba(160,205,225,.45) 40% 46%, transparent 46%),
    #e8edef;
}
.map-consent .box { background: rgba(255,255,255,.95); padding: 1.75rem 2rem; border-radius: 12px; max-width: 28rem; box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.map-consent strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: .25rem; }
.map-consent p { font-size: .95rem; line-height: 1.55; margin: .5rem 0 1.25rem; color: var(--text-hell); }
.map-consent .btn { font-size: 1rem; padding: .7rem 1.8rem; }
.map-consent .alt { display: block; margin-top: .9rem; font-size: .95rem; }

/* ---------- Praxis-Info ---------- */
.info { text-align: center; }
.info h2 { font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: 1.5rem; }
.info address { font-style: normal; font-size: 1.3rem; line-height: 1.75; }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { padding: 5rem 0 3rem; text-align: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--text-hell); font-size: 1.05rem; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.page { background: var(--weiss); padding: 5rem 0; }
.page h1 { font-size: 2.75rem; }
.page h2 { font-size: 1.8rem; margin-top: 2.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about .grid, .contact .card { grid-template-columns: 1fr; }
  .about .grid { padding: 0 1.5rem; }
  .map { min-height: 26rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .field:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 1.05rem; }
  .section { padding: 4rem 0; }
  .site-header .inner { grid-template-columns: 1fr auto; padding: 1.25rem 1.25rem; }
  .brand { order: -1; font-size: 1.15rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; padding: .4rem;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 22px; height: 2px; background: var(--text); position: relative; content: "";
  }
  .nav-toggle .bars::before { position: absolute; top: -7px; }
  .nav-toggle .bars::after  { position: absolute; top: 7px; }
  .main-nav { grid-column: 1 / -1; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .9rem; padding: 1rem 0 .5rem; }
  .hero { padding-top: 5rem; }
  .hero .btn-row { margin-top: 4rem; text-align: center; }
  .btn-row { text-align: center; }
  .about p, .field label, .consent, .privacy-note, .info address { font-size: 1.1rem; }
  .about img { width: 100%; max-width: 360px; }
  .places .lead { font-size: 1.4rem; }
  .fit ul { padding-left: 1.25rem; }
  .fit li { padding-left: .25rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact .form-wrap { padding: 2.5rem 1rem 3rem; }
  .contact h2 { padding: 0; margin-bottom: 2rem; }
}

/* ---------- Rechtstexte ---------- */
.legal .container { max-width: 50rem; }
.legal h2 { font-size: 1.7rem; margin: 2.75rem 0 .75rem; }
.legal p, .legal li { font-size: 1.05rem; line-height: 1.7; }
.legal ul { padding-left: 1.4rem; margin: 0 0 1rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.site-footer a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 760px) { .legal h1 { font-size: 2.2rem; } .legal h2 { font-size: 1.45rem; } }

/* ---------- Unterseite Über mich ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--rosa); }
.about-hero picture, .about-hero img { display: block; width: 100%; height: 100%; }
.about-hero img { aspect-ratio: 934 / 503; object-fit: cover; object-position: 50% 30%; }
.about-page { padding: 6.5rem 0 8rem; }
.about-page .container { max-width: 102rem; padding: 0 4rem; }
.about-page h1 { text-align: center; font-size: clamp(2.2rem, 3.2vw, 3rem); margin-bottom: 5.5rem; }
.about-page p { font-size: 1.3rem; margin: 0; }
.about-page p + p { margin-top: 2.2rem; }
.about-page .btn-row { text-align: center; margin-top: 4rem; }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero img { aspect-ratio: 1599 / 984; }
}
@media (max-width: 760px) {
  .about-page { padding: 3.5rem 0 5rem; }
  .about-page .container { padding: 0 1.25rem; }
  .about-page h1 { margin-bottom: 2.5rem; }
  .about-page p { font-size: 1.1rem; }
}

/* ---------- Hero mit Hintergrundbild (Praxisfenster) ---------- */
.hero--bild {
  position: relative;
  background-color: var(--rosa);
  background-image: url("../img/praxisfenster.jpg");
  background-image: image-set(url("../img/praxisfenster.webp") type("image/webp"), url("../img/praxisfenster.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 40%;
  padding-bottom: 3rem;
}
.hero--bild::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(249,212,206,.55) 0%, rgba(249,212,206,.35) 45%, rgba(249,212,206,.6) 100%);
  pointer-events: none;
}
.hero--bild .container { position: relative; }
.hero--bild h1 { text-shadow: 0 0 18px rgba(255,255,255,.9), 0 0 4px rgba(255,255,255,.8); }

/* Über mich: Praxisfenster rechts neben dem Porträt */
.about-hero__bild {
  background-color: var(--rosa);
  background-image: url("../img/praxisfenster.jpg");
  background-image: image-set(url("../img/praxisfenster.webp") type("image/webp"), url("../img/praxisfenster.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
@media (max-width: 900px) { .about-hero__bild { display: none; } }
