/**
 * Lackmengenrechner V3 Styles
 * Pfad: assets/css/styles.css
 * Version: 3.0.17 (Corporate Design Adaptation)
 */

/* Import Fonts from your style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Pacifico&display=swap');

:root {
    /* Adapted Colors from your style.css */
    --lm-primary: #2e3a59;       /* Ihr Dunkelblau (Accent/Text) */
    --lm-primary-dark: #1a2238;  /* Etwas dunkler für Hover */
    --lm-primary-light: #eef0f2; /* Ganz helles Grau/Blau für Hintergründe */
    
    --lm-text-main: #2e3a59;     /* Ihr Text-Blau */
    --lm-text-muted: #5a6b7c;    /* Abgetöntes Blau-Grau */
    
    --lm-bg-card: #ffffff;
    --lm-bg-body: #f1f3f5;       /* Ihr Hintergrund-Grau */
    
    --lm-border: #cbd3dc;        /* Ihr Detail-Light Grau */
    
    /* Adapted Shadows */
    --lm-shadow: 0 2px 4px rgba(46, 58, 89, 0.1);
    --lm-shadow-hover: 0 4px 8px rgba(46, 58, 89, 0.15);
    
    --lm-radius: 12px; /* Passt gut zu Ihren border-radius: 12px */
}

/* Container */
.lm-v3-container {
    font-family: 'Roboto', Helvetica, sans-serif; /* Ihre Schriftart */
    width: 100%;
    max-width: 900px;
    margin: 1rem auto;
    background-color: var(--lm-bg-card);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow-hover);
    padding: 1.5rem;
    border: 1px solid var(--lm-border); /* Ihr Rahmen */
}

@media (min-width: 768px) {
    .lm-v3-container {
        margin: 2rem auto;
        padding: 2.5rem;
    }
}

/* Typography */
.lm-v3-step {
    margin-bottom: 2rem;
}

.lm-v3-step-title {
    font-family: 'Roboto', sans-serif; /* Pacifico vielleicht zu verspielt hier? Bleiben wir bei Roboto für Klarheit */
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--lm-text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lm-border); /* Dezenterer Unterstrich */
    display: inline-block;
}

/* Grid Layouts */
.lm-v3-grid-4, .lm-v3-grid-3, .lm-v3-grid-2-sm-3, .lm-v3-grid-motorcycle {
    display: grid;
    gap: 1rem; /* Etwas mehr Luft, passend zu Ihrem Layout */
}

.lm-v3-grid-4 { grid-template-columns: 1fr; } 
@media (min-width: 550px) { .lm-v3-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lm-v3-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.lm-v3-grid-2-sm-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .lm-v3-grid-2-sm-3 { grid-template-columns: repeat(3, 1fr); } }

.lm-v3-grid-motorcycle { grid-template-columns: 1fr; }
@media (min-width: 640px) { .lm-v3-grid-motorcycle { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .lm-v3-grid-motorcycle { grid-template-columns: repeat(3, 1fr); } }


/* --- Vehicle Selection Cards --- */
.lm-v3-label-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    border-radius: 8px; /* Angepasst an Ihre Buttons */
    border: 1px solid var(--lm-border);
    background-color: var(--lm-bg-card);
    padding: 1rem;
    transition: all 0.3s ease; /* Ihre Transition Zeit */
    height: 100%;
    position: relative;
    overflow: hidden;
    gap: 1rem;
    box-shadow: var(--lm-shadow);
}

@media (min-width: 550px) {
    .lm-v3-label-select {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 0;
    }
}

.lm-v3-label-select:hover {
    border-color: var(--lm-primary);
    transform: translateY(-2px);
    box-shadow: var(--lm-shadow-hover);
}

