/* --- IKE Landingpage Global Base --- */
:root {
    --ike-primary: #0F172A;      /* Edles Dunkelblau/Schwarz für Text */
    --ike-accent: #2563EB;       /* Warme, starke Akzentfarbe für Buttons */
    --ike-accent-hover: #1D4ED8;
    --ike-bg: #F8FAFC;           /* Sanfter, warmer Hintergrund */
    --ike-card-bg: #FFFFFF;
    --ike-radius: 12px;          /* Weiche Kanten für den Wohlfühlfaktor */
}

body.ike-landingpage {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ike-primary);
    background-color: var(--ike-bg);
    margin: 0;
    line-height: 1.6;
}

/* Der universelle Wohlfühl-Button (identisch auf allen Seiten) */
.ike-btn-primary {
    display: inline-block;
    background-color: var(--ike-accent);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--ike-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.ike-btn-primary:hover {
    background-color: var(--ike-accent-hover);
    transform: translateY(-1px);
}

/* Einheitliche Kacheln */
.ike-card {
    background-color: var(--ike-card-bg);
    border-radius: var(--ike-radius);
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

/* ==================== IKE GLOBAL HEADER & PROMO BANNER ==================== */

/* Body braucht kein Padding mehr */
body {
    padding-top: 0 !important;
}

.site-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    width: 100%;
    /* WICHTIG: Keine Transitions, keine Padding-Änderungen! */
}

/* Der normale Link hat keinen Unterstrich (oder wie gewünscht) */
.site-header a {
    text-decoration: none;
}

/* Sobald die Section im Bild ist, bekommt der Link die Klasse .active und den Unterstrich */
.site-header a.active {
    /*text-decoration: underline !important;*/
    /*text-underline-offset: 6px;*/ /* Abstand des Unterstrichs zum Text */
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== SUB-NAVI & MAIN-NAVI WEISS ==================== */
/* Sub-Navi Container mit weißem Hintergrund */
/* Grundzustand der Sub-Navi (voll geöffnet) */
.sub-nav-wrapper {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    max-height: 120px; /* Groß genug für den Text */
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in-out, 
                padding 0.4s ease-in-out,
                border-bottom-width 0.4s ease-in-out;
}

 .sub-nav-container {
      max-width: 1160px; 
      margin: 0 auto; 
      padding:0px;
      display: flex; 
      align-items: center; 
      justify-content: center;
      width: 100%;
      text-align: center;
	  background-color: #ffffff;
}

.sub-nav-text {
    color: #1e293b; /* Dunkler Text für optimale Lesbarkeit auf Weiß */
    font-size: 0.9rem;
    line-height: 1.4;
    display: inline-block;
}

.sub-nav-badge {
    color: #074e68; /* Euer IKE-Blau für das Highlight */
    font-weight: 700;
}

/* Haupt-Navi (Anker-Links) ebenfalls komplett auf Weiß */
.main-nav-wrapper {
    position: relative;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.main-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.main-nav-container {
    background-color: #ffffff;
    max-width: 1160px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    gap: 24px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: 100%;
    white-space: nowrap;
}

/* Stil für die einzelnen Navigations-Links */
.main-nav-container .nav-link {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav-container .nav-link:hover {
    color: #074e68;
}

.brandbar {
    background-color: #074e68; /* Euer IKE-Blau */
    color: white;
    padding: 10px 0;
	transition: padding 0.3s ease; /* Übergang für das Padding definieren */
}

/* Wenn die Seite gescrollt wird, schrumpft das Padding der Brandbar elegant */
.site-header.scrolled .brandbar {
    padding: 6px 0;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    /*padding: 0 16px;*/
}

.brandbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding:0px 16px;
}

.brandbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.brandbar-logo-img {
    height: 32px;
    width: auto;
    display: block;
	background-color:white;
	padding:5px;
	border-radius:5px;
}

.brandbar-logo small {
    font-size: 0.7rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.85);
    /*border-left: 1px solid rgba(255, 255, 255, 0.3);*/
    padding-left: 8px;
}

.brandbar-product {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Grundzustand des Promo-Banners (voll geöffnet) */
.promo-banner {
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in-out, 
                padding 0.4s ease-in-out;
}

/* WICHTIG: Wenn gescrollt wird, verschwinden BEIDE (Banner und Sub-Navi) butterweich */
.site-header.scrolled .promo-banner,
.site-header.scrolled .sub-nav-wrapper {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    border-bottom-width: 0 !important;
}

.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Wenn gescrollt wird, schalten wir das Flex-Verhalten des Banners komplett ab */
.site-header.scrolled .promo-banner {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important; /* Verhindert Klicks im unsichtbaren Zustand */
}

.site-header.scrolled .promo-banner-inner {
    	display: none !important; /* Zwingt den Flex-Container zum Verschwinden, damit er nichts mehr offen hält */
}


.promo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-text svg {
    width: 16px;
    height: 16px;
    stroke: #074e68;
    flex-shrink: 0;
}

.promo-link {
    color: #074e68;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.promo-link:hover {
    text-decoration: underline;
}

.promo-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.promo-close:hover {
    color: #0f172a;
}

@media (min-width: 641px) {
    .site-header.scrolled .brandbar-inner {
        
    }
}

@media (max-width: 500px) {
	.brandbar { 
		/*padding: 4px 0;*/
	}
	.brandbar-inner {
		padding:0px 5px;
	}
}

/* ==================== PROMO BANNER MOBILE FIX ==================== */
@media (max-width: 768px) {
	/* Wichtig: Auch das innere Flex-Element muss eingefroren werden */
    .promo-banner-inner {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
        position: relative;
        padding-right: 30px;
    }
	
    .promo-text {
        font-size: 0.78rem;
        line-height: 1.3;
        width: 100%; /* Text nimmt die volle Breite ein */
    }

    .promo-link {
        font-size: 0.8rem;
        margin-left: 24px; /* Einrückung unter das Icon angepasst */
    }

    .promo-close {
        position: absolute;
        top: 4px;
        right: 4px;
        padding: 4px;
    }
}
