/*
Theme Name: Werner Transport & Logistik - High Performance
Author: Northern Concepts Werbeagentur
Version: 1.6
Description: Bootstrap 5 Basis mit integriertem Grid-Fallback.
*/

/* --- OPEN SANS LOKAL EINBINDEN --- */

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Light.woff2') format('woff2'); /* Deine 300er Datei */
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Medium.woff2') format('woff2'); /* Deine 500er Datei */
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-SemiBold.woff2') format('woff2'); /* Deine 600er Datei */
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-Bold.woff2') format('woff2'); /* Deine 700er Datei */
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-ExtraBold.woff2') format('woff2'); /* Deine 800er Datei */
    font-weight: 800;
    font-style: normal;
}

/* GLOBAL ANWENDEN */
body {
    font-family: 'Open Sans', sans-serif;
}

/* --- 1. VARIABLEN & BASIS --- */
:root {
    --primary-blue: #01387b;
    --accent-red: #9c2423;
    --text-grey: #5c5e60;
	--text-lightgrey:#676868;
    --light-bg: #f2f5f8;
    --hover-blue: #7e9abc;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-grey);
    margin: 0;
    padding: 0;
}

/* --- 2. GRID-SYSTEM (ZENTRIERUNG & FALLBACK) --- */
.container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.container-fluid {
    width: 100%;
    padding: 0;
    margin: 0;
}

.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.row.g-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.row.g-0 > [class*="col-"] {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
}