#lm-v3-paint-calculator input[type="radio"],
#lm-v3-paint-calculator input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#lm-v3-paint-calculator input[type="radio"]:checked + label.lm-v3-label-select {
    border-color: var(--lm-primary);
    background-color: var(--lm-primary); /* Volle Farbe wie Hover bei Ihren Buttons? Oder Light? */
    background-color: var(--lm-primary); 
    color: #ffffff; /* Weißer Text auf dunklem Blau */
    box-shadow: var(--lm-shadow-hover);
}

.lm-v3-label-title {
    font-size: 1rem;
    font-weight: 700;
    color: inherit; /* Erbt Farbe (Dunkel oder Weiß) */
    display: block;
}
@media (min-width: 550px) {
    .lm-v3-label-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
}

.lm-v3-label-subtitle {
    font-size: 0.85rem;
    color: var(--lm-text-muted);
}
#lm-v3-paint-calculator input[type="radio"]:checked + label .lm-v3-label-subtitle {
    color: rgba(255, 255, 255, 0.8); /* Helles Grau auf dunklem Hintergrund */
}


/* --- Parts Selection Tiles --- */
.lm-v3-part-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--lm-border);
    background-color: var(--lm-bg-body); /* Ihr Hintergrund-Grau */
    color: var(--lm-text-main);
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 3.5rem;
    height: 100%;
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .lm-v3-part-label {
        padding: 0.75rem 0.5rem;
        font-size: 0.95rem;
    }
}

.lm-v3-part-label:hover {
    border-color: var(--lm-primary);
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--lm-shadow);
}

#lm-v3-paint-calculator input[type="checkbox"]:checked + label.lm-v3-part-label {
    background-color: var(--lm-primary);
    border-color: var(--lm-primary);
    color: #ffffff;
    box-shadow: var(--lm-shadow-hover);
    transform: translateY(-2px);
}

#lm-v3-paint-calculator input:focus-visible + label {
    outline: 2px solid var(--lm-primary);
    outline-offset: 2px;
}


/* =========================================
   HYBRID LAYOUT SYSTEM
   ========================================= */
.lm-v3-spacer { display: none; }

@media (min-width: 700px) {
    .lm-v3-spacer { display: block; }
    .lm-v3-item-dach { grid-row: span 2; }
}

@media (max-width: 699px) {
    .lm-v3-item-stossstange-vorne,
    .lm-v3-item-motorhaube,
    .lm-v3-item-dach,
    .lm-v3-item-heckklappe,
    .lm-v3-item-stossstange-hinten {
        grid-column: 1 / -1 !important;
    }
    
    /* Visuelle Hervorhebung Mobil: Dunklerer Rahmen */
    .lm-v3-item-stossstange-vorne label,
    .lm-v3-item-motorhaube label,
    .lm-v3-item-dach label,
    .lm-v3-item-heckklappe label,
    .lm-v3-item-stossstange-hinten label {
        border-color: var(--lm-text-muted);
        font-weight: 700;
    }
    
    #lm-v3-paint-calculator input[type="checkbox"]:checked + label {
        background-color: var(--lm-primary) !important;
        border-color: var(--lm-primary) !important;
    }

    /* Sorting */
    .lm-v3-item-stossstange-vorne { order: 1; }
    .lm-v3-item-motorhaube        { order: 2; margin-bottom: 0.5rem; }
    .lm-v3-item-kotfluegel-vorne-links  { order: 3; }
    .lm-v3-item-kotfluegel-vorne-rechts { order: 4; }
    .lm-v3-item-tuer-vorne-links  { order: 5; }
    .lm-v3-item-tuer-vorne-rechts { order: 6; }
    .lm-v3-item-dach { order: 7; margin-top: 0.5rem; margin-bottom: 0.5rem; }
    .lm-v3-item-tuer-hinten-links  { order: 8; }
    .lm-v3-item-tuer-hinten-rechts { order: 9; }
    .lm-v3-item-kotfluegel-hinten-links  { order: 10; }
    .lm-v3-item-kotfluegel-hinten-rechts { order: 11; }
    .lm-v3-item-heckklappe         { order: 12; margin-top: 0.5rem; }
    .lm-v3-item-stossstange-hinten { order: 13; }
}


