/* --- FARBEN & BASICS --- */
:root {
    --primary: #6200ea;
    --bg: #f8fafc;
    --card: #ffffff;
    --btn-green: #2ebf0a;
    --btn-green-hover: #26a507;
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 0;
    color: #333;
}

/* Wrapper */
.app-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- HAUPT LAYOUT GRID --- */
.main-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 25px;
    align-items: start;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
/* WICHTIG: Diese Zeile verhindert, dass der Slider die Spalte sprengt */
    min-width: 0;
}

/* --- UNTERER BEREICH RECHTS --- */
.bottom-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch; 
}

/* Cards */
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.card-equal {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card-equal .primary-btn {
    margin-top: auto; 
}

.card h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Inputs */
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- NEU: Einheitliche Labels für alle Sections --- */
.section-label {
    display: block;
    font-weight: 700;       /* Fett */
    font-size: 0.95rem;     /* Einheitliche Größe, gut lesbar */
    color: #1e293b;         /* Dunkles Grau/Schwarz für guten Kontrast */
    margin-bottom: 8px;     /* Einheitlicher Abstand nach unten zum Element */
    margin-top: 0;
}

/* ---------- PREVIEW / LEINWAND ---------- */

.preview-area {
    background: #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.canvas-wrapper {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: 10px;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.canvas-wrapper svg {
    max-height: 90%;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    display: block;
}

.preview-hint {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
}

/* Preis */
.price {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Anton', sans-serif;
    text-align: center;
}

/* Button */
.primary-btn {
    background: var(--btn-green);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.primary-btn:hover {
    background: var(--btn-green-hover);
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .main-grid {
        grid-template-columns: 1fr; 
    }
    
    .sidebar-left, .content-right {
        width: 100%;
    }

    .bottom-split {
        grid-template-columns: 1fr;
    }
    
    .canvas-wrapper {
        height: 220px;
    }
}

/* --- STEPPER BUTTONS (Maße) --- */
.stepper-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.stepper-wrapper input {
    text-align: center;
    width: 60px;
    font-weight: bold;
    background-color: #fff;
    margin: 0;
}

.tab-btn {
    padding: 8px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 6px;
    cursor: pointer;
    flex-grow: 1;
    transition: background 0.2s;
}

.btn-minus {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.btn-minus:hover {
    background-color: #fecaca;
}

.btn-plus {
    background-color: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}
.btn-plus:hover {
    background-color: #bae6fd;
}

/* --- COLOR GRID SELECTION --- */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.color-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    color: #333;
}

.color-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.color-btn.active {
    border-color: var(--primary);
    background: #f3e8ff;
    font-weight: bold;
}

.color-dot {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.color-name {
    font-size: 0.9rem;
    line-height: 1.2;
}

/* --- NEU: STATUS LISTE (Zusammenfassung) --- */
.config-status {
    list-style: none; /* Entfernt die schwarzen Punkte */
    padding: 0;
    margin: 15px 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* WICHTIG: Damit 'Gespiegelt' ausgeblendet werden kann */
.hidden {
    display: none !important;
}


/* --- OVERLAY / POPUP --- */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.info-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.info-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.overlay-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 5px;
}

.close-btn:hover {
    color: #ef4444;
}

.overlay-content {
    max-height: 80vh;
    overflow-y: auto; 
}
/* --- INSPIRATIONS SLIDER --- */
.slider-container {
    width: 100%;
    overflow: hidden; /* Versteckt alles was rechts rausläuft */
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 20px;
    width: max-content; /* Wichtig: Track wird so breit wie der Inhalt */
    animation: scroll 30s linear infinite;
}

.slide-img {
    height: 60px; /* Schön klein und dezent */
    width: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
    padding: 2px;
    border: 1px solid #eee;
}

/* Animation für endloses Scrollen */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Wir schieben um die Hälfte (die Kopie rückt nach) */
    }
}

/* Pause beim Drüberfahren mit der Maus */
.slider-track:hover {
    animation-play-state: paused;
}