/* ----------     BASIS     ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: "Aeonik", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--ground); }

/* hidden-Attribut muss auch gegen display-setzende Klassen (.btn etc.) gewinnen */
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }

/*? ----------     BASIS     ---------- */

/* ----------     TOPBAR-LAYOUT     ---------- */
.stage { display: flex; flex-direction: column; min-height: 100vh; }
@supports (min-height: 100dvh) { .stage { min-height: 100dvh; } }

.topbar { display: flex; align-items: center; height: 84px; padding: 0 clamp(20px, 4vw, 48px); background: var(--ground); }
.topbar-logo { display: flex; align-items: center; }
.topbar-logo img { height: 42px; width: auto; display: block; }

.app-main { flex: 1; display: grid; place-items: center; padding: 48px 24px; }
.card { width: 100%; max-width: 580px; }
.card.wide { max-width: 880px; }
.app-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 18px 32px; font-size: 13px; color: var(--ink-soft); }
.app-foot a { color: var(--ink-soft); text-decoration: none; }
.app-foot a:hover { text-decoration: underline; }
/*? ----------     TOPBAR-LAYOUT     ---------- */

/* ----------     STATUSKARTE     ---------- */
.state { display: grid; gap: 22px; }

.state-head { display: flex; gap: 18px; align-items: flex-start; }
.badge { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-bg); color: var(--ink-soft); }
.badge.tone-action { background: var(--accent-bg); color: var(--action); }
.badge.tone-warn { background: var(--warn-bg); color: var(--warn); }
.badge.tone-danger { background: var(--danger-bg); color: var(--danger); }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px 0; }
.state h1 { font-size: 29px; font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
.lead { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 58ch; margin: 0; }
.lead strong { color: var(--ink); font-weight: 500; }
/*? ----------     STATUSKARTE     ---------- */

/* ----------     GEHEIMNIS-INFO & ANZEIGE     ---------- */
.dest { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; display: grid; gap: 14px; }
.dest dl { margin: 0; display: grid; gap: 10px; }
.dest-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 15px; align-items: baseline; }
.dest-row dt { font-weight: 500; color: var(--ink); margin: 0; }
.dest-row dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-soft); }
.chip.tone-action { background: var(--accent-bg); color: var(--accent-ink); }
.chip.tone-good { background: var(--good-bg); color: var(--good); }
.chip.tone-warn { background: var(--warn-bg); color: var(--warn); }
.chip.tone-danger { background: var(--danger-bg); color: var(--danger); }

.secret-wrap { display: grid; gap: 14px; }
.secret-label { font-weight: 500; font-size: 15px; margin: 0 0 4px 0; }
.secret-line { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.secret-value { font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace; font-size: 15px; color: var(--ink); word-break: break-all; line-height: 1.55; margin: 0; }
.copy-btn { flex: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--action); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.copy-btn:hover { border-color: var(--action); }

.notice { font-size: 15px; line-height: 1.6; border-radius: 8px; padding: 12px 16px; margin: 0; }
.notice.tone-info { background: var(--accent-bg); color: var(--notice-ink); }
.notice.tone-warn { background: var(--warn-bg); color: var(--warn); }
.notice.tone-danger { background: var(--danger-bg); color: var(--danger); }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { flex: none; margin-top: 3px; color: var(--action); }
/*? ----------     GEHEIMNIS-INFO & ANZEIGE     ---------- */

/* ----------     STARTSEITE     ---------- */
.home { display: grid; gap: 40px; }

.home-hero { display: grid; gap: 14px; justify-items: start; }
.home-hero h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
.home-hero .lead { max-width: 62ch; font-size: 17px; }
.lead a { color: var(--action); text-decoration: none; }
.lead a:hover { text-decoration: underline; }

.home-demo { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; display: grid; gap: 10px; justify-items: start; }
.demo-long { font-size: 14px; color: var(--ink-soft); word-break: break-word; line-height: 1.55; }
.demo-arrow { color: var(--action); display: flex; }
.demo-short { font-size: 15px; font-weight: 600; color: var(--accent-ink); background: var(--accent-bg); border-radius: 999px; padding: 6px 14px; }

.home-h2 { font-size: 18px; font-weight: 600; margin: 0 0 14px 0; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 9px; align-content: start; justify-items: start; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.home-trust { display: grid; gap: 16px; }
/*? ----------     STARTSEITE     ---------- */

/* ----------     AKTIONEN & HINWEISE     ---------- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15.5px; font-weight: 500; padding: 12px 22px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; text-decoration: none; background: var(--action); color: var(--on-action); }
.btn:hover { background: var(--action-hover); }
.btn:disabled { cursor: default; opacity: 0.7; }
.btn.ghost { background: var(--ground); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-soft); background: var(--ground); }

.hint { font-size: 14px; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0; }
.hint code { font-family: inherit; font-weight: 500; color: var(--ink); }
.hint strong { font-weight: 600; color: var(--ink); }
/*? ----------     AKTIONEN & HINWEISE     ---------- */

/* ----------     RESPONSIV     ---------- */
@media (max-width: 992px) {
    .topbar { height: 64px; padding: 0 16px; }
    .topbar-logo img { height: 32px; }
    .app-main { padding: 28px 20px; align-items: start; }
    .home { gap: 30px; }
    .home-steps { grid-template-columns: 1fr; }
    .state h1 { font-size: 24px; }
    .badge { width: 40px; height: 40px; }
    .dest-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
    .app-main { padding: 24px 16px; }
    .dest { padding: 16px; }
    .actions .btn { flex: 1 1 100%; }
    .secret-line { flex-direction: column; gap: 6px; }
}
/*? ----------     RESPONSIV     ---------- */
