:root {
    --bg: #13161c;
    --bg-elevated: #1a1e26;
    --bg-card: #1f2430;
    --border: #2d3342;
    --text: #e9ecf2;
    --text-muted: #9aa4b7;
    --accent: #57c17e;
    --accent-strong: #3ea866;
    --accent-soft: rgba(87, 193, 126, 0.14);
    --gold: #e8b339;
    --gold-strong: #c99420;
    --danger: #e2574c;
    --radius: 14px;
    --max-width: 1120px;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

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

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

/* ---------- Nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(19, 22, 28, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: cover;
    flex: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 14px;
}

.nav-links a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--text);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.nav-dropdown.open .nav-dropdown-toggle::after {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    flex-direction: column;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Unsichtbare Brücke, damit der Hover beim Wechsel Button → Menü nicht abreisst */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}

@media (hover: hover) and (min-width: 861px) {
    .nav-dropdown:hover .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown:hover .nav-dropdown-toggle {
        color: var(--text);
    }
}

.nav-dropdown-menu a {
    display: flex;
    padding: 9px 12px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
    background: var(--bg-card);
}

.nav-dropdown-menu a[aria-current="page"] {
    color: var(--accent);
}

a.discord-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.14);
    color: #5865f2;
}

a.discord-link:hover {
    background: #5865f2;
    color: #fff;
}

.discord-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: none;
}

.nav-links a.discord-link {
    padding: 6px 14px;
    margin-left: 6px;
    border-radius: 999px;
}

.site-nav .nav-cta {
    padding: 10px 18px;
    font-size: 0.95rem;
    white-space: nowrap;
    flex: none;
}

.nav-links .nav-cta-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    flex: none;
}

.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
    .site-nav .wrap {
        gap: 10px;
    }

    .brand {
        margin-right: auto;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .site-nav .nav-cta {
        order: 2;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 24px 22px;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .nav-open .nav-links {
        display: flex;
    }

    /* Im Handy-Menü sind die Gruppen immer offen, der Button wird zur Überschrift */
    .nav-dropdown-toggle {
        padding: 12px 12px 4px;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        pointer-events: none;
    }

    .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
        position: static;
        min-width: 0;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .nav-links > a {
        padding: 10px 12px;
    }

    .nav-links > a:not(.discord-link):not(.btn) {
        margin-top: 8px;
        border-top: 1px solid var(--border);
        border-radius: 0;
        padding-top: 16px;
    }

    .nav-links a.discord-link {
        align-self: flex-start;
        margin: 10px 0 0;
    }
}

@media (max-width: 480px) {
    .site-nav .nav-cta {
        display: none;
    }

    .nav-links a.nav-cta-mobile {
        display: flex;
        margin-top: 14px;
        color: #241a04;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, filter 0.15s ease, opacity 0.15s ease;
    font-family: inherit;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-strong) 100%);
    color: #241a04;
    box-shadow: 0 6px 18px rgba(232, 179, 57, 0.25);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--bg-card);
    color: var(--danger);
    border-color: rgba(226, 87, 76, 0.4);
}

.btn-danger:hover {
    background: rgba(226, 87, 76, 0.1);
    border-color: var(--danger);
}

