/* ==========================================================
   Honigbaum Kindertagespflege – gemeinsames Stylesheet
   Farben aus dem Logo: Honiggold, Orange, Grün, Blau, Lila
   ========================================================== */

:root {
  --honig: #E9A319;
  --honig-dunkel: #C9850B;
  --honig-hell: #FFF4D6;
  --creme: #FFFBF2;
  --orange: #EE7B1E;
  --gruen: #6BAA2E;
  --blau: #2E8FD6;
  --lila: #7E5CC8;
  --braun: #6B4524;
  --text: #4A3420;
  --text-hell: #7A6450;
  --weiss: #FFFFFF;
  --rand: #F1E3C2;
  --schatten: 0 10px 30px rgba(140, 90, 20, 0.12);
  --radius: 22px;
  --max: 1150px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--text);
  background: var(--creme);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--honig-dunkel); }

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 700;
  color: var(--braun);
  line-height: 1.2;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .6rem; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; }
p + p { margin-top: .9rem; }

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

/* ---------- Kopfbereich / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--honig);
  box-shadow: 0 2px 14px rgba(140, 90, 20, .08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 700; font-size: 1.6rem;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #F2B530, #C9850B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: .85rem; color: var(--braun); margin-top: 3px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 9px 15px; border-radius: 999px;
  text-decoration: none; color: var(--braun); font-weight: 700;
  transition: background-color 150ms ease, color 150ms ease;
}
.main-nav a:hover { background: var(--honig-hell); }
.main-nav a.active { background: var(--honig); color: var(--weiss); }

.nav-toggle {
  display: none; background: var(--honig); color: #fff; border: 0;
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.5rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 3px solid var(--honig);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 18px; }
  .main-nav a { padding: 12px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(233,163,25,.20), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(107,170,46,.14), transparent 40%),
    linear-gradient(180deg, #FFF8E6, var(--creme));
  padding: 70px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block; background: var(--weiss); color: var(--honig-dunkel);
  border: 2px solid var(--rand); padding: 6px 16px; border-radius: 999px;
  font-weight: 800; font-size: .9rem; margin-bottom: 18px;
}
.hero h1 span { color: var(--honig); }
.hero p.lead { font-size: 1.15rem; margin: 18px 0 28px; color: var(--text-hell); max-width: 560px; }
/* multiply blendet den weißen Bildhintergrund des Logos aus */
.hero-logo, .brand img { mix-blend-mode: multiply; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  background: var(--weiss); border: 2px solid var(--rand); border-radius: 999px;
  padding: 7px 16px; font-weight: 700; font-size: .95rem;
}

@media (max-width: 850px) {
  .hero { padding: 40px 0 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 320px; margin: 0 auto; order: -1; }
}

/* Unterseiten-Kopf */
.page-hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(233,163,25,.22), transparent 45%),
    linear-gradient(180deg, #FFF6DD, var(--creme));
  padding: 60px 0 50px; text-align: center;
}
.page-hero p { max-width: 680px; margin: 12px auto 0; color: var(--text-hell); font-size: 1.1rem; }

/* Waben-Trenner */
.honey-line {
  height: 14px; margin-top: -1px;
  background:
    linear-gradient(90deg, var(--honig) 0 20%, var(--orange) 20% 40%, var(--gruen) 40% 60%, var(--blau) 60% 80%, var(--lila) 80% 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  font-size: 1rem; font-family: inherit;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(180deg, #F2B530, var(--honig-dunkel)); color: #fff; box-shadow: 0 8px 18px rgba(201,133,11,.35); }
.btn-outline { background: var(--weiss); color: var(--braun); border: 2px solid var(--honig); margin-left: 8px; }

/* ---------- Abschnitte ---------- */
section { padding: 75px 0; }
.section-alt { background: var(--weiss); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 45px; }
.section-head p { color: var(--text-hell); }
.kicker {
  display: inline-block; font-weight: 800; color: var(--honig-dunkel);
  text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; margin-bottom: 6px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 950px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 55px 0; } }

/* Karten mit Wabe */
.card {
  background: var(--weiss); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--schatten); border-top: 6px solid var(--honig);
}
.section-alt .card { background: var(--creme); }
.card p { color: var(--text-hell); }
.card.c-orange { border-color: var(--orange); }
.card.c-gruen  { border-color: var(--gruen); }
.card.c-blau   { border-color: var(--blau); }
.card.c-lila   { border-color: var(--lila); }

.hex {
  width: 62px; height: 70px; margin-bottom: 16px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--honig);
}
.c-orange .hex, .hex.orange { background: var(--orange); }
.c-gruen .hex,  .hex.gruen  { background: var(--gruen); }
.c-blau .hex,   .hex.blau   { background: var(--blau); }
.c-lila .hex,   .hex.lila   { background: var(--lila); }

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  text-align: center; background: var(--weiss); border-radius: var(--radius);
  padding: 26px 14px; box-shadow: var(--schatten);
}
.stat strong { display: block; font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 2.5rem; color: var(--honig); line-height: 1.1; }
.stat span { color: var(--text-hell); font-weight: 700; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Checkliste */
.check-list { list-style: none; margin-top: 18px; }
.check-list li { position: relative; padding-left: 38px; margin-bottom: 12px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gruen); color: #fff; font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}

/* Bild-Platzhalter (bis echte Fotos eingefügt werden) */
.photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
  aspect-ratio: 4 / 3; background: var(--honig-hell);
  display: grid; place-items: center; text-align: center; color: var(--honig-dunkel);
  font-weight: 700; border: 3px dashed var(--rand); padding: 20px;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.has-img { border: 0; padding: 0; }
.photo .ph-icon { font-size: 3rem; display: block; }

/* Tagesablauf / Zeitleiste */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--honig), var(--orange), var(--gruen), var(--blau), var(--lila));
  border-radius: 4px;
}
.t-item { position: relative; display: flex; gap: 22px; margin-bottom: 22px; }
.t-item .hex { flex: 0 0 66px; width: 66px; height: 74px; margin: 0; font-size: 1.5rem; z-index: 1; }
.t-body { background: var(--weiss); border-radius: 18px; padding: 16px 22px; box-shadow: var(--schatten); flex: 1; }
.section-alt .t-body { background: var(--creme); }
.t-time { font-weight: 800; color: var(--honig-dunkel); font-size: .95rem; }

