/* Kindgericht – Website
   Farben wie in der App. Keine externen Schriften oder Skripte (DSGVO-freundlich). */

:root {
  --bg: #F2EDE0;          /* Beige (0.95, 0.93, 0.88) */
  --bg-soft: #EAE3D3;
  --card: #FBF8F1;
  --brown: #807366;       /* Dunkelbraun (0.5, 0.45, 0.4) */
  --brown-light: #A69989; /* Hellbraun (0.65, 0.6, 0.55) */
  --text: #383838;        /* (0.22, 0.22, 0.22) */
  --text-soft: #6B645C;
  --green: #598066;
  --orange: #D98C40;
  --red: #A65959;
  --line: #DDD4C3;
  --radius: 20px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(242, 237, 224, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brown); }

/* Sprachumschalter (Flagge) */
.logo { margin-right: auto; }
.nav { order: 1; }
.lang-switch { order: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 20px; border-radius: 8px; }
.lang-switch svg { width: 28px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.15); display: block; }
.lang-switch:hover svg { box-shadow: 0 0 0 2px var(--brown); }
.nav-toggle { order: 3; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brown); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 16px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: #6F6357; transform: translateY(-1px); }
.btn-soon { cursor: default; }
.btn-soon:hover { background: var(--brown); transform: none; }
.btn[hidden] { display: none; }
.btn-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--brown); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero p.lead { font-size: 19px; color: var(--text-soft); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 10px; font-size: 14px; color: var(--text-soft); }

