/**
 * Tapetenrechner (Wallpaper Calculator)
 *
 * Schlankes, auf das Shop-Design abgestimmtes Styling. Layout kommt so weit
 * wie moeglich aus Bootstrap 4; hier nur rechner-spezifische Ergaenzungen.
 * Alle Selektoren sind unter .wallpaper-calculator gescoped.
 */

.wallpaper-calculator {
    max-width: 760px;
    margin: 0 auto;
}

/* Rapport-Label-Zeile: Label links, Hilfe-Button rechts */
.wallpaper-calculator .wc-rapport-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Rapport-Hilfe-Button: Fragezeichen + Text, Trefferflaeche >= 44px (Touch) */
.wallpaper-calculator .wc-rapport-help {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.25rem 0.5rem;
    margin: 0 -0.5rem;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none !important; /* site.min.css: button { uppercase !important } */
    text-align: left;
    cursor: pointer;
}

.wallpaper-calculator .wc-rapport-help:hover .wc-rapport-help-text,
.wallpaper-calculator .wc-rapport-help:focus .wc-rapport-help-text {
    text-decoration: underline;
}

.wallpaper-calculator .wc-rapport-help-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.wallpaper-calculator .wc-rapport-help[aria-expanded="true"] .wc-rapport-help-icon {
    background-color: #0056b3;
}

/* Aufklappbare Rapport-Hilfe */
.wallpaper-calculator .wc-rapport-hint {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-left: 3px solid #007bff;
    background-color: #f8f9fa;
}

.wallpaper-calculator .wc-rapport-hint p {
    margin-bottom: 0.5rem;
}

.wallpaper-calculator .wc-rapport-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.wallpaper-calculator .wc-wall-title {
    font-weight: 600;
}

/* Aktions-Buttons */
.wallpaper-calculator .wc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wallpaper-calculator .wc-actions .btn {
    flex: 0 0 auto;
}

/* Abweichende Rollenmasse */
.wallpaper-calculator .wc-roll-override {
    margin-bottom: 1rem;
}

.wallpaper-calculator .wc-roll-toggle {
    padding: 0;
    font-size: 0.9rem;
}

.wallpaper-calculator .wc-roll-collapse {
    margin: 0.5rem 0;
}

.wallpaper-calculator .wc-roll-spec {
    margin-top: 0.25rem;
}

/* Ergebnisbereich */
.wallpaper-calculator .wc-result-box {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d8d0c0;
    border-radius: 0.25rem;
    background-color: #faf8f4;
}

.wallpaper-calculator .wc-result-heading {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.wallpaper-calculator .wc-you-need {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.wallpaper-calculator .wc-result-wall {
    padding: 0.5rem 0;
    border-top: 1px solid #e6e0d4;
}

.wallpaper-calculator .wc-result-wall-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wallpaper-calculator .wc-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-size: 0.9rem;
}

.wallpaper-calculator .wc-result-total {
    margin-top: 0.75rem;
    font-weight: 600;
}

.wallpaper-calculator .wc-result-notes {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #7a7060;
}

.wallpaper-calculator .wc-result-notes p {
    margin-bottom: 0.25rem;
}

.wallpaper-calculator .wc-full-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- Widget-Modus: kompakter --- */
.wallpaper-calculator[data-mode="widget"] {
    max-width: 100%;
}

.wallpaper-calculator[data-mode="widget"] .wc-wall.card {
    margin-bottom: 0.75rem;
}

.wallpaper-calculator[data-mode="widget"] .card-body {
    padding: 0.75rem;
}

/* --- Mobile: Einheiten-Select unter das Eingabefeld, Buttons volle Breite --- */
@media (max-width: 575.98px) {
    .wallpaper-calculator .wc-input-unit {
        display: block;
    }

    .wallpaper-calculator .wc-input-unit .form-control,
    .wallpaper-calculator .wc-input-unit .wc-unit {
        width: 100%;
        border-radius: 0.25rem;
    }

    .wallpaper-calculator .wc-input-unit .wc-unit {
        margin-top: 0.35rem;
    }

    .wallpaper-calculator .wc-actions {
        flex-direction: column;
    }

    .wallpaper-calculator .wc-actions .btn {
        width: 100%;
    }
}
