/* Modern CSS für Racetrack4You */

/* Fonts */
@font-face {
    font-family: 'exo';
    src: url('../fonts/exo/Exo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'exo';
    src: url('../fonts/exo/Exo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Grundlegende Reset & Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: exo, "lucida Grande", Geneva, Tahoma, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background-color: #111E0A;
}

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Links */
a {
    color: #e31818;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffd700;
}

/* Typografie */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    text-transform: uppercase;
    font-size: 1.5rem;
    color: #111E0A;
}

h2 {
    color: #e31818;
    text-transform: uppercase;
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.highlight-red {
    color: #e31818;
    font-weight: bold;
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    max-width: 100%;
    height: auto;
}

.social-media {
    display: flex;
    gap: 10px;
    margin-left: auto;
    padding-left: 20px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu > li {
    position: relative;
    margin-left: 15px;
}

.menu-link {
    display: block;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.menu-red { color: #FF4500; }
.menu-yellow { color: #ffd700; }
.menu-orange { color: #F08E00; }
.menu-blue { color: #1E90FF; }
.menu-green { color: #3CB371; }

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: #ffd700;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    color: #000;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #000;
    color: #ffd700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon, 
.hamburger-icon:before, 
.hamburger-icon:after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffd700;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon:before, 
.hamburger-icon:after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-icon:before {
    top: -8px;
}

.hamburger-icon:after {
    bottom: -8px;
}

/* News Banner */
.news-banner {
    display: flex;
    background-color: #ffd700;
    color: #663300;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    padding: 10px 20px;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-content div {
    white-space: nowrap;
    padding-right: 50px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.news-label {
    background-color: #FFEB80;
    color: #312E0A;
    padding: 10px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

/* Main Content Area */
.content-area {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
    background-color: #ffd700;
    padding: 20px;
    border-radius: 4px;
}

.main-content {
    grid-column: 1;
    color: #312E0A;
}

.photo-gallery {
    grid-column: 2;
}

.news-sidebar {
    grid-column: 3;
    background-color: #FFEB80;
    padding: 15px;
    border-radius: 4px;
    color: #312E0A;
    max-height: 500px;
    overflow-y: auto;
}

.news-sidebar h3 {
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-item p {
    font-size: 0.85rem;
}

.news-item:last-child {
    border-bottom: none;
}

/* Track Navigation */
.track-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.track-icon {
    transition: transform 0.3s ease;
}

.track-icon:hover {
    transform: scale(1.1);
}

.track-icon img {
    height: 100px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(89%) sepia(22%) saturate(5939%) hue-rotate(0deg) brightness(105%) contrast(103%);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 20px 0;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: #ffd700;
}

.footer-links a {
    color: #ffd700;
    font-weight: normal;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Image Carousel */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 4px;
}

.gallery-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.gallery-carousel img:first-child {
    opacity: 1;
}

/* Headline Animation */
.headline-cycle, .subtitle-cycle {
    position: relative;
    height: 1.5em;
    overflow: hidden;
}

.cycle-content {
    position: absolute;
    width: 100%;
}

.cycle-content div {
    opacity: 0;
    position: absolute;
    width: 100%;
    animation: cycle 10s infinite;
}

.cycle-content div:nth-child(1) {
    animation-delay: 0s;
}

.cycle-content div:nth-child(2) {
    animation-delay: 5s;
}

@keyframes cycle {
    0%, 45%, 100% { opacity: 0; }
    5%, 40% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-content {
        grid-column: 1;
    }
    
    .photo-gallery {
        grid-column: 2;
    }
    
    .news-sidebar {
        grid-column: 1 / span 2;
        max-height: none;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #111E0A;
        z-index: 1000;
        padding: 10px;
        border-radius: 4px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
    
    .menu.open {
        display: flex;
    }
    
    .menu > li {
        margin: 0;
        width: 100%;
    }
    
    .menu-link {
        padding: 12px 15px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        margin-left: 15px;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .social-media {
        margin-left: 0;
        padding-left: 0;
        margin-bottom: 15px;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .main-content,
    .photo-gallery,
    .news-sidebar {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .news-banner {
        flex-direction: column;
    }
    
    .news-label {
        width: 100%;
        padding: 5px;
    }
    
    .track-navigation {
        gap: 10px;
    }
    
    .track-icon img {
        width: 80px;
        height: auto;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Back to Top Button - Global */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.hidden {
    display: none;
}

.text-uppercase {
    text-transform: uppercase;
}

.font-bold {
    font-weight: bold;
}

.font-medium {
    font-weight: 500;
}

.text-danger {
    color: #e31818;
}

.text-success {
    color: #48bb78;
}

.text-warning {
    color: #ed8936;
}

.text-gray {
    color: #9ca3af;
}

.text-light-gray {
    color: #cccccc;
}

.text-yellow {
    color: #ffd700;
}

.text-orange {
    color: #f59e0b;
}

.text-sm {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.1rem;
}

.text-xl {
    font-size: 3rem;
}

.d-inline-block {
    display: inline-block;
}

.d-block {
    display: block;
}

.ml-8 {
    margin-left: 8px;
}

.mr-8 {
    margin-right: 8px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-25 {
    margin-bottom: 25px;
}

.my-15 {
    margin-top: 15px;
    margin-bottom: 15px;
}

.p-20 {
    padding: 20px;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-danger-gradient {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e31818 0%, #c01414 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}