/* ==========================================================================
   Basics & Schriftbild
   ========================================================================== */

/* 1. Wenn die Seite im HELLEN Modus ist (Standard) */
html[data-bs-theme="light"] body {
    background-color: #f5f6f7 !important; /* Ihr gewünschtes helles Platin-Grau */
}

/* 2. Wenn die Seite im DUNKLEN Modus ist */
html[data-bs-theme="dark"] body {
    background-color: #212121 !important; /* Ein sattes, augenschonendes Dunkelgrau */
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 100px;
    color: #333333;
    -webkit-font-smoothing: antialiased;
}


a {
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, padding 0.2s ease-in-out;
}

/* --- ☀️ HELLER MODUS --- */
html[data-bs-theme="light"] .card,
html[data-bs-theme="light"] article.p-4 {
    background-color: #ffffff !important;
    color: #333333 !important;
}
html[data-bs-theme="light"] .card-title a.hover-primary,
html[data-bs-theme="light"] .content-body p {
    color: #333333 !important; /* Normaler Text wird dunkelgrau */
}
html[data-bs-theme="light"] .card-title a:hover {
    color: #0d6efd !important; /* Standard-Blau beim Hovern */
}

/* --- 🌙 DUNKLER MODUS (Hier wird die Textfarbe repariert) --- */
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] article.p-4 {
    background-color: #1e1e1e !important; /* Dunkelgrauer Karten-Hintergrund */
    color: #f8f9fa !important; /* Standard-Textfarbe im Darkmode */
}

/* WICHTIG: Der normale Fließtext (Absätze) in Beiträgen bleibt sauber weiß-grau */
html[data-bs-theme="dark"] .content-body p,
html[data-bs-theme="dark"] .card-text {
    color: #e4e6eb !important; /* Kein Info-Blau, sondern weiches, lesbares Weiß-Grau */
}

/* NUR die Titel-Links der Beiträge erstrahlen in der Info-Akzentfarbe */
html[data-bs-theme="dark"] .card-title a,
html[data-bs-theme="dark"] .content-body h1,
html[data-bs-theme="dark"] .content-body h2 {
    color: var(--bs-info) !important; /* Hier sitzt Ihr gewünschtes Info-Blau als Akzent */
}

/* Hover-Effekt für die Titel im Darkmode (wird beim Drüberfahren reinweiß) */
html[data-bs-theme="dark"] .card-title a:hover {
    color: #ffffff !important;
}

/* Allgemeine Karten-Eigenschaften (Bleiben für beide Modi gleich) */
.card {
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Minimaler Schwebe-Effekt für Beiträge auf der Startseite */
article.card:hover {
    transform: translateY(-2px);
}
html[data-bs-theme="light"] article.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}
html[data-bs-theme="dark"] article.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Ersetzt text-dark im Darkmode durch ein leuchtendes Info-Cyan */
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .card-title a.text-dark {
    color: var(--bs-info) !important; /* Nutzt das originale Bootstrap Info-Blau */
}

/* Optional: Gibt den Links beim Drüberfahren (Hover) ein strahlendes Weiß */
html[data-bs-theme="dark"] .card-title a.text-dark:hover {
    color: #ffffff !important;
}

