:root {
    --transition-fast: 0.2s ease-in-out;
}

/* Light Theme */
body.theme-light {
    --bg-gradient: linear-gradient(135deg, #e8f7f0, #f7fff9);
    --bg-surface: #ffffff;
    --bg-surface-muted: #f3f7f5;
    --text-main: #163430;
    --text-muted: #4c655f;
    --primary: #25a45a;
    --primary-soft: rgba(37, 164, 90, 0.12);
    --accent: #f7b35c;
    --border-subtle: rgba(17, 24, 39, 0.08);
    --shadow-soft: 0 18px 45px rgba(15, 118, 78, 0.18);
    --shadow-subtle: 0 10px 25px rgba(15, 118, 78, 0.12);
    --nav-blur: rgba(255, 255, 255, 0.85);
    --badge-bg: rgba(15, 118, 78, 0.08);
    --code-bg: #edf5f0;
}

/* Dark Theme */
body.theme-dark {
    --bg-gradient: radial-gradient(circle at top, #10241a, #050b08 55%);
    --bg-surface: #101815;
    --bg-surface-muted: #101f18;
    --text-main: #f3f9f6;
    --text-muted: #9fb7ad;
    --primary: #43cf7b;
    --primary-soft: rgba(67, 207, 123, 0.16);
    --accent: #f9c46a;
    --border-subtle: rgba(148, 163, 184, 0.24);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
    --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.55);
    --nav-blur: rgba(8, 16, 12, 0.9);
    --badge-bg: rgba(34, 197, 94, 0.18);
    --code-bg: #07110d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--nav-blur);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 1rem;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
}

.brand-icon {
    width: 22px;
    height: 22px;
    border-radius: 0.6rem;
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button,
.theme-toggle {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: background var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
}

.nav-button:hover,
.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

.nav-button:active,
.theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.nav-button.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.theme-toggle-icon {
    font-size: 0.9rem;
}

.pill-divider {
    width: 1px;
    height: 1.1rem;
    background: var(--border-subtle);
}

main {
    flex: 1;
}

.page {
    max-width: 980px;
    margin: 1.75rem auto 2.5rem;
    padding: 0 1.25rem 3rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--badge-bg);
    font-size: 0.78rem;
    font-weight: 500;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.22);
}

.hero-title {
    font-size: clamp(1.9rem, 2.7vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--primary);
}

.hero-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.7rem;
}

.btn-primary {
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at top left, #4ade80, var(--primary));
    color: #f9fffb;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-primary span.icon {
    font-size: 1rem;
}

.btn-secondary {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-main);
    padding: 0.55rem 1.15rem;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.pill-note {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-card {
    background: var(--bg-surface);
    border-radius: 1.3rem;
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.hero-card-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-card-chip {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hero-card-chip span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
}

.hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-list li {
    display: flex;
    gap: 0.4rem;
}

.hero-list li span.check {
    margin-top: 0.15rem;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.hero-meta-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-store {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px dashed var(--border-subtle);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-store span.icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.section {
    margin-top: 2.4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.section-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.card {
    background: var(--bg-surface);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.card-list {
    padding-left: 1rem;
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-list li {
    margin-bottom: 0.2rem;
}

.support-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.7rem;
    font-size: 0.88rem;
}

.support-contact a {
    color: var(--primary);
    text-decoration: none;
}

.support-contact a:hover {
    text-decoration: underline;
}

.tag {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.faq-item {
    margin-bottom: 0.9rem;
}

.faq-q {
    font-weight: 600;
    font-size: 0.92rem;
}

.faq-a {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.legal-wrapper {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 1.4rem;
}

@media (max-width: 920px) {
    .legal-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.legal-card {
    background: var(--bg-surface-muted);
    border-radius: 1.1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    line-height: 1.5;
    max-height: 18rem;
    overflow: auto;
}

.legal-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.legal-card h4 {
    margin-bottom: 0.2rem;
    margin-top: 0.7rem;
    font-size: 0.86rem;
}

.legal-card p {
    margin: 0.15rem 0;
}

.legal-card ul {
    margin: 0.15rem 0 0.15rem 1.1rem;
    padding: 0;
}

.legal-card li {
    margin-bottom: 0.1rem;
}

.legal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.78rem;
    background: var(--code-bg);
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
}

footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.02);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem 1.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

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

.footer-links a:hover {
    text-decoration: underline;
}

/* Language visibility */
/* Sprache: Standardmäßig BEIDE anzeigen, und dann die jeweils andere ausblenden */
.lang-de,
.lang-en {
    display: block;
}

/* Wenn explizit DE aktiv ist, EN ausblenden */
body.lang-de .lang-en {
    display: none;
}

/* Wenn explizit EN aktiv ist, DE ausblenden */
body.lang-en .lang-de {
    display: none;
}