/* appstain.de – gemeinsame Styles. Farben und Schrift wie in der App (src/theme.ts). */
:root {
  --bg: #121212;
  --surface: #1B1B1B;
  --surface2: #242424;
  --hairline: rgba(255, 255, 255, 0.08);
  --ink: #F4F4F4;
  --ink2: rgba(244, 244, 244, 0.74);
  --muted: rgba(244, 244, 244, 0.56);
  --primary: #EF6FB0;
  --on-primary: #1D0A14;
  --primary-soft: rgba(239, 111, 176, 0.16);
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink2);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 20px 0 8px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 20px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--primary); display: inline-block; }
nav.top-nav { display: flex; gap: 18px; font-size: 15px; }
nav.top-nav a { color: var(--ink2); }

main { flex: 1; padding: 24px 0 48px; }

h1 { color: var(--ink); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.8px; margin: 16px 0 12px; }
h2 { color: var(--ink); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.3px; margin: 40px 0 10px; }
h3 { color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
small, .small { font-size: 14px; color: var(--muted); }

.lead { font-size: 20px; line-height: 1.45; color: var(--ink2); }

.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.card h2 { margin-top: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 0;
  width: 100%; max-width: 420px;
}
.btn:hover, .btn:focus-visible { text-decoration: none; filter: brightness(1.06); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: var(--surface2); color: var(--ink); border: 1px solid var(--hairline); }
.btn-row { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin: 20px 0; }
@media (min-width: 560px) { .btn-row { flex-direction: row; } .btn { width: auto; } }

.code {
  font-size: clamp(44px, 14vw, 72px); font-weight: 600; letter-spacing: 0.08em; color: var(--ink);
  font-variant-numeric: tabular-nums; margin: 8px 0 4px; overflow-wrap: anywhere;
}
.code.long { font-size: clamp(30px, 9vw, 48px); letter-spacing: 0.06em; }
.code-box { text-align: center; padding: 28px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.code-box .label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; }

.features { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; margin: 0; }
.features li strong { display: block; margin-bottom: 4px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

.hidden { display: none !important; }

footer.bottom { border-top: 1px solid var(--hairline); padding: 20px 0 32px; font-size: 14px; color: var(--muted); }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.bottom a { color: var(--ink2); }

address { font-style: normal; }
.legal p { margin-bottom: 12px; }
.toc { padding-left: 22px; margin-bottom: 24px; font-size: 15px; }