/* --- HELLER MODUS (Top-Boxen) --- */
html[data-bs-theme="light"] .top-boxes-desktop .lux-box-hover {
    background-color: #f0f1f2 !important; /* Platingrau */
    border: 1px solid #dfe1e3 !important;
}
html[data-bs-theme="light"] .top-boxes-desktop .lux-box-hover:hover {
    background-color: #e6e8ea !important;
    border-color: #cbd0d3 !important;
}
html[data-bs-theme="light"] .top-boxes-desktop .lux-box-hover strong { color: #1a1a1a !important; }
html[data-bs-theme="light"] .top-boxes-desktop .lux-box-hover span { color: #55595c !important; }

/* --- DUNKLER MODUS (Top-Boxen mit INFO-CYAN Akzent) --- */
html[data-bs-theme="dark"] .top-boxes-desktop .lux-box-hover {
    background-color: #252627 !important; /* Invertiertes Dunkelgrau */
    border: 1px solid #3a3b3c !important;
}
html[data-bs-theme="dark"] .top-boxes-desktop .lux-box-hover:hover {
    background-color: #2d2e30 !important;
    border-color: #4f5052 !important;
}
html[data-bs-theme="dark"] .top-boxes-desktop .lux-box-hover strong { 
    color: var(--bs-info) !important; 
}
html[data-bs-theme="dark"] .top-boxes-desktop .lux-box-hover span { 
    color: #adb5bd !important;
}

/* Textformatierung in Beiträgen */
.content-body p {
    margin-bottom: 1.25rem;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* --- ALLGEMEINE STRUKTUR (Für beide Modi gültig) --- */
.offcanvas-body h2, 
.offcanvas-body h3, 
.offcanvas-body h4, 
.offcanvas-body h5, 
.offcanvas-body h6,
.plugin-sidebar-title {
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Bludit Buttons in der Seitenleiste für Platz nach unten */
.plugin .btn {
    margin-bottom: 2rem;
}

.plugin h2, .title-beitrag h6 {
    font-size: 1rem !important;
    font-weight: 700;
}

/* Erstes Plugin-Element braucht oben keinen Abstand */
.offcanvas-body > div:first-child h6,
.offcanvas-body > div:first-child h2 {
    margin-top: 0;
}

/* Bludit Navigations-Plugin, Kategorien & Seitenlisten verschönern */
.plugin-navigation ul,
.plugin-categories ul,
.plugin-pages ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

/* Verschachtelte Listen (Unterseiten) im Navigations-Plugin leicht einrücken */
.plugin-navigation ul ul,
.plugin-pages ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.plugin-navigation li a,
.plugin-categories li a,
.plugin-pages li a {
    display: block;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.plugin-navigation li a:hover,
.plugin-categories li a:hover,
.plugin-pages li a:hover {
    padding-left: 1rem; 
}

/* Aktive Seite im Navigations-Plugin hervorheben (bleibt in beiden Modi gold-beige) */
.plugin-navigation li.active > a,
.plugin-pages li.active > a {
    background-color: #eaba6b !important; 
    color: #fff !important;
    font-weight: 600;
}

/* ==========================================================================
   Bludit Tags / Schlagwörter-Plugin im modernen LUX-Stil
   ========================================================================== */
.plugin-tags ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Etwas luftigerer Abstand */
    margin-bottom: 0;
}

.plugin-tags li {
    display: inline-block;
}

.plugin-tags li a {
    display: inline-block;   
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.7rem; 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 4px; 
    padding: 0.35rem 0.75rem !important; 
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* ☀️ FARBSTEUERUNG IM HELLEN MODUS (Dezentes Grau, schwarze Schrift) */
[data-bs-theme="light"] .plugin-tags li a {
    background-color: #f1f1f1;
    color: #000000;
    border: 1px solid #e5e5e5;
}

[data-bs-theme="light"] .plugin-tags li a:hover {
    background-color: #000000 !important; 
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* 🌙 FARBSTEUERUNG IM DUNKLEN MODUS (Dunkles Anthrazit, helle Schrift) */
html[data-bs-theme="dark"] .plugin-tags li a,
html[data-bs-theme="auto"][data-content-theme="dark"] .plugin-tags li a {
    background-color: #1c1c1c;
    color: #f8f9fa;
    border: 1px solid #2d2d2d;
}

html[data-bs-theme="dark"] .plugin-tags li a:hover,
html[data-bs-theme="auto"][data-content-theme="dark"] .plugin-tags li a:hover {
    background-color: var(--bs-info) !important; 
    color: #000000 !important;
    border-color: var(--bs-info) !important;
}


/* Bludit Suchfeld-Plugin an Bootstrap 5 anpassen */
.plugin-search input[type="search"],
.plugin-search input[type="text"] {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    background-clip: padding-box;
    border-radius: 6px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.plugin-search button,
.plugin-search input[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem;
    border-radius: 6px;
    border: none;
}

/* ☀️ --- HELLER MODUS (LIGHTMODE ANPASSUNGEN) --- */

html[data-bs-theme="light"] .offcanvas-body h2, 
html[data-bs-theme="light"] .plugin-sidebar-title,
html[data-bs-theme="light"] .offcanvas-body h6 {
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

html[data-bs-theme="light"] .plugin-navigation ul ul,
html[data-bs-theme="light"] .plugin-pages ul ul {
    border-left: 2px solid #dee2e6;
}

html[data-bs-theme="light"] .plugin-navigation li a,
html[data-bs-theme="light"] .plugin-categories li a,
html[data-bs-theme="light"] .plugin-pages li a {
    color: #495057 !important;
}

html[data-bs-theme="light"] .plugin-navigation li a:hover,
html[data-bs-theme="light"] .plugin-categories li a:hover,
html[data-bs-theme="light"] .plugin-pages li a:hover {
    background-color: #e9ecef !important;
    color: #0d6efd !important;
}

html[data-bs-theme="light"] .plugin-tags li a {
    color: #495057 !important;
    background-color: #e9ecef !important;
}

html[data-bs-theme="light"] .plugin-search input[type="search"],
html[data-bs-theme="light"] .plugin-search input[type="text"] {
    color: #212529 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
}

html[data-bs-theme="light"] .plugin-search button,
html[data-bs-theme="light"] .plugin-search input[type="submit"] {
    background-color: #212529 !important;
    color: #fff !important;
}
html[data-bs-theme="light"] .plugin-search button:hover {
    background-color: #343a40 !important;
}


/* 🌙 --- DUNKLER MODUS (DARKMODE ANPASSUNGEN) --- */

html[data-bs-theme="dark"] .offcanvas-body h2, 
html[data-bs-theme="dark"] .plugin-sidebar-title,
html[data-bs-theme="dark"] .offcanvas-body h6 {
    color: #adb5bd;
    border-bottom: 2px solid #3a3b3c;
}

html[data-bs-theme="dark"] .plugin-navigation ul ul,
html[data-bs-theme="dark"] .plugin-pages ul ul {
    border-left: 2px solid #3a3b3c;
}

html[data-bs-theme="dark"] .plugin-navigation li a,
html[data-bs-theme="dark"] .plugin-categories li a,
html[data-bs-theme="dark"] .plugin-pages li a {
    color: #e4e6eb !important;
}

html[data-bs-theme="dark"] .plugin-navigation li a:hover,
html[data-bs-theme="dark"] .plugin-categories li a:hover,
html[data-bs-theme="dark"] .plugin-pages li a:hover {
    background-color: #2d2e30 !important;
    color: #ffffff !important;
}

html[data-bs-theme="dark"] .plugin-tags li a {
    color: #e4e6eb !important;
    background-color: #2d2e30 !important;
}

html[data-bs-theme="dark"] .plugin-search input[type="search"],
html[data-bs-theme="dark"] .plugin-search input[type="text"] {
    color: #f8f9fa !important;
    background-color: #252627 !important;
    border: 1px solid #3a3b3c !important;
}
html[data-bs-theme="dark"] .plugin-search input[type="search"]:focus,
html[data-bs-theme="dark"] .plugin-search input[type="text"]:focus {
    border-color: #86b7fe !important;
}

html[data-bs-theme="dark"] .plugin-search button,
html[data-bs-theme="dark"] .plugin-search input[type="submit"] {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}
html[data-bs-theme="dark"] .plugin-search button:hover {
    background-color: #e4e6eb !important;
}

.carousel-caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)); 
    z-index: 1; 
}

.lux-caption {
    position: relative;
    z-index: 2; 
}

.lux-caption h2 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.15em !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
}

.lux-caption p {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.1em !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.6));
    z-index: 3; 
}

.btn-lux-carousel {
    display: inline-block;
    padding: 0.6rem 1.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out !important;
    margin-top: 0.5rem;
    text-shadow: none !important; 
}

.btn-lux-carousel:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

.carousel-item.position-relative {
    position: relative !important;
}

.carousel-caption-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5)) !important;
    z-index: 2;
}

