/* ==========================================================================
   TERHI-HEADER CSS: KOMPLETT & FINAL
   ========================================================================== */

/* 1. GRUNDLAGE: Reset & Layout-Korrekturen */
body, .t3-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. HEADER-CONTAINER: Basis-Struktur (Fester Anker oben) */
.terhi-header {
    background-color: #003164 !important;
    min-height: 120px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2000 !important;
}

.terhi-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    width: 100% !important;
    height: 100% !important;
}

/* 3. LOGO: Bildanpassung */
.terhi-logo img {
    height: 90px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* 4. OFF-CANVAS MENÜ: Gehäuse, Animation und Logik */
.nav-toggle-check { display: none; }

.nav-toggle-label {
    display: block !important;
    cursor: pointer;
    font-size: 30px;
    color: #ffffff;
    z-index: 2001;
    min-width: 40px;
    text-align: center;
}

.offcanvas-menu {
    position: fixed;
    top: 120px !important;
    left: -300px;
    width: 300px;
    height: calc(100vh - 120px);
  background: linear-gradient(to right, #003164, #004a99);  
  /*background: #003164;*/
    transition: left 0.4s ease-in-out;
    z-index: 999 !important;
    padding: 20px 20px;
    overflow-y: auto;
}

/* Aktion: Menü ausfahren bei Klick */
.nav-toggle-check:checked ~ .offcanvas-menu { left: 0; }

/* 5. MENÜ-LINKS: Styling */
.offcanvas-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.offcanvas-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.offcanvas-menu li a {
    display: block !important;
    color: #ffffff !important; /* Textfarbe Standard: Weiß */
    font-family: inherit !important;
    font-size: 20px !important;
    padding: 10px 0 10px 15px !important; /* Etwas Padding links, damit der Text nicht am Rand klebt */
    text-decoration: none !important;
    transition: background-color 0.3s ease !important; /* Weicher Übergang für den Hintergrund */
    background-color: transparent !important; /* Standard: Kein Hintergrund */
    border-radius: 8px !important;
}

.offcanvas-menu li a:hover {
    color: #ffffff !important;         /* Text bleibt beim Hover weiß */
    background-color: #a3c1da !important; /* Hintergrund wird blasses Blau */
    padding-left: 10px !important;    /* Optional: Ein leichter Einzug beim Hover */
}

/* Überschriften im Off-Canvas Bereich */
.offcanvas-menu .offcanvas-heading {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 0 5px 15px;
    border-bottom: 1px solid #ffcc00;
    margin: 20px 0 10px 0;
    transition: color 0.3s ease; /* Übergang für Farbe */
}


/* 6. RESPONSIVES DESIGN: Mobil-Anpassungen */

@media (max-width: 991px) {
    .terhi-header { height: 70px !important; min-height: 70px !important; }
    .terhi-logo img { height: 40px !important; }
    
    .terhi-nav { display: none !important; }
    .nav-toggle-label { display: block !important; }
    
    .offcanvas-menu { 
        top: 70px !important; 
        height: calc(100vh - 70px) !important; 
    }
}

/* Aktiven Menüpunkt dauerhaft hervorheben */
.offcanvas-menu ul li.active > a,
.offcanvas-menu ul li.current > a {
    background-color: #a3c1da !important; /* Dein blasses Blau */
    color: #ffffff !important;           /* Weißer Text für Kontrast */
    border-radius: 4px !important;       /* Die abgerundeten Ecken */
}