/* =====================================================
   Kitaerfahrung.com - Design-System "Tannengruen"
   Tinte Tannengruen / Schilf-Flaechen / Akzent Beere
   Eine Schrift: Plus Jakarta Sans (selbst gehostet)
   ===================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  --tinte: #1c4a3a;        /* Ueberschriften, Kopf, Fuss */
  --tinte-soft: #2d5f4d;
  --moos: #3f7d5f;         /* Links, Nummern, Hover */
  --text: #22302a;
  --muted: #5a6a62;
  --schilf: #e4eee6;       /* getoente Flaechen */
  --schilf-2: #d3e2d7;
  --papier: #fbfaf7;       /* Seitenhintergrund */
  --weiss: #ffffff;
  --linie: #d8ddd9;
  --beere: #b8324f;        /* einziger Akzent: Buttons, Herzen */
  --beere-dunkel: #9a2741;
  --beere-hell: #f6e4e8;
  --radius: 10px;
  --radius-lg: 18px;
  --font: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--papier);
}
h1, h2, h3 { font-family: var(--font); color: var(--tinte); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(23px, 3.2vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--moos); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--moos); outline-offset: 2px;
}
img, svg { vertical-align: middle; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Header (dunkelgruen) --- */
.site-header { background: var(--tinte); color: #f3f7f4; }
.site-header .bar {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 24px; padding: 16px 24px; min-height: 72px;
}
.logo {
  font-weight: 700; font-size: 24px; letter-spacing: -0.01em;
  text-decoration: none; color: #f3f7f4; white-space: nowrap; display: inline-flex; align-items: baseline;
}
.logo .dot, .brand .dot {
  display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%;
  background: var(--beere); margin-left: 0.18em; transform: translateY(-0.05em);
}
.main-nav { display: flex; gap: 26px; align-items: center; margin-left: auto; order: 2; }
.main-nav a { text-decoration: none; color: #f3f7f4; font-weight: 500; font-size: 15.5px; opacity: 0.92; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; opacity: 1; }
.nav-cta {
  order: 3; text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap;
  background: var(--beere); color: #fff; padding: 10px 18px; border-radius: var(--radius);
}
.nav-cta:hover { background: var(--beere-dunkel); }

/* --- Hero (ruhig, Papier) --- */
.hero { background: var(--papier); border-bottom: 1px solid var(--linie); }
.hero-inner { padding: 64px 0 56px; max-width: 740px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin-top: 18px; }
.hero .eyebrow { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

/* --- Suchfeld mit Live-Vorschlaegen --- */
.search-form { display: flex; gap: 10px; max-width: 580px; margin-top: 28px; position: relative; }
.search-form input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 17px; font-family: var(--font);
  border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--weiss); color: var(--text);
}
.search-form input:focus { border-color: var(--moos); outline: 3px solid rgba(63,125,95,0.22); outline-offset: 0; }
.search-form button {
  padding: 14px 24px; font-size: 17px; font-weight: 600; font-family: var(--font);
  border: 0; background: var(--beere); color: #fff; border-radius: var(--radius); cursor: pointer;
}
.search-form button:hover { background: var(--beere-dunkel); }
.ac-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(28,74,58,0.14); overflow: hidden; text-align: left;
}
.ac-item { display: block; padding: 10px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--linie); }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.is-active { background: var(--schilf); }
.ac-name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--tinte); }
.ac-meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ac-all { font-weight: 600; color: var(--moos); font-size: 14.5px; background: var(--papier); }
.hero .hint { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.hero .hint a { color: var(--moos); }

/* --- Zahlenzeile --- */
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 34px; }
.stats .stat b { display: block; font-weight: 700; font-size: 26px; color: var(--tinte); letter-spacing: -0.02em; }
.stats .stat span { font-size: 14.5px; color: var(--muted); }