/* Tabelle */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--weiss); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rand); }
th { background: var(--honig); color: #fff; font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 1.05rem; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
details {
  background: var(--weiss); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px;
  box-shadow: var(--schatten); border-left: 6px solid var(--honig);
}
details summary { cursor: pointer; font-weight: 800; color: var(--braun); list-style: none; }
details summary::after { content: "+"; float: right; color: var(--honig); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--text-hell); }

/* Instagram-Hinweis */
.insta-box {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  background: var(--weiss); border-radius: 30px; padding: 40px; box-shadow: var(--schatten);
  border-top: 6px solid var(--lila);
}
.insta-box p { color: var(--text-hell); }
.insta-collage { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.insta-collage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.insta-collage img:nth-child(2) { transform: translateY(-14px); }
@media (max-width: 800px) { .insta-box { grid-template-columns: 1fr; padding: 28px 22px; } }

/* Echte Fotos */
.photo img { object-position: var(--pos, center); }
.photo-full { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.photo-full img { width: 100%; height: auto; }

/* Call-to-Action */
.cta {
  background: linear-gradient(135deg, #F6BC3A, var(--honig-dunkel));
  color: #fff; border-radius: 30px; padding: 50px 40px; text-align: center;
  box-shadow: 0 16px 40px rgba(201,133,11,.3);
}
.cta h2 { color: #fff; }
.cta p { max-width: 620px; margin: 10px auto 24px; opacity: .95; }
.cta .btn { background: #fff; color: var(--honig-dunkel); }

/* Kontakt */
.contact-box { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-box .hex { flex: 0 0 52px; width: 52px; height: 58px; margin: 0; font-size: 1.3rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--braun); }
input, select, textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--rand);
  font: inherit; color: var(--text); background: var(--creme); margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--honig); background: #fff; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 18px; }
.form-check input { width: auto; margin: 5px 0 0; }
.form-note { font-size: .88rem; color: var(--text-hell); margin-top: 10px; }
.map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten);
  background: var(--honig-hell); padding: 34px; text-align: center;
}

/* Rechtstexte */
.legal { max-width: 820px; margin: 0 auto; background: var(--weiss); border-radius: var(--radius); padding: 45px; box-shadow: var(--schatten); }
.legal h2 { font-size: 1.5rem; margin: 30px 0 10px; }
.legal h3 { font-size: 1.15rem; margin: 20px 0 6px; }
.legal ul { margin: 10px 0 10px 22px; }
.legal .hinweis { background: var(--honig-hell); border-left: 5px solid var(--honig); padding: 14px 18px; border-radius: 10px; font-size: .95rem; margin-bottom: 20px; }
@media (max-width: 600px) { .legal { padding: 26px 20px; } }

/* ---------- Fußbereich ---------- */
.site-footer { background: #5A3A1E; color: #F6E7CC; padding: 55px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 35px; }
.site-footer h4 { color: var(--honig); font-size: 1.2rem; margin-bottom: 12px; }
.site-footer a { color: #F6E7CC; text-decoration: none; }
.site-footer a:hover { color: var(--honig); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-logo { background: #fff; border-radius: 18px; padding: 8px; width: 110px; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 40px; padding: 18px 0; border-top: 1px solid rgba(246,231,204,.2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Hintergrundbild für die Kopfbereiche ---------- */
.hero, .page-hero {
  background:
    linear-gradient(rgba(255, 251, 242, .45), rgba(255, 251, 242, .45)),
    url("../bilder/hintergrund.webp") center bottom / cover no-repeat;
}
.page-hero { padding: 80px 0 90px; }
@media (max-width: 850px) {
  .hero, .page-hero { background-position: center bottom, 20% bottom; }
}

/* ---------- Fotos ---------- */
.photo.has-img { aspect-ratio: 4 / 5; }
.photo.has-img.mini { aspect-ratio: 16 / 10; max-width: 380px; margin-top: 22px; }
.photo.has-img img { transition: transform 250ms var(--ease-out); }
.room { margin-bottom: 80px; }
.room:last-child { margin-bottom: 0; }

/* Feste & Feiern */
.feste-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feste-fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--schatten); }
.feste-fotos img:nth-child(2) { transform: translateY(28px); }

/* Karte (Google Maps, erst nach Klick) */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); background: var(--honig-hell); aspect-ratio: 4 / 3; margin-top: 20px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { height: 100%; display: grid; place-items: center; text-align: center; padding: 26px; }
.map-consent p { font-size: .9rem; color: var(--text-hell); margin: 10px 0 16px; }

/* ---------- Hover nur mit Maus ---------- */
@media (hover: hover) and (pointer: fine) {
  .card, .stat { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .card:hover, .stat:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(140, 90, 20, 0.16); }
  .photo.has-img:hover img { transform: scale(1.03); }
}

/* ---------- Sanftes Einblenden beim Scrollen ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .btn, .card, .stat, .photo.has-img img { transition: none; }
  .btn:hover, .card:hover, .stat:hover { transform: none; }
  .photo.has-img:hover img { transform: none; }
  .feste-fotos img:nth-child(2) { transform: none; }
}
