/* ===== Global Styles ===== */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    color: #fff;
    user-select: none; /* modern browsers */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* old IE/Edge */
}

.contact-section {
    box-shadow: 0 0 15px #0a8cb4;
}

.main-content {
    background-color: black;
    padding-bottom: 2rem;
}

.scroll-watcher {
    height: 5px;
    position: fixed;
    top: 5rem;
    z-index: 1000;
    width: 100%;
    animation-name: scroll-watcher;
    background-color: white;
    transform: scaleX(0);
    transform-origin: center;
    animation: scroll-watcher linear;
    animation-timeline: scroll();
    transition: top 0.5s ease-in-out; /* only transition top property */
}

@keyframes scroll-watcher {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.scroll-watcher.top {
    top: 0;
    transition: top 0.5s ease-in-out; /* only transition top property */
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 5px;
}

.overflow-clip {
    overflow: clip;
}

.container {
    display: flex;
    flex-direction: row;
}

/* ===== Footer ===== */
.footer {
    background-color: rgba(20, 20, 20, 0.95);
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    height: 6rem;
}

.parallaxBackground {
    background-image: url('/images/Laptop.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.image {
    max-height: 100%;
    max-width: 100%;
    border-radius: 1rem;
}

.page-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.page-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}
/* ===== Navbar ===== */
.top-navbar {
    background-color: rgba(20, 20, 20, 0.95);
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: top 0.5s ease-in-out;
    height: 5rem;
}

.navbar-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown {
    margin-left: 0;
    padding-left: 0;
}

.dropdown-toggle {
    color: white;
    transform: scale(0.8);
    display: flex;
    align-items: center; /* vertically centers text and image */
    gap: 0.5rem; /* optional spacing between items */

    min-width: 0;
}

    .dropdown-toggle:hover .selected-language {
        color: #5199AE;
    }

    .dropdown-toggle::after {
        color: white;
    }
    
.selected-language {
    font-size: 1.2rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    color: white;
    margin-right: 0.5rem; /* space between text and flag */
}

.selected-language-image {
    width: 40px;
    height: auto;
}

.dropdown-menu {
    background-color: black;
    color: white;
    border: 1px solid #5199AE;
    border-radius: 1rem;
}

.dropdown-item {
    color: white;
    user-select: none; /* modern browsers */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* old IE/Edge */
}

    .dropdown-item:hover {
        cursor: pointer;
        background-color: transparent;
        color: #5199AE;
    }

    .dropdown-item:active {
        background-color: #5199AE;
        color:white;
    }

/*#00546e #003747; #0a8cb4 */
.brand-text-light {
    color: white;
    /*    text-shadow: 0 0 6px rgba(0,0,0,1);*/
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), /* bottom-right */
    -2px -2px 4px rgba(0, 0, 0, 0.9), /* top-left */
    2px -2px 4px rgba(0, 0, 0, 0.9), /* top-right */
    -2px 2px 4px rgba(0, 0, 0, 0.9); /* bottom-left */
}

.brand-text-dark {
    color: #0a8cb4;
}

.brand-image {
    background-image: url('/images/logo-color.webp');
    background-repeat: no-repeat;
    background-size: contain;
    background-position-y: center;
    background-position-x: left;
    align-self: center;
    width: 5rem;
    height: 5rem;
    margin: 5px 15px 0 0;
}

.brand-image-white {
    background-image: url('/images/logo-white.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position-y: center;
    background-position-x: left;
    align-self: center;
    width: 5rem;
    height: 5rem;
    margin: 5px 15px 0 0;
}

.brand-color-bright {
    color: #5199AE;
}

.brand-color-dark {
    color: #405B5E;
}

.btncolor {
    color: white;
    background-color: #0a8cb4;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 1px #0a8cb4; /* looks like an outline */
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

    .btncolor:hover, .btncolor:active {
        background-color: #00546e;
        outline: none;
        box-shadow: 0 8px 25px rgba(0,90,158,0.6);
    }

    .btncolor:active {
        background-color: #003747;
    }

    .btncolor:disabled {
        box-shadow: none;
    }

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 2rem;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-responsive-mode {
    display: none;
}

.nav-link {
    color: #f0f0f0;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0;
    text-align: center;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

    .nav-link:hover,
    .nav-link.active {
        color: #5199AE;
    }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: auto;
}

.form-control {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid whitesmoke;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

    .form-control::placeholder {
        color: #ccc;
    }

    .form-control:focus {
        background: rgba(0, 0, 0, 1); 
        outline: none;
        box-shadow:none;
        border: 1px solid #fff; 
        color:white;
    }

.contact-form button {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px), (max-width:1000px) and (orientation:landscape) {
    .navbar-nav {
        flex-direction: column;
        background: rgba(20, 20, 20, 0.95);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 1rem;
        display: none;
    }

    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }

    .dropdown-responsive-mode {
        align-self: center;
        margin-left: auto;
        display: flex;
    }

    /*Rename this, hab ich shcei�e benannt. Das hier ist der Language Picker der ins NavMenu eingebaut ist*/
    .dropdown-navmenu {
        display: none;
    }

    nav.navbar-collapse.fadedOut {
        animation: fadeOutNavItems 1s forwards;
    }

    nav.navbar-collapse.fadedIn {
        animation: fadeInNavItems 1s forwards;
    }

    nav.navbar-collapse.collapsed {
        display: none;
    }

    @keyframes fadeOutNavItems {
        from {
            transform: translate(0);
            opacity: 1;
        }

        to {
            transform: translateY(-100vh);
            opacity: 0;
        }
    }

    @keyframes fadeInNavItems {
        from {
            transform: translateY(-50vh);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    nav.navbar-collapse {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        background: black;
        border: 1px solid #5199AE;
        position: absolute;
        border-radius: 1rem;
        top: 60px;
        left: 40%;
        margin-left: 1rem;
        width: 50%;
        padding: 1rem;
    }
}

@media (min-width:769px) and (orientation:portrait), (min-width: 1001px) {
    nav.navbar-collapse {
        display: flex !important;
        gap: 2rem;
        position: static;
        background: transparent;
    }

        nav.navbar-collapse.collapse {
            display: flex !important;
        }
}

/*#region LOADING SPINNER*/
.loader-container {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    flex-direction: column; /* spinner on top, text below (optional) */
}

/* Spinner size */
.loader {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border-top: 3px solid white;
    border-right: 3px solid transparent;
    animation: rotation 1s linear infinite, colorChange 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes colorChange {
    0% {
        border-top-color: white;
    }

    33% {
        border-top-color: #5199AE;
    }
}
/*#endregion*/
