/* Simi – simiapp.de. Verspielt, aber ruhig: dicke Konturen, harte Schatten, eine Akzentfarbe (Teal aus der App). */

@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --ink: #1d2327;
  --muted: #4c565b;
  --line: #1d2327;
  --accent: #0b6f72;       /* App-Teal, abgedunkelt für AA auf Weiß */
  --accent-ink: #ffffff;
  --mark: #ffd9cf;
  --mint: #d6f1ec;
  --sun: #fff0bf;
  --coral: #ffe0d8;
  --lilac: #e9e3ff;
  --sky: #dcecff;
  --deep: #0b4f51;
  --deep-ink: #f2fbfa;
  --shadow: 4px 4px 0 var(--line);
  --radius: 22px;
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191b;
    --surface: #1b2427;
    --ink: #eef3f2;
    --muted: #b4c0bf;
    --line: #000000;
    --accent: #5fd0c8;
    --accent-ink: #082829;
    --mark: #7a3b30;
    --mint: #1d3532;
    --sun: #3a3420;
    --coral: #3d2723;
    --lilac: #2a2640;
    --sky: #1e2c3d;
    --deep: #0e2f30;
    --deep-ink: #eef3f2;
    color-scheme: dark;
  }
  .card, .note, .cta-box, .btn, .pill, .bubble, .legal article { border-color: #3a4649; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3, .h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.brand img { border-radius: 10px; border: 2px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .nav-link { display: none; } }

/* Bausteine */
.pill {
  display: inline-block; margin: 0 0 18px; padding: 4px 14px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pill-light { background: transparent; border-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  border: 2px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 1rem; box-shadow: 3px 3px 0 var(--line); }

.mark { background: var(--mark); border-radius: 14px; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.fine { font-size: .95rem; color: var(--muted); margin-top: 16px; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero-art { position: relative; justify-self: center; width: min(78%, 400px); margin-top: 12px; }
.hero-art img { position: relative; width: 82%; margin: 0 auto; }
.blob { position: absolute; left: 4%; width: 92%; top: 50%; aspect-ratio: 1; transform: translateY(-46%); background: var(--mint); border: 2px solid var(--line); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; box-shadow: var(--shadow); }
.bubble {
  position: absolute; top: -4px; right: 0; margin: 0; padding: 8px 14px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px 16px 16px 4px; box-shadow: 3px 3px 0 var(--line);
  font-family: var(--display); font-weight: 500;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: float 5s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}

/* Funktionen */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 24px; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }
.c-mint { background: var(--mint); } .c-sun { background: var(--sun); } .c-coral { background: var(--coral); }
.c-lilac { background: var(--lilac); } .c-sky { background: var(--sky); }
.icon { width: 44px; height: 44px; padding: 9px; margin-bottom: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Privat */
.privacy { background: var(--deep); color: var(--deep-ink); }
.privacy-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .privacy-grid { grid-template-columns: 1.4fr 1fr; } .privacy-art { width: min(80%, 300px); } }
.privacy-art { justify-self: center; width: min(45%, 300px); }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; max-width: 36em; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--deep-ink); color: var(--deep); border-radius: 50%; font-weight: 700; font-size: .9rem;
}
.text-link { color: var(--deep-ink); font-weight: 600; text-underline-offset: 4px; display: inline-block; padding: 10px 0; }

/* Hinweis */
.note { display: grid; gap: 20px; padding: 28px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.note img { width: 96px; }
.note p:last-child { margin: 0; }
@media (min-width: 640px) { .note { grid-template-columns: auto 1fr; align-items: start; } .note img { width: 120px; } }

/* Schluss */
.cta { padding-top: 0; }
.cta-box { width: calc(100% - 32px); text-align: center; padding: 48px 24px; background: var(--sun); border: 2px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); max-width: 860px; }
.cta-box img { width: 160px; margin: 0 auto 12px; }
.cta-box .lead { margin: 0 auto 28px; }

/* Rechtliches */
.legal { padding-top: 32px; }
.legal nav { display: flex; gap: 20px; margin-bottom: 16px; }
.legal nav a { padding: 10px 0; font-weight: 600; }
.legal article { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 8px clamp(18px, 4vw, 40px) 28px; margin-bottom: 32px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-top: 24px; hyphens: auto; -webkit-hyphens: auto; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
mark.todo { background: #ffe58a; color: #1d2327; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Fuß */
.site-footer { border-top: 2px solid var(--line); padding: 28px 0 36px; font-size: .95rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-row a { color: var(--ink); padding: 10px 0; display: inline-block; }

/* Einwilligung */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; margin: 0 auto; max-width: 440px;
  padding: 20px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.25rem; margin-bottom: .3em; }
.consent p { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent-actions .btn { justify-content: center; padding: 10px 12px; font-size: 1.05rem; background: var(--surface); color: var(--ink); }
.link-button { white-space: nowrap; background: none; border: 0; padding: 10px 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.link-button[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .consent { border-color: #3a4649; } }
