:root {
    --bg: #0a0c10;
    --bg-elevated: #12151c;
    --surface: #161a22;
    --ink: #f2f4f7;
    --muted: #9aa3b2;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #e8873a;
    --accent-2: #f0a45c;
    --accent-hover: #d67528;
    --header: rgba(10, 12, 16, 0.82);
    --radius: 12px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --font: "DM Sans", "Segoe UI", sans-serif;
    --display: "Syne", "DM Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
}

.page { min-height: 100vh; }

.shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 10px;
}

/* —— Header / Nav —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    margin-right: auto;
}

.brand-block { display: flex; flex-direction: column; line-height: 1.15; }
.logo {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 10px;
    background: #12151c;
    color: var(--accent-2);
    border: 1.5px solid rgba(240, 164, 92, 0.55);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
    white-space: nowrap;
    overflow: hidden;
}
.logo.has-logo-img {
    padding: 0;
    width: 40px;
    min-width: 40px;
}
.site-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.brand-sub {
    font-size: 0.68rem;
    color: #8b93a1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-menu { display: flex; gap: 8px; align-items: center; }
.nav-link {
    position: relative;
    color: #c8d0dc;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f87171, #60a5fa, #f87171);
    background-size: 200% 100%;
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}
.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
    animation: navColorFlow 1.4s linear infinite;
}

.nav-auth, .nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-user[hidden] { display: none !important; }

/* Logged-in user chip — modern, clean */
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: rgba(22, 26, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    max-width: 220px;
}
.user-avatar-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #3d2a1a 0%, #8b5a2b 50%, #2a1c12 100%);
    border: 1.5px solid rgba(232, 135, 58, 0.55);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-avatar.has-photo .user-avatar-initials { display: none; }
.user-avatar-initials {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff5eb;
    text-transform: uppercase;
    user-select: none;
}
.user-online {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid #0a0c10;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.3);
}
.user-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.user-name {
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.user-status {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #34d399;
}

.btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    padding: 10px 16px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #c96a22 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(232, 135, 58, 0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-hover) 100%); }
.btn-secondary, .btn-ghost {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(18, 21, 28, 0.85);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost::before,
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        105deg,
        rgba(12, 14, 20, 0.95) 0%,
        rgba(90, 28, 40, 0.55) 28%,
        rgba(40, 70, 130, 0.55) 55%,
        rgba(12, 14, 20, 0.95) 100%
    );
    background-size: 220% 100%;
    background-position: 100% 0;
    opacity: 0;
    transition: opacity 0.3s ease, background-position 0.3s ease;
}
.btn-ghost:hover,
.btn-secondary:hover {
    color: #fff;
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.12) inset,
        0 8px 22px rgba(0, 0, 0, 0.35);
}
.btn-ghost:hover::before,
.btn-secondary:hover::before {
    opacity: 1;
    animation: btnColorFlow 1.6s ease-in-out infinite;
}
.btn-large { padding: 13px 22px; font-size: 0.98rem; }
.btn-full { width: 100%; border-radius: 10px; }

@keyframes navColorFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes btnColorFlow {
    0% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-link:hover::after,
    .btn-ghost:hover::before,
    .btn-secondary:hover::before {
        animation: none;
    }
}

