/* CloudFinis - CEO Robert Edition 2026 
    VOLLSTÄNDIGES FROZEN DESIGN - NICHTS WEGGELASSEN
*/

:root {
    --main-blue: #0066FF;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --bg-white: #ffffff;
    --border-color: #d2d2d7;
    --footer-bg: #f5f5f7;
}

* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--bg-white); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

/* --- 1. HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid #f2f2f2; padding: 10px 5%;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.header-hidden { transform: translateY(-100%); opacity: 0; }

nav { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo-container { display: flex; align-items: center; }
.logo-img { height: 55px; width: auto; margin-right: 15px; border-radius: 50%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-name { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.brand-subtext { font-size: 9px; color: var(--main-blue); font-weight: 700; display: block; margin-top: 4px; letter-spacing: 0.3px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 13px; font-weight: 600; margin-left: 25px; }
.nav-icons { display: flex; align-items: center; gap: 20px; margin-left: 25px; }
.nav-icons a { color: var(--text-dark); font-size: 18px; text-decoration: none; }

/* --- 2. MAIN CONTAINER --- */
.main-container { margin-top: 130px; width: 100%; }

/* --- 3. HERO SECTION --- */
.hero { text-align: center; padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1px; }
.blue-text { color: var(--main-blue); }

.search-container { position: relative; max-width: 550px; margin: 30px auto; }
.search-icon { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: var(--main-blue); z-index: 10; }
.search-input { width: 100%; padding: 20px 25px 20px 60px; border: 2px solid var(--main-blue); border-radius: 50px; outline: none; font-size: 16px; background: #fff; transition: 0.3s; }
.search-input:focus { box-shadow: 0 0 25px rgba(0, 102, 255, 0.2); }

/* --- 4. PRODUKT-SLIDER --- */
.product-slider { padding: 60px 0; width: 100%; }
.product-container { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 1400px; margin: 0 auto; padding: 0 5%; position: relative; }
.product-page-wrapper { flex: 1; overflow: hidden; padding: 15px 5px; }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; opacity: 1; transition: opacity 0.3s ease-in-out; 
}