/* --- Helpers --- */
.lm-v3-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lm-v3-link-button {
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid var(--lm-border) !important;
    color: var(--lm-text-muted) !important;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
    line-height: 1.2;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

@media (min-width: 480px) {
    .lm-v3-link-button {
        flex: initial;
        font-size: 0.8rem;
    }
}

.lm-v3-link-button:hover {
    border-color: var(--lm-primary) !important;
    color: var(--lm-primary) !important;
    background-color: var(--lm-primary-light) !important;
    transform: translateY(-2px);
}

.lm-v3-separator { display: none; }
.lm-v3-flex-center { display: flex; gap: 0.5rem; width: 100%; }
@media (min-width: 480px) { .lm-v3-flex-center { width: auto; } }


/* --- Result Box --- */
.lm-v3-result-box {
    /* Anpassung an Ihr Design: Dunkelblau, solid oder sehr dezenter Verlauf */
    background: var(--lm-primary);
    /* Optional: Ein ganz dezenter Verlauf, um es edel wirken zu lassen */
    background: linear-gradient(145deg, var(--lm-primary) 0%, #1a2238 100%);
    
    border-radius: var(--lm-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    box-shadow: var(--lm-shadow-hover);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) { .lm-v3-result-box { padding: 2.5rem 2rem; } }

.lm-v3-result-box::before {
    /* Subtiler Glanz-Effekt */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.lm-v3-result-title {
    font-family: 'Roboto', sans-serif; /* Oder 'Pacifico', cursive; falls gewünscht */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
@media (min-width: 768px) { .lm-v3-result-title { font-size: 1.2rem; margin-bottom: 2rem; } }

.lm-v3-result-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 641px) { .lm-v3-result-grid { flex-direction: row; gap: 3rem; } }

.lm-v3-result-item { flex: 1; min-width: 0; width: 100%; }

.lm-v3-result-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .lm-v3-result-label { font-size: 0.9rem; margin-bottom: 0.5rem; } }

.lm-v3-result-value {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (min-width: 768px) { .lm-v3-result-value { font-size: 3.5rem; line-height: 1; } }

.lm-v3-result-divider {
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    display: block;
}
@media (min-width: 641px) {
    .lm-v3-result-divider {
        width: 1px;
        height: 80px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
    }
}

.lm-v3-result-cans::after {
    content: ' Stk.';
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 0.25rem;
}
@media (min-width: 768px) { .lm-v3-result-cans::after { font-size: 1.5rem; } }


/* --- Error Message --- */
.lm-v3-error {
    display: none;
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
    color: #c53030;
    box-shadow: var(--lm-shadow);
}
.lm-v3-error.lm-v3-visible { display: block; animation: fadeIn 0.3s ease; }
.lm-v3-error-title { font-weight: 700; margin-right: 0.5rem; }


/* --- Reset Button --- */
.lm-v3-center { text-align: center; }
.lm-v3-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--lm-bg-card);
    color: var(--lm-text-main);
    border: 1px solid var(--lm-border);
    padding: 0.75rem 2rem;
    border-radius: 8px; /* Wie Ihre Buttons */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: var(--lm-shadow);
}
@media (min-width: 480px) { .lm-v3-reset-button { width: auto; } }

.lm-v3-reset-button:hover {
    background-color: var(--lm-primary);
    color: #ffffff;
    border-color: var(--lm-primary);
    transform: translateY(-2px);
    box-shadow: var(--lm-shadow-hover);
}


/* --- Footer --- */
.lm-v3-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--lm-border);
    padding-top: 1.5rem;
    text-align: center;
}
.lm-v3-disclaimer { font-size: 0.8rem; color: var(--lm-text-muted); line-height: 1.6; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}