/* ----- Variablen & Themes ----- */
:root {
    --primary: #0071e3;
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --text-grey: #6e6e73;
    --nav-bg: rgba(245, 245, 247, 0.8);
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg: #000000;
    --card-bg: #1c1c1e;
    --text: #f5f5f7;
    --text-grey: #a1a1a6;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* ----- Global Styles ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Navigation (Responsive Fix) ----- */
.navbar {
    padding: 15px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NEU: Hält Mond und Download Button schön zusammen */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen den Elementen */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-grey);
    font-weight: 400;
    margin-left: 5px;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 1.3rem; /* Etwas grösser für Touch */
    padding: 5px;      /* Besserer Klickbereich */
    cursor: pointer;
    color: var(--text);
    display: flex;     /* Zentriert das Icon perfekt */
    align-items: center;
    justify-content: center;
}

.nav-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

/* ----- Hero & Slider ----- */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btn {
    margin-bottom: 50px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

/* --- Slider Container --- */
.slider-container {
    width: 300px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 9 / 19.5; 
}

.img-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

.img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #fff;
    z-index: 2;
    background-color: var(--bg);
}

.img-before img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-grey);
    font-size: 0.9rem;
}

/* ----- Features ----- */
.features {
    padding: 100px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-text { flex: 1; }

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-grey);
}

.feature-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-img img {
    width: 280px;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
}

/* ----- Footer ----- */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-grey);
    border-top: 1px solid rgba(128,128,128,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .feature-item, .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .icon-box { margin: 0 auto 20px; }
    
    /* NEU: Optimierung für sehr kleine Screens (z.B. iPhone SE) */
    .nav-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    .theme-btn {
        font-size: 1.2rem;
    }
}