/* ===== HASLIDENT BRANDING - NEUE FARBEN ===== */
/* 
 * Neues Branding für Haslident
 * Logo: public/static_assets/img/logo_haslident.png
 * 
 * Farbpalette:
 * - Primär (Pink/Magenta): #c1457c (aus "haslident" Text)
 * - Sekundär (Türkis): #0088b4 (aus Lächeln und "mit üs läche")
 * - Hintergrund (Beige): #ded6ca (Aus Mikes Dateien)
 * - Akzent Dunkel-Pink: #9a3563 (dunklere Variante für Hover)
 * - Akzent Dunkel-Türkis: #006a8c (dunklere Variante für Hover)
 */

:root {
    /* ===== HASLIDENT HAUPTFARBEN ===== */
    --haslident-primary: #c1457c;           /* Pink/Magenta - Nur für primäre Buttons */
    --haslident-primary-dark: #9a3563;      /* Dunkleres Pink für Hover */
    --haslident-primary-light: #d96fa0;     /* Helleres Pink */
    --haslident-primary-rgb: 193, 69, 124;  /* RGB für rgba() */

    --haslident-secondary: #0088b4;         /* Türkis - Akzentfarbe */
    --haslident-secondary-dark: #006a8c;    /* Dunkleres Türkis für Hover */
    --haslident-secondary-light: #33a3c7;   /* Helleres Türkis */
    --haslident-secondary-rgb: 0, 136, 180; /* RGB für rgba() */

    /* ===== BEIGE FARBPALETTE ===== */
    --haslident-background: #ded6ca;        /* Beige - Haupthintergrund */
    --haslident-background-rgb: 222, 214, 202; /* RGB für rgba() */

    --haslident-background-light: #f5ede0;  /* Helles Beige - Zwischenabschnitte */
    /*--haslident-background-light: #fdfbf8;  !* Helles Beige - Zwischenabschnitte *!*/
    --haslident-background-light-rgb: 245, 237, 224; /* RGB für rgba() */

    --haslident-text-dark: #4a443a;         /* Dunkelbraun - Schriften, Icons, Sekundär-Buttons */
    --haslident-text-dark-rgb: 74, 68, 58;  /* RGB für rgba() */

    /* ===== BOOTSTRAP/SILICON THEME VARIABLEN ÜBERSCHREIBEN ===== */
    /* Überschreibt die CSS-Variablen aus theme.css */
    --si-primary: #c1457c !important;
    --si-primary-rgb: 193, 69, 124 !important;
    --si-info: #f5ede0 !important;          /* Info = Helles Beige für Sektionen */
    /*--si-info: #fdfbf8 !important;          !* Info = Helles Beige für Sektionen *!*/
    --si-info-rgb: 245, 237, 224 !important;

    /* ===== ERSETZT ALTE GRÜNTÖNE ===== */
    /* Diese Variablen ersetzen das alte #165809 Grün */
    --brand-color: var(--haslident-primary);
    --brand-color-dark: var(--haslident-primary-dark);
    --brand-color-rgb: var(--haslident-primary-rgb);

    --brand-accent: var(--haslident-secondary);
    --brand-accent-dark: var(--haslident-secondary-dark);
    --brand-accent-rgb: var(--haslident-secondary-rgb);
}

/* ===== GLOBALE ÜBERSCHREIBUNGEN ===== */

/* Text Primary Klasse - überschreibt theme.css (#C0FFAA -> Dunkelbraun für Icons/Text) */
.text-primary {
    color: var(--haslident-text-dark) !important;
}

/* Links - Pink für Interaktivität */
a {
    color: var(--haslident-primary) !important;
}

a:hover {
    color: var(--haslident-primary-dark) !important;
}

/* Hintergrundfarbe für bg-secondary - Helles Beige */
.bg-secondary {
    background-color: var(--haslident-background-light) !important;
}

/* Header/Navbar Hintergrund - Helles Beige */
.header.navbar.bg-info,
.offcanvas.bg-info {
    background-color: var(--haslident-background-light) !important;
}

/* Kontaktformular mit bg-info - Helles Beige Hintergrund mit dunklen Texten */
.bg-info.rounded-3 {
    background-color: var(--haslident-background-light) !important;
}

.bg-info.rounded-3 h1,
.bg-info.rounded-3 h2,
.bg-info.rounded-3 h3,
.bg-info.rounded-3 p,
.bg-info.rounded-3 .lead,
.bg-info.rounded-3 .form-label,
.bg-info.rounded-3 label {
    color: var(--haslident-text-dark) !important;
}

.bg-info.rounded-3 a {
    color: var(--haslident-primary) !important;
    text-decoration: underline;
}

.bg-info.rounded-3 a:hover {
    color: var(--haslident-primary-dark) !important;
}