/* --- 3. HEADER & NAVIGATION --- */
.logo { padding: 1.8em 0 1.4em 1.8em; background-color: #fff; }
.contact-text { font-size: 1.1rem; color: #676868; line-height: 1.8; }
.contact-text a { color: #676868 !important; text-decoration: none;font-weight: normal; }

/* --- HEADER SYMBOLE KONTUR-LOOK FIX --- */
.contact-text i, 
.contact-text a i { 
    color: #676868 !important; 
    margin-right: 8px;
    font-family: "Font Awesome 5 Free" !important; 
    font-weight: 700 !important; /* Zurück auf 900, damit sie geladen werden */
    
    /* Der Trick für den Kontur-Look: */
    -webkit-text-stroke: 1px #676868; /* Erzeugt eine feine Außenlinie */
    color: transparent !important;    /* Macht die Füllung unsichtbar */
    
    display: inline-block;
    font-style: normal;
}

/* Hover-Effekt: Beim Drüberfahren füllen wir sie rot aus */
.contact-text a:hover i {
    color: var(--accent-red) !important;
    -webkit-text-stroke: 1px var(--accent-red);
}

.navigation { 
    background-color: var(--primary-blue); 
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; /* Korrigiert: Von -1 auf 0 */
    border: none !important;
    display: block; /* Stellt sicher, dass es keine Inline-Lücken gibt */
    line-height: 0; /* Verhindert Lücken durch Zeilenhöhe bei Listen */
}

/* Wichtig: Auch die umschließende Row der Navigation darf keine Lücke haben */
header .row:last-child {
    margin-bottom: 0 !important;
}

.topnav { 
    list-style: none; 
    margin: 0 !important; 
    padding: 0 !important; 
    display: flex; 
    line-height: 1.8; /* Setzt die Texthöhe innerhalb der Liste wieder normal */
}

/* Verhindert Lücken in der mobilen Ansicht */
.mobile-nav-wrapper { 
    background-color: var(--primary-blue); 
    margin: 0 !important;
    padding: 0 !important;
}
.topnav > li {
    /* Punkt 1: Grafik ist jetzt IMMER da */
    background: url('images/navi-pfeile.png') no-repeat right center;
    padding-right: 75px; /* Abstand für die Pfeile */
    min-height: 45px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease; /* Weicher Übergang beim Wechsel */
}

/* Punkt 2: Hover & Aktiv-Status (Wechsel auf weiße/helle Pfeile) */
.topnav > li:hover, 
.topnav > li.current-menu-item,
.topnav > li.current-page-ancestor {
    background-image: url('images/navi-pfeile-weiss.png') !important;
}

.topnav > li > a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    font-weight: 400;
    background-color: transparent; /* Verhindert, dass der Link-Hintergrund die Pfeile überlagert */
}

/* Hover-Effekt für den Text (optional, falls gewünscht) */
.topnav > li:hover > a {
    color: #fff;
}

.mobile-nav-wrapper { background-color: var(--primary-blue); }
.mobile-menu-list { list-style: none; background-color: var(--hover-blue); }
.mobile-menu-list li a { color: #fff; display: block; padding: 1em 1.5em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

/* --- 4. STARTSEITEN KACHELN --- */
.aufgabenfeld {
    position: relative;
    overflow: hidden;
    box-sizing: border-box !important;
    border: 0.5px solid #fff;
}

.aufgabe { background-color: #fff; transition: background 0.4s; height: 100%; display: flex; flex-direction: column; }
.aufgabenbild img { width: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.col-md-6 .aufgabenbild img { height: 400px; }
.col-md-4 .aufgabenbild img { height: 300px; }

.aufgabetxt { padding: 1.5em 2em; flex-grow: 1;color: var(--text-lightgrey); text-decoration: none;}
.aufgabetxt h2 { color: var(--text-lightgrey); font-size: 2rem; margin-bottom: 0.5rem; font-weight: 200; }

.aufgabe-link:hover .aufgabe { background-color: var(--hover-blue); color: #fff; }
.aufgabe-link:hover h2, .aufgabe-link:hover p { color: #fff !important; }
.aufgabe-link:hover img { transform: scale(1.1); opacity: 0.8; }


/* --- 5. FOOTER: ANSCHRIFT (ROT) --- */
.anschrift-section { 
    background-color: var(--accent-red) !important; 
    color: #fff !important; 
    padding-top: 4rem !important; 
    padding-bottom: 4rem !important; 
    position: relative;
    overflow: hidden; /* Wichtig, damit die Grafik nicht übersteht */
}

/* Punkt 6: Anschrift-Pfeile Grafik exakt so hoch wie der Kasten */
.footer-bg-arrows {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%; /* Breite der Sektion, die das Bild einnehmen darf */
    height: 100%; /* Erzwingt volle Höhe des roten Kastens */
    /* background-size: auto 100% sorgt dafür, dass die Höhe immer 100% ist */
    background: url('images/anschrift-pfeile-4.png') no-repeat right center;
    background-size: auto 100%; 
    z-index: 0;
    pointer-events: none;
}

/* Sicherstellen, dass der Inhalt über der Grafik liegt */
.anschrift-section .container {
    position: relative;
    z-index: 1;
}

.anschrift-section i { 
    width: 25px; 
    text-align: center; 
    margin-right: 12px; 
    color: #fff; 
}

/* Punkt 6: Anschrift-Pfeile Grafik rechts bündig */
.footer-bg-arrows {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px; /* Breite der Grafik anpassen */
    height: 100%;
    background: url('images/anschrift-pfeile-3.png') no-repeat right center;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

/* --- 6. FOOTER: NAVIGATION (WEISS) --- */
.fussnavigation { 
    background-color: #fff !important; 
    border-top: 1px solid #eee; 
    padding: 60px 0;
}

/* Punkt 2: Menü Überschriften fett und größer */
.footer-headline { 
    color: var(--primary-blue) !important; 
    text-transform: uppercase; 
    font-size: 1.25rem; 
    font-weight: 500; 
    margin-bottom: 1.4rem; 
}

/* Punkt 3: Menüfont größer, dicker, weniger Abstand */
.footer-list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.footer-list li { 
    display: block !important; 
    margin-bottom: 3px !important; /* Weniger Abstand zwischen den Punkten */
}

.footer-list li a { 
    color: #555 !important; 
    text-decoration: none !important; 
    font-size: 1.1rem; /* Etwas größer */
    font-weight: 400; /* Etwas dicker */
}

.footer-list li a:hover { 
    color: var(--primary-blue) !important; 
}

/* Punkt 1: » Zeichen Handling via Link-Before in PHP erledigt, hier nur Styling */
.footer-sitemap-links a {
    color: #666 !important;
    font-weight: 400;
	text-decoration: none;
}

/* --- 7. FOOTER: COPYRIGHT (BLAU) --- */
#footer-copy { 
    background-color: var(--primary-blue) !important; 
    color: #fff !important; 
    padding: 20px 0; 
}

/* --- ICON FIX FÜR FONT AWESOME --- */
.anschrift-section i, 
.contact-details i, 
.footer-address i {
    display: inline-block;
    width: 25px;
    text-align: center;
    margin-right: 12px;
    color: #fff !important;
    /* Erzwingt die korrekte Font-Family für Font Awesome 5 */
    font-family: "Font Awesome 5 Free" !important; 
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* WICHTIG: Solid Icons brauchen font-weight 900 */
.fas {
    font-weight: 900 !important;
    font-family: "Font Awesome 5 Free" !important;
}

/* Regular Icons brauchen font-weight 400 */
.far {
    font-weight: 400 !important;
    font-family: "Font Awesome 5 Free" !important;
}


/* ==========================================================================
   ULTIMATIVER MENU-DOPPLER FIX
   ========================================================================== */

/* 1. DESKTOP-ANSICHT (Ab 1200px) */
@media (min-width: 1200px) {
    /* Verstecke den gesamten mobilen Container inklusive Button und Liste */
    .mobile-nav-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Stelle sicher, dass das Desktop-Menü angezeigt wird */
    .topnav.d-xl-flex {
        display: flex !important;
    }
}

/* 2. MOBIL-ANSICHT (Bis 1199px) */
@media (max-width: 1199px) {
    /* Verstecke das Desktop-Menü komplett */
    .topnav {
        display: none !important;
    }

    /* Zeige den mobilen Wrapper (Button + Menü) */
    .mobile-nav-wrapper {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
    }
}


/* --- HERO UNTERSEITEN POSITIONIERUNG --- */

.hero-section {
    position: relative;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 450px; /* Hier die Höhe deiner alten Seite eintragen */
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Der Container sorgt dafür, dass wir uns innerhalb der 1200px Breite bewegen */
.hero-container {
    position: absolute;
    top: 0;            /* Ganz nach oben an den Menürand */
    left: 50%;
    transform: translateX(-50%); /* Zentriert den 1200px Bereich */
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-red-box {
    background-color: var(--accent-red) !important;
    color: #fff;
    padding: 2.5rem;
    width: 350px;      /* Feste Breite wie im alten Design */
    position: absolute;
    right: 15px;       /* Exakt rechtsbündig im 1200px-Raster */
    top: 0;            /* Startet direkt unter der Navigation */
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Anpassung der Inhalte im Kasten */
.hero-red-box * {
    color: #fff !important;
}

.hero-red-box h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Mobile Optimierung: Kasten unter das Bild rutschen lassen */
@media (max-width: 991px) {
    .hero-image-wrapper { height: auto; }
    .hero-container { 
        position: relative; 
        transform: none; 
        left: 0; 
        width: 100%;
    }
    .hero-red-box { 
        position: relative; 
        width: 100%; 
        right: 0;
    }
}


.feldaufbau_bild_volle_breite {
    position: relative;
    line-height: 0;
}

.feldaufbau_text_ueber_bild {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-red) !important;
    color: #fff;
    padding: 2rem;
    width: 40%; /* Steuert die Breite des Kastens */
    z-index: 10;
    line-height: 1.6;
}

/* Mobile Korrektur */
@media (max-width: 991px) {
    .feldaufbau_text_ueber_bild {
        position: relative;
        width: 100%;
    }
}