/* kcalculate.de — the one stylesheet. Colours are the app's (frontend/tamagui.config.ts): navy text on
   a pale blue ground, the electric blue of the logo as the accent; dark follows the device. Inter is
   served from this site (assets/fonts/, SIL OFL): no request leaves kcalculate.de. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/Inter_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/Inter_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/Inter_700Bold.ttf') format('truetype'); }

:root {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --text: #14213D;
  --muted: rgba(20, 33, 61, 0.7);
  --border: rgba(20, 33, 61, 0.12);
  --accent: #1662C9;
  --accent-fill: #1662C9;
  --on-accent: #FFFFFF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1222;
    --surface: #111B30;
    --text: #E8EEF8;
    --muted: rgba(232, 238, 248, 0.72);
    --border: rgba(232, 238, 248, 0.14);
    --accent: #4C9BFF;
    --accent-fill: #4C9BFF;
    --on-accent: #0B1222;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; }
.lang a { font-size: 15px; font-weight: 600; text-decoration: none; }

main.wrap { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 420px) { h1 { font-size: 27px; } }
h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.updated { color: var(--muted); margin-bottom: 24px; }

.summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; margin: 20px 0 8px;
}
.summary ul { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Landing page */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 8px auto 24px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--accent-fill); color: var(--on-accent);
}
.facts { list-style: none; padding: 0; max-width: 520px; margin: 32px auto 0; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--border); }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; padding-bottom: 28px; }
footer.site a { color: var(--muted); }