/* ---------- iPhone-Mockup (nachgebautes Scan-Ergebnis) ---------- */
.phone {
  width: 300px; margin: 0 auto; /* Höhe richtet sich nach den Kacheln */
  background: #1f1f1f; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(80, 60, 40, .35), 0 0 0 1px rgba(0,0,0,.05);
}
.phone-screen {
  width: 100%; background: #DCD4C3; border-radius: 36px; overflow: hidden;
  padding: 44px 14px 18px; display: flex; flex-direction: column; gap: 8px; position: relative;
}
.phone-screen::before { /* Dynamic Island */
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #1f1f1f; border-radius: 20px;
}
.app-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.app-back { width: 30px; height: 30px; border-radius: 9px; background: var(--brown); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.app-title { flex: 1; text-align: center; line-height: 1.2; }
.app-title b { display: block; font-size: 13px; }
.app-title span { display: block; font-size: 10.5px; color: var(--text-soft); }
.app-title small { display: block; font-size: 9.5px; color: var(--text-soft); opacity: .8; }
.app-img { width: 34px; height: 40px; border-radius: 9px; background: #F4EFE3; border: 1.5px solid #C9BFAE; flex: none; display: grid; place-items: center; }
.app-img svg { width: 24px; height: 29px; }
.tile {
  border-radius: 12px; padding: 9px 12px; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.tile .who b { display: block; font-size: 13px; line-height: 1.2; }
.tile .who span { font-size: 10.5px; opacity: .9; }
.tile .rate { text-align: right; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.tile .rate small { display: block; font-weight: 400; font-size: 9.5px; opacity: .9; }
.tile.green { background: var(--green); }
.tile.orange { background: var(--orange); }
.tile.red { background: var(--red); }
.phone-screen { text-align: left; }
.app-list { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.app-btns { display: flex; flex-direction: column; gap: 8px; }
.app-btn { background: var(--brown); color: #fff; border-radius: 12px; text-align: center; padding: 11px; font-size: 12.5px; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 14px; }
.section-head p { color: var(--text-soft); font-size: 18px; text-wrap: balance; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 28px; position: relative;
  /* Nummer links, Überschrift rechts daneben, Text darunter */
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 12px; align-items: center; align-content: start;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 12px; background: var(--brown); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin: 0;
}
.step h3 { font-size: 20px; margin: 0; }
.step p { color: var(--text-soft); font-size: 16px; grid-column: 1 / -1; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  /* Symbol links, Überschrift rechts daneben, Text darunter */
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 10px; align-items: center; align-content: start;
}
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; margin: 0; }
.feature .ico svg { width: 24px; height: 24px; stroke: var(--brown); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin: 0; line-height: 1.3; }
.feature p { color: var(--text-soft); font-size: 15.5px; grid-column: 1 / -1; }

/* Ampel */
.traffic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.light { border-radius: var(--radius); padding: 28px; color: #fff; }
.light h3 { font-size: 22px; margin-bottom: 6px; }
.light p { opacity: .95; font-size: 16px; }
.light.green { background: var(--green); }
.light.orange { background: var(--orange); }
.light.red { background: var(--red); }

/* Bewertung */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split h3 { font-size: 22px; margin-bottom: 12px; }
.split p { color: var(--text-soft); margin-bottom: 14px; }
.rules { background: var(--card); border-radius: var(--radius); padding: 10px 24px; }
.rule { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.rule:last-child { border-bottom: 0; }
.rule .src { display: block; font-size: 12.5px; opacity: 0.6; margin-top: 2px; }
.pill { flex: none; font-size: 13px; font-weight: 600; color: #fff; padding: 3px 11px; border-radius: 999px; height: fit-content; }
.pill.red { background: var(--red); }
.pill.orange { background: var(--orange); }
.pill.brown { background: var(--brown-light); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shot { margin: 0; text-align: center; }
.shot img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 18px 40px -18px rgba(80, 60, 40, .45); border: 1px solid var(--line); }
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--text-soft); font-weight: 500; }

/* Datenschutz-Band */
.privacy-band { background: var(--brown); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.privacy-band svg { width: 64px; height: 64px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.privacy-band h2 { font-size: 28px; margin-bottom: 8px; }
.privacy-band p { opacity: .92; }
.privacy-band a { color: #fff; }

/* Datenschutz direkt unter dem Hero */
.privacy-top { padding-top: 0; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta p { color: var(--text-soft); margin-bottom: 28px; }

/* ---------- Textseiten (Datenschutz, Impressum, Support) ---------- */
.page { padding: 64px 0 88px; }
.page .container { max-width: 780px; }
.page h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.15; margin-bottom: 10px; letter-spacing: -0.015em; }
.page .meta { color: var(--text-soft); margin-bottom: 40px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }
.page h3 { font-size: 18px; margin: 24px 0 8px; }
.page p, .page li { margin-bottom: 12px; }
.page ul { padding-left: 22px; }
.placeholder { background: #F6E3C7; border-radius: 6px; padding: 1px 6px; font-weight: 600; color: #7a4b16; }

.faq details { background: var(--card); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brown); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding-bottom: 16px; margin: 0; }

.contact-card { background: var(--card); border-radius: var(--radius); padding: 32px; margin-top: 16px; }
.contact-card p { color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14.5px; color: var(--text-soft); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brown); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }

  .nav-toggle { display: block; }
  .lang-switch { margin-left: 0; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav a { padding: 16px; border-top: 1px solid var(--line); font-size: 17px; }
  .site-header.open .nav { max-height: 320px; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 40px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 270px; }
  .phone-screen { padding: 40px 11px 14px; }
  .app-list, .app-btns { gap: 6px; }
  .tile { padding: 7px 10px; }
  .app-btn { padding: 8px; font-size: 12px; }

  section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16px; }
  .steps, .features, .traffic { grid-template-columns: 1fr; gap: 14px; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shot img { border-radius: 18px; }
  .shot figcaption { font-size: 13px; margin-top: 8px; }

  .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; gap: 16px; border-radius: 22px; }
  .privacy-band svg { margin: 0 auto; }
  .privacy-band h2 { font-size: 24px; }

  .rule { font-size: 15px; }
  .page { padding: 40px 0 64px; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }
}

/* Hinweis auf englischen Rechtsseiten */
.lang-note { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* App-Store-Badge (schwarz, wie Apples Badge) */
.btn-appstore { background: #000; color: #fff; padding: 9px 22px 9px 16px; border-radius: 12px; gap: 10px; white-space: nowrap; }
.btn-appstore:hover { background: #222; }
.btn-appstore svg { width: 28px; height: 28px; }
.badge-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.badge-txt small { font-size: 12px; font-weight: 500; }
.badge-txt span { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.btn-appstore.btn-soon:hover { background: #000; }
.cta .btn { white-space: nowrap; }

/* Offizielle Store-Abzeichen (img/badge-*.svg|png) – gleiche Höhe für beide */
.store-badge { background: none !important; padding: 0 !important; border-radius: 0; }
.store-badge:hover { background: none; transform: translateY(-1px); }
.store-badge img { height: 48px; width: auto; display: block; }
.store-badge.btn-soon { opacity: .55; }
.store-badge.btn-soon:hover { transform: none; }
