:root {
  --bg: #f7f5f0;
  --surface: #fffdf9;
  --surface-2: #efebe3;
  --text: #24221d;
  --muted: #625d53;
  --border: #ddd7cb;
  --accent: #2f5d46;
  --accent-hover: #264d3a;
  --accent-text: #ffffff;
  --accent-soft: #e3ece5;
  --focus: #3f7a5c;
  --radius: 10px;
  --max: 960px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a17;
    --surface: #23221e;
    --surface-2: #2b2925;
    --text: #ebe7df;
    --muted: #a8a196;
    --border: #3a3732;
    --accent: #7fb595;
    --accent-hover: #93c4a7;
    --accent-text: #11201a;
    --accent-soft: #24332b;
    --focus: #93c4a7;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* Language switch: html[data-lang] decides which block is shown. */
html[data-lang="en"] .l-de,
html[data-lang="de"] .l-en { display: none !important; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

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

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--accent);
  display: inline-block; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; left: 7px; top: 6px; width: 12px; height: 14px;
  border-radius: 0 8px 0 8px; background: var(--accent-text); opacity: .9;
}

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  font: inherit; font-size: 14px; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

main { padding: 48px 0 64px; }

h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; } }
.hero-figure { margin: 0; }
.hero-figure img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2);
}
.hero-figure.is-missing { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.points { display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.points strong { display: block; margin-bottom: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--surface-2); }
td.c, th.c { text-align: center; width: 90px; }
.yes { color: var(--accent); font-weight: 600; }
.no { color: var(--muted); }

.price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  margin: 20px 0 6px;
}
.price-amount { font-size: 34px; font-weight: 700; }
.note { font-size: 14px; color: var(--muted); }

details { border-bottom: 1px solid var(--border); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

.key-box {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 16px 0; padding: 16px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--border);
}
.key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(16px, 4vw, 22px); letter-spacing: .04em; word-break: break-all; flex: 1 1 260px;
  user-select: all;
}
.status-line { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

[hidden] { display: none !important; }

.prose h2 { margin-top: 36px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.toc { margin: 8px 0 24px; }

footer.site { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); }
