/* =================================================================
   Karmakonto – Landingpage (eigenständig, unabhängig vom AppKit-Theme)
   Dark-/Gaming-Look. Mobile-first, ab 768px erweitert.
   ================================================================= */

@font-face {
    font-family: 'Inter';
    font-style:  normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/InterVariable.woff2') format('woff2');
}

:root {
    --bg:            #0b0a14;
    --panel:         rgba(255, 255, 255, 0.035);
    --panel-border:  rgba(255, 255, 255, 0.08);
    --violet:        #6c5dd3;
    --text:          #eceaf6;
    --muted:         #9a94b8;
    --grad:          linear-gradient(135deg, #3b6cf0 0%, #6c5dd3 55%, #8b3df0 100%);
    --glow-violet:   rgba(108, 93, 211, 0.55);
    --glow-magenta:  rgba(139, 61, 240, 0.45);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Sanfte Neon-Glows im Hintergrund */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 45% at 50% 0%, var(--glow-violet) 0%, transparent 60%),
        radial-gradient(45% 35% at 85% 20%, var(--glow-magenta) 0%, transparent 55%),
        radial-gradient(50% 40% at 10% 75%, rgba(59, 108, 240, 0.28) 0%, transparent 55%);
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.lp-wrap {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------
   Navigation
   ------------------------------------------------- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1080px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}
.lp-brand img {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 8px var(--glow-violet));
}

/* -------------------------------------------------
   Buttons
   ------------------------------------------------- */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.lp-btn-primary {
    background-image: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px -6px var(--glow-violet);
}
.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -6px var(--glow-violet);
}
.lp-btn-ghost {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--panel-border);
    color: var(--text);
}
.lp-btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.lp-btn-sm {
    padding: 9px 16px;
    font-size: 14px;
    border-radius: 10px;
}

/* -------------------------------------------------
   Hero
   ------------------------------------------------- */
.lp-hero {
    text-align: center;
    padding: 40px 0 56px;
}
.lp-hero-crystal {
    width: 128px;
    height: 128px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 30px var(--glow-violet)) drop-shadow(0 0 60px var(--glow-magenta));
    animation: lp-float 4.5s ease-in-out infinite;
}
@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.lp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 14px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    margin-bottom: 20px;
}
.lp-hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}
.lp-gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-hero p {
    max-width: 560px;
    margin: 0 auto 32px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted);
}
.lp-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto;
}

/* -------------------------------------------------
   Section-Grundgerüst
   ------------------------------------------------- */
.lp-section {
    padding: 48px 0;
}
.lp-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}
.lp-section-head h2 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.lp-section-head p {
    color: var(--muted);
    margin: 0;
}

/* -------------------------------------------------
   Feature-Cards
   ------------------------------------------------- */
.lp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.lp-card {
    position: relative;
    background-color: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 28px 24px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.lp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 93, 211, 0.5);
    box-shadow: 0 18px 40px -18px var(--glow-violet);
}
.lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background-image: var(--grad);
    margin-bottom: 18px;
    box-shadow: 0 8px 20px -8px var(--glow-violet);
}
.lp-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}
.lp-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.lp-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

/* -------------------------------------------------
   Steps (So funktioniert's)
   ------------------------------------------------- */
.lp-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    counter-reset: step;
}
.lp-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background-color: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 20px 22px;
}
.lp-step-num {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    background-image: var(--grad);
}
.lp-step h4 {
    margin: 4px 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}
.lp-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* -------------------------------------------------
   Abschluss-CTA
   ------------------------------------------------- */
.lp-cta {
    position: relative;
    text-align: center;
    border-radius: 24px;
    padding: 48px 28px;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(108, 93, 211, 0.28), transparent 70%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(108, 93, 211, 0.35);
}
.lp-cta h2 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.lp-cta p {
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 28px;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.lp-footer {
    border-top: 1px solid var(--panel-border);
    margin-top: 24px;
    padding: 32px 0 calc(env(safe-area-inset-bottom, 0px) + 32px);
    text-align: center;
}
.lp-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0.85;
}
.lp-footer-brand img {
    width: 26px;
    height: 26px;
}
.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-bottom: 16px;
}
.lp-footer-links a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.15s ease;
}
.lp-footer-links a:hover {
    color: var(--text);
}
.lp-copy {
    color: var(--muted);
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

/* -------------------------------------------------
   Rechtsseiten (Markdown-Inhalt, .lp-legal)
   ------------------------------------------------- */
.lp-legal-page {
    padding-top: 24px;
    padding-bottom: 24px;
    max-width: 760px;
}
.lp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.15s ease;
}
.lp-back:hover {
    color: var(--text);
}
.lp-legal {
    background-color: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 32px 28px;
}
.lp-legal h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.lp-legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 10px;
    padding-top: 4px;
}
.lp-legal h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin: 22px 0 6px;
}
.lp-legal p,
.lp-legal li {
    color: #c8c4dc;
    font-size: 0.96rem;
}
.lp-legal p {
    margin: 0 0 14px;
}
.lp-legal strong {
    color: var(--text);
}
.lp-legal a {
    color: #b9aeff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lp-legal a:hover {
    color: #fff;
}
.lp-legal ul {
    margin: 0 0 16px;
    padding-left: 20px;
}
.lp-legal li {
    margin-bottom: 6px;
}
.lp-legal hr {
    border: 0;
    border-top: 1px solid var(--panel-border);
    margin: 24px 0;
}
.lp-legal code {
    font-family: 'JetBrains Mono', Consolas, 'Fira Code', Monaco, 'Courier New', monospace;
    font-size: 0.85em;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}
.lp-legal blockquote {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 3px solid var(--violet);
    border-radius: 0 12px 12px 0;
    background-color: rgba(108, 93, 211, 0.12);
    color: #d4cfea;
    font-size: 0.92rem;
}
.md-table-wrap {
    overflow-x: auto;
    margin: 0 0 18px;
}
.lp-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 420px;
}
.lp-legal th,
.lp-legal td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--panel-border);
    vertical-align: top;
}
.lp-legal th {
    background-color: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    color: var(--text);
}
.lp-legal td {
    color: #c8c4dc;
}

/* -------------------------------------------------
   Desktop
   ------------------------------------------------- */
@media (min-width: 768px) {
    .lp-hero {
        padding: 64px 0 80px;
    }
    .lp-hero-actions {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }
    .lp-hero-actions .lp-btn {
        min-width: 200px;
    }
    .lp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lp-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .lp-section {
        padding: 64px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-crystal { animation: none; }
    .lp-btn, .lp-card { transition: none; }
    html { scroll-behavior: auto; }
}
