:root {
    --primary-color: #4CAF50;    /* Das HEKAtech Grün */
    --secondary-color: #1A1A1A;  /* Das HEKAtech Schwarz */
    --accent-light: #e8f5e9;     /* Sehr helles Grün für Hover-Effekte */
    --text-color: #2c3e50;
    --border-color: #dcedc8;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: #f9f9f9; }
/* Der Header als Flexbox-Container */
header {
    display: flex;
    justify-content: space-between; /* Verteilt links, mitte, rechts */
    align-items: center;            /* Zentriert alles vertikal */
    padding: 0 !important; /* Entfernt das alte Standard-Padding */
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
a {
    color: var(--primary-color);
    text-decoration: none; /* Entfernt den Unterstrich standardmäßig */
    transition: color 0.2s ease-in-out;
}
/* Hover-Zustand für Links */
a:hover {
    color: #388E3C; /* Das dunklere Grün beim Drüberfahren */
    text-decoration: underline; /* Unterstreichen nur beim Hover für bessere Lesbarkeit */
}
/* Speziell für Links innerhalb von Textabschnitten (p, li, span) */
p a, li a, span a {
    font-weight: 500; /* Etwas dicker, damit sie im Text besser auffallen */
}
/* Links: Logo */
.logo img {
    height: 50px; /* Hier die Höhe deines Logos anpassen */
    display: block;
}
/* Mitte: Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}
nav a:hover { color: #3498db; }
/* Rechts: Suche */
.header-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    width: 200px;
    transition: width 0.3s, border-color 0.3s;
}
.header-search input:focus {
    width: 250px;
    border-color: #3498db;
}
/* Positionierung der Suchergebnisse */
.header-search {
    position: relative; /* Wichtig für die absolute Positionierung der Liste */
    margin-top: 0;
}
#headerSearchResults {
    position: absolute;
    top: 45px;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    display: none; /* Standardmäßig aus */
}
#headerSearchResults ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#headerSearchResults li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
#headerSearchResults li:hover {
    background-color: #f1f1f1;
}
.lang-btn {
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px; /* Rundere Optik */
    background: var(--accent-light) !important; /* Nutzt das helle Grün aus deiner Palette */
    border-color: var(--primary-color) !important; /* Der Rahmen wird HEKAtech-Grün */
    color: var(--primary-color) !important;        /* Der Text (DE/EN) wird ebenfalls grün */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.15); /* Dezenter grüner Schatten */
    transition: all 0.3s;
    font-size: 0.85em;
    display: flex;
    align-items: center;
}
.lang-btn:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25) !important;
}
.lang-btn:hover {
    background: #ffffff;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
}
.lang-btn span {
    font-size: 1.2em; /* Macht das Flaggen-Emoji etwas größer */
}
/* Der Button am linken Rand */
#watchlist-trigger {
    position: fixed;
    right: 0;           /* Von left:0 auf right:0 geändert */
    left: auto;         /* Sicherstellen, dass left nicht mehr greift */
    top: 50%;
    transform: translateY(-50%);
    background: #c0392b;
    color: white;
    padding: 15px 10px;
    border-radius: 8px 0 0 8px; /* Abrundung jetzt auf der linken Seite des Buttons */
    cursor: pointer;
    z-index: 4002;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}
#watchlist-count {
    background: white;
    color: #c0392b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}
/* Das versteckte Overlay (Sidebar) */
#watchlist-overlay {
    position: fixed;
    right: -400px;      /* Startet rechts außerhalb des Bildschirms */
    left: auto;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3); /* Schatten nach links werfen */
    z-index: 4001;
    transition: right 0.3s ease; /* Transition auf 'right' setzen */
    padding: 20px;
    display: flex;
    flex-direction: column;
}
#watchlist-overlay.open {
    right: 0;           /* Slidet auf die Position 0 am rechten Rand */
}
/* Der Artikel im Katalog bekommt einen Pointer */
.add-to-watchlist {
    cursor: pointer;
    transition: transform 0.2s;
}
.add-to-watchlist:hover {
    transform: scale(1.1);
    color: #3498db;
}
/* Der Kontakt-Button am rechten Rand (unter dem Merklisten-Trigger) */
#contact-trigger {
    position: fixed;
    right: 0;
    top: 60%; /* Etwas tiefer als die Merkliste */
    transform: translateY(-50%);
    /* background: #3498db;  Blau für Kontakt */
    background-color: var(--primary-color) !important; /* HEKAtech Grün */
    color: white !important;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    padding: 15px 10px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contact-trigger:hover {
    background-color: #388E3C !important; /* Etwas dunkler beim Hover */
    transform: scale(1.1); /* Kleiner Zoom-Effekt */
    color: white !important;
}

