/* Dimdown — dimdown.app. System fonts only, no external requests. */
:root {
  color-scheme: light dark;
  --bg: #faf6f2;
  --surface: #ffffff;
  --text: #2a211c;
  --muted: #6b5d54;
  --accent: #c2410c;        /* AA on light bg */
  --accent-strong: #9a3412;
  --border: #e7ddd5;
  --focus: #c2410c;
  --radius: 14px;
  --maxw: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141010;
    --surface: #1e1817;
    --text: #f3ebe5;
    --muted: #b6a79d;
    --accent: #ff7a2f;      /* AA on dark bg */
    --accent-strong: #ff9a5c;
    --border: #3a2e2a;
    --focus: #ff9a5c;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header, main, .site-footer { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang-switch { font-size: .95rem; }
main { flex: 1; padding-bottom: 3rem; }

/* Landing */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 40px rgba(255, 106, 0, .25); }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.1; margin: 1.5rem 0 .75rem; letter-spacing: -0.02em; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); margin: 0 auto 2rem; max-width: 32rem; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.stores li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; }
.coming-soon { color: var(--muted); font-size: .95rem; margin: 0; }
.support { text-align: center; margin-top: 2.5rem; color: var(--muted); }

/* Legal pages */
.legal h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 1.25rem; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.legal blockquote { margin: 1rem 0; padding: .25rem 1rem; border-left: 4px solid var(--border); color: var(--muted); }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.notice { border: 1px dashed var(--accent); background: var(--surface); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-top: 1.25rem; padding-bottom: 2rem; font-size: .92rem; color: var(--muted); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: 0 0 .75rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.linklike:hover { color: var(--accent-strong); }

/* Cookie banner */
.cc { position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin-left: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 1.1rem 1.25rem; font-size: .95rem; }
.cc[hidden] { display: none; }
.cc h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.cc p { margin: 0 0 .8rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-btn { flex: 1 1 8rem; font: inherit; font-weight: 600; padding: .6rem .9rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--surface); color: var(--text); }
.cc-btn:hover { background: var(--bg); }
.cc-btn.cc-primary-equal { /* both main choices look identical on purpose (equal weight) */ }
.cc-cats { border: 0; padding: 0; margin: .25rem 0 .9rem; }
.cc-cats legend { font-weight: 600; margin-bottom: .4rem; }
.cc-cat { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; padding: .5rem 0; border-top: 1px solid var(--border); }
.cc-cat input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.cc-cat .cc-desc { grid-column: 2; color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  .cc { animation: cc-in .25s ease-out; }
  @keyframes cc-in { from { transform: translateY(12px); } to { transform: none; } }
}
@media print { .cc, .site-footer button { display: none !important; } }
.cc-open body { padding-bottom: 16rem; } /* keep footer reachable above the notice */
.cc:focus { outline: none; }

/* IT-Recht legal texts */
.legal-switch ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.legal-switch a[aria-current="page"] { font-weight: 600; text-decoration: none; }
.legal-extra { margin-top: 1rem; }
.legal-stand { margin-top: 2rem; font-size: .9em; opacity: .8; }
