/* Grundlegende Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

/* Kopfzeile */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e67e22; /* Schönes Orange als Akzentfarbe */
}

/* Socials & Buttons */
.socials a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 1.2rem;
}

.socials a:hover {
    color: #e67e22;
}

.btn-discord {
    background-color: #5865F2;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-block;
    margin-top: 15px;
}

.btn-primary:hover {
    background-color: #d35400;
}

/* Slideshow / Home Section */
#home {
    margin-top: 70px; /* Platz für Header */
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Macht Bilder dunkler, damit Text lesbar ist */
}

.home-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.home-text h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* Content Sections */
.content-section {
    padding: 80px 10%;
    text-align: center;
}

.bg-dark {
    background-color: #1a1a1a;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #e67e22;
}

/* Grids für Team & Galerie */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
}

.galerie-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.galerie-grid img:hover {
    transform: scale(1.05);
}

/* Formulare */
.bewerbungs-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.bewerbungs-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.bewerbungs-form input, 
.bewerbungs-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
}

.legal-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: #fff;
}

/* Abstand für Unterseiten, damit der Header nichts überdeckt */
.page-padding {
    margin-top: 100px;
    min-height: 70vh; /* Sorgt dafür, dass der Footer immer unten bleibt */
}

/* Dynamische Scroll-Effekte (Fade-In & Slide-Up) */
.fade-in {
    opacity: 0;
    transform: translateY(40px); /* Element ist anfangs 40px nach unten verschoben */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Element rutscht an seine normale Position */
}

/* --- ZEITSTRAHL (TIMELINE) DESIGN --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Die Linie, die von JS gesteuert wird */
.timeline-line {
    position: absolute;
    width: 6px;
    background-color: #e67e22; /* Eure Firmenfarbe */
    top: 0;
    left: 50%;
    margin-left: -3px;
    height: 0%; /* Startet bei 0% und wächst beim Scrollen */
    z-index: 1;
}

/* Platzierung der Boxen */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    z-index: 2;
}

/* Die runden Punkte auf der Linie */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #121212;
    border: 4px solid #e67e22;
    top: 30px;
    border-radius: 50%;
    z-index: 3;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.left::after {
    right: -14px; /* Punkt auf die Linie setzen (linke Box) */
}

.right::after {
    left: -14px; /* Punkt auf die Linie setzen (rechte Box) */
}

/* Die Karte mit Text und Bild */
.timeline-content {
    padding: 20px;
    background-color: #2c2c2c;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.timeline-content img {
    width: 100%;
    border-radius: 5px;
    margin: 15px 0;
    object-fit: cover;
    max-height: 250px;
}

/* Handy-Ansicht: Alles auf eine Seite schieben */
@media screen and (max-width: 768px) {
    .timeline-line {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }
    .timeline-item.right {
        left: 0;
    }
    .left::after, .right::after {
        left: 17px;
    }
}

/* --- TEAM HIERARCHIE DESIGN --- */
.team-tier {
    margin-bottom: 60px;
}

/* Titel über den jeweiligen Rängen */
.tier-title {
    color: #aaa;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 2px solid #444;
    display: inline-block;
    padding-bottom: 5px;
}

/* Zentriert die Karten für die Führungsrollen */
.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Feste Breite für die Team-Karten, damit sie gleichmäßig aussehen */
.team-row .card {
    width: 250px;
    text-align: center;
}

/* Optische Hervorhebungen der Ränge (optional) */
.admin-card {
    border-top: 4px solid #e67e22; /* Oranger Rand für Geschäftsführung */
}

.management-card {
    border-top: 4px solid #f1c40f; /* Gelber Rand für Management */
}

.leiter-card {
    border-top: 4px solid #3498db; /* Blauer Rand für Leiter */
}

/* Spalten für das Personal-, Event- und Support-Team */
.teams-container {
    align-items: flex-start;
}

.team-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 250px;
}

.team-column h4 {
    color: #e67e22;
    margin-bottom: 10px;
}

/* Raster für die Fahrer (Viele nebeneinander) */
.drivers-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.driver-card {
    padding: 15px;
    font-size: 1.1rem;
    background-color: #222;
    border: 1px solid #333;
}

/* --- AVATARE --- */
.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* Macht das Bild rund */
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #444;
}

.avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #444;
}

/* --- ROLLEN-TEXT --- */
.role {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

/* --- LEVEL BADGES --- */
.level-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Farben für die Level (kannst du beliebig anpassen) */
.anfaenger { background-color: #555; color: #fff; }
.bronze    { background-color: #cd7f32; color: #fff; }
.silber    { background-color: #c0c0c0; color: #000; }
.gold      { background-color: #ffd700; color: #000; }
.platin    { background-color: #E5E4E2; color: #000; }

/* --- TMP BUTTON --- */
.tmp-btn {
    display: block;
    background-color: #b22222; /* Ein dunkles Rot */
    color: #fff;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: auto; /* Schiebt den Button immer ans untere Ende der Karte */
}

.tmp-btn:hover {
    background-color: #8b0000;
}

/* Damit die Karten flexibel mitwachsen und der Button unten bleibt */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
}