/* ScanStudio – Webseite im Stil der App (Farben aus Theme.swift, Schrift wie in der App:
   Überschriften als Serifenschrift, Text in der Systemschrift). Keine Schriften oder Inhalte
   von fremden Servern – die Seite lädt nur Dateien aus diesem Ordner. */

:root {
  --accent: #C96442;
  --accent-strong: #B5553A;
  --accent-soft: #F5E3DA;
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --sidebar: #F2F0E8;
  --chip: #F0EEE6;
  --border: #E5E2D8;
  --text: #1F1E1D;
  --text-2: #73716A;
  --hero-from: #D27552;
  --mark: #FFF1A8;
  --mark-text: #5A4A00;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --wrap: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #D97757;
    --accent-strong: #E38A6C;
    --accent-soft: #4A332B;
    --bg: #262624;
    --surface: #30302E;
    --sidebar: #1F1E1D;
    --chip: #3A3A37;
    --border: #45443F;
    --text: #F5F4EE;
    --text-2: #A8A59C;
    --hero-from: #DE8664;
    --mark: #5C4F14;
    --mark-text: #FFF1A8;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--chip); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.site-nav .lang { border: 1px solid var(--border); font-size: 13px; letter-spacing: 0.04em; }

/* Startseite */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance;
}
.hero p.lead { font-size: 19px; color: var(--text-2); margin: 0 0 30px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
}
.button.primary { background: linear-gradient(135deg, var(--hero-from), var(--accent)); color: #fff; }
.button.primary:hover { color: #fff; filter: brightness(1.05); }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button.secondary:hover { color: var(--text); background: var(--chip); }
.button.soon { background: var(--accent-soft); color: var(--accent); cursor: default; }
.button svg { width: 18px; height: 18px; }
.hero-art { display: flex; justify-content: center; }
.hero-art .icon-frame {
  width: min(320px, 70vw); aspect-ratio: 1; border-radius: 22%; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(120, 60, 30, 0.35), 0 0 0 1px var(--border);
}
.hero-art img { display: block; width: 100%; height: 100%; }

.section { padding: 56px 0; }
.section h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance;
}
.section > .wrap > p.sub { color: var(--text-2); font-size: 18px; margin: 0 0 32px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.card .badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .badge svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card .tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  background: linear-gradient(135deg, var(--hero-from), var(--accent)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}

.privacy {
  background: var(--sidebar); border: 1px solid var(--border); border-radius: 26px;
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.privacy h2 { margin-bottom: 10px; }
.privacy p { color: var(--text-2); margin: 0 0 16px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 16px; font-weight: 500;
}
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

.cta { text-align: center; }
.cta .wrap > p { color: var(--text-2); margin: 0 auto 26px; max-width: 34em; }
.cta .actions { justify-content: center; }

/* Textseiten (Support, Datenschutz, Impressum, Abo) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px;
}
.doc h2 {
  font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.25;
  margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--border);
}
.doc h3 { font-size: 18px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { font-weight: 650; }
.doc p > strong:first-child { color: var(--text); }
.doc img.qr { display: block; width: 180px; height: 180px; margin-top: 10px; border-radius: 12px; background: #fff; padding: 10px; border: 1px solid var(--border); image-rendering: pixelated; }

/* Noch nicht ausgefüllt: gelb markiert, damit nichts übersehen wird. */
mark.offen {
  background: var(--mark); color: var(--mark-text); border-radius: 5px; padding: 1px 5px;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); background: var(--sidebar); padding: 32px 0 40px; margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--accent); }
.site-footer small { color: var(--text-2); font-size: 14px; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art .icon-frame { width: 112px; border-radius: 24px; }
  .privacy { grid-template-columns: 1fr; padding: 26px 20px; }
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; gap: 6px; padding-top: 12px; padding-bottom: 8px; }
  .site-nav {
    width: calc(100% + 24px); margin: 0 -12px; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 6px 12px; font-size: 14.5px; }
  .site-nav .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Auf dem Handy passt die Leiste so in eine Zeile; „Funktionen“ ist die Startseite selbst. */
  .site-nav a:first-child { display: none; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
