/* ── Offertrechner Button ─────────────────────────────────── */

.vb-offert-wrap {
    margin: 20px 0 10px;
    text-align: center;
}

.vb-offert-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(2, 117, 216, 0.35);
}

.vb-offert-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(2, 117, 216, 0.45);
}

.vb-offert-icon {
    font-size: 13px;
}

/* ── Nav-Button "Schnellofferte" im Header ───────────────── */

.vb-nav-cta {
    display: flex;
    align-items: center;
}

.vb-nav-btn {
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 700;
    margin-left: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* ── Modal Overlay ───────────────────────────────────────── */

#vb-offert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    overflow-y: auto;
    padding: 30px 15px;
}

#vb-offert-overlay.vb-active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ── Modal Box ───────────────────────────────────────────── */

#vb-offert-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 620px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
}

/* ── Header ──────────────────────────────────────────────── */

.vb-modal-header {
    background: #0275d8;
    color: #fff;
    padding: 22px 28px 16px;
}

.vb-modal-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border: none;
}

.vb-modal-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

.vb-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.vb-modal-close:hover {
    opacity: 1;
}

/* ── Body ────────────────────────────────────────────────── */

.vb-modal-body {
    padding: 24px 28px 0;
}

/* ── Form grid ───────────────────────────────────────────── */

.vb-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.vb-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vb-form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.vb-form-group input[type="text"],
.vb-form-group input[type="date"],
.vb-form-group input[type="number"],
.vb-form-group input[type="email"] {
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.vb-form-group input:focus {
    border-color: #0275d8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 117, 216, 0.12);
}

.vb-form-group input.vb-error {
    border-color: #d9534f;
}

.vb-input-suffix {
    display: flex;
    align-items: center;
}

.vb-input-suffix input {
    border-radius: 4px 0 0 4px !important;
    flex: 1;
}

.vb-suffix-label {
    background: #e9ecef;
    border: 1px solid #ccc;
    border-left: none;
    padding: 9px 10px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

/* ── Radio buttons ───────────────────────────────────────── */

.vb-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.vb-radio-option {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 14px;
}

.vb-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #0275d8;
    cursor: pointer;
}

/* ── Berechnen Button ────────────────────────────────────── */

.vb-btn-calc {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
    cursor: pointer;
}

/* ── Ergebnis ────────────────────────────────────────────── */

#vb-result {
    display: none;
    margin-top: 20px;
    background: #f0f6ff;
    border: 1px solid #b8d4f8;
    border-radius: 6px;
    overflow: hidden;
}

.vb-result-title {
    background: #0275d8;
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
}

.vb-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vb-result-table td {
    padding: 8px 16px;
    border-bottom: 1px solid #d8e8f8;
}

.vb-result-table tr:last-child td {
    border-bottom: none;
}

.vb-result-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.vb-result-total td {
    background: #0275d8;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 16px;
}

.vb-inkl {
    padding: 10px 16px;
    font-size: 12px;
    color: #444;
    background: #e8f4e8;
    border-top: 1px solid #c3dfc3;
    margin: 0;
    line-height: 1.5;
}

.vb-hint {
    padding: 10px 16px;
    font-size: 12px;
    color: #666;
    background: #fffbf0;
    border-top: 1px solid #d8e8f8;
    margin: 0;
}

/* ── E-Mail Bereich ──────────────────────────────────────── */

.vb-send-area {
    margin-top: 18px;
    padding: 16px 0 0;
    border-top: 1px solid #e5e5e5;
}

.vb-send-area label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 5px;
}

.vb-send-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.vb-send-row input[type="email"] {
    flex: 1;
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.vb-send-row input[type="email"]:focus {
    border-color: #0275d8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 117, 216, 0.12);
}

.vb-btn-send {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

/* ── Clipboard Button ────────────────────────────────────── */

.vb-clipboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #0275d8;
    color: #0275d8;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.15s, color 0.15s;
}

.vb-clipboard-btn:hover {
    background: #0275d8;
    color: #fff;
}

/* ── Status Meldungen ────────────────────────────────────── */

.vb-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.vb-status.vb-ok {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    display: block;
}

.vb-status.vb-err {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    display: block;
}

/* ── Footer ──────────────────────────────────────────────── */

.vb-modal-footer {
    padding: 14px 28px 20px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* ── Loading Spinner ─────────────────────────────────────── */

.vb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vb-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes vb-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 480px) {
    .vb-form-row {
        flex-direction: column;
        gap: 0;
    }
    .vb-send-row {
        flex-direction: column;
    }
    .vb-modal-body {
        padding: 18px 16px 0;
    }
    .vb-modal-header {
        padding: 18px 16px 14px;
    }
    .vb-modal-footer {
        padding: 12px 16px 16px;
    }
}