.btn:disabled,
.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-secondary:disabled:hover {
    border-color: var(--border);
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
    padding: 64px 0 40px;
    background:
        radial-gradient(60% 60% at 80% -10%, rgba(87, 193, 126, 0.16), transparent 60%),
        radial-gradient(50% 50% at 0% 0%, rgba(232, 179, 57, 0.08), transparent 60%);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(87, 193, 126, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

h1 span {
    color: var(--accent);
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 28px;
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-meta li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-meta ul {
    display: contents;
}

.dot {
    color: var(--accent);
}

/* ---------- GUI mockup ---------- */

.mock-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.mock-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 4px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mock-slot {
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
}

.mock-slot.on {
    background: linear-gradient(160deg, rgba(87, 193, 126, 0.22), rgba(87, 193, 126, 0.05));
    border-color: rgba(87, 193, 126, 0.55);
}

.mock-slot.on::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(87, 193, 126, 0.25);
}

.mock-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 14px;
}

/* ---------- Sections ---------- */

section {
    padding: 72px 0;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 12px;
}

.section-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

.section-alt {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-block {
    margin-bottom: 46px;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 1.15rem;
}

.category-title .count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ---------- How it works ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* ---------- Demo callout ---------- */

.callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(232, 179, 57, 0.1), rgba(87, 193, 126, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
}

.callout h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.callout p {
    margin: 0;
    color: var(--text-muted);
    max-width: 60ch;
}

/* ---------- Pricing ---------- */

.price-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.price-tag {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 6px 0 2px;
}

.price-tag sup {
    font-size: 1.3rem;
    top: -1.4em;
}

.price-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.price-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 0.95rem;
}

.price-list li .check {
    color: var(--accent);
    font-weight: 800;
    flex: none;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 18px 0;
}

.consent-row input {
    margin-top: 3px;
    flex: none;
}

#buy-status {
    min-height: 1.4em;
    font-size: 0.88rem;
    margin-top: 12px;
}

#buy-status[data-state="error"] {
    color: var(--danger);
}

#buy-status[data-state="loading"] {
    color: var(--text-muted);
}

/* ---------- Lizenzschluessel-Eingabe (update.html) ---------- */

.key-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.key-input::placeholder {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
}

.key-input:focus {
    outline: none;
    border-color: var(--accent);
}

#redeem-status {
    min-height: 1.4em;
    font-size: 0.88rem;
    margin-top: 12px;
}

#redeem-status[data-state="error"] {
    color: var(--danger);
}

#redeem-status[data-state="loading"] {
    color: var(--text-muted);
}

/* Generische Statuszeile fuer die Konto-Seiten (register/login/reset/...) */
.form-status {
    min-height: 1.4em;
    font-size: 0.9rem;
    margin: 12px 0 0;
}

.form-status[data-state="error"] {
    color: var(--danger);
}

.form-status[data-state="loading"] {
    color: var(--text-muted);
}

.form-status[data-state="ok"] {
    color: var(--accent);
}

.text-link-row {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.text-link-row a + a {
    margin-left: 14px;
}

/* ---------- FAQ ---------- */

.faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 20px;
}

.faq summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
    flex: none;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq p {
    margin: 0 0 18px;
    color: var(--text-muted);
}

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 30px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 22px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.disclaimer {
    max-width: 70ch;
    line-height: 1.6;
}

/* ---------- Simple content pages (legal, success, cancel) ---------- */

.page {
    padding: 56px 0 80px;
}

.page .wrap {
    max-width: 760px;
}

.page h1 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.page h2 {
    font-size: 1.25rem;
    margin-top: 34px;
}

.page p, .page li {
    color: var(--text-muted);
}

.notice-box {
    background: var(--accent-soft);
    border: 1px solid rgba(87, 193, 126, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.92rem;
}

.notice-box.warn {
    background: rgba(226, 87, 76, 0.1);
    border-color: rgba(226, 87, 76, 0.4);
}

.notice-box strong {
    color: var(--text);
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    text-align: center;
}

.status-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
}

.status-icon.ok {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-icon.pending {
    background: rgba(232, 179, 57, 0.14);
    color: var(--gold);
}

#download-area {
    margin-top: 22px;
}

/* ---------- Data tables (update.html versions, admin.html) ---------- */

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tbody tr:hover {
    background: var(--bg-elevated);
}

.data-table code {
    font-size: 0.85rem;
}

/* Freitext (z. B. die Notiz an einem Lizenzschluessel) bricht um, statt die Tabelle samt
   Aktionsspalte weit aus dem Bild zu schieben. */
