@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --text-color-highlight: #74D1EA;
    --card-bg: #ffffff;
    --accent-color: #000000; /* Apple style black accent */
    --accent-text: #ffffff;
    --secondary-text: #86868b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-color-highlight: #74D1EA;
    --card-bg: #1c1c1e;
    --accent-color: #ffffff;
    --accent-text: #000000;
    --secondary-text: #a1a1a6;
    --nav-bg: rgba(28, 28, 30, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; transition: background-color 0.3s, color 0.3s; }

body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh;}

/* Navigation Container */
.navbar {
    position: fixed; top: 0; width: 100%; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; /* Etwas weniger Padding an den Seiten für Mobile */
    background: var(--nav-bg); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); z-index: 1000;
    border-bottom: 1px solid rgba(134, 134, 139, 0.1);
}

/* --- Sprach-Flaggen --- */
.lang-flags {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 25px; /* Abstand zum Theme-Toggle */
}

#lang-toggle-img {
    width: 28px;
    height: auto;
    cursor: pointer;
    display: block; /* Verhindert komische Abstände */
    transition: transform 0.2s ease;
}

#lang-toggle-img:hover {
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1; /* Aktive Flagge ist voll sichtbar */
    pointer-events: none; /* Verhindert Klick auf die bereits aktive Sprache */
}

.logo-container { z-index: 1002; }
.logo { height: 35px; width: auto; }

/* Desktop Links */
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { position: relative; text-decoration: none; color: var(--text-color); font-size: 0.9rem; font-weight: 500; opacity: 0.8; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--text-color-highlight); font-weight: 600; opacity: 1;}
.nav-links .btn-small { 
    background: var(--accent-color); color: var(--accent-text) !important; 
    padding: 8px 16px; border-radius: 99px; opacity: 1;
}

/* Rechte Seite (Controls + Hamburger) */
.nav-right { display: flex; align-items: center; gap: 20px; height: 100%; z-index: 1002; }

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: rgba(134, 134, 139, 0.1);
}

.material-symbols-rounded {
    font-size: 30px; /* Grösse der Icons */
    /* Wichtig: Verhindert, dass Icons Text auswählen */
    user-select: none; 
}

/* Standard (Light Mode): Zeige Mond (um zu Dark zu wechseln), verstecke Sonne */
body[data-theme="light"] .light-icon { display: block; }
body[data-theme="light"] .dark-icon { display: none; }

/* Dark Mode: Zeige Sonne (um zu Light zu wechseln), verstecke Mond */
body[data-theme="dark"] .light-icon { display: none; }
body[data-theme="dark"] .dark-icon { display: block; }

/* Hamburger Icon (Standardmässig ausgeblendet) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-content {
    flex: 1; /* Nimmt den gesamten verfügbaren Platz ein */
    width: 100%;
}

/* Layout & Sections */
.hero, .hero-small {
    padding: 120px 10% 60px; text-align: center;
    display: flex; flex-direction: column; align-items: center; min-height: auto; padding-bottom: 20px;
}

.hero-content {
    width: 100%;
    max-width: 800px; /* Begrenzt die Breite auf grossen Bildschirmen */
    margin-left: auto;
    margin-right: auto;
}
.hero h1 { font-size: 4rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.1; }
.hero p { 
    font-size: 1.5rem; 
    color: var(--secondary-text); 
    /* Maximale Breite und automatischer Margin für Zentrierung */
    max-width: 700px; 
    margin: 0 auto 2.5rem;
}
.hero-image img { width: 100%; max-width: 500px; margin-top: 3rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }

.hero-small { min-height: 30vh; justify-content: center; }
.hero-small h1 { font-size: 3rem; }

.section-title {
    text-align: center;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-section { padding: 30px 10%; }
.bg-alt { background-color: var(--card-bg); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; margin-top: 3rem; }

.card {
    background: var(--card-bg); padding: 2.5rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow); border: 1px solid rgba(134,134,139,0.1);
}
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.card p { color: var(--secondary-text); }

