/* ==========================================================================
   ALIENTEC - MASTER STYLE.CSS (Die finale Verschmelzung!)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FARBEN, SCHRIFTEN & GRUNDGERÜST
   -------------------------------------------------------------------------- */
:root {
    --bg-asphalt: #121212;       /* Hintergrund - Sehr dunkles Grau */
    --text-light: #a8a8a8;       /* Graue Schrift */
    --accent-blood: #ff3300;     /* Blutorange */
    --header-bg: #0a0a0a;        /* Dunkler Hintergrund für MenüLeiste */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-asphalt);
    color: var(--text-light);
    line-height: 1.6;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', Arial, sans-serif; 
}

/* Globale Regel: Kein Bild darf größer als sein Rahmen (oder das Handy) sein */
img {
    max-width: 100%;
    height: auto;
}

/* Wuchtige, mechanische "Stempel"-Schrift für alle Überschriften */
h1, h2, h3, .logo, .nav-links a {
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 1.5px;
    font-weight: normal;
}

/* Hilfsklasse zum Zentrieren von Inhalten (z.B. Impressum, Intro) */
.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ZENTRIERT DIE GANZE SEITE (Das hat bei Home.html gefehlt!) */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Universelle abgerundete Ecken für Bilder – lässt die Bildgröße unverändert */
.img-rounded {
    border-radius: 12px; /* Hier kannst du den Wert anpassen, je nachdem wie rund es sein soll */
}

/* Zentriert den Text/Bild und macht einen Abstand nach unten */
.bild-block {
    text-align: center;
    margin-bottom: 20px; /* <--- Hier stellst du ein, wie groß der Abstand sein soll (z.B. 30px, 50px oder 80px) */
}


/* --------------------------------------------------------------------------
   2. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
    background-color: var(--header-bg);
    padding: 15px 0;
    border-bottom: 3px solid var(--accent-blood);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .nav-logo-img {
    transform: scale(1.1);
}

.logo span {
    color: var(--accent-blood);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links li {
    display: flex;
    justify-content: center;
    width: 120px;
}

.nav-links img {
    height: 40px; 
    width: auto;
    display: block;
    transition: transform 0.2s, filter 0.2s;
}

.nav-links a:hover img {
    transform: translateY(2px);
    filter: brightness(0.6) contrast(1.2);
}

.nav-links a:active img {
    transform: translateY(6px);
    filter: brightness(0.2);
}


/* --------------------------------------------------------------------------
   3. ÜBERSCHRIFTEN & TRENNLINIEN
   -------------------------------------------------------------------------- */
h1, h2, h3 {
    margin-bottom: 20px;
}

/* Die Home-Überschrift mit den Pfeilen */
h2 {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: var(--text-light);
}

h2::before {
    content: ">>>";
    color: var(--accent-blood);
}

h2::after {
    content: "<<<";
    color: var(--accent-blood);
}

/* Klassischer Bindestrich-Ersatz für Home */
hr {
    border: 0;
    height: 2px;
    background-color: var(--accent-blood);
    margin: 40px 0;
    opacity: 0.5;
}

/* Der leuchtende Balken für Services & Worx */
.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #FF3300, transparent);
    margin: 20px auto;
    width: 80%;
}


/* --------------------------------------------------------------------------
   4. LATEST WORX - auf ¨Home¨ (index.html)
   -------------------------------------------------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blood);
    box-shadow: 0 0 25px rgba(255, 51, 0, 0.7); 
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 12px;
}

/* Name (Grau) - Genau wie auf der Worx-Seite */
.project-card a {
    color: #808080;
    text-decoration: none;
    font-family: 'Impact', sans-serif;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2px;
}

/* Jahrgang & Modell (Orange) - Genau wie auf der Worx-Seite */
.project-card a span {
    color: #ff3300;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    text-transform: none; /* Verhindert, dass das Modell auch komplett groß geschrieben wird */
}


/* --------------------------------------------------------------------------
   5. WORX & SERVICES: DIE FINALE BLAUPAUSE (Dynamische Höhe)
   -------------------------------------------------------------------------- */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Das zieht die Nachzügler in die Mitte! */
    gap: 30px; /* <-- Habe ich auf 30px gesetzt für einen schönen Abstand */
    max-width: 1150px; /* <--- DER TRICK: Das Gitter ist jetzt nur noch so breit, dass max. 3 reinpassen! */
    margin: 40px auto;
    padding: 0 20px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-box {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 25px; /* Etwas kompakteres Padding */
    width: 300px;
    height: auto; /* Zwingt die Box, nur so hoch wie nötig zu sein */
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Verkauft-Badge */
.service-box .sold-badge {
    height: 18px;
    width: auto;
    margin-top: 0;
    margin-bottom: 12px;
}

/* Projektbild */
.service-box img:not(.sold-badge) {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #333;
    margin-bottom: 12px; /* Etwas weniger Abstand zum Text */
}

/* Name (Grau) */
.project-name {
    color: #808080;
    font-family: 'Impact', sans-serif;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 2px; /* Enger am Modellnamen */
}

/* Jahrgang & Modell (Orange) */
.project-details {
    color: #ff3300;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px; /* Kleiner Abschlussabstand unten */
}

/* Text-Absatz in den Service-Boxen (Orange) */
.service-box p {
    color: #ff3300;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    margin-top: 2px;
    margin-bottom: 5px;
}

/* Der leuchtende Hover-Effekt */
.project-link:hover .service-box {
    border-color: #ff3300;
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 51, 0, 0.7);
}

