/**
 * VMM Goldrechner Simple - Stylesheet
 *
 * @package     Villaester.Module
 * @subpackage  mod_vmm_goldrechner_simple
 * @copyright   Copyright (C) 2026 Villaester Moderne Medien
 * @license     GNU General Public License version 2 or later
 */

.mod-vmm-goldrechner-simple {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mod-vmm-goldrechner-simple *,
.mod-vmm-goldrechner-simple *::before,
.mod-vmm-goldrechner-simple *::after {
    box-sizing: border-box;
}

/* Top Bar - Formular */
.vmm-goldrechner-top {
    background: #d4a853;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.5rem 1.25rem 2rem;
    width: 100%;
}

.vmm-goldrechner-top h4 {
    color: #ffffff !important;
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    flex: 0 0 auto;
    max-width: 260px;
}

.vmm-goldrechner-fields {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.vmm-field-group {
    flex: 0 1 auto;
    min-width: 0;
}

.vmm-field-group label {
    display: block;
    color: #1a2a3a;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.vmm-goldrechner-top .vmm-field-group label {
    color: #ffffff !important;
}

.vmm-field-group .uk-input,
.vmm-field-group .uk-select {
    border: none;
    border-radius: 0;
    height: 44px;
    font-size: 1rem;
    max-width: 100%;
}

.vmm-field-group .uk-input {
    width: 140px;
}

.vmm-field-group .uk-select {
    width: 200px;
}

.vmm-calculate-btn {
    background: #3a4a5c !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 2rem !important;
    height: 44px !important;
    line-height: 44px !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

.vmm-calculate-btn:hover {
    background: #2d3a4a !important;
}

/* Result Box */
.vmm-result-box {
    background: #f5f5f5;
    padding: 1.25rem 0.5rem 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    flex-wrap: nowrap;
}

.vmm-result-info {
    flex: 0 1 auto;
    min-width: 0;
}

.vmm-result-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.vmm-result-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.vmm-result-value-wrap {
    text-align: center;
    flex: 0 0 auto;
}

.vmm-result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b8860b;
    line-height: 1;
}

.vmm-result-gram {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.vmm-result-action {
    flex: 0 0 auto;
    margin-left: auto;
}

.vmm-result-cta {
    display: inline-block;
    background: #3a4a5c !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.85rem 2rem !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.vmm-result-cta:hover {
    background: #2d3a4a !important;
    color: #fff !important;
}

.vmm-result-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .vmm-goldrechner-top {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .vmm-goldrechner-top h4 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .vmm-goldrechner-fields {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .vmm-goldrechner-top {
        padding: 1rem;
    }

    .vmm-goldrechner-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .vmm-field-group {
        width: 100%;
    }

    .vmm-field-group .uk-input,
    .vmm-field-group .uk-select {
        width: 100%;
    }

    .vmm-calculate-btn {
        width: 100%;
    }

    .vmm-result-box {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem;
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .vmm-result-info {
        text-align: center;
        width: 100%;
        order: 1;
    }

    .vmm-result-value-wrap {
        text-align: center;
        width: 100%;
        order: 2;
    }

    .vmm-result-action {
        text-align: center;
        width: 100%;
        margin-left: 0;
        order: 3;
    }

    .vmm-result-value {
        font-size: 2rem;
    }

    .vmm-result-cta {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }

    .vmm-result-meta {
        text-align: center;
    }
}
