* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.stock-ticker {
    font-size: 15px;
    padding-block: 8px;
    border-block: 3px solid;
    border-block-color: white;
    overflow: hidden;
    user-select: none;
    --gap: 20px;
    display: flex;
    gap: var(--gap);
    background-color: #d20a2e;
    margin-top: 15px;
}

.stock-ticker ul {
    list-style: none;
    flex-shrink: 0;
    min-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
    animation: scroll 60s linear infinite;
    will-change: transform;
}

@keyframes scroll {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

.stock-ticker .company,
.stock-ticker .price {
    font-weight: bold;
}

@font-face {
    font-family: 'News Gothic Condensed Bold';
    src: url('/Fonts/News\ Gothic\ Condensed\ Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0px;
    padding: 0;
    font-family: 'News Gothic Condensed Bold', Arial, sans-serif;
    background-color: #111111;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Stelle sicher, dass der Inhalt oben startet */
    min-height: 100vh;
}

header {
    background-color: #111111;
    padding: 20px 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    top: 0;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    top: 15px;
}

.nav-left, .nav-right {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-left {
    position: absolute;
    left: 32.5px;
    text-decoration: underline;
}

.nav-right {
    position: absolute;
    right: 32.5px;
}

.nav-left a, .nav-right a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.nav-title {
    font-weight: bold;
    text-align: center;
    margin: 0.25rem auto;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    flex: 1 1 30%;
    margin: 0.25rem;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.text {
    color: white;
    text-align: center;
}

.text h2 {
    margin: 0;
    font-size: 24px;
}

.text p {
    margin: 5px 0 0;
    font-size: 18px;
}

/* Responsive Styles */
@media (min-width: 1201px) {
    .title-top{
        font-size: 50px;
    }

    .title-bottom {
        font-size: 52.5px;
    }

    .nav-left a, .nav-right a {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .nav-left {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 5px;
    }

    .title-bottom {
    font-size: 42.5px
}

    .title-top {
        font-size: 40px;
    }

    .nav-left a, .nav-right a {
        font-size: 20px;
    }
}

/* 2 Spalten bei mittleren Bildschirmgrößen */
@media (max-width: 1000px) {
    .gallery-item {
        flex: 1 1 45%;
    }
}

/* 1 Spalte bei kleinen Bildschirmgrößen */
@media (max-width: 700px) {
    .gallery-item {
        flex: 1 1 100%;
    }
}



/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start; /* Links ausrichten */
    padding: 15px;
    cursor: pointer;
    position: absolute; /* Unabhängige Positionierung */
    left: 20px;
    top: 50%; /* Vertikal zentrieren */
    transform: translateY(-50%); /* Exakte Zentrierung */
    z-index: 999; /* Unter dem Overlay, aber über anderen Elementen */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1000; /* Über dem Hamburger-Menü, aber nicht über anderen wichtigen Elementen */
    display: flex;
    justify-content: flex-end;
}

.menu-content {
    width: 250px;
    background-color: #111;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1001; /* Höher als das Overlay */
}

.close-btn {
    align-self: flex-end;
    cursor: pointer;
    font-size: 30px;
    color: white;
}

.menu-items {
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.menu-items li{
    margin-bottom: 20px;
}

.menu-items li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

/* Show Hamburger Menu on Smaller Screens */
@media (max-width: 800px) {
    .nav-left, .nav-right {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}

.menu-overlay.show {
    width: 100%;
}

/* Styles for the dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0.5rem;
    margin-top: 10px;
    animation: slideDown 0.2s ease-out;
    padding: 0.25rem;
}

.dropdown-content li {
    list-style: none;
    padding: 8px 12px;
    text-align: left;
}

.dropdown-content li a {
    color: black;
    text-decoration: none;
    display: block;
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropdown Hamburger Styling */
.dropdown-hamburger {
    position: relative;
}

.dropdown-hamburger-content li {
    padding: 8px 16px; /* Reduziere das Padding, um den Abstand zu verringern */
    text-align: left;
    margin-bottom: 0px;
}

.dropdown-hamburger-content li a {
    display: block;
    color: #000;
    text-decoration: none;
}

.dropdown-hamburger-content li a:hover {
    background-color: #f1f1f1;
}

.dropdown-hamburger:hover .dropdown-hamburger-content,
.dropdown-hamburger.active .dropdown-hamburger-content {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Animation */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Class on Click */
.dropdown-hamburger > a {
    cursor: pointer;
}

.dropdown-hamburger-content {
    display: none;
    position: relative; /* Positionierung relativ, um die anderen Elemente zu beeinflussen */
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 200px;
    padding: 0;
    margin: 10px 0 10px 0; /* Margin-Bottom hinzugefügt, um Platz für die Icons zu schaffen */
    list-style: none;
    border-radius: 0.5rem;
}

.social-icons {
    display: flex; /* Verwende Flexbox für die horizontale Anordnung */
    justify-content: left; /* Zentriert die Icons horizontal */
    gap: 15px; /* Abstand zwischen den Icons */
    list-style: none; /* Entfernt Aufzählungszeichen */
    padding: 0; /* Entfernt zusätzliche Abstände */
    margin-top: 20px; /* Falls nötig, füge einen oberen Abstand hinzu */
}

.social-icons li {
    margin: 0;
}