@font-face {
  font-family: 'Baloo 2';
  src: url('/fonts/Baloo2-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #142230;
  --muted: #5b6670;
  --border: #e3e0d8;
  --accent: #1580ae;
  --accent-strong: #0f6a92;
  --accent-tint: #e6f2f8;
  --link: #0f6a92;
  --shadow: 0 1px 2px rgba(20, 34, 48, 0.05), 0 12px 32px rgba(20, 34, 48, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171d;
    --surface: #18222b;
    --text: #e8eef2;
    --muted: #9eadb8;
    --border: #273540;
    --accent: #4fb3e0;
    --accent-strong: #12709a;
    --accent-tint: #15303f;
    --link: #6cc3ea;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Kopf: Wortmarke und Sprachen */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent); }
.languages { display: flex; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.languages a, .languages span {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.languages a:hover { color: var(--text); background: var(--surface); }
.languages span { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border) inset; }

/* Startseite */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0; }

section { margin: 0 0 48px; }
h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}

.app {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.app img { border-radius: 22px; display: block; }
.app h3 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 2px 0 2px;
}
.app p { margin: 0 0 12px; }
.app .tagline { color: var(--accent-strong); font-weight: 600; }
@media (prefers-color-scheme: dark) { .app .tagline { color: var(--accent); } }
.app .status {
  display: inline-block;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 10px;
  background: var(--accent-tint);
}
.button {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent-strong);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #0c5677; }

.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principles li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.principles .icon { font-size: 1.6rem; line-height: 1; }
.principles h3 { font-size: 1.02rem; margin: 10px 0 4px; }
.principles p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.contact p { margin: 0; font-size: 1.1rem; }

/* Impressum, Datenschutz */
.legal { padding: 40px 0 24px; max-width: 40em; }
.legal h1 { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 2.2rem; line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--text); margin: 28px 0 6px; }
.legal p { margin: 0; }

.foot { border-top: 1px solid var(--border); margin-top: 24px; }
.foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding-top: 20px; padding-bottom: 28px; font-size: 0.9rem; color: var(--muted);
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 32px; }
  .app { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .app img { width: 72px; height: 72px; border-radius: 17px; }
  .principles { grid-template-columns: 1fr; }
}