/* —— Hero —— */
.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: center;
    padding: 48px 0 64px;
    overflow: hidden;
}
.hero-atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 135, 58, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(80, 110, 160, 0.12), transparent 50%),
        linear-gradient(180deg, #0e1118 0%, #0a0c10 55%, #0a0c10 100%);
    pointer-events: none;
}
.hero-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    opacity: 0.5;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 720px;
}
.hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    animation: heroBrandIn 0.7s ease-out both;
}
.hero-logo {
    min-width: 72px;
    height: 72px;
    padding: 0 12px;
    border-radius: 16px;
    background: #12151c;
    color: var(--accent-2);
    border: 2px solid rgba(240, 164, 92, 0.65);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4) inset,
        0 12px 32px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
}
.hero-logo.has-logo-img {
    padding: 0;
    width: 72px;
    min-width: 72px;
}
.hero-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
}
.hero-brand-name {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}
.hero-brand-sub {
    font-size: clamp(0.78rem, 1.6vw, 0.92rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8b93a1;
}
.hero-title {
    font-family: var(--display);
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 650;
    margin-bottom: 14px;
    max-width: 34rem;
    animation: heroFadeUp 0.65s ease-out 0.12s both;
}
.hero-subtitle {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 34rem;
    margin-bottom: 28px;
    animation: heroFadeUp 0.65s ease-out 0.22s both;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: heroFadeUp 0.65s ease-out 0.32s both;
}
@keyframes heroBrandIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.metrics {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(18, 21, 28, 0.7);
}
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-number {
    display: block;
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.stat-label { color: var(--muted); font-size: 0.9rem; }

.features, .about, .pricing { padding: 80px 0; }
.section-header { max-width: 36rem; margin-bottom: 32px; }
.section-title {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 10px;
}
.section-subtitle { color: var(--muted); }

.features-grid, .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card, .price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
    border-color: rgba(232, 135, 58, 0.35);
    transform: translateY(-2px);
}
.feature-title, .price-card h3 {
    font-family: var(--display);
    font-size: 1.08rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.feature-description, .price-card p { color: var(--muted); font-size: 0.94rem; }
.price { color: var(--ink) !important; font-weight: 700; margin-bottom: 8px; }
.price-card-featured {
    border-color: rgba(232, 135, 58, 0.45);
    box-shadow: 0 0 0 1px rgba(232, 135, 58, 0.12), var(--shadow);
}

.about-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about-description { color: var(--muted); margin: 12px 0 18px; }
.about-list { padding-left: 18px; color: var(--ink); }
.about-list li { margin: 8px 0; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li {
    display: flex;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.steps span { font-family: var(--display); font-weight: 700; color: var(--accent); min-width: 1.6rem; }
.steps p { color: var(--muted); font-size: 0.92rem; }

.contact { padding: 0 0 80px; }
.contact-box {
    background: linear-gradient(135deg, #1a1510 0%, #12151c 60%);
    border: 1px solid rgba(232, 135, 58, 0.25);
    color: var(--ink);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.contact .section-subtitle { color: #c4cad4; }
.contact .section-title { margin-bottom: 8px; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-elevated); }
.footer-row {
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}
.footer-legal a:hover { color: var(--text); }

.legal-hero {
    padding: 48px 0 12px;
}
.legal-updated {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.legal-body { padding: 12px 0 64px; }
.legal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: var(--shadow);
}
.legal-content {
    white-space: pre-wrap;
    line-height: 1.65;
    color: var(--text);
    font-size: 0.98rem;
}
.legal-empty { color: var(--muted); margin: 0; }
.legal-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.legal-nav a {
    color: var(--accent, #e8873a);
    text-decoration: none;
    font-weight: 600;
}
.legal-nav a:hover { text-decoration: underline; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.72);
    z-index: 80;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.modal-content {
    width: min(440px, 100%);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.modal-header, .modal-body { padding: 20px 22px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.modal.is-twofa .modal-header {
    border-bottom: 0;
    padding-bottom: 0;
    justify-content: flex-end;
}
.modal.is-twofa .modal-content {
    width: min(420px, 100%);
}
.modal-title { font-family: var(--display); font-size: 1.2rem; }
.modal-close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #0b0f14;
}
.form-group input:focus { outline: 2px solid rgba(232, 135, 58, 0.45); border-color: var(--accent); }
.form-footer { margin-top: 14px; display: flex; gap: 8px; justify-content: center; color: var(--muted); font-size: 0.9rem; }
.link { color: var(--accent-2); }
.verification-content { text-align: center; }
.verification-content h3 { margin: 8px 0; }
.verification-content p { color: var(--muted); margin-bottom: 14px; }
.btn-discord { background: #5865f2; color: #fff; margin-bottom: 8px; border-radius: 10px; }
.discord-icon { margin-right: 6px; }

/* —— 2FA Verifizieren (nach Passwort) —— */
.twofa-verify-form { text-align: center; }
.twofa-verify-head { margin-bottom: 18px; }
.twofa-verify-title {
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 6px;
}
.twofa-verify-sub {
    margin: 0;
    color: #9aa3b2;
    font-size: 0.95rem;
}
.twofa-method-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.twofa-method-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 24, 36, 0.95);
    color: #dbe4f0;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.twofa-method-btn .twofa-ico {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.twofa-method-btn .twofa-ico svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.twofa-method-btn:hover {
    border-color: rgba(37, 99, 235, 0.55);
    color: #fff;
    background: rgba(37, 99, 235, 0.18);
}
.twofa-method-btn.is-active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.twofa-code-block {
    text-align: left;
    margin-bottom: 14px;
}
.twofa-code-block label {
    color: #e8edf5;
    font-weight: 600;
}
.twofa-code-block input {
    background: #0b0f14;
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-verify {
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}
.btn-verify:hover { background: #1d4ed8; }

.toast-container { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast { background: #1e2430; color: #fff; border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; max-width: 360px; font-size: 0.92rem; }
.toast-error { background: #7f1d1d; }
.toast-success { background: #14532d; }

/* Geheimnisse als Punkte — ohne type=password bei OTP (sonst speichern Passwort-Manager den Code als Login-Passwort) */
input[type="password"] {
    letter-spacing: 0.08em;
}
input.is-secret {
    -webkit-text-security: disc;
    text-security: disc;
    letter-spacing: 0.12em;
}
@media (max-width: 900px) {
    .nav-menu { display: none; }
    .features-grid, .price-grid, .metrics-grid, .about-content { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .contact-box { flex-direction: column; align-items: flex-start; }
    .navbar { flex-wrap: wrap; padding: 12px 0; gap: 12px; }
    .user-meta { display: none; }
    .user-chip { padding: 3px; max-width: none; }
    .hero { min-height: auto; padding: 56px 0 48px; }
    .hero-logo { min-width: 58px; height: 58px; border-radius: 14px; font-size: 0.82rem; padding: 0 10px; }
    .hero-logo.has-logo-img { width: 58px; min-width: 58px; padding: 0; }
    .hero-brand { gap: 12px; margin-bottom: 22px; }
}