/* --- Kita-Arten als Textleiste --- */
.types-bar { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 18px 0; }
.types-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.types-bar span { color: var(--muted); }
.types-bar a { text-decoration: none; font-weight: 500; color: var(--tinte); padding: 2px 0; border-bottom: 1.5px solid transparent; }
.types-bar a:hover { border-color: var(--moos); }

/* --- Abschnitte --- */
.section { padding: 64px 0; }
.section.alt { background: var(--schilf); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

/* --- Schritte (So funktioniert's, echte Reihenfolge) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
             background: var(--tinte); color: #fff; font-weight: 700; font-size: 19px; line-height: 1; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* --- Aufruf-Zeile --- */
.cta-row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-row h2 { margin-bottom: 6px; }
.cta-row p { margin: 0; color: var(--muted); max-width: 36em; }

/* --- Herzen (Signatur-Element) --- */
.hearts { display: inline-flex; gap: 3px; }
.hearts svg { width: 19px; height: 19px; }
.hearts .fill { fill: var(--beere); }
.hearts .empty { fill: none; stroke: var(--beere); stroke-width: 1.5; }

/* --- Bestaetigt-Badge --- */
.badge-verified {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--moos); color: var(--tinte);
  border-radius: 6px; padding: 3px 10px;
  font-size: 13px; font-weight: 600; background: var(--schilf);
}