#homeCarousel, 
#homeCarousel .carousel-inner,
#homeCarousel .carousel-item {
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
}

/* Pfeile über das Overlay legen */
.carousel-control-prev,
.carousel-control-next {
    z-index: 3 !important;
}

[data-bs-theme="light"] .btn-lux-carousel {
    background-color: #000000 !important;
    color: #ffffff !important;
}
[data-bs-theme="light"] .btn-lux-carousel:hover {
    background-color: #191919 !important; 
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-lux-carousel {
    background-color: var(--bs-info) !important; 
    color: #121212 !important;
}
[data-bs-theme="dark"] .btn-lux-carousel:hover {
    background-color: #0dcaf0 !important; 
    color: #000000 !important;
}

@media (max-width: 576px) {
    .lux-caption {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .lux-caption h2 {
        font-size: 1.25rem !important; 
        letter-spacing: 0.1em !important;
    }
    .lux-caption p.lead {
        font-size: 0.85rem !important; 
        margin-bottom: 0.5rem !important;
    }
    .btn-lux-carousel {
        padding: 0.4rem 1.25rem !important;
        font-size: 0.65rem !important;
    }
}

/* ==========================================================================
   Design für die Top-Boxen (Desktop)
   ========================================================================== */
.top-boxes-desktop .lux-box-hover {
    background-color: #dedede !important; /* Offizielles LUX-Platingrau (Mittelton) */
    border: 1px solid #bababa !important; /* Dezenter, sauberer Konturrand */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* Hover-Effekt: Die Box wird minimal heller und hebt sich edel ab */
.top-boxes-desktop .lux-box-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    background-color: #e6e8ea !important; /* Nuance satter beim Hovern */
    border-color: #cbd0d3 !important;
}

/* Text- und Iconkontraste im LUX-Stil */
.top-boxes-desktop .lux-box-hover strong {
    color: #1a1a1a !important; /* Fast Schwarz für die Hauptzeile */
}

.top-boxes-desktop .lux-box-hover span,
.top-boxes-desktop .lux-box-hover .text-muted {
    color: #55595c !important; /* Dunkles Schiefergrau für perfekte Lesbarkeit */
}

/* Hover-Effekt für die 3 Top-Boxen im LUX-Stil */
.lux-box-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.lux-box-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: #212529 !important; /* Dunkler Rand beim Hovern passend zu LUX */
}

/* ==========================================================================
   Feinanpassungen für den mobilen Sticky-Footer
   ========================================================================== */
.mobile-sticky-footer .btn-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #495057 !important;
}

