:root {
    /* Design Tokens aus DESIGN.md */
    --primary: #0066cc;
    --primary-focus: #0071e3;
    --primary-on-dark: #2997ff;
    --ink: #1d1d1f;
    --body-muted: #86868b;
    --canvas: #ffffff;
    --canvas-parchment: #f5f5f7;
    --surface-tile-1: #1d1d1f;
    --surface-tile-2: #272729;
    --border-soft: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);
    --shadow-product: 0 14px 36px rgba(0, 0, 0, 0.08);
    --shadow-photo: rgba(0, 0, 0, 0.22) 3px 5px 30px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
    --canvas: #000000;
    --canvas-parchment: #161617;
    --ink: #f5f5f7;
    --body-muted: #a1a1a6;
    --border-soft: rgba(255, 255, 255, 0.12);
}

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

body {
    font-family: var(--font-text);
    background-color: var(--canvas);
    color: var(--ink);
    line-height: 1.47;
    letter-spacing: -0.374px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sub-Nav / Sticky Bar im Apple-Stil */
.sub-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 52px;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}
[data-theme="dark"] .sub-nav {
    background: rgba(22, 22, 23, 0.8);
}
.sub-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.sub-nav-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Dark Mode Toggle Button */
.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--canvas-parchment);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}
.theme-icon {
    font-size: 14px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Section Baseline */
section {
    padding: 80px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 90px 0 60px;
    background: var(--canvas-parchment);
    transition: background 0.3s ease;
}
.hero-eyebrow {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 56px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
    margin-bottom: 14px;
}
.hero .lead {
    font-size: 21px;
    line-height: 1.38;
    color: var(--body-muted);
    max-width: 620px;
    margin: 0 auto 32px;
    font-weight: 400;
}

/* Countdown Component mit Bundesland-Select */
.countdown-wrap {
    background: var(--canvas);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-product);
    margin-bottom: 36px;
    max-width: 100%;
    transition: background 0.3s ease;
}
.countdown-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.countdown-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--body-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.state-select-wrapper {
    position: relative;
}
.state-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--canvas-parchment);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 6px 32px 6px 14px;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}
.state-select:hover, .state-select:focus {
    border-color: var(--primary);
}
.state-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--body-muted);
    pointer-events: none;
}
.countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.countdown-number {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}
.countdown-unit {
    font-size: 11px;
    color: var(--body-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Store Badges Wrapper */
.store-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.store-badge-link {
    display: inline-block;
    transition: transform 0.2s ease;
    height: 44px;
}
.store-badge-link:hover {
    transform: scale(1.03);
}
.store-badge-img {
    height: 44px;
    width: auto;
    display: block;
}
/* Im Dark Mode invertieren wir das schwarze Apple Badge sanft ins Weiße für bessere Lesbarkeit */
[data-theme="dark"] .store-badge-apple {
    filter: invert(1);
}

/* Mockup Placeholder Section */
.hero-mockup-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.mockup-placeholder {
    width: 100%;
    max-width: 780px;
    height: 420px;
    background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-parchment) 100%);
    border: 2px dashed var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-photo);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--body-muted);
}
.mockup-placeholder-icon {
    font-size: 40px;
}
.mockup-placeholder-text {
    font-size: 15px;
    font-weight: 500;
}

/* Features Grid - Clean Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.card {
    background: var(--canvas-parchment);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
}
.card-icon {
    font-size: 28px;
    margin-bottom: 4px;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
}
.card p {
    font-size: 15px;
    color: var(--body-muted);
    line-height: 1.47;
}

/* Section Headlines */
.section-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}
.section-subtitle {
    font-size: 19px;
    color: var(--body-muted);
    text-align: center;
    margin-top: 8px;
}

/* Pro Dark Section (Alternating Tile) */
.pro-section {
    background: var(--surface-tile-1);
    color: #ffffff;
}
.pro-section .section-subtitle {
    color: #a1a1a6;
}
.comparison-table {
    margin-top: 48px;
    overflow-x: auto;
}
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.comparison-table th {
    font-size: 14px;
    color: #a1a1a6;
    font-weight: 600;
    text-transform: uppercase;
}
.comparison-table td {
    font-size: 16px;
}
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    text-align: center;
}
.badge-check {
    color: #34d399;
    font-weight: bold;
}
.badge-cross {
    color: #7a7a7a;
}

/* Footer */
footer {
    background: var(--canvas-parchment);
    padding: 48px 0;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--body-muted);
    transition: background 0.3s ease;
}
.footer-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}
.footer-links a {
    color: var(--ink);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* Legal View */
.legal-card {
    background: var(--canvas);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 720px;
    margin: 40px auto;
}
.legal-card h1 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 16px;
}
.legal-card h2 {
    font-size: 20px;
    margin: 24px 0 8px;
}
.legal-card p, .legal-card li {
    color: var(--body-muted);
    font-size: 15px;
    margin-bottom: 12px;
}

.btn-secondary-link {
    color: var(--primary);
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-secondary-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .countdown {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .hero h1 {
        font-size: 36px;
    }
    .mockup-placeholder {
        height: 260px;
    }
}