/* Buttons */
.btn-primary {
    background-color: var(--accent-color); color: var(--accent-text);
    padding: 14px 28px; border-radius: 99px; text-decoration: none;
    font-weight: 600; font-size: 1.1rem; border: none; cursor: pointer;
    display: inline-block; transition: transform 0.2s;
}
.btn-primary:hover { transform: scale(1.02); }

/* TEAM Section (About) */
.about-text { max-width: 700px; margin: 0 auto; text-align: center; }
.about-text .lead { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }

.team-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; margin-top: 4rem;
}
.team-member { text-align: center; width: 250px; }
/* Neues CSS für das echte Team-Foto */
.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Macht das Bild rund */
    object-fit: cover;  /* Verhindert Verzerrungen */
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 3px solid var(--card-bg); /* Optionaler, schicker Rahmen */
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    background-color: #e0e0e0; /* Etwas helleres Grau */
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow);
    /* Ein kleines Icon im Platzhalter anzeigen */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.photo-memder { height: 200px; width: auto; }
/* Optional: Wenn echte Bilder da sind, hier URLs einfügen via nth-child oder IDs */
/* .team-member:nth-child(1) .photo-placeholder { background-image: url('assets/team1.jpg'); } */

/* SHOP Layout */
.shop-wrapper {
    padding: 120px 10% 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; min-height: 80vh;
}
.product-gallery img { width: 100%; border-radius: var(--border-radius); }
.product-details h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
.description {margin-bottom: 3rem;}
.price-tag { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; }
.shipping-info { color: var(--secondary-text); font-size: 0.9rem; margin-top: 1rem; }
.shop-actions { margin-top: 2rem; }
.btn-checkout {
    background: #34c759; color: white; width: 100%; padding: 15px; border: none;
    border-radius: 12px; margin-top: 1rem; font-size: 1rem; cursor: pointer;
}
.hidden { display: none; }

/* CONTACT Layout */
.contact-wrapper {
    padding: 120px 10% 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border-radius: 12px; border: 1px solid rgba(134,134,139,0.3);
    background: var(--bg-color); color: var(--text-color); font-size: 1rem;
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Footer */
footer { text-align: center; padding: 3rem; color: var(--secondary-text); font-size: 0.8rem; border-top: 1px solid rgba(134,134,139,0.1); margin-top: auto; }

/* --- WARENKORB (CART) STYLES --- */
    .cart-icon { position: relative; cursor: pointer; display: flex; align-items: center; margin-right: 15px; color: var(--text-color); }
    .cart-badge { background: #ff3b30; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight: bold; position: absolute; top: -8px; right: -10px; min-width: 18px; text-align: center; }

    /* Dunkler Hintergrund (Overlay) */
    .cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    .cart-overlay.active { opacity: 1; visibility: visible; }

    /* Das seitliche Fenster */
    .cart-sidebar { position: fixed; top: 0; right: -450px; width: 400px; max-width: 100%; height: 100vh; background: var(--bg-color); z-index: 2001; transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    .cart-sidebar.active { right: 0; }

    .cart-header { padding: 20px; border-bottom: 1px solid rgba(134,134,139,0.2); display: flex; justify-content: space-between; align-items: center; }
    .cart-header h2 { font-size: 1.5rem; }
    .close-cart { background: none; border: none; font-size: 2rem; color: var(--text-color); cursor: pointer; line-height: 1; }

    .cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
    .cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(134,134,139,0.1); }
    .cart-item-info h4 { font-size: 1rem; margin-bottom: 5px; }
    .cart-item-price { color: var(--secondary-text); font-weight: 500; }

    /* Mengen-Steuerung (+ / -) */
    .qty-controls { display: flex; align-items: center; gap: 10px; background: var(--card-bg); padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(134,134,139,0.2); }
    .qty-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-color); }
    .qty-btn:hover { color: var(--accent-color); }

    .cart-footer { padding: 20px; border-top: 1px solid rgba(134,134,139,0.2); background: var(--card-bg); }
    .cart-total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }
    #checkout-btn { width: 100%; background-color: #000; color: #fff; padding: 15px; font-size: 1.1rem; }
    [data-theme="dark"] #checkout-btn { background-color: #fff; color: #000; }

