/* style.css */

/* --- 1. GRUNDLAGEN & VARIABLEN --- */
:root {
    --bg-color: #ffffff;
    --text-color: #1d1d1f;
    --text-muted: #86868b;
    --accent-color: #007aff; /* Apple Blue */
    --secondary-bg: #f5f5f7;
    --border-color: #d2d2d7;
    --max-width: 980px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-color: #f5f5f7;
        --text-muted: #a1a1a6;
        --secondary-bg: #1c1c1e;
        --border-color: #424245;
    }
}

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

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

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- 2. TYPOGRAFIE (Global & für Textseiten) --- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5em; color: var(--text-color); }
p { color: var(--text-muted); margin-bottom: 1.5em; }

/* Speziell für Impressum/Privacy (damit Text besser lesbar ist) */
p strong { color: var(--text-color); }
ul { padding-left: 20px; color: var(--text-muted); margin-bottom: 1.5em; }
li { margin-bottom: 0.5em; }

/* Navigation Header (nur für Impressum/Privacy) */
.nav-header { padding: 20px 0; border-bottom: 1px solid var(--secondary-bg); margin-bottom: 40px; }
.nav-link { font-weight: 600; font-size: 0.9rem; }


/* --- 3. LANDING PAGE: HERO SECTION --- */
.hero { text-align: center; padding: 100px 0 60px; }
.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
.hero p.lead { font-size: 1.3rem; max-width: 600px; margin: 0 auto 40px; }

.hero-image {
    margin-top: 50px;
    width: 100%;
    max-width: 320px;
    height: auto;
    display: inline-block;
    border: none;
    background: transparent;
    min-height: 0;
    border-radius: 58px;
    box-shadow: none;
}

/* --- 4. BADGES (App Store / Google Play) --- */
.badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.store-badge { transition: transform 0.2s; display: block; }
.store-badge:hover { transform: scale(1.05); opacity: 0.9; }

.apple-badge { height: 50px; width: auto; }
.google-badge { 
    height: 65px; 
    width: auto; 
    margin: -10px 0; /* Ausgleich für den Google-Rand */
}

/* --- 5. FEATURES SECTION --- */
.features { background-color: var(--secondary-bg); padding: 80px 0; margin-top: 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: left; }
.feature-item h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.icon { font-size: 2rem; margin-bottom: 10px; display: block; }

/* --- 6. PRICING SECTION --- */
.pricing { padding: 80px 0; text-align: center; }
.pricing-box { 
    border: 2px solid var(--accent-color); 
    border-radius: 20px; 
    padding: 40px; 
    display: inline-block; 
    max-width: 500px;
}
.pricing h2 { color: var(--accent-color); }

/* --- 7. COMPARISON TABLE (Desktop) --- */
.comparison { padding: 60px 0; background-color: var(--bg-color); text-align: center; }
.comparison h2 { margin-bottom: 10px; }

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e5e5e5;
    display: inline-block;
    width: 100%;
    max-width: 800px;
}
@media (prefers-color-scheme: dark) { .comparison-table-wrapper { border-color: #333; box-shadow: none; background: #1c1c1e; } }

.comparison-table { width: 100%; border-collapse: collapse; min-width: 500px; }

.comparison-table th, .comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee; /* Vertikale Trennlinie */
    vertical-align: middle;
    text-align: left;
}
.comparison-table th:last-child, .comparison-table td:last-child { border-right: none; }
.comparison-table tr:last-child td { border-bottom: none; }

@media (prefers-color-scheme: dark) { 
    .comparison-table th, .comparison-table td { border-color: #333; } 
}

/* Spalten-Logik */
.comparison-table th { font-size: 1.1rem; }
.sub-header { font-size: 0.8rem; font-weight: 400; opacity: 0.7; display: block; margin-top: 5px; }

.competitor-col { background-color: #f9f9f9; color: #666; }
.us-col { 
    background-color: rgba(0, 122, 255, 0.05); 
    color: var(--accent-color); 
    font-weight: 700; 
    border-bottom: 2px solid var(--accent-color) !important; 
}

@media (prefers-color-scheme: dark) { 
    .competitor-col { background-color: #2c2c2e; color: #888; }
    .us-col { background-color: rgba(10, 132, 255, 0.1); }
}

.small-text { font-size: 0.8rem; display: block; margin-top: 4px; opacity: 0.8; font-weight: normal; }
.positive { color: #28cd41; }
.negative { color: #ff3b30; }


/* --- 8. FOOTER --- */
footer { padding: 50px 0; text-align: center; font-size: 0.9rem; border-top: 1px solid #333; margin-top: 40px; }
footer a { color: var(--text-color); text-decoration: none; margin: 0 10px; }
footer a:hover { text-decoration: underline; }


/* --- 9. MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }

    /* Tabelle Mobile: Scroll-Zwang aufheben & Pill-Design */
    .comparison-table {
        min-width: auto; width: 100%;
        border-collapse: separate; border-spacing: 0;
    }
    
    .competitor-col { background-color: transparent !important; color: #999; }

    /* Pill-Highlight für DEINE Spalte */
    .us-col {
        background-color: rgba(0, 122, 255, 0.08) !important;
        border-left: 1px solid rgba(0, 122, 255, 0.1);
        border-right: 1px solid rgba(0, 122, 255, 0.1);
    }
    
    /* Padding & Schriftgröße reduzieren */
    .comparison-table th, .comparison-table td { padding: 12px 4px; font-size: 0.85rem; }
    
    /* Spaltenbreiten anpassen */
    .comparison-table th:first-child, .comparison-table td:first-child { width: 20%; font-size: 0.8rem; font-weight: bold; }
    
    /* Erklärungen noch kleiner */
    .sub-header, .small-text { font-size: 0.7rem; line-height: 1.2; }
}