.product-box { 
    border: 1px solid var(--border-color); border-radius: 22px; padding: 35px; 
    text-align: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    background: #fff; cursor: pointer; height: 100%;
}
.product-box:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--main-blue); }
.product-img-placeholder { height: 130px; background: #f5f5f7; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 45px; color: var(--main-blue); margin-bottom: 25px; transition: 0.3s; }

.price { font-weight: 800; font-size: 24px; margin: 15px 0; color: var(--text-dark); }
.buy-btn { background: var(--main-blue); color: white; border: none; padding: 15px 25px; border-radius: 50px; font-weight: 700; cursor: pointer; width: 100%; transition: 0.3s; }

.slider-arrow { background: white; border: 1px solid var(--border-color); width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.slider-dots { display: flex; justify-content: center; gap: 12px; margin-top: 50px; }
.dot { width: 10px; height: 10px; background: #d2d2d7; border-radius: 50%; cursor: pointer; transition: 0.4s; }
.dot.active { background: var(--main-blue); width: 32px; border-radius: 10px; }

/* --- 5. VORTEILE SECTION --- */
.vorteile { padding: 100px 5%; background: #fff; }
.vorteile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; max-width: 1300px; margin: 0 auto; }
.vorteil-box { text-align: center; padding: 20px; }
.icon-circle { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 28px; }
.blue-bg { background: rgba(0, 102, 255, 0.1); color: var(--main-blue); }
.green-bg { background: rgba(56, 118, 29, 0.1); color: #38761d; }

/* --- 6. MODAL SYSTEM --- */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(10px); align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #fff; padding: 0; border-radius: 28px; width: 100%; max-width: 950px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.3); }

#modalBody { padding: 60px 80px; text-align: center; line-height: 1.8; color: var(--text-dark); }
#modalBody h2 { font-size: 32px; font-weight: 800; margin-bottom: 30px; letter-spacing: -1px; color: var(--main-blue); }
#modalBody p { font-size: 16px; margin-bottom: 20px; max-width: 750px; margin-left: auto; margin-right: auto; word-wrap: break-word; }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 550px; }
.product-detail-image { background: #f8f9fa; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px; }

.large-img { 
    width: 100% !important; 
    height: 320px !important; 
    border-radius: 24px; 
    background: #ffffff !important; 
    border: 1px solid #f0f0f2;
    margin-top: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.large-img i, .large-img::before, .large-img::after { 
    display: none !important; 
}
.large-img img { 
    max-width: 100% !important; 
    max-height: 100% !important; 
    object-fit: contain !important; 
    display: block !important; 
}

.mini-preview { display: flex; gap: 12px; margin-top: 25px; }
.mini-box { width: 55px; height: 55px; background: white; border: 1px solid #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--main-blue); }
.product-detail-info { padding: 50px; display: flex; flex-direction: column; }
.category-badge { color: var(--main-blue); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }

.detail-section { margin-bottom: 20px; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; font-weight: 600; margin-top: 10px; }
.feature-list i { color: #38761d; margin-right: 5px; }

.action-buttons { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dark-btn { background: #334155; color: white; border: none; padding: 15px; border-radius: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.blue-btn { background: var(--main-blue); color: white; border: none; padding: 15px; border-radius: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }

.close-modal { position: absolute; right: 25px; top: 20px; font-size: 36px; cursor: pointer; color: var(--text-gray); line-height: 1; z-index: 10; transition: 0.3s; }

/* --- 7. FOOTER --- */
footer { background: var(--footer-bg); padding: 80px 5% 40px; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; max-width: 1300px; margin: 0 auto; }
.footer-logo-row { display: flex; align-items: center; margin-bottom: 25px; }
.footer-logo-v { background: black; color: white; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; font-weight: 900; border-radius: 8px; margin-right: 12px; }
.footer-text { color: var(--text-gray); font-size: 15px; line-height: 1.7; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { color: var(--text-gray); text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: var(--main-blue); }

.footer-bottom { border-top: 1px solid #e2e2e7; margin-top: 50px; padding-top: 30px; display: flex; flex-direction: column; gap: 20px; align-items: center; font-size: 12px; color: var(--text-gray); letter-spacing: 0.5px; }
.payment-methods { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; font-weight: 800; font-size: 13px; text-transform: uppercase; }

.pay-klarna { color: #FFB3C7 !important; }
.pay-stripe { color: #6772E5 !important; }
.pay-paypal { color: #003087 !important; }
.pay-mastercard { color: #EB001B !important; }
.pay-visa { color: #1A1F71 !important; }
.pay-google { color: #4285F4 !important; }
.pay-apple { color: #000000 !important; }

/* --- 8. MOBILE OPTIMIERUNG --- */
@media (max-width: 650px) {
    header { padding: 8px 10px; }
    .logo-img { height: 35px; margin-right: 5px; }
    
    /* Brand Name */
    .brand-name { font-size: 12px; }
    .brand-subtext { display: none !important; }

    /* Nav-Links (Über uns, FAQ, Support) rechtsbündig */
    .nav-links { 
        display: flex !important; 
        align-items: center; 
        gap: 6px; 
        margin-left: auto; 
    }
    
    .nav-links a { 
        font-size: 9px; 
        margin-left: 4px; 
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    /* Nav-Icons (Konto & Warenkorb) direkt daneben */
    .nav-icons { 
        margin-left: 8px; 
        gap: 10px; 
        display: flex !important;
        align-items: center;
    }
    
    /* Mein Konto / Dashboard Text-Anpassung */
    #header-auth-text {
        font-size: 9px !important; 
        text-transform: uppercase;
        margin-left: 2px;
    }

    .nav-icons a { 
        font-size: 14px; 
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--text-dark);
    }

    .main-container { margin-top: 75px; }
    .hero { padding: 30px 15px; }
    .hero h1 { font-size: 26px; }

    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 0 10px; }
    .product-box { padding: 15px; border-radius: 15px; }
    .product-img-placeholder { height: 80px; font-size: 30px; margin-bottom: 10px; }
    .product-box h3 { font-size: 13px; height: 32px; }
    .price { font-size: 16px; margin: 5px 0; }
    .buy-btn { padding: 8px; font-size: 10px; }
    .slider-arrow { display: none; } 

    .vorteile { padding: 30px 5%; }
    .vorteile-grid { grid-template-columns: 1fr; gap: 15px; }
    .vorteil-box { 
        display: flex; align-items: center; text-align: left; 
        padding: 18px 20px; background: #f9f9fb; border-radius: 18px; 
    }
    .icon-circle { width: 48px; height: 48px; min-width: 48px; margin: 0 18px 0 0; font-size: 20px; }
    
    .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-brand { grid-column: span 2; }
    .footer-text { display: none !important; } 
    
    .product-detail-grid { grid-template-columns: 1fr; }
    .large-img { height: 160px !important; margin-top: 10px !important; border: none; }
    .product-detail-info { padding: 0 20px 20px 20px; }
}

@media (min-width: 1600px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); max-width: 1400px; }
    .hero h1 { font-size: 64px; }
}