/* ============================================================
   Regenbogenzwerge – Kindertagespflege Kerken-Nieukerk
   ============================================================ */

:root {
  --cream: #FFFBF5;
  --cream-2: #F7F1E6;
  --ink: #221E1B;
  --ink-soft: #6B6259;
  --line: #E8DFD1;
  --white: #fff;

  /* Markenfarben, direkt aus dem Logo abgetastet */
  --sage: #7FC7AA;
  --sage-soft: #B4E4CC;
  --gold: #D8A800;
  --rust: #C06030;
  --sky: #6FA8DC;
  --sky-soft: #B4D2F0;
  --navy: #0A5096;

  /* CTA-Rost, leicht abgedunkelt für AA-Kontrast auf Weiß (4.9:1) */
  --brand: #B05A2C;
  --brand-dark: #96491F;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 4px 20px rgba(46, 42, 38, .06);
  --shadow-lg: 0 18px 48px rgba(46, 42, 38, .10);
  --container: 1140px;

  --font: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; margin-bottom: .4em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 12px 0; text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 20px rgba(176, 90, 44, .28);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--ink); color: var(--ink); background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

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

#header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
#header.scrolled {
  background: rgba(255, 251, 245, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow);
}

.header-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.logo img { display: block; height: 40px; width: auto; }
.logo-text {
  font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1;
}
.logo-text span { color: var(--brand); }

#main-nav { display: flex; align-items: center; gap: .35rem; }
#main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .5rem .85rem; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
#main-nav a:hover { background: var(--cream-2); }
#main-nav .nav-cta {
  background: var(--brand); color: #fff; margin-left: .4rem;
  box-shadow: 0 6px 16px rgba(176, 90, 44, .26);
}
#main-nav .nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 14px;
  background: var(--white); box-shadow: var(--shadow);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
#mobile-nav.open { opacity: 1; visibility: visible; }
#mobile-nav a {
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 1.4rem;
  padding: .6rem 1.5rem; border-radius: 999px;
}
#mobile-nav .nav-cta {
  background: var(--brand); color: #fff; margin-top: .75rem; font-size: 1.15rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(9rem, 18vw, 12rem) 0 clamp(6rem, 12vw, 9rem);
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  overflow: hidden;
  text-align: center;
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(8px); opacity: .32;
}
.blob.b1 { width: 260px; height: 260px; background: var(--gold); top: -60px; left: -60px; }
.blob.b2 { width: 200px; height: 200px; background: var(--sky-soft); top: 18%; right: -70px; }
.blob.b3 { width: 160px; height: 160px; background: var(--sage-soft); bottom: 10%; left: 8%; }

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: .9rem;
}

.rainbow-text {
  /* etwas tiefere Stops als im Logo, damit die Schrift auf Creme lesbar bleibt */
  background: linear-gradient(95deg, #5FAE90, #C79600 30%, #B0552A 55%, #3B7CB8 78%, #0A5096);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
}

.hero-arc {
  position: absolute; left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 140%; height: 70px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ---------- USP strip ---------- */

.usp-strip { padding: 1rem 0 3.5rem; background: var(--cream); }
.usp-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.usp { text-align: center; }
.usp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 16%, var(--white));
  color: var(--c);
  margin-bottom: .8rem;
}
.usp-icon svg { width: 26px; height: 26px; }
.usp h3 { margin-bottom: .25em; }
.usp p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--cream-2); }

.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Two column ---------- */