/* Submit Button im Kontaktformular - Pink Button auf hellem Beige Hintergrund */
.bg-info.rounded-3 .btn-light {
    background-color: var(--haslident-primary) !important;
    border-color: var(--haslident-primary) !important;
    color: #fff !important;
    font-weight: 600;
}

.bg-info.rounded-3 .btn-light:hover {
    background-color: var(--haslident-primary-dark) !important;
    border-color: var(--haslident-primary-dark) !important;
    color: #fff !important;
}

/* Footer Regionen-Badges - Helles Beige mit Dunkelbraun */
.footer .badge.rounded-pill {
    background-color: var(--haslident-background-light) !important;
    color: var(--haslident-text-dark) !important;
    border: 1px solid rgba(74, 68, 58, 0.2) !important;
}

.footer .badge.rounded-pill:hover {
    background-color: var(--haslident-primary) !important;
    color: #fff !important;
    border-color: var(--haslident-primary) !important;
}

/* Footer Regionen-Box */
.footer .rounded-3[style*="rgba(22, 88, 9"] {
    background: var(--haslident-background-light) !important;
    border: 1px solid rgba(var(--haslident-text-dark-rgb), 0.1) !important;
}

/* Footer Border-Top */
.footer .border-top[style*="rgba(22, 88, 9"] {
    border-color: rgba(var(--haslident-text-dark-rgb), 0.1) !important;
}

/* Footer Hover-Effekt */
.footer .hover-primary:hover {
    color: var(--haslident-primary) !important;
}

/* ===== WARUM ZU UNS SEKTION ===== */
/* Headlines in "Warum zu uns?" - Dunkleres Braun */
section h3.h5 a.text-decoration-none {
    color: #2f2a21 !important;
}

/* Öffnungszeiten Bar */
.opening-hours-bar {
    background-color: var(--haslident-background-light) !important;
    border-bottom: 2px solid rgba(var(--haslident-text-dark-rgb), 0.1) !important;
    color: var(--haslident-text-dark) !important;
}

.opening-hours-text i {
    color: var(--haslident-text-dark) !important;
}

.opening-hours-text strong {
    color: var(--haslident-text-dark) !important;
}

/* Bootstrap Primary Buttons - überschreibt theme.css */
.btn-primary {
    --si-btn-color: #fff !important;
    --si-btn-bg: var(--haslident-primary) !important;
    --si-btn-border-color: var(--haslident-primary) !important;
    --si-btn-hover-color: #fff !important;
    --si-btn-hover-bg: var(--haslident-primary-dark) !important;
    --si-btn-hover-border-color: var(--haslident-primary-dark) !important;
    --si-btn-active-color: #fff !important;
    --si-btn-active-bg: var(--haslident-primary-dark) !important;
    --si-btn-active-border-color: var(--haslident-primary-dark) !important;
    background-color: var(--haslident-primary) !important;
    border-color: var(--haslident-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--haslident-primary-dark) !important;
    border-color: var(--haslident-primary-dark) !important;
    color: #fff !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--haslident-primary-dark) !important;
    border-color: var(--haslident-primary-dark) !important;
    color: #fff !important;
}

/* Bootstrap Outline Primary Buttons */
.btn-outline-primary {
    --si-btn-color: var(--haslident-primary) !important;
    --si-btn-border-color: var(--haslident-primary) !important;
    --si-btn-hover-bg: var(--haslident-primary) !important;
    --si-btn-hover-border-color: var(--haslident-primary) !important;
    --si-btn-active-bg: var(--haslident-primary-dark) !important;
    --si-btn-active-border-color: var(--haslident-primary-dark) !important;
    color: var(--haslident-primary) !important;
    border-color: var(--haslident-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--haslident-primary) !important;
    border-color: var(--haslident-primary) !important;
    color: #fff !important;
}

/* Call Buttons */
.call-button,
.call-button-desktop {
    background-color: var(--haslident-primary) !important;
    border-color: var(--haslident-primary) !important;
}

.call-button:hover,
.call-button-desktop:hover {
    background-color: var(--haslident-primary-dark) !important;
    border-color: var(--haslident-primary-dark) !important;
}

/* Navigation Dropdown */
.dropdown-menu.bg-info {
    background-color: var(--haslident-background-light) !important;
    border-color: rgba(var(--haslident-text-dark-rgb), 0.1) !important;
}

.dropdown-header {
    color: var(--haslident-text-dark) !important;
}

.dropdown-item {
    color: var(--haslident-text-dark) !important;
}

.dropdown-item:hover {
    background-color: rgba(var(--haslident-primary-rgb), 0.08) !important;
    color: var(--haslident-primary) !important;
}

/* Accordion Buttons */
.accordion {
    --si-accordion-btn-icon-box-active-bg: var(--haslident-primary) !important;
    --si-accordion-btn-icon-box-active-shadow: 0 -0.5rem 1.125rem -0.5rem rgba(var(--haslident-primary-rgb), 0.9) !important;
}

