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

:root {
    --primary: #27385C;
    --primary-dark: #1c2a45;
    --secondary: #3C4253;
    --white: #ffffff;
    --light-bg: #f8f9fb;
    --text: #1a1a1a;
    --text-light: #6b7280;
    --radius: 4px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    font-weight: 300;
    letter-spacing: 0.02em;
}

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

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

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transition: opacity 1s var(--transition);
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.logo-icon {
    border-radius: 50%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    border: 1px solid var(--primary) !important;
    padding: 8px 20px;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition) !important;
}

.nav-cta:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 90px 40px 60px;
}

.hero-inner {
    text-align: center;
    max-width: 800px;
}

.hero-title-banner {
    margin-bottom: 32px;
}

.title-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(19%) sepia(25%) saturate(1200%) hue-rotate(189deg) brightness(95%) contrast(90%);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
    opacity: 0.4;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== Sections ===== */
.section {
    padding: 120px 40px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: var(--light-bg);
}

.section-heading {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* Split Section */
.section-split {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-text h2 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.8;
}

.check-list {
    list-style: none;
    margin-bottom: 36px;
}

.check-list li {
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-weight: 400;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 14px;
    height: 7px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}

.text-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: color var(--transition);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Device Frame */
.device-frame {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(39, 56, 92, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform var(--transition);
}

.device-frame:hover {
    transform: translateY(-4px);
}

.device-frame img {
    display: block;
    width: 100%;
}

.section-image {
    display: flex;
    justify-content: center;
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.feature-item {
    padding: 0;
}

.feature-number {
    font-size: 48px;
    font-weight: 200;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.feature-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}

/* ===== CTA ===== */
.section-cta {
    background: var(--primary);
    text-align: center;
}

.section-cta h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cta-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--white);
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-minimal:hover {
    background: transparent;
    color: var(--white);
}

.btn-minimal-outline {
    background: transparent;
    color: var(--white);
}

.btn-minimal-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left .logo {
    font-size: 16px;
}

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

.footer-center a {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.04em;
    transition: color var(--transition);
}

.footer-center a:hover {
    color: var(--primary);
}

.footer-dot {
    color: var(--text-light);
    opacity: 0.4;
}

.footer-right p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 50;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== Legal Pages (Impressum / Datenschutz) ===== */
.legal-page {
    padding: 140px 40px 100px;
    background: var(--white);
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    letter-spacing: -0.01em;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 28px;
    margin-bottom: 8px;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 12px;
}

.legal-content address {
    font-style: normal;
    font-size: 15px;
    color: var(--text);
    line-height: 1.9;
    margin: 16px 0;
    padding: 20px 24px;
    background: var(--light-bg);
    border-left: 2px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-content ul {
    margin: 12px 0 12px 20px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(39, 56, 92, 0.3);
    transition: text-decoration-color var(--transition);
}

.legal-content a:hover {
    text-decoration-color: var(--primary);
}

/* ===== Remove Account Form ===== */
.remove-account-form {
    margin-top: 40px;
}

.remove-account-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.remove-account-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
    margin-bottom: 24px;
}

.remove-account-form input[type="email"]:focus {
    border-color: var(--primary);
}

.remove-account-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #c0392b;
    color: var(--white);
    border: 1px solid #c0392b;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background var(--transition), border-color var(--transition);
}

.remove-account-btn:hover {
    background: #a93226;
    border-color: #a93226;
}

/* ===== Download Page ===== */
.download-page {
    padding: 140px 40px 100px;
    background: var(--white);
}

.download-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.download-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.download-image {
    flex: 0 0 320px;
}

.download-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(39, 56, 92, 0.12);
}

.download-intro h1 {
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.download-intro p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.download-card {
    background: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(39, 56, 92, 0.1);
}

.download-card-icon {
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.download-version {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.download-file {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
    word-break: break-all;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    transition: background var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
        transition: right 0.4s ease;
        z-index: 105;
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section-text h2 {
        font-size: 30px;
    }

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

    .hero {
        padding: 90px 24px 60px;
    }

    .section {
        padding: 80px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .legal-page {
        padding: 120px 24px 60px;
    }

    .download-page {
        padding: 120px 24px 60px;
    }

    .download-hero {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        margin-bottom: 48px;
    }

    .download-image {
        flex: 0 0 auto;
        max-width: 280px;
    }

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

@media (max-width: 600px) {
    .navbar-inner {
        padding: 0 20px;
    }

    .navbar {
        height: 70px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .title-image {
        max-width: 300px;
    }

    .section-cta h2 {
        font-size: 28px;
    }

    .section-text h2 {
        font-size: 26px;
    }

    .footer {
        padding: 0 20px;
    }
}
