/* ==========================================================================
   1. GRUNDLAGEN & TYPOGRAFIE
   ========================================================================== */
html {
    overscroll-behavior: none;
    background-color: #101522;
    scroll-behavior: smooth;
    min-height: 100%;
    /* Sicherung fuer den Browser */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    font-family: 'Avenir Next', 'Campton', 'Inter', "Segoe UI", sans-serif;
    color: #ffffff;
    overscroll-behavior: none;
    /* Hintergrund-Befehle hier entfernt! */
}

/* NEU: Der bombensichere Hintergrund-Layer fuer die Marketing-Seite */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    /* Ganz weit in den Hintergrund */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 2s ease;
}

h1,
h2,
h3,
p,
a,
button,
input {
    font-family: inherit;
    margin: 0;
}

/* Farben fuer timebg.js - Jetzt auf das ::before angewendet! */
body.nacht::before {
    background-image: linear-gradient(to bottom, #090a0f 0%, #101522 50%, #151b29 100%);
}

body.morgendaemmerung::before {
    background-image: linear-gradient(to bottom, #11182b 0%, #2b2542 60%, #52344b 100%);
}

body.morgen::before {
    background-image: linear-gradient(to bottom, #39578a 0%, #876d7f 70%, #d18d77 100%);
}

body.vormittag::before {
    background-image: linear-gradient(to bottom, #4a72c1 0%, #6e94d6 60%, #a2bce6 100%);
}

body.mittag::before {
    background-image: linear-gradient(to bottom, #2d5dbf 0%, #447aed 50%, #7daaf5 100%);
}

body.nachmittag::before {
    background-image: linear-gradient(to bottom, #3b6bd1 0%, #6692db 60%, #b8c4d1 100%);
}

body.sonnenuntergang::before {
    background-image: linear-gradient(to bottom, #304780 0%, #876277 50%, #d47e6a 100%);
}

body.abend::before {
    background-image: linear-gradient(to bottom, #162242 0%, #30263d 60%, #4a212c 100%);
}

/* ==========================================================================
   2. BUTTONS 
   ========================================================================== */
.btn-primary,
.btn-submit {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.hero-actions .btn-primary,
.pricing-card .btn-primary {
    width: auto;
    display: block;
}

.btn-primary:hover,
.btn-submit:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-secondary,
.btn-register {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: block;
    text-align: center;
}

.btn-secondary:hover,
.btn-register:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary-small,
.action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary-small:hover,
.action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-google:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   3. SMARTE NAVIGATION 
   ========================================================================== */
.top-navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 60px);
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1);
    max-width: 1200px;
}

.top-navbar.nav-hidden {
    transform: translate(-50%, -150%);
}

.top-navbar .logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.top-navbar .user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
}

/* ==========================================================================
   4. MARKETING LAYOUT
   ========================================================================== */
.marketing-wrapper {
    display: flex;
    flex-direction: column;
    /* Wrapper richtet sich an der Navbar aus */
    width: calc(100% - 60px);
    max-width: 1200px;
    margin: 0 auto;
    /* DEUTLICH mehr Abstand nach oben fuer die Swiss Quality Plakette */
    padding-top: 200px;
}

section {
    /* Mehr genereller Abstand zwischen den Bloecken */
    padding: 140px 0;
}

section h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 70px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 120px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 35px;
}

.hero-section h1 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1px;
    font-weight: 600;
}

.hero-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin-bottom: 60px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.ltd-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Mehr Abstand zwischen den Textbloecken */
    gap: 80px;
}

.feature-item {
    text-align: left;
}

.feature-icon {
    color: #ffffff;
    margin-bottom: 25px;
    opacity: 0.9;
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Pricing Grid (Für 4 Karten optimiert) */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Lücke deutlich verkleinert */
    flex-wrap: wrap;
    /* Lässt das Grid etwas aus der 1200px Begrenzung ausbrechen, um Platz zu schaffen */
    margin-left: -30px;
    margin-right: -30px;
}

.pricing-card {
    padding: 40px 25px;
    /* Etwas weniger Innenabstand */
    border-radius: 20px;
    width: 100%;
    /* 280px ist die perfekte Magie-Zahl, damit genau 4 nebeneinander passen */
    max-width: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.flat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
    z-index: 10;
    transition: transform 0.2s ease, border 0.2s ease;
}

.highlight-card:hover {
    transform: scale(1.07);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-limited {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #101522;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 600;
}

.price {
    font-size: 2.4rem;
    /* Schrift minimal kleiner, damit der Text bei 4 Karten nicht umbricht */
    font-weight: 600;
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.benefit-list {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
    flex-grow: 1;
}

.benefit-list li {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
}

.benefit-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.marketing-footer {
    text-align: center;
    padding: 50px 0 20px 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ==========================================================================
   5. LOGIN & REGISTRIEREN
   ========================================================================== */
.login-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #ffffff;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-card h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0 15px;
    height: 48px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border 0.2s, background 0.2s;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-form input:focus {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
}

.alternative-logins {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   6. MOBILE OPTIMIERUNG
   ========================================================================== */
@media (max-width: 900px) {
    body {
        padding: 15px;
    }

    .top-navbar {
        width: calc(100% - 30px);
        top: 15px;
        padding: 15px 20px;
    }

    .top-navbar .nav-item {
        display: none;
    }

    .marketing-wrapper {
        padding-top: 150px;
        width: calc(100% - 30px);
    }

    .highlight-card {
        transform: scale(1);
    }

    .login-wrapper {
        min-height: calc(100vh - 30px);
    }

    .login-card {
        padding: 30px 20px;
    }

    .pricing-grid {
        gap: 40px;
    }
}