/* Großer vertikaler Abstand */
.spacer-vertical {
    height: 60px;
    width: 100%;
}


/* --------------------------------------------------------------------------
   6. WORX: MARKEN-NAVIGATION (Hersteller-Logos)
   -------------------------------------------------------------------------- */
.brand-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.brand-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.brand-link img {
    height: 42px;
    width: 60px;
    object-fit: contain;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.brand-link:hover img {
    filter: grayscale(0);
    transform: scale(1.15);
}

.brand-section {
    /* Das dicke Polster ist weg, dafür nur ein kleiner, feiner Abstand: */
    margin-top: 20px; 
    margin-bottom: 40px;
    
    /* Der magische Trick für den Sprung-Link: */
    scroll-margin-top: 120px; 
}

.brand-logo-header-wrapper {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.brand-logo-header {
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0) brightness(1);
    display: inline-block;
}


/* --------------------------------------------------------------------------
   7. FOOTER (Ganz unten)
   -------------------------------------------------------------------------- */
.main-footer {
    text-align: center;
    /* Padding oben stark reduziert (von 60px auf 20px) */
    padding: 20px 0 40px 0; 
    /* Margin oben komplett gelöscht, da die Linie schon eigenen Abstand hat */
    margin-top: 0; 
}

.footer-master-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit; 
    transition: all 0.3s ease;
}