.mobile-sticky-footer .btn-link:active,
.mobile-sticky-footer .btn-link:focus {
    color: #0d6efd !important;
}

/* Footer-Links Hover-Effekt */
.hover-white:hover {
    color: #cccccc !important;
}

/* Styling für Beitrags-Cover-Bilder auf der Startseite */
.cover-image-wrapper {
    position: relative;
    max-height: 220px;
    width: 100%;
}

.cover-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Schneidet das Bild proportional ab, falls es zu hoch ist */
    transition: transform 0.3s ease-in-out;
}
/* Kleiner Zoom-Effekt auf das Bild beim Hovern der Karte */
article.card:hover .cover-image-wrapper img {
    transform: scale(1.03);
}

/* Responsive Höhensteuerung für das Karussell */
.lux-carousel-height {
    height: 300px; /* Standardhöhe für Smartphones */
}

@media (min-width: 768px) {
    .lux-carousel-height {
        height: 450px; /* Mittlere Höhe für Tablets */
    }
}

@media (min-width: 1200px) {
    .lux-carousel-height {
        height: 600px; /* Volle Wunschhöhe für Desktop-Monitore */
    }
}

/* Automatische Anpassung der Schriftgrößen im Karussell auf Smartphones */
@media (max-width: 767.98px) {
    .lux-caption h2 {
        font-size: 1.4rem !important;
        letter-spacing: 0.08em !important;
    }
    .lux-caption p.lead {
        font-size: 0.9rem !important;
        letter-spacing: 0.05em !important;
    }
    /* Optional: Versteckt die Navigationsstriche mobil für mehr Platz */
    .carousel-indicators {
        display: none;
    }
}
/* ==========================================================================
   Eingabefelder-Fix: Reinweißer Hintergrund im Light Mode
   ========================================================================== */

