/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #f5f5f5; /* Helle Schriftfarbe */
    background-color: #333; /* Dunkler Hintergrund */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ganze Bildschirmhöhe */
}

/* Header-Styling */
header {
    background: #222; /* Dunkler Hintergrund für die Headerleiste */
    color: white;
    padding: 15px 0; /* Kein zusätzlicher Platz wegen des Logos */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Für das absolut positionierte Logo */
}

header .logo {
    position: absolute; /* Logo aus dem normalen Layout nehmen */
    top: 10px; /* 10 Pixel vom oberen Rand */
    left: 10px; /* 10 Pixel vom linken Rand */
    z-index: 10; /* Über der Headerleiste platzieren */
}

header .logo img {
    height: 150px; /* Logo bleibt kompakt */
    width: auto; /* Seitenverhältnis wird beibehalten */
}

header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10 20px;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px; /* Abstand zwischen den Links */
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #4CAF50; /* Hover-Farbe */
}

/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    flex: 1;
}

/* Suchleiste */
#search {
    background: #444; /* Etwas helleres Grau */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#search h2 {
    margin-bottom: 1rem;
    color: #4CAF50; /* Grün für Titel */
}

#search form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#search input {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #555; /* Dunklere Grenze */
    border-radius: 4px;
    background-color: #222;
    color: white;
}

#search select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #222;
    color: white;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
    appearance: none; /* Entfernt Standard-Dropdown-Styling */
    
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="black" d="M2 0L0 2h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

#search select:focus {
    border-color: #007BFF; /* Farbe bei Fokus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#search button {
    padding: 10px 15px;
    font-size: 1rem;
    color: white;
    background: #4CAF50; /* Grün für Buttons */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#search button:hover {
    background: #45a049;
}

/* Artikelbereich */
#featured {
    margin-top: 20px;
}

#featured h2 {
    margin-bottom: 1rem;
    color: #4CAF50; /* Grün für Titel */
}

#articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#articles .article {
    background: #444; /* Dunkler Artikel-Hintergrund */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#articles .article h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #4CAF50;
}

#articles .article p {
    font-size: 0.9rem;
    color: #ddd;
}

#articles .article a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    color: white;
    background: #4CAF50;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

#articles .article a:hover {
    background: #45a049;
}

#bikes-for-sale {
    margin-top: 20px;
    background: #444; /* Passend zum Design */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#bikes-for-sale h2 {
    margin-bottom: 1rem;
    color: #4CAF50; /* Titel in Grün */
}

.bikes {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Genau 3 Spalten */
    gap: 20px; /* Abstand zwischen den Karten */
    margin: 20px 0;
}

.bike {
    background: #333; /* Hintergrundfarbe für jede Karte */
    border-radius: 8px; /* Abgerundete Ecken */
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bike img {
    width: 300px; /* Einheitliche Breite */
    height: 200px; /* Einheitliche Höhe */
    object-fit: cover; /* Zuschneiden für gleichmäßige Darstellung */
    border-radius: 8px; /* Abgerundete Ecken passend zum Design */
    margin: 0 auto; /* Zentriert das Bild im Container */
}

.bike h3 {
    color: #f5f5f5;
    margin-bottom: 5px;
}

.bike p {
    font-size: 0.9rem;
    color: #ddd;
}

.bike a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    color: white;
    background: #4CAF50;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.bike a:hover {
    background: #45a049;
}


/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .footer-links {
    margin-bottom: 10px;
}

footer .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

footer .footer-links ul li {
    margin: 0;
}

footer .footer-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-links ul li a:hover {
    color: #4CAF50;
}

footer p {
    margin: 10px 0 0;
    font-size: 0.8rem;
}

/* Responsives Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    #search form {
        flex-wrap: wrap;
    }

    .bikes {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten bei kleineren Bildschirmen */
    }
}
@media (max-width: 480px) {
        .bikes {
            grid-template-columns: 1fr; /* 1 Spalte bei sehr kleinen Bildschirmen */
        }
   
    }
