/* =========================================================
   Städtische Kita Weiherhof – Konstanz
   Design-System & globale Styles (siehe phase2_markenanalyse.md, phase3_strategie.md)
   ========================================================= */

:root {
  /* Marken-Palette: #E40521 ist verifiziertes Konstanz-Rot (aus CSS der Stadtseite ausgelesen).
     Übrige Töne sind Gestaltungsvorschlag zur Abstimmung mit dem städtischen Designsystem
     (siehe phase2_markenanalyse.md, Abschnitt "Farben"). */
  --color-konstanz-red: #e40521;
  --color-konstanz-red-dark: #b5041a;
  --color-blue: #2e6e8e;
  --color-blue-dark: #204d64;
  --color-green: #5c8a5c;
  --color-green-light: #eaf1e6;
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-card: #f2ece0;
  --color-text: #2b2b29;
  --color-text-soft: #52514c;
  --color-border: #e3dccb;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(43, 43, 41, 0.08);
  --shadow-md: 0 12px 28px rgba(43, 43, 41, 0.12);
  --shadow-lg: 0 22px 54px rgba(43, 43, 41, 0.16);

  --container-w: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--color-konstanz-red);
  outline-offset: 3px;
  border-radius: 4px;
}

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

h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-text-soft); }
.lede { font-size: 1.15rem; color: var(--color-text); }
ul, ol { color: var(--color-text-soft); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--color-blue-dark); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  z-index: 1000; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-narrow { max-width: 760px; margin: 0 auto; }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-alt { background: var(--color-surface); }
.section-tint { background: var(--color-green-light); }

.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem; color: var(--color-konstanz-red);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-konstanz-red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-konstanz-red-dark); box-shadow: var(--shadow-md); color: #fff; }
.btn-secondary { background: var(--color-blue-dark); color: #fff; }
.btn-secondary:hover { background: var(--color-blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-blue-dark); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-blue-dark); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); color: var(--color-blue-dark); font-size: 1.05rem; }
.brand-text span { font-size: 0.72rem; color: var(--color-text-soft); letter-spacing: 0.03em; }

.nav-primary { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav-primary a {
  color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; padding: 8px 2px; border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--color-konstanz-red); border-color: var(--color-konstanz-red); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--color-blue-dark); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 108px) 0 clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  color: var(--color-konstanz-red); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero-badge svg { flex-shrink: 0; }
.hero h1 { margin-bottom: 0.4em; }
.hero-media-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.1;
  background: var(--color-card);
}
.hero-media {
  width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, -4%, 0) scale(1.02);
  will-change: transform;
}
.hero-media-caption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(43, 43, 41, 0.72);
  color: #fff; font-size: 0.78rem; padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-orbs {
  position: absolute; inset: -10% -10% auto auto; width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(228, 5, 33, 0.14), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(46, 110, 142, 0.16), transparent 60%);
  filter: blur(2px); pointer-events: none; will-change: transform; z-index: 0;
}
.hero-stats { display: flex; gap: clamp(20px, 4vw, 40px); margin-top: 36px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--color-blue-dark); }
.hero-stat span { font-size: 0.85rem; color: var(--color-text-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  background: var(--color-green-light); color: var(--color-green);
}

.pathway-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pathway-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); text-decoration: none; color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pathway-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--color-blue); }
.pathway-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-blue-dark); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.pathway-item h3 { margin-bottom: 2px; font-size: 1.05rem; }
.pathway-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table.hours { width: 100%; border-collapse: collapse; background: var(--color-surface); min-width: 520px; }
table.hours caption { text-align: left; padding: 16px 20px 0; font-weight: 700; color: var(--color-blue-dark); }
table.hours th, table.hours td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--color-border); }
table.hours thead th { background: var(--color-green-light); color: var(--color-blue-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.hours tbody tr:last-child td { border-bottom: none; }
table.hours td:first-child, table.hours th:first-child { font-weight: 600; }

/* ---------- Badge / Sprach-Kita ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge-red { background: rgba(228, 5, 33, 0.1); color: var(--color-konstanz-red-dark); }
.badge-green { background: var(--color-green-light); color: var(--color-green); }
.badge-blue { background: rgba(46, 110, 142, 0.12); color: var(--color-blue-dark); }

.callout {
  border-left: 4px solid var(--color-konstanz-red); background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.callout-blue { border-left-color: var(--color-blue); }
.callout-green { border-left-color: var(--color-green); }

.note-box {
  background: var(--color-card); border: 1px dashed var(--color-border);
  border-radius: var(--radius-md); padding: 18px 22px; font-size: 0.9rem; color: var(--color-text-soft);
}

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-blue-dark); line-height: 1.4; margin: 0 0 12px;
}
.quote-cite { font-size: 0.85rem; color: var(--color-text-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
details.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 6px 20px; box-shadow: var(--shadow-sm);
}
details.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; color: var(--color-blue-dark);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--color-konstanz-red); transition: transform 0.2s var(--ease); flex-shrink: 0;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Image with frame ---------- */
.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure iframe { width: 100%; height: 100%; border: 0; display: block; }
.figure-caption { font-size: 0.82rem; color: var(--color-text-soft); margin-top: 10px; }

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 48px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--color-text-soft); }

/* ---------- YouTube Zwei-Klick-Consent ---------- */
.yt-consent {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; background: var(--color-card); text-align: center; padding: 24px;
}
.yt-consent iframe { width: 100%; height: 100%; }

/* ---------- Maps ---------- */
.map-embed { border: none; width: 100%; height: 420px; border-radius: var(--radius-lg); }

/* ---------- Contact cards ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .k { font-weight: 700; color: var(--color-blue-dark); min-width: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-blue-dark); color: #dce7ec; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-grid ul a { text-decoration: none; color: #cfe0e7; }
.footer-grid ul a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: #b7cbd4;
}
.footer-disclaimer { font-size: 0.8rem; color: #b7cbd4; max-width: 640px; }

/* ---------- Draft notice ---------- */
.draft-notice {
  background: #fff3cd; border: 1px solid #f0d68a; color: #6b5311;
  border-radius: var(--radius-md); padding: 16px 22px; margin-bottom: 32px; font-size: 0.92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media-wrap { order: -1; aspect-ratio: 16/10; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-primary {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--color-bg);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 4px;
    transform: translateX(100%); transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .nav-primary a { display: block; width: 100%; padding: 14px 4px; font-size: 1.05rem; }
  body.nav-open .nav-primary { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
}
