@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1b2730;
  --ink-soft: #4f5f68;
  --ink-faint: #818f96;
  --accent: #0e7fb0;
  --accent-ink: #0b5f85;
  --accent-soft: #eaf6fc;
  --pastel: #a8e1fd;
  --border: #ddd8ce;
  --note-bg: #fbf3e3;
  --note-border: #e6d3a3;
  --note-ink: #6b5423;
  --shadow: 0 1px 2px rgba(20, 30, 36, 0.04), 0 8px 24px rgba(20, 30, 36, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1620;
    --surface: #15222f;
    --ink: #e7eef2;
    --ink-soft: #aab9c2;
    --ink-faint: #71818a;
    --accent: #6fc6ef;
    --accent-ink: #9adaf2;
    --accent-soft: #16314a;
    --pastel: #184967;
    --border: #243543;
    --note-bg: #241f14;
    --note-border: #4a3c1e;
    --note-ink: #d9be82;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #0e1620;
  --surface: #15222f;
  --ink: #e7eef2;
  --ink-soft: #aab9c2;
  --ink-faint: #71818a;
  --accent: #6fc6ef;
  --accent-ink: #9adaf2;
  --accent-soft: #16314a;
  --pastel: #184967;
  --border: #243543;
  --note-bg: #241f14;
  --note-border: #4a3c1e;
  --note-ink: #d9be82;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); }

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  text-wrap: balance;
  margin: 0 0 12px;
}

.top {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.top a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.top .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.top .mark img { width: 100%; height: 100%; object-fit: cover; }

.top .name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.top nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.top nav a:hover { color: var(--accent-ink); }

main { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.wide { max-width: 1040px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.appstore-badge img { height: 44px; width: auto; display: block; }
.appstore-badge:hover { opacity: 0.85; }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

footer {
  max-width: 1040px;
  margin: 80px auto 0;
  padding: 28px 24px 48px;
  color: var(--ink-faint);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
}

footer a { color: var(--ink-faint); }
footer a:hover { color: var(--accent-ink); }

footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Rechtstext-/Dokument-Seiten (Datenschutz) --- */

.doc-header { padding: 48px 0 8px; }

.doc-header .lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0 0 6px;
}

.meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-faint);
}
.meta strong { color: var(--ink-soft); font-weight: 600; }

nav.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 34px 0 8px;
}
nav.toc .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
nav.toc ol {
  columns: 2;
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
nav.toc li { break-inside: avoid; margin-bottom: 8px; }
nav.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  display: flex;
  gap: 8px;
}
nav.toc a:hover { color: var(--accent-ink); }
nav.toc a .n {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  width: 1.2em;
  flex-shrink: 0;
}

section.clause {
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}
section.clause:last-of-type { border-bottom: none; }

.clause-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.clause-num {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.clause h2 { font-size: 1.4rem; }
.clause p { margin: 0 0 14px; color: var(--ink); }
.clause p:last-child { margin-bottom: 0; }
.clause p.soft { color: var(--ink-soft); }
.clause ul { margin: 0 0 14px; padding-left: 1.3em; }
.clause ul:last-child { margin-bottom: 0; }
.clause li { margin-bottom: 7px; color: var(--ink); }
.clause li:last-child { margin-bottom: 0; }
.clause li strong { color: var(--ink); font-weight: 600; }

.servicebox {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 14px;
  font-size: 15px;
}
.servicebox .who { font-weight: 600; color: var(--accent-ink); margin-bottom: 4px; }
.servicebox p { margin: 0; color: var(--ink-soft); }

/* --- FAQ (Support-Seite) --- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); margin: 0; }

.contact-card {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 28px 0 40px;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); margin: 0 0 14px; }

@media (max-width: 520px) {
  nav.toc ol { columns: 1; }
  .clause-head { flex-direction: column; gap: 4px; }
}