.data-table td.wrap-cell {
    white-space: normal;
    min-width: 160px;
    max-width: 260px;
    overflow-wrap: anywhere;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-ok {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(87, 193, 126, 0.35);
}

.badge-warn {
    background: rgba(226, 87, 76, 0.1);
    color: var(--danger);
    border-color: rgba(226, 87, 76, 0.4);
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 14px;
}

.text-input::placeholder {
    color: var(--text-muted);
}

.text-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Formular in einer Zeile (admin.html: Benutzer/Lizenzschluessel anlegen), bricht auf schmalen Schirmen um */
.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.admin-form .text-input {
    flex: 1 1 220px;
    width: auto;
    margin-bottom: 0;
}

/* Gelb zwischen Gruen (.badge-ok) und Rot (.badge-warn): Hinweis, aber kein Fehler */
.badge-caution {
    background: rgba(232, 179, 57, 0.14);
    color: var(--gold);
    border-color: rgba(232, 179, 57, 0.4);
}

/* Breitere Freitext-Zelle (z. B. Fehlermeldung samt Empfehlung in der Versandtabelle) */
.data-table td.wrap-cell.wide {
    min-width: 260px;
    max-width: 560px;
}

/* ---------- Admin: aufklappbares Fenster "E-Mail-Konfiguration" (admin.html) ---------- */

.mail-panel > summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.mail-panel > summary::-webkit-details-marker {
    display: none;
}

.mail-panel > summary::after {
    content: "\2212";
    margin-left: auto;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
}

.mail-panel:not([open]) > summary::after {
    content: "+";
}

.mail-panel > summary h2 {
    margin: 0;
}

/* Befunde der Konfigurationspruefung: Ebenen-Badge + Text */
.check-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text);
}

.check-list .badge {
    flex: none;
}

/* ---------- Aktivierung: Anleitung (aktivierung.html) und Offline-Seite (offline-aktivierung.html) ---------- */

.page .wrap.wide {
    max-width: 900px;
}

.page .lead {
    font-size: 1.08rem;
    max-width: 64ch;
}

/* Kurzer Weg-Wegweiser am Seitenanfang: zwei grosse, anklickbare Karten */
.path-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 26px 0 8px;
}

.path-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}

.path-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.path-card h3 {
    margin: 8px 0 6px;
    font-size: 1.1rem;
}

.path-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
}

/* Nummerierte Schritte mit Text, Befehl und Bild */
.guide-steps {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.guide-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 16px;
}

.guide-step .step-num {
    margin: 2px 0 0;
}

.guide-step h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.guide-step p {
    margin: 0 0 12px;
}

.guide code,
.status-card .code-inline {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.9em;
    color: var(--text);
}

/* Konsolen-Befehl zum Abtippen/Kopieren */
.guide .cmd {
    display: block;
    margin: 12px 0;
    padding: 12px 16px;
    background: #0e1116;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.92rem;
    color: var(--text);
    overflow-x: auto;
    white-space: pre;
}

/* Bildplatzhalter: erscheint, solange die Datei aus data-src nicht existiert (siehe Skript in aktivierung.html) */
.shot {
    margin: 16px 0 0;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.shot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 200px;
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 24px);
}

.shot-placeholder .shot-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.shot-placeholder strong {
    color: var(--text);
}

.shot figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- No Block: Karten der Mini-Biome mit Bild oben (no-block.html) ---------- */

.biome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.biome-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    scroll-margin-top: 90px;
}

.biome-card .shot {
    margin: 0;
}

.biome-card .shot img,
.biome-card .shot-placeholder {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.biome-card .shot img {
    object-fit: cover;
}

.biome-card .shot-placeholder {
    border-bottom-style: dashed;
    padding: 12px;
    font-size: 0.82rem;
}

.biome-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}

.biome-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.badge-version {
    color: var(--text);
}

/* Wie viele Bereiche ein Bauwerk belegt */
.badge-size {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(87, 193, 126, 0.35);
}

.biome-guide .biome-subhead {
    margin: 28px 0 0;
    font-size: 1.1rem;
}

.biome-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.biome-body p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.biome-body .biome-meta strong {
    color: var(--text);
}

/* Breit genug für drei Karten nebeneinander; die Fließtexte bleiben lesbar schmal */
.page .wrap.biome-guide {
    max-width: var(--max-width);
}

.biome-guide > p,
.biome-guide > .notice-box {
    max-width: 820px;
}

