/* --- 1. GRUND-SETUP & ANIMATIONEN --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Ein moderner, dunkler Farbverlauf statt einer langweiligen Farbe */
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh; /* Sorgt dafür, dass der Verlauf immer bis ganz unten geht */
}




/* --- 2. HEADER & NAVIGATION --- */
header {
    background-color: rgba(10, 10, 10, 0.95); /* Leicht transparent */
    padding: 20px 0;
    border-bottom: 2px solid #e60000;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2); /* Roter, cleaner Schatten */
    position: sticky; /* Menü bleibt oben kleben beim Scrollen */
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px; /* Sauberer Abstand zwischen den Links */
}

nav a {
    color: #cccccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1.5px; /* Etwas mehr Abstand zwischen den Buchstaben wirkt edler */
    text-transform: uppercase;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ff1a1a;
    text-shadow: 0 0 12px rgba(255, 26, 26, 0.6); /* Cooler Leucht-Effekt */
}





/* --- 3. HAUPTINHALT --- */
main {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.8s ease-out; /* Hier wird die Einblend-Animation aufgerufen */
}

h1, h2, h3 {
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Wir machen das rote Racing-Design etwas eleganter */
h1 {
    border-left: 4px solid #e60000;
    padding-left: 15px;
    margin-bottom: 30px;
}






/* --- 4. TEAM-KARTEN (CLEANER) --- */
.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 50px;
}

.team-container {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.team-card {
    background: rgba(30, 30, 30, 0.6); /* Leicht durchsichtige Karten */
    backdrop-filter: blur(5px); /* Verschwimmt leicht mit dem Hintergrund */
    border: 1px solid #333;
    border-radius: 12px; /* Rundere, weichere Ecken */
    padding: 30px 20px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: #e60000;
    box-shadow: 0 12px 25px rgba(230, 0, 0, 0.15); /* Roter Glow beim Drüberfahren */
}

.profile-placeholder {
    width: 110px;
    height: 110px;
    background-color: #111;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    border: 2px solid #444;
    transition: border-color 0.3s;
}

.team-card:hover .profile-placeholder {
    border-color: #e60000; /* Rahmen vom Foto wird rot, wenn man über die Karte fährt */
}

.role {
    color: #e60000;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.task {
    font-size: 0.95rem;
    color: #bbbbbb;
    line-height: 1.5;
}





/* --- 5. FOOTER & TRENNLINIEN --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(10, 10, 10, 0.8);
    color: #666666;
    font-size: 0.85rem;
    margin-top: 80px;
    border-top: 1px solid #222;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #333, transparent); /* Verlaufslinie statt harter Strich */
    margin: 40px 0;
}




/* --- PARTNER SEITE STYLING --- */

/* Grid-Layout: Erstellt automatisch Spalten, die sich je nach Bildschirmgröße anpassen */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.partner-card {
    background: rgba(25, 25, 25, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Neuer cooler Skalierungseffekt beim Drüberfahren */
.partner-card:hover {
    transform: scale(1.03);
    border-color: #e60000;
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.15);
    background: rgba(35, 35, 35, 0.7);
}

/* Platzhalter für die Logos der Firmen */
.logo-placeholder {
    height: 100px;
    background-color: #0b0b0b;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px dashed #333333;
    transition: all 0.3s ease;
}

.partner-card:hover .logo-placeholder {
    color: #ffffff;
    border-color: rgba(230, 0, 0, 0.5);
    background-color: #000000;
    text-shadow: 0 0 10px rgba(255, 25, 25, 0.5);
}

.partner-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
}

.partner-desc {
    font-size: 0.9rem;
    color: #aaaaaa;
    line-height: 1.6;
}


/* --- STARTSEITE (INDEX) STYLING --- */

/* Hero-Bereich */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.05) 0%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(230, 0, 0, 0.1);
    border: 1px solid #e60000;
    color: #ff3333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 35px auto;
    font-weight: 300;
}

/* Cleaner Button-Style */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e60000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #ff1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.5);
}

.btn-secondary {
    border: 1px solid #444;
    color: #cccccc;
}

.btn-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Technische Highlights Grid */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.6rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #222;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #333;
    background: rgba(30, 30, 30, 0.8);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #999999;
    line-height: 1.5;
}



/* --- PROJEKT SEITE STYLING --- */

.project-sections {
    display: flex;
    flex-direction: column; /* Untereinander anordnen */
    gap: 30px;
    margin-top: 40px;
}

.project-block {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid #252525;
    border-radius: 12px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-block:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: #333333;
    transform: translateX(5px); /* Bewegt sich dezent nach rechts beim Drüberfahren */
}

/* Die farbigen Badges für die Fachbereiche */
.block-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 4px;
    background-color: #111;
    border: 1px solid #e60000;
    color: #ff3333;
}

.project-block h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
}

.project-block p {
    font-size: 1rem;
    color: #cccccc;
    max-width: 80%; /* Text wird nicht zu breit gedrückt */
    margin: 0;
}

.project-block strong {
    color: #ffffff; /* Hebt wichtige Bauteile cleaner hervor */
}



/* --- BLOG SEITE STYLING --- */

.blog-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* Eine vertikale rote Linie im Hintergrund, die an eine Timeline erinnert */
.blog-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, #e60000, #222);
}

.blog-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid #222;
    border-radius: 10px;
    padding: 25px 25px 25px 50px; /* Mehr Platz links wegen der Timeline-Linie */
    position: relative;
    transition: all 0.3s ease;
}

/* Der kleine rote Punkt auf der Timeline-Linie */
.blog-card::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 30px;
    width: 10px;
    height: 10px;
    background-color: #e60000;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0000;
}

.blog-card:hover {
    background: rgba(25, 25, 25, 0.6);
    border-color: #333;
    transform: translateX(3px);
}

.blog-meta {
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.blog-card p {
    font-size: 0.95rem;
    color: #cccccc;
    margin: 0;
}