.footer-text {
    color: #808080; 
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-logo {
    max-height: 55px;
    width: auto;
    height: auto;
    transition: all 0.3s ease-in-out;
    filter: grayscale(0.8) opacity(0.7);
}

.footer-master-link:hover .footer-text {
    color: #FF3300;
    text-shadow: 0 0 8px rgba(255, 51, 0, 0.4);
}

.footer-master-link:hover .footer-logo {
    transform: translateY(-8px) scale(1.05);
    filter: grayscale(0) opacity(1) brightness(1.2);
}


/* --------------------------------------------------------------------------
   8. ABOUT MEE SEITE (zentrierte Struktur)
   -------------------------------------------------------------------------- */
.about-main-container {
    max-width: 900px; /* Nicht zu breit, das macht Text lesbarer */
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.about-block {
    margin: 40px 0;
}

/* Große Hochkant-Bilder */
.about-img-tall {
    max-width: 100%;
    width: 640px; 
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Mittleres Bild (Garage) */
.about-img-medium {
    max-width: 100%;
    width: 480px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Bilder deiner Autos */
.about-img-car {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Die Textblöcke dazwischen */
.about-text-block {
    margin: 30px 0;
    padding: 0 20px;
}

.about-text-block p {
    color: #808080;
    font-family: 'Verdana', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Bereich für deine eigenen Autos */
.about-cars-block {
    margin: 50px 0;
}

.about-car-item {
    margin-bottom: 60px;
}

.about-car-text {
    color: #808080;
    font-family: 'Verdana', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 15px;
}

/* Orange Links für deine Autos */
.about-car-link {
    color: #ff3300; 
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-car-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 51, 0, 0.8);
}


/* --------------------------------------------------------------------------
   9. FOR SALE SEITE (Verkaufs-Inserate)
   -------------------------------------------------------------------------- */
.forsale-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border: none;
}

.car-listing {
    margin: 60px 0;
    text-align: center;
}

/* AutoÜberschrift */
.car-title {
    color: #ff3300;
    font-family: 'Impact', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

/* HauptBild */
.car-main-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

/* Daten-Tabelle (Modernes Grid) */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.spec-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 5px;
    color: #a0a0a0;
    font-family: 'Verdana', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spec-item strong {
    color: #ff3300;
}

/* Preis */
.car-price {
    font-family: 'Impact', sans-serif;
    font-size: 3rem;
    color: #ff3300;
    margin: 40px 0;
    text-shadow: 0 0 15px rgba(255, 51, 0, 0.3);
}

.price-detail {
    font-family: 'Verdana', sans-serif;
    font-size: 1.2rem;
    color: #808080;
    text-shadow: none;
}

/* BilderGalerie unten */
.car-gallery {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.car-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
}

.gallery-note {
    color: #808080;
    font-family: 'Verdana', sans-serif;
    font-size: 1rem;
    font-weight: bold;
}

/* Kontakt-Bereich */
.contact-section {
    text-align: center;
    margin: 50px 0;
    padding: 30px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
}

.contact-title {
    color: #808080;
    font-family: 'Impact', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-info {
    color: #a0a0a0;
    font-family: 'Verdana', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-highlight {
    color: #ff3300;
    font-size: 1.5rem;
    font-weight: bold;
}

.contact-email {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.contact-email .arrow {
    color: #ff3300;
    font-size: 1.8rem;
}

.contact-email:hover {
    color: #fff;
}


/* --------------------------------------------------------------------------
   10. LINKZ SEITE (Partner & Freunde)
   -------------------------------------------------------------------------- */
.linkz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Überschriften der Link-Kategorien (Partner, Meetings, Friends) */
.link-category-title {
    color: #808080;
    font-family: 'Impact', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* Das flexible Gitter für die Link-Boxen (jetzt zentriert) */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Schiebt alles in die Mitte */
    gap: 30px;
    margin: 50px 0;
}

/* Die einzelne Link-Box */
.link-card {
    flex: 1 1 300px;
    max-width: 350px; /* Verhindert, dass 1 oder 2 Boxen extrem breit werden */
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Der leuchtende Hover-Effekt wie bei den Autos */
.link-card:hover {
    transform: translateY(-5px);
    border-color: #ff3300;
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.4);
}

/* Die Bilder/Banner in den Boxen */
.link-card img {
    max-width: 100%;
    height: auto;
    max-height: 120px; /* Verhindert, dass riesige Banner das Layout sprengen */
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Der Titel des Links */
.link-title {
    color: #ff3300;
    font-family: 'Impact', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Die kleine Beschreibung darunter */
.link-desc {
    color: #a0a0a0;
    font-family: 'Verdana', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* --------------------------------------------------------------------------
   11. MOBILE ANSICHT (Handys & Tablets)
   -------------------------------------------------------------------------- */

/* Den Burger-Schalter auf dem PC verstecken */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    margin-right: 20px;
    align-items: center; /* <--- Diese neue Zeile zentriert die Striche! */
}

/* Wie die drei Striche aussehen */
.menu-toggle .bar {
    height: 4px;
    width: 30px;
    background-color: #ff3300; /* Alientec Orange */
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Der Star Wars "Aurebesh" Touch: Mittlere Linie kürzer */
.menu-toggle .bar:nth-child(2) {
    width: 20px; 
}

/* Ab hier greifen die Regeln NUR, wenn der Bildschirm kleiner als 768px (Handy) ist */
@media (max-width: 768px) {
    
    /* Navigation erlauben, nach unten aufzuklappen */
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* Zeige den Burger-Schalter auf dem Handy */
    .menu-toggle {
        display: flex;
    }

    /* Verstecke die Menü-Buttons standardmäßig */
    .nav-links {
        display: none; 
        flex-direction: column; /* Untereinander statt nebeneinander */
        width: 100%;
        text-align: center;
        background-color: #0a0a0a; /* Dunkler Hintergrund fürs Menü */
        padding: 5px 0;
        margin-top: 5px;
        border-top: 2px solid #ff3300;
    }

    /* Größere Abstände und ERZWUNGENE Sichtbarkeit für die Handys */
    .nav-links li {
        display: block !important;
        visibility: visible !important;
        margin: 5px 0;
        width: 100%;
    }

    /* Macht die Menü-Bilder auf dem Handy wieder sichtbar und gibt ihnen eine feste Größe */
    .nav-links img {
        display: inline-block !important;
        width: 180px; /* Richtwert: Damit die Bilder sauber auf jedes Handy-Display passen */
        height: auto;
    }

    /* Sicherstellen, dass die Links generell angezeigt werden */
    .nav-links a {
        display: block !important;
    }

    /* Diese Klasse wird per Klick hinzugefügt und zeigt das Menü */
    .nav-links.active {
        display: flex; 
    }

    /* Die Karten auf dem Handy untereinander stapeln */
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Galerie-Bilder auf dem Handy untereinander stapeln */
    .project-gallery {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------------
   12. PROJEKT-DETAILSEITEN
   -------------------------------------------------------------------------- */

/* Zentriert Logo und Titel ganz oben */
.project-header {
    text-align: center;
    margin-top: 10px;
}

/* Zentriert das Hauptbild und die Notiz darunter */
.main-image-wrapper {
    text-align: center;
    margin-bottom: 5px;
}

/* Kosmetik für die Notiz unter dem Bild */
.gallery-note {
    margin-top: 10px;
    margin-bottom: 0px; /* <--- Zwingt den Browser, seinen eigenen, dicken Standard-Abstand wegzulassen */
    color: #808080; /* Schönes, dezentes Grau */
    font-style: italic; /* Kursiv sieht bei Bildunterschriften oft edel aus */
}

/* Die neue Galerie für die unteren Bilder */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Bilder nebeneinander auf dem PC */
    gap: 20px; /* Spaltmaß zwischen den Bildern */
    max-width: 1000px;
    margin: 0 auto;
}

/* Sorgt dafür, dass die Galerie-Bilder das Raster perfekt ausfüllen */
.project-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}