body, html {                                                        /* otherwise always small margin (standard) */
    margin: 0;
    height: auto;
    background-color: black;
}

html {
  box-sizing: border-box;
  background-color: green;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Disable Android tap highlight */
* {
  -webkit-tap-highlight-color: transparent;
}


/* modern */
@font-face { 
    font-family: URW-DIN; 
    src: url('/assets/font/URW-DIN/urw-din-regular.ttf');  
}
@font-face { 
    font-family: DIN1451; 
    src: url('/assets/font/DIN1451/din1451alt.ttf');  
}
@font-face { 
    font-family: D-DIN; 
    src: url('/assets/font/D-Din/D-DIN.otf');  
}
@font-face { 
    font-family: D-DIN Bold; 
    src: url('/assets/font/D-Din/D-DIN-Bold.otf');  
}
@font-face { 
    font-family: Inter; 
    src: url('/assets/font/Inter/InterVariable.ttf');  
}

@font-face { 
    font-family: Gotham; 
    src: url('/assets/font/Gotham book/1826-font.otf');  
}

/* serif */
@font-face { 
    font-family: Tiempos; 
    src: url('/assets/font/Tiempos/TestTiemposFine-LightItalic-BF66457a50eb132.otf');  
}
@font-face { 
    font-family: CMU; 
    src: url('/assets/font/cmu/cmunci.ttf');  
}
@font-face { 
    font-family: KaTeX; 
    src: url('/assets/font/KaTeX/KaTeX_Math-Italic.ttf');  
}


/* Navbar */

.nav {
    position: fixed;
    top: 0;                                                         /* important, else navbar disappears with scroll + menu */
    left: 0;
    z-index: 1000;
    width: 100%;
    height: calc(50px + 1.2vw);
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: black;
}

.nav-container {                                                    /* limit max width */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 0px;
    height: 100%;
    width: 94%;
    max-width: 90%;
}

.nav-left {
    display: flex;
    margin: 0 0px;
    padding: 0;
    background-color: black;
}

.nav-left img {
    display: block;
    width: auto;
    height: calc(32px + 0.5vw);
}

.nav-center, .nav-right {
    gap: calc(45px + 2vw);
    display: flex;           
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
}

.nav-center {
    /* Add these properties */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    /* Keep your existing properties */
    gap: calc(50px + 2vw);
    display: flex;           
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
}

.nav-right img {
    width: 6%;
}

.nav-center a, .nav-right a {
    text-decoration: none;
    color: white;
    color: rgb(90,90,90);
    border-radius: 15px;
    font-family: inter;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: calc(11px + 0.15vw);
    texxt-transform: uppercase;
}

.nav-center a:hover, .nav-right a:hover {
    color: white;
}

/* search-bar */
.search-bar-container {
    display: flex;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: calc(50px + 1.2vw);
    background-color: black;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
}

.search-bar-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-left, .nav-right, .nav-center {
    transition: opacity 0.25s ease-in-out;
}

.nav-left.hidden, .nav-right.hidden, .nav-center.hidden {
    opacity: 0;
    visibility: hidden;
}

.search-form {
    display: flex;
    gap: 10px;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out 0.1s;
}

.search-bar-container.active .search-form {
    transform: scale(1);
}

.search-form input[type="text"] {
    padding: 8px 15px;
    width: 600px;
    height: 40px;
    background-color: black;
    border: 2px solid rgb(0,100,190);
    border-radius: 14px;
    color: white;
    font-family: urw-din;
    font-size: 14px;
}

.search-form input[type="text"]::placeholder {
    color: white;
}


.nav-mobile-buttons {
    display: none;
    align-items: center;
    gap: 15px; /* Adjust this value to change the space between the buttons */
}


.mobile-menu-button {        
    width: 26px;                
    height: 26px;            
    cursor: pointer;
    display: none;

    justify-content: center;
    align-items: center;

    bbackground-color: red;  
}

.line-container {
    display: flex;             
    justify-content: center;    
    align-items: center;        

    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
    
    bbackground-color: lightblue;
}

.line {
    position: absolute;
    height: 1.6px; /* Keep this as a whole number */
    background-color: rgb(100,100,100);
    transition: all 0.2s ease;

    /* Add these lines to fix rendering during animation */
    -webkit-transform: translateZ(0); /* For older Safari/Chrome */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.top {
    right: 0;
    top: 50%;
    transform: translateY(-5.6px);
    width: 22px;
}

.bottom {
    right: 0;
    bottom: 50%;
    transform: translateY(5.6px);
    width: 10px;
}

.line-container.active .top {
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out 0.1s;
}

.line-container.active .bottom {
    bottom: 50%;
    transform: translateY(50%);
    transition: transform 0.2s ease-in-out 0.1s, width 0.1s;
    width: 22px;
}

.line-container.active.rotated .top {
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s;
    width: 22px;
}

.line-container.active.rotated .bottom {
    transform: translateY(50%) rotate(-45deg);
    transition: transform 0.2s;
    width: 22px;
}



.mobile-menu {
    position: fixed;
    top: -100%;
    width: 100%;
    height: 100%;
    
    background-color: black;
    z-index: 2;
    display: flex; 
    flex-direction: column;
    transition: top 400ms ease; 
}

.mobile-menu-container {
    margin-top: 20px;
    display: flex; 
    flex-direction: column;
    padding: 20px 20px;
    height: 100%;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 25px 0;
    font-family: inter;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 250ms ease;
    transition-delay: 0ms;
}

.mobile-menu img {
    height: 24px;
    width: auto;
    float: right;
}

.mobile-menu a:last-child {
    margin: auto auto 50px auto;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
}

.mobile-menu.open {
    top: 50px;
}

.mobile-menu.open a {
    opacity: 1;
    transition-delay: 350ms; /* fade in after menu slides down */
}

.mobile-menu.close a {
    opacity: 0;
    transition-delay: 0ms;   /* fade out immediately */
}

  

/* Body & Content */



.container {
    box-sizing: border-box;
    margin: 0 auto;
    padding-top: calc(50px + 1.2vw);
    min-height: 100vh;
    max-width: 2000px;
    width: 65%;
    height: auto;
    background-color: black;
}

h1 {
    padding: 0 20px;
    padding-top: 12vh;                   /* using % will always be of width */
    text-align: center;
    color: white;
    font-family: gotham;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3rem);
}

.content {
    max-width: 1200px;
    margin: 0 auto 200px auto;
    color: rgb(230,230,230);
    color: white;
    font-family: gotham;
    font-weight: 100;
    font-size: clamp(1rem, 1.5vw, 1rem);
    line-height: 1.5;
    text-align: center;
}



/* Footer */



footer {
    padding: 30px 0 30px 0;
    bborder-top: 1px solid rgb(0,110,190);
    background-color: black;
}

.footer-container {
    max-width: 1000px;
    width: 60%;
    margin: 0 auto;
    padding: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: space-between; /* Verteilt die Spalten gleichmäßig */
    margin-bottom: 40px;
    width: 100%;
}

.footer-column {
    flex: 0 0 auto; /* Spalten behalten ihre natürliche Breite */
}

.footer-column h3 {
    font-family: inter;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: gray;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    font-family: inter;
    font-size: clamp(0.8rem, 0.6vw, 1rem);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #fff;
}



/* main.css */

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: center;      /* Ändern zu 'center' */
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0 0 0;
    gap: 20px;
    background-color: black;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inter;
    font-size: 14px;
}

.footer-status a {
    text-decoration: underline;
    color: gray;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #0a9e6d;
    bbackground-color: rgb(255, 16, 48);
    border-radius: 50%;
    display: inline-block;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: inter;
    font-size: 14px;
    color: white;
}



/* Mobile Preferences */



@media only screen and (max-width: 900px) {
    
    .nav {
        height: 56px;
        background-color: black;
    }

    .nav-container {
        height: 55px;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-left img {
        height: 45px;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        padding: 0;
        gap: 15px;
        align-items: center;
    }

    .nav-right a {
        background-color: rgb(0,100,190);
        padding: 6px 10px;
        color: white;
        font-weight: 400;
        display: none;
    }

    .nav-mobile-buttons {
        display: flex;
    }

    .mobile-menu-button {
        display: flex; /* This makes the button visible and enables centering */
    }

    .container {
        margin: 0 auto;
        width: 90%;
    }

    .footer-container {
        width: 90%;
    }

    .footer-columns {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }
}