/* Das zentrierte Kontakt-Overlay (Hintergrund-Layer) */
#contact-modal-overlay, #product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Abdunkelung */
    display: none; /* Standardmäßig unsichtbar */
    justify-content: center;
    align-items: center;
    z-index: 4000;
    backdrop-filter: blur(3px);
}
header.navbar {
    padding-top: 10px !important;  /* Zusätzlicher weißer Platz oben */
    padding-bottom: 10px !important; /* Zusätzlicher weißer Platz unten */
    min-height: auto !important;   /* Entfernt die erzwungene Mindesthöhe */
}
.navbar-brand img {
    display: block;
    transition: transform 0.3s ease;
}
.news-content {
    line-height: 1.8;
    color: var(--secondary-color);
}
.list-group-item-action:hover {
    border-left: 4px solid var(--primary-color);
    background-color: var(--accent-light);
    transition: all 0.2s;
}
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}
/* Abstand der Navigation anpassen */
.navbar {
    border-top: 1px solid #f0f0f0; /* Eine feine Linie zwischen Logo und Nav */
    padding-top: 10px !important;
}
.navbar-collapse, 
.d-flex.align-items-center {
    display: flex;
    align-items: center !important;
}
.navbar-nav .nav-link:hover {
    align-items: flex-end !important;
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}
/* Falls der aktive Link (die aktuelle Seite) auch grün sein soll */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}
.nav-link {
    padding-bottom: 5px !important; /* Feinjustierung: Schiebt den Text exakt auf die Grundlinie */
    line-height: 1;
}
.navbar-brand {
    margin-bottom: -5px; /* Falls das Logo grafisch einen kleinen Überhang nach unten hat */
    padding: 0 !important;
}
/* Die Sprach-Buttons und Suche ebenfalls feinjustieren */
.lang-btn {
    margin-bottom: 2px;
}

/* Das eigentliche Formular-Fenster */
.contact-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.footer-links .nav-link {
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links .nav-link:hover {
    color: #040404 !important;
    text-decoration: underline;
}
footer img {
    transition: filter 0.3s;
}
footer img:hover {
    filter: grayscale(0) brightness(1) !important;
}
        /* Den Footer am unteren Bildschirmrand fixieren */
footer.fixed-bottom {
    z-index: 2000; /* Höher als der Seiteninhalt, aber niedriger als Overlays */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2); /* Schatten nach oben für Tiefe */
}
/* Platzhalter für den Body, damit der Footer nichts verdeckt */
body {
    /* Die Höhe des Footers beträgt ca. 150px bis 180px */
    padding-bottom: 180px; 
}
/* Das vergrößerte Kontakt-Fenster */
.contact-modal-content {
    background: white;
    padding: 0; /* Padding auf 0, damit das Banner oben bündig abschließt */
    border-radius: 12px;
    width: 95%;
    max-width: 1000px; /* Doppelt so groß wie vorher */
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    overflow: hidden; /* Damit das Banner an den Ecken nicht übersteht */
}
/* Stil für das Banner im Modal */
.contact-banner {
    width: 100%;
    height: 120px; /* Höhe etwas reduziert, da kein Text mehr drin ist */
    background: linear-gradient(135deg, var(--primary-color), #388E3C) !important;
    background-image: url('images/banner-contact.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start; /* Schiebt den Close-Button nach oben */
    padding: 15px 30px;
}
.contact-body {
    padding: 30px;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}
        .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #388E3C !important; /* Ein dunkleres Grün für Interaktion */
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25) !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.form-control:focus, 
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25) !important; /* Dezenter grüner Schein */
    outline: 0;
}
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
/* Der blaue Schatten beim Anklicken (Focus) */
.form-check-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25) !important;
}
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.card .btn {
    border-radius: 4px; /* Optional: Eckiger Look passend zum Logo */
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}
.card-header.bg-primary h5, 
.card-header.bg-primary {
    color: #ffffff !important;
}
/* Der "Strich" bei teilweise ausgewählten Checkboxen */
.form-check-input:indeterminate {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e") !important;
}
/* Spezifisch für Buttons im Karussell */
    #mainCarousel .btn-primary, 
    #mainCarousel .btn-dark {
        background-color: #000000 !important;
        border-color: #000000 !important;
        color: #ffffff !important;
        transition: all 0.3s ease;
    }
    
    /* Hover-Effekt: Etwas heller oder mit grünem Rand */
    #mainCarousel .btn-primary:hover,
    #mainCarousel .btn-dark:hover {
        background-color: #333333 !important;
        border-color: var(--primary-color) !important; /* Nutzt dein HEKAtech-Grün als Akzent */
    }

/* Optional: Auf Mobilgeräten ist der Footer oft höher, dort den Abstand anpassen */
@media (max-width: 768px) {
    body {
        padding-bottom: 250px;
    }
}
/* Container für den Seiteninhalt */
.container { padding: 20px; max-width: 1200px; margin: 0 auto; }