.biome-guide .table-wrap {
    margin-top: 14px;
}

.guide .faq {
    max-width: none;
    margin: 16px 0 0;
}

.guide .notice-box {
    margin: 22px 0;
}

.guide .notice-box p,
.guide .notice-box li {
    color: var(--text-muted);
}

.guide .notice-box ul {
    margin: 10px 0 0;
    padding-left: 1.2em;
}

/* offline-aktivierung.html */
textarea.text-input {
    min-height: 120px;
    resize: vertical;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

.field-label {
    display: block;
    margin: 18px 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.code-output {
    display: block;
    margin-top: 12px;
    padding: 14px 16px;
    background: #0e1116;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    color: var(--text);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mini-steps {
    margin: 14px 0 6px;
    padding-left: 1.3em;
}

.mini-steps li {
    margin-bottom: 6px;
}


/* ---------- Challenge-Übersicht (challenges.html) ---------- */

.page.overview .wrap {
    max-width: var(--max-width);
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.overview-stats .stat {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.overview-stats .stat:hover {
    border-color: var(--accent);
}

.overview-stats .stat strong {
    font-size: 1.8rem;
    line-height: 1.1;
    color: var(--accent);
}

.overview-search {
    position: sticky;
    top: 64px;
    z-index: 10;
    margin: 28px 0 8px;
    padding: 4px 0 12px;
    background: var(--bg);
}

.overview-search .field-label {
    margin-top: 0;
}

.search-status {
    margin: 6px 0 0;
    min-height: 1.2em;
    font-size: 0.85rem;
}

.overview-category {
    padding: 0;
    margin-top: 40px;
    scroll-margin-top: 150px;
}

.overview-category .category-title {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.category-intro,
.group-intro {
    margin: 0 0 16px;
    max-width: 70ch;
}

.mod-group {
    margin-top: 28px;
}

.group-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.card.mod {
    display: flex;
    flex-direction: column;
}

.card.mod h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text);
}

.card.mod p {
    flex: 1;
}

.mod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.tag-setting {
    color: var(--gold);
    border-color: rgba(232, 179, 57, 0.4);
    background: rgba(232, 179, 57, 0.08);
}

.tag-mode {
    color: #7fb4ff;
    border-color: rgba(127, 180, 255, 0.4);
    background: rgba(127, 180, 255, 0.08);
}

.tag-default {
    color: var(--accent);
    border-color: rgba(87, 193, 126, 0.35);
    background: var(--accent-soft);
}

.no-results {
    margin: 32px 0;
    text-align: center;
}

.page.overview #befehle {
    margin-top: 56px;
}

@media (max-width: 600px) {
    .overview-stats {
        grid-template-columns: 1fr;
    }

    .overview-stats .stat {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .tag {
        white-space: normal;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .path-cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- Sprachauswahl (js/i18n.js fügt sie in die Navigation ein) ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.lang-switch select {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    max-width: 11.5rem;
}

.lang-switch select:hover,
.lang-switch select:focus {
    color: var(--text);
}

.lang-switch option {
    background: #13161c;
    color: #e8eaed;
}

.i18n-legal-notice {
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .nav-links .lang-switch {
        padding: 10px 12px;
    }
}

/* Release Notes: eine Karte pro Version, neueste zuerst */
.release {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 32px;
}

.release-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 20px;
}

.page .release-head h2 {
    margin: 0;
    font-size: 1.45rem;
}

.release-head time {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-left: auto;
}

.release h3 {
    font-size: 1.05rem;
    margin: 28px 0 8px;
}

.release .notice-box {
    margin-bottom: 14px;
}

.release-list {
    margin: 0;
    padding-left: 1.2em;
}

.release-list li {
    margin: 8px 0;
}

.release-list li strong {
    color: var(--text);
}

.release-more {
    margin: 24px 0 0;
    font-size: 0.92rem;
}

@media (max-width: 600px) {
    .release {
        padding: 22px 18px;
    }

    .release-head time {
        margin-left: 0;
        flex-basis: 100%;
    }
}
