/* --- Farbvariablen --- */
:root {
    --color-primary: #ff9900;
    --color-primary-hover: #ffb74d;
    --color-success: #27ae60;      /* Dein neuer Grünton */
    --color-bg-dark: #1a1a1a;
    --color-bg-card: #2d2d2d;
    --color-text-light: #e0e0e0;
    --color-danger: #ff4d4d;
    --color-black: #000000;
    --color-border: #444;
}

/* --- Basis-Layout --- */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; 
    background-color: #1a1a1a !important; 
    color: #e0e0e0 !important; 
    margin: 0; 
    padding: 0;
    line-height: 1.5;
}

a { 
    color: var(--color-primary); 
    text-decoration: none; 
    transition: 0.3s; 
}
a:hover { 
    text-decoration: underline; 
    color: var(--color-primary-hover); 
}

/* --- Header & Navigation --- */
header {
    background: var(--color-black);
    padding: 15px 30px;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a { 
    font-weight: bold; 
    font-size: 1.5em; 
    color: var(--color-primary); 
    text-decoration: none; /* Kein Unterstrich */
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Logo-Bild und Text */
}

.logo a:hover { 
    color: var(--color-success); 
    text-decoration: none; /* Sicherstellen, dass auch beim Hover kein Unterstrich kommt */
}
/* --- Dashboard & Grid --- */
.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px; 
    padding: 20px; 
}

.dash-card {
    background: var(--color-bg-card);
    padding: 15px; 
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
    min-height: 100px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none; 
    color: var(--color-text-light);
}

.dash-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.dash-card.maintenance-active { 
    border: 2px solid #ff0000 !important; 
    background: rgba(255, 0, 0, 0.05) !important; 
}

.dash-icon { font-size: 1.5em; margin-bottom: 5px; } 
.dash-card h3 { margin: 0; font-size: 1em; color: var(--color-primary); }
.dash-card p { font-size: 0.75em; color: #aaa; margin: 0; }

/* --- Formulare & Shop --- */
input, select, textarea { 
    background: var(--color-bg-dark); 
    border: 1px solid var(--color-border); 
    color: #fff; 
    padding: 12px; 
    border-radius: 4px; 
    width: 100%; 
    box-sizing: border-box; 
    font-size: 16px; 
}

label { 
    color: var(--color-primary); 
    font-weight: bold; 
    display: block; 
    margin-top: 10px; 
}

input[type="checkbox"] {
    width: auto !important;
    height: 1.2em;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #000;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    min-height: 44px; 
    cursor: pointer;
    text-decoration: none;
}

.shop-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
}

.product-card { 
    background: var(--color-bg-card); 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
    border: 1px solid var(--color-border); 
}

.shop-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}
.content-wrapper { max-width: 1000px; margin: 0 auto; padding: 20px; }

.hero-section {
    padding: 80px 20px; 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/biker_background.png'); 
    background-size: cover; 
    background-position: center; 
    border-radius: 8px; 
    margin-bottom: 40px; 
    color: var(--color-primary); 
    text-align: center;
}

.hero-title { font-size: 2.5em; margin-bottom: 10px; text-transform: uppercase; }
.hero-slogan { font-size: 1.2em; color: var(--color-primary); font-style: italic; }

.section-title { color: var(--color-primary); margin-bottom: 20px; }

.card-grid { 
    display: grid; 
    /* Begrenze die Anzahl der Spalten auf dem Desktop, damit es nicht "ausfranst" */
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); 
    justify-content: center; /* Zentriert das Grid, wenn der Platz zu groß ist */
    gap: 20px; 
    margin-top: 40px; 
}

.card { 
    background: var(--color-bg-card); 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid var(--color-border);
    text-align: center;
}
.dash-membership-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

/* Optional: Damit die Abstände in der Kachel stimmen */
.membership-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* Ergänzung für mobile Optimierung */
@media (max-width: 600px) {
    .hero-section {
        padding: 40px 10px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    .hero-title { font-size: 1.8em; }
}
/* --- Slide-In Menü Optimiert --- */
.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000; /* Sehr hoch, damit es über allem liegt */
    top: 0;
    right: 0;
    background-color: var(--color-bg-card); /* Nutzt dein Card-Design */
    border-left: 2px solid var(--color-primary); /* Rahmen passend zum Header */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 80px;
}

.side-nav.active {
    width: 250px;
}

.side-nav a {
    padding: 15px 25px;
    display: block;
    color: var(--color-text-light);
    font-size: 1.2em;
    transition: 0.3s;
}

.side-nav a:hover {
    color: var(--color-success);
    background: rgba(255, 255, 255, 0.05);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px !important;
    cursor: pointer;
}

.menu-toggle {
    cursor: pointer;
    font-size: 30px;
    color: var(--color-primary);
}
/* Sicherstellen, dass Kacheln flexibel sind */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt Inhalt und Button sauber */
    height: 100%; /* Kacheln sind immer gleich hoch */
}

/* Button-Anpassung für Kacheln */
.card .btn {
    padding: 8px 12px; /* Etwas kleiner als die Standard-Buttons */
    font-size: 0.9em;
    width: 100%; /* Füllt die Kachelbreite perfekt aus */
    box-sizing: border-box; /* Wichtig: Padding wird in Breite einberechnet */
    margin-top: auto; /* Schiebt Button immer nach unten in der Kachel */
}