.accordion-button:not(.collapsed)::after {
    background-color: var(--haslident-primary) !important;
    box-shadow: 0 -0.5rem 1.125rem -0.5rem rgba(var(--haslident-primary-rgb), 0.9) !important;
}

/* Price Range Slider */
.price-range-our .price-range-background {
    background-color: rgba(var(--haslident-primary-rgb), 0.1) !important;
}

.price-range-our .price-range-active {
    background-color: var(--haslident-primary) !important;
}

.price-range-our .price-marker-circle {
    border-color: var(--haslident-primary) !important;
}

.price-range-our .price-label {
    color: var(--haslident-primary) !important;
}

/* Scrollbar */
.overflow-auto::-webkit-scrollbar-track {
    background: rgba(var(--haslident-primary-rgb), 0.1) !important;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: var(--haslident-primary) !important;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: var(--haslident-primary-dark) !important;
}

.overflow-auto {
    scrollbar-color: var(--haslident-primary) rgba(var(--haslident-primary-rgb), 0.1) !important;
}

/* Reviews Carousel */
.reviews-carousel-button {
    color: var(--haslident-primary) !important;
}

.reviews-carousel-button:hover {
    background-color: var(--haslident-primary) !important;
}

.reviews-carousel-dot {
    background-color: var(--haslident-primary) !important;
}

/* Footer Hover */
.hover-primary:hover {
    color: var(--haslident-primary) !important;
}

/* ===== INLINE STYLE ÜBERSCHREIBUNGEN ===== */
/* Diese Klassen überschreiben inline styles in Templates */

/* Überschriften mit style="color: #165809" */
h1[style*="#165809"],
h2[style*="#165809"],
h3[style*="#165809"],
h4[style*="#165809"],
h5[style*="#165809"],
h6[style*="#165809"] {
    color: var(--haslident-primary) !important;
}

/* Divs und Spans mit Grün-Farben */
div[style*="#165809"],
span[style*="#165809"],
a[style*="#165809"],
i[style*="#165809"] {
    color: var(--haslident-primary) !important;
}

/* Background mit rgba(22, 88, 9, ...) */
[style*="rgba(22, 88, 9"] {
    background-color: rgba(var(--haslident-primary-rgb), 0.1) !important;
}

/* Border mit rgba(22, 88, 9, ...) */
[style*="border"][style*="rgba(22, 88, 9"] {
    border-color: rgba(var(--haslident-primary-rgb), 0.1) !important;
}

/* Gradient Overlays in Hero Sections */
[style*="linear-gradient"][style*="rgba(22, 88, 9"] {
    background: linear-gradient(135deg, rgba(var(--haslident-primary-rgb), 0.3) 0%, rgba(0, 0, 0, 0.35) 100%) !important;
}

/* Spezifische Elemente mit background-color */
[style*="background-color: #165809"],
[style*="background-color:#165809"] {
    background-color: var(--haslident-primary) !important;
}

/* Spezifische Elemente mit border-color */
[style*="border-color: #165809"],
[style*="border-color:#165809"] {
    border-color: var(--haslident-primary) !important;
}

/* Rounded circles mit background rgba */
.rounded-circle[style*="background-color: rgba(22, 88, 9"] {
    background-color: rgba(var(--haslident-primary-rgb), 0.1) !important;
}

/* ===== ANIMATIONEN ===== */
@keyframes pulseHaslidPrimary {
    0% {
        transform: scale(0.3);
        opacity: 0;
        box-shadow: 0 0 0 rgba(var(--haslident-primary-rgb), 0);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(var(--haslident-primary-rgb), 0.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 2px 8px rgba(var(--haslident-primary-rgb), 0.3);
    }
}

/* Ersetze alte pulseGreen Animation */
.price-range-our .price-marker.animate .price-marker-circle {
    animation: pulseHaslidPrimary 0.6s ease-out 0.3s !important;
}

/* ===== RESPONSIVE ANPASSUNGEN ===== */
@media (max-width: 991px) {
    .navbar-nav .dropdown-header {
        background-color: rgba(var(--haslident-primary-rgb), 0.05) !important;
    }

    .navbar-nav .dropdown-item:hover {
        background-color: rgba(var(--haslident-primary-rgb), 0.08) !important;
    }
}

/* ===== TÜRKIS AKZENTE (Optional) ===== */
/* Diese Klassen können verwendet werden, um Türkis-Akzente zu setzen */
.haslident-accent {
    color: var(--haslident-secondary) !important;
}

.haslident-accent-bg {
    background-color: var(--haslident-secondary) !important;
}

.haslident-accent-border {
    border-color: var(--haslident-secondary) !important;
}

.haslident-accent:hover {
    color: var(--haslident-secondary-dark) !important;
}

.haslident-accent-bg:hover {
    background-color: var(--haslident-secondary-dark) !important;
}