/* ☀️ FARBEN IM HELLEN MODUS (Zwingt die Felder auf reines Weiß) */
[data-bs-theme="light"] .contact3-form-wrapper input,
[data-bs-theme="light"] .contact3-form-wrapper textarea,
[data-bs-theme="light"] .contact3-form-wrapper select,
[data-bs-theme="light"] .contact3 .form-control {
    background-color: #ffffff !important;
    color: #1c1b18 !important; /* Dunkles Espresso für beste Lesbarkeit */
    border: 1px solid #cdcfd1 !important; /* Feiner Lux-Rahmen */
}

/* Fokus im Hellen Modus (Wenn man in das Feld klickt) */
[data-bs-theme="light"] .contact3-form-wrapper input:focus,
[data-bs-theme="light"] .contact3-form-wrapper textarea:focus,
[data-bs-theme="light"] .contact3 .form-control:focus {
    background-color: #ffffff !important;
    border-color: #000000 !important; /* LUX-typischer schwarzer Rahmen bei Auswahl */
}

/* 🌙 OBERFLÄCHEN IM DUNKLEN MODUS (Bleiben schick anthrazit/schwarz) */
html[data-bs-theme="dark"] .contact3-form-wrapper input,
html[data-bs-theme="dark"] .contact3-form-wrapper textarea,
html[data-bs-theme="dark"] .contact3 .form-control,
html[data-bs-theme="auto"][data-content-theme="dark"] .contact3-form-wrapper input,
html[data-bs-theme="auto"][data-content-theme="dark"] .contact3-form-wrapper textarea,
html[data-bs-theme="auto"][data-content-theme="dark"] .contact3 .form-control {
    background-color: #1c1c1c !important;
    color: #f8f9fa !important;
    border: 1px solid #333333 !important;
}

/* Fokus im Dunklen Modus */
html[data-bs-theme="dark"] .contact3-form-wrapper input:focus,
html[data-bs-theme="dark"] .contact3-form-wrapper textarea:focus,
html[data-bs-theme="dark"] .contact3 .form-control:focus,
html[data-bs-theme="auto"][data-content-theme="dark"] .contact3-form-wrapper input:focus,
html[data-bs-theme="auto"][data-content-theme="dark"] .contact3-form-wrapper textarea:focus,
html[data-bs-theme="auto"][data-content-theme="dark"] .contact3 .form-control:focus {
    background-color: #1c1c1c !important;
    border-color: var(--bs-info) !important; /* Dein schickes Cyan-Blau bei Auswahl */
}

/* ==========================================================================
   Landscape-Fix: Scrollbare Navbar auf flachen Smartphone-Bildschirmen
   ========================================================================== */
@media (max-width: 991.98px) and (orientation: landscape) {
    .navbar-collapse {
        /* Berechnet die maximale Höhe: Gesamter Bildschirm minus die 60px deines Logos */
        max-height: calc(100vh - 80px) !important;
        /* Aktiviert das Scrollen im Menü, falls der Inhalt zu lang ist */
        overflow-y: auto !important;
        /* Sorgt für ein seidenweiches Scrollgefühl auf iPhones (iOS) */
        -webkit-overflow-scrolling: touch;
        /* Ein kleiner Innenabstand unten, damit die Buttons nicht am Rand kleben */
        padding-bottom: 1.5rem !important;
    }
}
