/* ============================================
   similli.mum Landing Page — Style
   Farbschema: Flieder (Landing Page)
   ============================================ */

:root {
    --primary: #7E57C2;
    --primary-dark: #5E35B1;
    --primary-light: #B39DDB;
    --bg-light: #F3E5F5;
    --bg-white: #FFFFFF;
    --text-dark: #212121;
    --text-muted: #616161;
    --text-on-primary: #FFFFFF;
    --border: #E1BEE7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --max-width: 1140px;
}

/* DM Sans — Google Fonts (Light 300 + Bold 700) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 24px;
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: var(--primary-dark);
    text-decoration: none;
}
.nav-brand img {
    width: 36px;
    height: 36px;
}
/* similli·mum Schriftzug (wie in der App) */
.brand-text {
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}
.brand-light {
    font-weight: 300;
}
.brand-bold {
    font-weight: 700;
}
/* Grosser similli·mum Schriftzug (Hero) */
.brand-hero {
    font-family: 'DM Sans', sans-serif;
    font-size: 3rem;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 8px;
}
.brand-hero .brand-light {
    font-weight: 300;
}
.brand-hero .brand-bold {
    font-weight: 700;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-cta {
    background: var(--primary);
    color: var(--text-on-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--text-on-primary) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 80px 0 60px;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-text h1 span {
    color: var(--primary-light);
}
.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-image {
    flex: 1;
    max-width: 520px;
}
.hero-screenshot {
    display: block;
    width: 100%;
}

/* Window Mockup für App-Screenshot */
.window-mockup {
    background: #E8E8E8;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.window-mockup-titlebar {
    background: #E8E8E8;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.window-mockup-dots {
    display: flex;
    gap: 8px;
}
.window-mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C0C0C0;
}
.window-mockup-dots span:nth-child(1) { background: #FF5F57; }
.window-mockup-dots span:nth-child(2) { background: #FEBC2E; }
.window-mockup-dots span:nth-child(3) { background: #28C840; }
.window-mockup-title {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}
.window-mockup-content {
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.window-mockup-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}
.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-on-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ---- Sections ---- */
section {
    padding: 80px 0;
}
section:nth-child(even) {
    background: var(--bg-light);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Features Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.feature-icon .material-icons-round {
    font-size: 32px;
    color: var(--primary);
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}
.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.pricing-card.popular {
    border-color: var(--primary);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-on-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.pricing-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}
.pricing-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.pricing-features li::before {
    content: "\2713";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    min-width: 120px;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Download ---- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}
.download-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
}
.download-card .os-icon {
    font-size: 48px;
    margin-bottom: 16px;
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-card .os-icon .material-icons-round {
    font-size: 40px;
    color: var(--primary);
}
.download-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.download-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.download-card .btn {
    width: 100%;
    justify-content: center;
}
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- Beta-Signup ---- */
.beta-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 48px;
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}
.beta-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.beta-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.beta-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.6;
}
.beta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.beta-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.beta-form input[type="email"]:focus {
    border-color: var(--primary);
}
.beta-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}
.beta-agree-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.beta-agree-label a {
    color: var(--primary);
    text-decoration: underline;
}
.beta-form .btn {
    justify-content: center;
    width: 100%;
}
.beta-form .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.beta-error {
    color: #e53935;
    font-size: 0.85rem;
    min-height: 1em;
}
.beta-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 28px;
}
.beta-success .material-icons-round {
    font-size: 22px;
}

/* ---- Modal (Beta-Terms) ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.modal-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 16px 0 4px;
    color: var(--primary);
}
.modal-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.modal-card > .btn {
    margin-top: 24px;
}

/* ---- News Grid ---- */
/* ---- Changelog Accordion ---- */
.news-compact {
    padding: 32px 0 16px;
}
.changelog-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
}
.changelog-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
}
.changelog-toggle::-webkit-details-marker { display: none; }
.changelog-icon {
    font-size: 0.75rem;
    transition: transform 0.2s;
    color: var(--text-muted);
}
details[open] .changelog-icon {
    transform: rotate(180deg);
}
.changelog-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(126, 87, 194, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.changelog-timeline {
    padding: 0 20px 16px;
}
.changelog-entry {
    padding: 12px 0 12px 16px;
    border-left: 2px solid var(--border);
    position: relative;
}
.changelog-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.changelog-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.changelog-entry strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin: 2px 0;
}
.changelog-entry p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ---- PWA Install ---- */
.pwa-section {
    text-align: center;
}
.pwa-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pwa-step {
    max-width: 200px;
}
.pwa-step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}
.pwa-step h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.pwa-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 32px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}
.footer-brand {
    max-width: 280px;
}
.footer-brand h3 {
    color: var(--text-on-primary);
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
}
.footer-links h4 {
    color: var(--text-on-primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--text-on-primary);
}
.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

/* ---- Success Page ---- */
.success-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.success-card {
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 520px;
    text-align: center;
}
.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.success-card h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.success-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.license-key-display {
    background: var(--bg-light);
    border: 2px dashed var(--primary);
    border-radius: 8px;
    padding: 16px;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
    margin-bottom: 24px;
    word-break: break-all;
    cursor: pointer;
    position: relative;
}
.license-key-display:hover::after {
    content: "Kopieren";
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: -apple-system, sans-serif;
    letter-spacing: 0;
    font-weight: 500;
}
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-text h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

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

    .pwa-steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer .container {
        flex-direction: column;
    }

    section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}