/* --- Legal Pages (Rechtstexte) --- */
    .legal-content {
        max-width: 80%;
        margin: 0 auto;
        padding-bottom: 4rem;
        padding-top: 80px;
    }

    .legal-text {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-color);
    }

    .legal-text h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-size: 1.3rem;
        font-weight: 600;
    }

    .legal-text p {
        margin-bottom: 1rem;
    }

/* --- Social Media Sektion --- */
.social-connect {
    margin-top: 6rem; /* Genug Abstand zum Team */
    text-align: center;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(134, 134, 139, 0.1); /* Feine Linie zur Abtrennung */
    padding-top: 3rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px; /* Abstand zwischen den Icons */
    align-items: center;
}

.social-link {
    color: var(--text-color); /* Passt sich automatisch an Dark/Light Mode an */
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px); /* Leichtes Schweben beim Hover */
    background-color: rgba(134, 134, 139, 0.1); /* Subtiler Hintergrund beim Hover */
    color: var(--accent-color); /* Wird blau (oder deine Akzentfarbe) */
}

.social-link svg {
    stroke-width: 1.5; /* Modernes, dünnes Liniendesign */
}

/* --- Neues 4er Grid für Zielgruppen --- */
.grid-4 {
    display: grid;
    /* Erzeugt automatisch Spalten, mind. 250px breit */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem;
    margin-top: 3rem;
}

/* Icons in den Usecase-Boxen */
.uc-icon {
    font-size: 3rem; /* Grosses Emoji */
    margin-bottom: 1rem;
    display: block;
}

/* Karten etwas kompakter machen */
.card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert Icon und Text */
    text-align: center;
    height: 100%; /* Alle Karten gleich hoch */
}

/* Nur auf Handys: Alles untereinander */
@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILE & RESPONSIVE DESIGN --- */

@media (max-width: 900px) {
    /* 1. Hamburger sichtbar machen */
    .hamburger { display: flex; }

    /* 2. Navigations-Links Container */
    .nav-links {
        position: fixed; /* Fixiert auf dem Bildschirm */
        top: 0;
        right: 0;
        left: 0;
        height: 100vh; /* Volle Höhe */
        width: 100%;   /* Volle Breite */
        
        /* Hintergrund MUSS solide sein */
        background-color: var(--bg-color) !important; 
        
        /* Flexbox um Links zu zentrieren */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        
        /* Startzustand: Unsichtbar & nach oben geschoben */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden; /* Wichtig: damit man keine unsichtbaren Links klickt */
        
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999; /* Direkt unter dem Navbar Header (der hat 1000) */
        
        padding-top: 70px; /* Platz für den Header lassen */
    }

    /* 3. AKTIVER ZUSTAND (Wenn JS die Klasse hinzufügt) */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Links grösser machen */
    .nav-links a { 
        font-size: 1.8rem; 
        font-weight: 600;
        display: block;
    }
    
    /* Buttons im Menü anpassen */
    .nav-links .btn-small {
        font-size: 1.5rem !important;
        padding: 12px 30px;
    }

    /* Hamburger Animation zum "X" */
    .hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* --- Layout Korrekturen für Mobile --- */
    
    /* Padding an den Seiten reduzieren */
    .hero, .hero-small, .shop-wrapper, .contact-wrapper, .content-section, .navbar { 
        padding-left: 5%; 
        padding-right: 5%; 
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    /* Shop und Kontakt untereinander statt nebeneinander */
    .shop-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 100px;
    }
    
    .product-details, .about-text { text-align: center; }
}