/* --- Suchergebnisse --- */
.result-list { display: grid; gap: 12px; max-width: 780px; }
.result {
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px 20px; background: var(--weiss);
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.result:hover { border-color: var(--moos); }
.result h3 { color: var(--tinte); }
.result .meta { font-size: 14.5px; color: var(--muted); }
.result .no-rating { font-size: 14px; color: var(--muted); }
.result .rating-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14.5px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--beere); color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 11px 20px; border-radius: var(--radius); border: none; cursor: pointer;
  font-family: var(--font); white-space: nowrap;
}
.btn:hover { background: var(--beere-dunkel); }
.btn.ghost { background: transparent; color: var(--tinte); border: 1.5px solid var(--tinte); }
.btn.ghost:hover { background: var(--schilf); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.gelb { background: var(--tinte); color: #fff; }
.btn.gelb:hover { background: var(--tinte-soft); }

.notice {
  border: 1px solid var(--linie); border-left: 4px solid var(--moos);
  background: var(--weiss); border-radius: 8px; padding: 14px 18px;
  font-size: 15.5px; max-width: 780px;
}
.notice.error { border-left-color: var(--beere); margin-bottom: 22px; }

/* --- Footer (dunkelgruen) --- */
.site-footer { background: var(--tinte); color: #cfdcd4; margin-top: 64px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 26px; }
.site-footer .brand { font-weight: 700; font-size: 20px; color: #fff; display: inline-flex; align-items: baseline; }
.site-footer .col-title { font-weight: 600; color: #fff; margin-bottom: 8px; }
.site-footer a { color: #cfdcd4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.14); padding: 16px 0 22px; font-size: 13.5px; color: #9fb5aa; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* --- Formulare (Bewertung) --- */
.form-card { border: 1px solid var(--linie); border-radius: var(--radius-lg); background: var(--weiss); padding: 28px; max-width: 780px; }
.form-row { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.form-label { display: block; font-weight: 600; color: var(--tinte); margin-bottom: 7px; font-size: 15.5px; }
.req { color: var(--beere); }
.form-card input[type=text], .form-card input[type=email],
.form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--font);
  border: 1.5px solid var(--linie); border-radius: 8px; background: var(--weiss); color: var(--text);
}
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--moos); outline: 3px solid rgba(63,125,95,0.2); outline-offset: 0;
}
.check-row label { font-size: 14.5px; color: var(--muted); line-height: 1.55; display: block; }
.check-row input { margin-right: 6px; }

/* Herzen-Eingabe (CSS-only, Reihenfolge umgekehrt fuer Hover-Logik) */
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; }
.rate label svg { width: 30px; height: 30px; }
.rate label svg path { fill: none; stroke: var(--beere); stroke-width: 1.4; transition: fill 0.12s ease; }
.rate label:hover svg path,
.rate label:hover ~ label svg path,
.rate input:checked ~ label svg path { fill: var(--beere); }
.rate input:focus-visible + label svg { outline: 3px solid var(--moos); border-radius: 4px; }

/* --- Kita-Seite --- */
.kita-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.kita-grid h2 { margin-bottom: 22px; }
.review-card { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); padding: 18px 20px; margin-bottom: 14px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-head .role { color: var(--tinte); font-size: 13.5px; font-weight: 600; background: var(--schilf); border-radius: 12px; padding: 2px 10px; }
.review-head .date { color: var(--muted); font-size: 13.5px; }
.review-details { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.facts { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--weiss); padding: 20px 22px; }
.facts h3 { margin-bottom: 12px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th { text-align: left; vertical-align: top; width: 128px; font-weight: 500; color: var(--muted); padding: 9px 12px 9px 0; }
.facts-table td { padding: 9px 0; color: var(--text); }
.facts-table tr + tr th, .facts-table tr + tr td { border-top: 1px solid var(--linie); }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .detail-val { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--tinte); }
.detail-row .hearts svg { width: 16px; height: 16px; }

/* --- Ja/Nein-Fragen und Auswertung --- */
.janein { display: flex; gap: 18px; flex-wrap: wrap; padding: 6px 0; }
.janein label { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; cursor: pointer; }
.janein-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: -6px 0 22px; }
.janein-stats div { display: flex; align-items: center; gap: 12px; }
.janein-stats b { font-size: 30px; font-weight: 700; color: var(--tinte); letter-spacing: -0.02em; line-height: 1; }
.janein-stats span { font-size: 14.5px; color: var(--text); line-height: 1.3; }
.janein-stats small { color: var(--muted); font-size: 13px; }
.review-flags { margin: 8px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.review-flags span { font-size: 13px; font-weight: 600; border-radius: 6px; padding: 3px 9px; }
.review-flags .ja { background: var(--schilf); color: var(--tinte); }
.review-flags .nein { background: var(--beere-hell); color: var(--beere-dunkel); }
.review-label { margin: 12px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* --- Kita-Hero mit Screenshot --- */
.kita-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px 36px; padding: 48px 0 44px; }
.kita-hero-info { max-width: 640px; }
.kita-shot { display: block; width: 300px; max-width: 300px; flex-shrink: 0; text-decoration: none;
             border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: var(--weiss); }
.kita-shot img { width: 100%; height: auto; display: block; }
.kita-shot span { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--tinte); padding: 8px 10px; border-top: 1px solid var(--linie); }
.kita-shot:hover { border-color: var(--moos); }

/* --- Weitere Kitas (interne Verlinkung) --- */
.nearby { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--linie); }
.nearby h2 { margin-bottom: 16px; }
.nearby ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.nearby li { font-size: 15.5px; }
.nearby .muted { color: var(--muted); font-size: 13.5px; }

/* --- Ratgeber: weisse Kacheln im Raster --- */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; gap: 6px; background: var(--weiss); border: 1px solid var(--linie);
                border-radius: var(--radius); padding: 22px 22px 20px; text-decoration: none; }
