/* =========================================================
   Kindertagespflege Gabriele Reinhard – Stylesheet
   Farben aus dem Logo abgeleitet (Blau / Rot / Petrol / Gelb)
   ========================================================= */

/* ---- Selbst gehostete Schriften (DSGVO-freundlich) ---- */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1d5e9e;
  --blue-dark: #174c80;
  --red: #c0473a;
  --teal: #1a8b9d;
  --yellow: #d4cf1e;

  --bg: #fbf7ef;
  --surface: #ffffff;
  --ink: #2c3a45;
  --muted: #62727d;
  --line: #ece4d6;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(29, 94, 158, 0.10);
  --shadow-hover: 0 12px 34px rgba(29, 94, 158, 0.16);

  --maxw: 1060px;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--blue-dark);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--blue); }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Logo-Motiv: drei aufsteigende Klötzchen ---------- */
.steps {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.steps span {
  display: block;
  width: 12px;
  border-radius: 3px;
}
.steps span:nth-child(1) { height: 9px;  background: var(--red); }
.steps span:nth-child(2) { height: 15px; background: var(--teal); }
.steps span:nth-child(3) { height: 22px; background: var(--yellow); }

/* ---------- Kopfbereich / Navigation ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue-dark);
}
.brand img { height: 52px; width: auto; }
.brand .brand-text { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.brand .brand-text small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.78rem; color: var(--muted); }

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav a:hover { background: #eef4fa; color: var(--blue-dark); }
.nav a[aria-current="page"] { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 360px at 85% -10%, rgba(26, 139, 157, 0.12), transparent 60%),
    radial-gradient(700px 320px at 0% 120%, rgba(212, 207, 30, 0.16), transparent 55%);
  padding: 3.4rem 0 3rem;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 16ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 48ch; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  margin-top: 0.6rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.btn-ghost:hover { background: #eef4fa; }

/* ---------- Sektionen ---------- */
.section { padding: 3rem 0; }
.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.section-head { margin-bottom: 1.6rem; }
.section-head .steps { margin-bottom: 0.8rem; }

.prose { max-width: 60ch; }
.prose p { color: #3b4853; }

/* ---------- Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }
.card .dot {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem; font-size: 1.3rem;
}

/* ---------- Kredo-Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile figure { margin: 0; }
.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0ece3;
}
.tile .tile-body { padding: 1.1rem 1.2rem 1.3rem; }
.tile h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Kontakt-Box ---------- */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  max-width: 460px;
}
.contact-box h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-box address { font-style: normal; color: var(--ink); }

/* ---------- Rechtstext (Impressum / Datenschutz) ---------- */
.legal { padding: 2.6rem 0 3rem; }
.legal .prose { max-width: 72ch; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; color: var(--blue); }
.legal h2:first-of-type { margin-top: 0.5rem; }
.legal p, .legal address { color: #3b4853; }
.legal .fill {
  background: #fff7d6;
  border: 1px dashed #d8c45a;
  border-radius: 6px;
  padding: 0.05rem 0.45rem;
  font-weight: 700;
  color: #7a6410;
}

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #dce8f3;
  margin-top: 2rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.6rem;
  padding-top: 2.2rem;
  padding-bottom: 1.4rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.9rem 0;
  font-size: 0.85rem;
  color: #b9cde0;
  text-align: center;
}

/* ---------- Fokus / Barrierefreiheit ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ---------- Responsiv ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .container { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .site-footer .container { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .tile:hover { transform: none; }
}
