/* kinderzeit.de – einziges Stylesheet.
   Werte 1:1 aus design_handoff_kinderzeit (README + Prototyp). cqi bezieht sich wie im Prototyp
   auf den Seiten-Wrapper .page (container-type: inline-size). */

/* ---------- Schriften (lokal, SIL OFL, Subset latin) ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/sora-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/sora-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/sora-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/sora-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --creme: #FFF7EF;
  --aubergine: #2A1B2E;
  --text-2: #5E4F61;
  --text-legal: #3F3043;
  --beere: #B02A5E;
  --beere-hover: #8E1F4A;
  --gelb: #F4B53F;
  --sand: #F3E6D8;
  --weiss: #FFFFFF;
  --linie: #EADFD3;
  --feldrand: #E6D8CA;
  --footer-text: #E4D6E2;
  --gruen: #1E7465;
  --gruen-hell: #DDF0EC;
  --blau: #2C5BC0;
  --orange: #B0501F;
  --font-head: 'Sora', sans-serif;
  --font-text: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --shadow-card: 0 40px 80px -40px rgba(42, 27, 46, .4);
  --shadow-cta: 0 14px 30px -14px rgba(176, 42, 94, .7);
}

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--aubergine);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--beere); text-decoration: none; }
a:hover { color: var(--beere-hover); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
img { display: block; }
[hidden] { display: none !important; }

.page {
  container-type: inline-size;
  background: var(--creme);
  min-height: 100vh;
  overflow-x: clip;
}
/* Rechtsseiten: Footer sitzt bei wenig Inhalt unten */
.page--legal { display: flex; flex-direction: column; }
.page--legal > main { flex: 1 0 auto; }

.overline {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--beere);
}
.u-link { color: var(--beere); text-decoration: underline; }

/* ---------- Header-Mosaik (mobil zuerst, < 720px: 3 Bilder) ---------- */
.mosaic-wrap { max-width: 1440px; margin: 0 auto; padding: 12px 12px 0; }
.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 140px;
  gap: 10px;
}
.tile { position: relative; overflow: hidden; border-radius: 28px; }
.tile img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 50% 50%;
  will-change: transform;
}
.tile--herbst { grid-column: 1 / 3; grid-row: 1; background: #FDF0D2; }
.tile--lesen { grid-column: 1; grid-row: 2; background: #ECE6FA; }
.tile--ball { grid-column: 2; grid-row: 2; border-radius: 999px; background: #DDF0EC; }
.tile--ball img { object-position: 50% 40%; }
.tile--schatz { display: none; background: #FCE6DA; }
.tile--schatz img { object-position: 55% 60%; }
.tile--hoch { display: none; background: #FBE3EC; }
.deco { display: none; position: absolute; }
.deco--sonne {
  left: calc(28.3% - 34px);
  top: calc(clamp(150px, 17cqi, 260px) - 28px);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gelb);
  border: 6px solid var(--creme);
}
/* Viertelkreis mit Creme-Ring wie der gelbe Kreis, damit er sich sauber vom Foto absetzt.
   Gleicher Mittelpunkt und gleiche Beerenfläche (46px) wie im Handoff, Ring kommt außen dazu. */
.deco--beere {
  left: calc(71.7% - 32px);
  top: 22px;
  width: 58px;
  height: 58px;
  border-radius: 58px 0 0 0;
  background: var(--beere);
  border: 6px solid var(--creme);
}

@container (min-width: 720px) {
  .mosaic {
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    grid-template-rows: repeat(2, clamp(150px, 17cqi, 260px));
    gap: 12px;
  }
  .tile--herbst { grid-column: 1; grid-row: 1 / 3; border-radius: 999px 999px 32px 32px; }
  .tile--lesen { grid-column: 2; grid-row: 1; border-radius: 32px; }
  .tile--ball { grid-column: 3; grid-row: 1; }
  .tile--schatz { display: block; grid-column: 2 / 4; grid-row: 2; border-radius: 32px; }
  .tile--hoch { display: block; grid-column: 4; grid-row: 1 / 3; border-radius: 32px 32px 999px 999px; }
  .deco { display: block; }
}

/* ---------- Newsletter-Karte ---------- */
.newsletter {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: calc(-1 * clamp(40px, 7cqi, 104px)) auto 0;
  padding: 0 clamp(16px, 4cqi, 32px);
}
.nl-card {
  background: var(--weiss);
  border-radius: 40px;
  padding: clamp(32px, 6cqi, 80px) clamp(22px, 6cqi, 80px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.nl-logo { width: 100%; max-width: 500px; height: auto; }
.nl-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 5.2cqi, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
  max-width: 15em;
  text-wrap: balance;
}
.marker { box-shadow: inset 0 -0.26em 0 var(--gelb); }
.nl-lead {
  margin: 0;
  font-size: clamp(18px, 1.7cqi, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 36em;
  text-wrap: pretty;
}
.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
}
.topic {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--creme);
  border: 1px solid var(--linie);
  font-weight: 700;
  font-size: 15px;
}
.topic::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--punkt);
}
.topic--gesundheit { --punkt: var(--gruen); }
.topic--medien { --punkt: var(--beere); }
.topic--bildung { --punkt: var(--blau); }
.topic--praxis { --punkt: var(--orange); }

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--beere);
  color: var(--weiss);
  font-weight: 700;
  font-size: 19px;
  box-shadow: var(--shadow-cta);
}
.cta:hover { background: var(--beere-hover); color: var(--weiss); }
.cta-note { font-size: 17px; line-height: 1.5; color: var(--aubergine); max-width: 32em; }
.nl-foot {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 36em;
  padding-top: 18px;
  border-top: 1px solid var(--linie);
}

