/* =================================
   Globale Design-Variablen für Effithermo
   ================================= */
:root {
    --primary-color: #E60000; /* Das kräftige Effithermo-Rot */
    --secondary-color: #004a99; /* Das tiefe Blau für Akzente */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

/* =================================
   Allgemeine Body- und Container-Stile
   ================================= */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* =================================
   Header / Navigation
   ================================= */
header {
    background: var(--white);
    color: var(--text-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    color: var(--primary-color); /* Verwendet jetzt die Farbvariable */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color); /* Verwendet jetzt die Farbvariable */
}

/* =================================
   Hero-Sektion (Haupt-Banner)
   ================================= */
#hero {
    background: url('https://images.unsplash.com/photo-1588072483863-7a9a1de8b20b?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 60vh;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content .coming-soon {
    font-size: 1.2rem;
    font-weight: 300;
    background: var(--primary-color); /* Verwendet jetzt die Farbvariable */
    padding: 10px 20px;
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color); /* Verwendet jetzt die Farbvariable */
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    margin-top: 2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #c40000; /* Etwas dunkleres Rot für Hover-Effekt */
}

/* =================================
   Allgemeine Sektions-Stile
   ================================= */
section {
    padding: 4rem 0;
    text-align: center;
}

section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

section h3::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--primary-color); /* Verwendet jetzt die Farbvariable */
    bottom: -10px;
    left: 20%;
}

#about, #products {
    background: var(--white);
}

.partner-logo {
    margin-top: 2rem;
}

.product-categories {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    gap: 20px;
}

.category {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    width: 30%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category h4 {
    color: var(--primary-color); /* Verwendet jetzt die Farbvariable */
    font-size: 1.5rem;
}

/* =================================
   Kontakt-Sektion
   ================================= */
#contact {
    background: #333;
    color: var(--white);
}

#contact h3 {
    color: var(--white);
}

#contact form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1rem;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #444;
    color: var(--white);
    box-sizing: border-box;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--primary-color); /* Verwendet jetzt die Farbvariable */
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #c40000; /* Etwas dunkleres Rot für Hover-Effekt */
}

/* =================================
   Footer
   ================================= */
footer {
    background: #222;
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
}

/* =================================
   Impressum / Rechtliche Hinweise
   ================================= */
.imprint-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    line-height: 1.7;
    font-family: 'Roboto', sans-serif; /* Stellt Schriftart sicher, falls nicht vererbt */
    text-align: left; /* Richtet den Text linksbündig aus */
}

.imprint-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.imprint-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.imprint-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

.imprint-container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.imprint-container strong {
    color: var(--text-color);
}

.imprint-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.imprint-container a:hover {
    text-decoration: underline;
}

/* =================================================== */
/* ==   RESPONSIVE DESIGN FÜR MOBILE GERÄTE (NEU)   == */
/* =================================================== */
/* Dieser Code sollte am Ende Ihrer CSS-Datei stehen. */
/* Er ersetzt alle vorherigen @media-Blöcke.         */

