
/* ============================================================
   Global: Typografie-Basis  –  font-family wird über body vererbt
   ============================================================ */

a {
    color: black;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    overscroll-behavior: none;
    width: 100%;
    overflow-x: hidden;    
}

body {
    position: relative;
    margin:0;
    padding:0;
    background:#f6f6f6;
    background-attachment: fixed;
    background-size: 100%;
    
    background-image: none;
    overflow-x: hidden;
    font-family: 'Barlow Semi Condensed', 'Inter', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    
}

ul {
    padding:0 0 0 15px;;
    margin:0;
}

li {
    margin: 0 0 10px 0;
}

.nav_text {
    color:black;
    font-size:1.1em;
    transition: var(--t);
}

.nav_text_small {
    color: white;
}

header li {
    text-decoration: none;
    display: inline-block;
    color:rgb(255, 255, 255);
    border-radius: 5px;
    font-weight: 300;
    font-size: 1em;
}

.nav_text1, .nav_text2, .nav_text3, .nav_text4 {
    display: inline-block;
    height: 50px;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: background 1s;
}

.nav_text1:hover, .nav_text2:hover, .nav_text3:hover, .nav_text4:hover {
    background: #C50000;
    color: white;
    opacity: 0.7;
}

.nav_text_hover {
    background: #C50000;
    color: white;
    opacity: 0.7;
}

header ul {
    float:right;    
}

.header {
    position:fixed;  
    top:0px;
    left:0px;
    width:100%;
    height:120px;
    /* Ein dezent animierter "Perlmutt" oder Aurora Gradient */
    background: linear-gradient(-45deg, rgba(255,255,255,0.8), rgba(255, 240, 240, 0.85), rgba(240, 248, 255, 0.85), rgba(250, 250, 250, 0.9));
    background-size: 400% 400%;
    animation: dezent-gradient 12s ease infinite;
    box-shadow: 0px 0px 5px black;
    transition: height var(--t), background var(--t);
    z-index: 1000;
}

@keyframes dezent-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media screen and (max-width:1000px) {
	.header {
		height: 80px;
	}
    html {
        scroll-padding-top: 80px;
    }
}

.header_small {
    height:90px;
    /* Glassmorphism transparency */
    background: linear-gradient(-45deg, rgba(34,34,34,0.65), rgba(45,35,35,0.7), rgba(35,45,55,0.65), rgba(30,30,30,0.7));
    background-size: 400% 400%;
    animation: dezent-gradient-dark 15s ease infinite;
    /* The Blur Magic */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    opacity: 1; 
}

@keyframes dezent-gradient-dark {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* .spacer1{
    height:80px;
} */

.wrapper {
    position: relative;
    margin: 0 auto;   
    font-size: 1.5em;
}

/* headmenu *********************************************************/

.headmenu {
    position: absolute;
    right: 10px;
    top: 10px;
    transition: all var(--t);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}
.headmenu button {
    background: transparent;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    border: 0;
    border-right: 1px solid rgba(0,0,0,0.2);
    padding: 0;
    padding-left: 15px;
    padding-right: 20px;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: 100%;
    cursor: pointer; 
    transition: color 0.3s ease;
}

.headmenu button svg {
    fill: none;
    stroke: #333;
    height: 15px;
    transition: stroke 0.3s ease;
}

.headmenu button:hover {
    background: transparent;
    color: #C50000;
}

.headmenu button:hover svg {
    stroke: #C50000;
}

.headmenu_phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding-right: 20px;
    border-right: 1px solid rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}

.headmenu_phone svg {
    stroke: currentColor; /* Erbt automatisch die exakte Textfarbe! */
    height: 15px;
    transition: stroke 0.3s ease;
}

.headmenu_phone:hover,
.headmenu button:hover {
    color: #C50000;
}

.headmenu_phone:hover svg,
.headmenu button:hover svg {
    stroke: #C50000;
}

.headmenuitem {
    padding:10px;
}

.headmenuitem:hover {
    color: red;
}



.headmenu_phone:hover {
    color: #C50000;
}

.admin_icon_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #C50000;
    transition: all 0.2s ease;
}

.admin_icon_link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.admin_icon_link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.2px;
    fill: none;
    transition: fill 0.2s ease;
}

.admin_icon_link:hover svg {
    fill: currentColor;
}

/* Invert top bar colors on scroll (.header_small) */
.header_small .headmenu button,
.header_small .headmenu_phone {
    color: white;
}
.header_small .headmenu_phone {
    border-right-color: rgba(255,255,255,0.3);
}
.header_small .headmenu button {
    border-right-color: rgba(255,255,255,0.3);
}
.header_small .headmenu button svg {
    stroke: white;
}
.header_small .headmenu button:hover,
.header_small .headmenu_phone:hover {
    color: #C50000;
}
.header_small .headmenu button:hover svg {
    stroke: #C50000;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.lang-switcher-current {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    padding: 0;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.lang-switcher-current:hover {
    color: #C50000;
    background: transparent !important;
}

.lang-name {
    display: inline-block;
}

/* Mobile Header Cleanup */
@media screen and (max-width: 1000px) {
    .headmenu {
        right: 65px; /* Push left of hamburger icon */
        top: 24px; /* Vertically align with hamburger */
        gap: 8px; /* Compact icon spacing */
    }
    
    /* Restore the phone link but hide the text string */
    .headmenu_phone {
        display: flex !important;
    }
    .headmenu_phone span,
    .lang-name,
    .lang-switcher-current .chevron-down {
        display: none !important;
    }

    /* Style phone, login, and lang flag as app-like square buttons */
    .headmenu_phone, 
    .admin_icon_link, 
    .lang-switcher-current {
        width: 38px !important;
        height: 38px !important;
        border: 2px solid rgba(0,0,0,0.2) !important;
        border-radius: 8px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent;
        box-sizing: border-box;
    }

    .headmenu_phone svg, 
    .admin_icon_link svg {
        width: 20px;
        height: 20px;
        stroke: #333;
        transition: stroke 0.3s ease;
    }

    .lang-switcher-current img {
        width: 20px !important;
        height: 14px !important;
        box-shadow: 0 0 2px rgba(0,0,0,0.3) !important;
        margin: 0 !important;
    }

    /* Dark header state (when scrolled) */
    .header_small .headmenu_phone, 
    .header_small .admin_icon_link, 
    .header_small .lang-switcher-current {
        border-color: rgba(255,255,255,0.4) !important;
    }
    
    .header_small .headmenu_phone svg, 
    .header_small .admin_icon_link svg {
        stroke: white !important;
    }
}

.lang-switcher-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: max-content;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.lang-switcher-dropdown.show {
    display: block;
}

.lang-switcher-dropdown a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.2s ease;
}

.lang-switcher-dropdown a:hover {
    background-color: #f6f6f6;
    color: #C50000;
}