.article-card:hover { border-color: var(--moos); box-shadow: 0 6px 20px rgba(28,74,58,0.08); }
.article-card .cat { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--moos); order: -1; }
.article-card h2, .article-card h3 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 600; color: var(--tinte); }
.article-card p { color: var(--muted); font-size: 15px; margin: 0; }
.article-card .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--beere); }
.article-body { max-width: 760px; }
.article-body h1 { margin-bottom: 18px; }
.article-body h2 { margin-top: 36px; }
.article-body h3 { margin-top: 26px; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.75; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-cta { margin-top: 44px; border-radius: var(--radius-lg); background: var(--schilf); padding: 24px 26px; }
.article-cta h3 { margin-bottom: 6px; }
.article-cta p { margin-bottom: 14px; color: var(--muted); }

/* --- Ratgeber-Kategorien (nuechterne Themenleiste) --- */
.cat-nav { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--linie); }
.cat-nav-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.cat-nav li { padding: 0 16px 0 0; margin: 0 16px 6px 0; border-right: 1px solid var(--linie); line-height: 1.2; }
.cat-nav li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.cat-nav a { color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 16px; }
.cat-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cat-block { margin-bottom: 52px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.cat-head h2 { margin: 0 0 4px; }
.cat-head h2 a { color: var(--tinte); text-decoration: none; }
.cat-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 560px; }

/* --- Seitennavigation der Suche --- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--linie); flex-wrap: wrap; }
.pager-btn { text-decoration: none; font-weight: 600; color: var(--tinte); border: 1.5px solid var(--tinte); border-radius: var(--radius); padding: 9px 16px; }
.pager-btn:hover { background: var(--tinte); color: #fff; }
.pager-info { color: var(--muted); font-size: 14.5px; margin: 0 auto; }

/* --- Responsiv --- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .hero-inner { padding: 44px 0 40px; }
  .result { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .kita-grid { grid-template-columns: 1fr; }
  .kita-hero { flex-direction: column; align-items: flex-start; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .cta-row { grid-template-columns: 1fr; }
  .nearby ul { grid-template-columns: 1fr; }
  .kita-shot { width: 100%; max-width: 340px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Header: Logo + Button in Zeile 1, Textlinks als Leiste in Zeile 2 */
  .site-header .bar { flex-wrap: wrap; gap: 0 12px; padding: 12px 24px 0; }
  .logo { font-size: 22px; }
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: 14.5px; }
  .main-nav { order: 4; width: 100%; margin: 12px 0 0; gap: 22px; padding: 10px 0 12px; border-top: 1px solid rgba(255,255,255,0.16); }
  .main-nav a { font-size: 15px; }
  .search-form { flex-direction: column; }
  .site-footer .cols { grid-template-columns: 1fr; }
  /* Ratgeber-Themenbereiche als Chips */
  .cat-nav li { border: 1px solid var(--linie); border-radius: 999px; padding: 7px 13px; margin: 0 8px 8px 0; background: var(--weiss); }
  .cat-nav li:last-child { padding-right: 13px; }
  .cat-nav a { font-size: 15px; }
  .cat-nav a:hover { text-decoration: none; }
}
/* --- Ratgeber: redaktionelle Einleitung, Textabschnitt, Artikel-Metazeile --- */
.ratgeber-intro { max-width: 760px; margin-top: 22px; }
.ratgeber-intro p { font-size: 16.5px; line-height: 1.7; color: var(--text); margin: 0 0 0.9em; }
.ratgeber-intro p:last-child { margin-bottom: 0; }
.home-text { max-width: none; }
.home-text h2 { margin-bottom: 18px; }
.home-text p { font-size: 17px; line-height: 1.75; color: var(--text); margin: 0 0 1em; }
.home-text p:last-child { margin-bottom: 0; }
.home-text-links { font-weight: 600; }
.home-text-links a { text-decoration: none; }
.home-text-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-meta { color: var(--muted); font-size: 14px; margin: -8px 0 22px; }

/* --- Startseite: Illustration rechts neben dem Hero-Text --- */
/* Nur die Startseite hat die Illustration; Kita-Seite, Suche und Ratgeber bleiben einspaltig */
.hero .wrap.hero-home,
.hero .wrap:has(> .hero-art) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero-art { width: 100%; max-width: 440px; margin-left: auto; }
.hero-art img { display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 520 / 420; }
@media (max-width: 900px) {
  .hero .wrap.hero-home,
  .hero .wrap:has(> .hero-art) { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