@media (max-width: 768px) {

    /* --- Allgemeine Anpassungen --- */
    body {
        /* Verhindert, dass Schrift auf manchen Geräten zu klein wird */
        -webkit-text-size-adjust: 100%; 
    }

    section {
        /* Weniger Leerraum oben und unten, um Platz zu sparen */
        padding: 2.5rem 1rem;
    }

    section h3 {
        /* Kleinere Überschriften auf dem Handy */
        font-size: 1.8rem;
    }

    /* --- Header / Navigation --- */
    header .container {
        /* Logo und Navigation untereinander anordnen */
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header .logo {
        margin-bottom: 15px;
    }

    header nav ul {
        padding-left: 0; /* Entfernt Standard-Einrückung */
    }

    header nav ul li {
        /* Navigationspunkte als Block untereinander anzeigen */
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    /* --- Hero Sektion (Banner) --- */
    #hero {
        /* Flexible Höhe statt fester Höhe, passt sich dem Inhalt an */
        height: auto;
        padding: 4rem 1rem;
    }

    .hero-content h2 {
        font-size: 2.2rem; /* Lesbarere Schriftgröße */
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-content .coming-soon {
        font-size: 1rem;
        padding: 8px 15px;
    }

    /* --- Produktkategorien --- */
    .product-categories {
        /* Kategorien untereinander anordnen */
        flex-direction: column;
        align-items: center; /* Zentriert die Boxen */
        gap: 1.5rem; /* Abstand zwischen den Boxen */
    }

    .category {
        /* Boxen nehmen fast die volle Breite ein */
        width: 90%;
        max-width: 400px; /* Verhindert, dass Boxen auf breiten Handys zu groß werden */
    }

    /* --- Kontaktformular --- */
    #contact form {
        /* Formular nimmt fast die volle Breite ein */
        width: 90%;
        margin: 2rem auto 0 auto;
    }
    
    /* --- Impressum --- */
    .imprint-container {
        /* Passt den Container an schmale Bildschirme an */
        margin: 20px 10px;
        padding: 20px;
    }

    .imprint-container h1 {
        font-size: 1.8rem; /* Angepasste Überschriftengröße */
    }
}

/* Stil für das Status-Banner */
.status-banner {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Standardmäßig unsichtbar */
}
.status-banner.success {
    background-color: #d4edda; /* Sanftes Grün */
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block; /* Sichtbar machen */
}
.status-banner.error {
    background-color: #f8d7da; /* Sanftes Rot */
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block; /* Sichtbar machen */
}

/* =================================
   SHOP LAYOUT ANPASSUNG (Für 4 Spalten)
   ================================= */

    /* Übernimmt Variablen, falls die Haupt-CSS nicht geladen wird */
    :root {
        --secondary-color: #004a99;
        --light-gray: #f4f4f4;
        --white: #ffffff;
    }

    /* Container und Titel für den Shop-Inhalt */
    .shop-content {
        padding: 60px 0 80px 0;
        background: var(--light-gray);
    }

    .shop-title {
        text-align: center;
        font-size: 38px;
        font-weight: 700;
        margin-bottom: 50px;
        color: var(--secondary-color);
    }

    /* Raster für die Produkt-Kacheln */
    .product-list-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
        gap: 30px;
        /* Wir setzen die Ausrichtung auf 'stretch' und nutzen feste Kachelhöhen */
        align-items: stretch;
    }

    /* Stil für Ihre eingebetteten Ecwid/IONOS-Produkte (die Kachel) */
    .ecsp-SingleProduct-v2 {
        background: var(--white); 
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        transition: box-shadow 0.3s ease, transform 0.3s ease; 
        
        /* WICHTIGE HÖHEN-STANDARDISIERUNG */
        display: flex; /* Flex-Container für den Inhalt */
        flex-direction: column; /* Inhalt von oben nach unten */
        height: 100%; /* Wichtig, damit alle Kacheln im Grid gleich hoch sind */
    }

    .ecsp-SingleProduct-v2:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    
    /* WICHTIG: Standardisiert die Höhe des Bild-Containers */
    .ecsp-SingleProduct-v2 [itemprop="image"] {
        height: 180px; /* Feste Höhe für den Bild-Platzhalter */
        overflow: hidden; /* Schneidet alles ab, was übersteht */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* WICHTIG: Stellt sicher, dass das Bild den Container ausfüllt */
    .ecsp-SingleProduct-v2 [itemprop="image"] img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Zeigt das ganze Bild ohne Abschneiden, falls es schmaler ist */
        /* Alternativ "cover" verwenden, um den Container komplett zu füllen (schneidet zu hohe/breite Seiten ab) */
    }

    /* Stellt sicher, dass der Titel-Bereich und die Steuerelemente unten bleiben */
    .ecsp-SingleProduct-v2 .ecsp-title,
    .ecsp-SingleProduct-v2 [customprop="addtobag"] {
        margin-top: auto; /* Schiebt diese Elemente nach unten, um Platz nach oben zu schaffen */
    }