/* ---------- Kontakt ---------- */
.kontakt { margin-top: clamp(64px, 9cqi, 120px); background: var(--sand); }
.kontakt-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 8cqi, 104px) clamp(16px, 4cqi, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5cqi, 64px);
  align-items: start;
}
.kontakt-intro { display: flex; flex-direction: column; gap: 16px; }
.kontakt-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.6cqi, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.kontakt-text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 28em; }
.kontakt-card { background: var(--weiss); border-radius: 32px; padding: clamp(22px, 3.5cqi, 40px); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input,
.field textarea {
  border-radius: 14px;
  border: 1.5px solid var(--feldrand);
  font-weight: 400;
  background: var(--creme);
}
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.form-error { margin: 0; font-weight: 700; color: var(--beere); }
.form-error a { color: inherit; text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.btn-send {
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  background: var(--aubergine);
  color: var(--creme);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.btn-send:hover { background: var(--beere); color: var(--weiss); }
.btn-send:disabled { opacity: .6; cursor: progress; }
.form-hint { font-size: 14px; color: var(--text-2); }
/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.success {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
}
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gruen-hell);
  color: var(--gruen);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
}
.success-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.success-title:focus { outline: none; }
.success-text { color: var(--text-2); }
.btn-new {
  margin-top: 6px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--aubergine);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Rechtsseiten ---------- */
.legal {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px clamp(16px, 4cqi, 32px) clamp(64px, 9cqi, 112px);
}
.legal-head { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; }
.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--feldrand);
  background: var(--weiss);
  color: var(--aubergine);
  font-weight: 700;
}
.back:hover { border-color: var(--aubergine); color: var(--aubergine); }
.legal-head .overline { margin-top: 12px; }
.legal-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 6cqi, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}
.switch { display: flex; flex-wrap: wrap; gap: 8px; }
.switch a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid var(--feldrand);
  background: var(--weiss);
  color: var(--aubergine);
}
.switch a[aria-current="page"] { background: var(--aubergine); border-color: var(--aubergine); color: var(--creme); }
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--linie);
}
.legal-section h2 { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.25; margin: 0; }
.legal-section p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-legal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--aubergine); color: var(--footer-text); }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4cqi, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.footer-logo { display: flex; background: var(--creme); border-radius: 14px; padding: 8px 12px; }
.footer-logo img { height: 30px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--footer-text); }
.footer-nav a:hover { color: var(--gelb); }