.two-col {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.two-col-text p { color: var(--ink-soft); }
.two-col-text .btn { margin-top: .8rem; }
.two-col-rev .feature-list { order: 1; }

.two-col-card { display: flex; justify-content: center; }
.portrait-placeholder {
  width: 100%; max-width: 400px; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(216, 168, 0, .18), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(180, 210, 240, .45), transparent 55%),
    var(--white);
  border: 2px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; text-align: center; padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.portrait-placeholder .pp-logo {
  height: auto; width: min(78%, 260px); margin-bottom: .9rem;
}
.portrait-placeholder span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Cards ---------- */

.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--c);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 15%, var(--white));
  color: var(--c); margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 720px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 92px; top: 12px; bottom: 12px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--sage), var(--gold), var(--rust), var(--sky), var(--navy));
}
.timeline li {
  display: grid; grid-template-columns: 78px 32px 1fr;
  align-items: start; gap: 0;
  padding-bottom: 2rem;
}
.timeline li:last-child { padding-bottom: 0; }
.tl-time {
  text-align: right; padding-top: .3rem; padding-right: .25rem;
  font-weight: 900; font-size: .92rem; color: var(--ink-soft);
  white-space: nowrap;
}
.timeline li::after {
  content: ""; grid-column: 2; justify-self: center; margin-top: .55rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--c); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--c);
}
.tl-body { grid-column: 3; padding-left: 1.25rem; }
.tl-body p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.feature-list li {
  display: flex; align-items: center; gap: .9rem;
  background: var(--white);
  border-radius: 16px;
  padding: .95rem 1.25rem;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.feature-list li span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c); flex-shrink: 0;
}

/* ---------- Hours ---------- */

.hours-card {
  max-width: 640px; margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--sage), var(--gold), var(--rust), var(--sky), var(--navy)) 1;
}
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .9rem 0; text-align: left; }
.hours th { font-weight: 700; }
.hours td { text-align: right; font-weight: 800; }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours-note {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft); font-size: .92rem;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .85rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.03rem; font-weight: 800; color: var(--ink);
}
.faq-q svg {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--brand);
  transition: transform .25s ease;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.5rem;
  color: var(--ink-soft);
  font-size: .98rem;
}
.faq-item.open .faq-a > p { padding-bottom: 1.4rem; }

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

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--rust), var(--sky), var(--navy));
}
.contact-intro p { color: var(--ink-soft); }
.contact-intro h2 { margin-bottom: .5em; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.contact-list a { font-weight: 800; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.ci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 15%, var(--white));
  color: var(--c);
}
.ci svg { width: 22px; height: 22px; }

/* Placeholder marker – remove `todo` class once real data is filled in */
.todo {
  font-weight: 800;
  background: rgba(242, 201, 76, .35);
  border-bottom: 2px dashed var(--orange);
  padding: 0 .25rem; border-radius: 4px;
}

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

footer {
  background: var(--ink);
  color: rgba(255, 251, 245, .75);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 251, 245, .15);
}
.footer-top p { margin: 0; font-size: .95rem; }
.logo-footer { color: var(--cream); }
.logo-footer img { height: 42px; }
.logo-footer .logo-text span { color: var(--gold); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem;
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255, 251, 245, .75); text-decoration: none; }
.footer-legal a:hover { color: var(--cream); text-decoration: underline; }

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

.legal-page {
  width: min(100% - 2.5rem, 780px);
  margin: 0 auto;
  padding: 9rem 0 5rem;
}
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-page p, .legal-page li, .legal-page address {
  color: var(--ink-soft); font-style: normal;
}
.legal-page address { margin-bottom: 1.1em; }
.back-link {
  display: inline-block; margin-top: 3rem;
  font-weight: 800; text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

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

@media (max-width: 900px) {
  #main-nav { display: none; }
  .nav-toggle { display: flex; }
  .two-col, .contact-card { grid-template-columns: 1fr; }
  .two-col-rev .feature-list { order: 0; }
  .two-col-card { order: -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .logo img { height: 32px; }
  .logo-text { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 32px 1fr; }
  .tl-time {
    grid-column: 2; grid-row: 1; text-align: left;
    padding: 0 0 .15rem; font-size: .85rem;
  }
  .timeline li::after { grid-column: 1; grid-row: 1; margin-top: .35rem; }
  .tl-body { grid-column: 2; grid-row: 2; padding-left: 0; }
  .contact-list li { align-items: flex-start; }
}
