/* optProjects Widerrufsbutton – Frontend */

.optwb-wrap {
    max-width: 720px;
}

.optwb-wrap h3 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
}

.optwb-sub {
    margin: 0 0 18px;
    font-size: 15px;
    opacity: .85;
}

.optwb-optional {
    font-weight: normal;
    font-size: 13px;
    opacity: .75;
}

/* Meldungen */
.optwb-alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin: 0 0 16px;
}

.optwb-alert ul {
    margin: 0;
    padding: 0 0 0 18px;
}

.optwb-alert-error {
    background: #fff0f0;
    border: 1px solid #d63638;
    color: #d63638;
}

.optwb-alert-warn {
    background: #fff8e1;
    border: 1px solid #f0a500;
    color: #7a5800;
}

/* Grid */
.optwb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .optwb-grid {
        grid-template-columns: 1fr 1fr;
    }
    .optwb-field-full {
        grid-column: 1 / -1;
    }
}

/* Felder */
.optwb-field label {
    display: block;
    font-weight: 700;
    margin: 0 0 5px;
    font-size: 14px;
}

.optwb-field input,
.optwb-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    background: #fff;
    font-family: inherit;
}

.optwb-field input:focus,
.optwb-field textarea:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-color: #2271b1;
}

.optwb-field-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 4px;
}

/* Zusammenfassung Schritt 2 */
.optwb-summary {
    padding: 14px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #f9f9f9;
    margin: 0 0 16px;
}

.optwb-summary dl {
    margin: 0;
}

.optwb-summary dt {
    font-weight: 700;
    margin-top: 8px;
}

.optwb-summary dt:first-child {
    margin-top: 0;
}

.optwb-summary dd {
    margin: 2px 0 0 0;
}

/* Checkbox */
.optwb-confirm {
    margin: 0 0 20px;
}

.optwb-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.optwb-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Buttons */
.optwb-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.optwb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 6px;
    border: 1px solid #c3c4c7;
    background: #f0f0f1;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: background .15s ease;
    font-family: inherit;
}

.optwb-btn-primary {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff !important;
}

.optwb-btn-primary:hover {
    background: #a93226;
    border-color: #a93226;
    color: #fff !important;
}

.optwb-btn-secondary {
    background: #f0f0f1;
    color: #333 !important;
}

.optwb-btn-secondary:hover {
    background: #ddd;
}

/* Footer-Link */
.optwb-footer-link {
    margin-top: 10px;
    text-align: center;
}

.optwb-footer-link a {
    font-weight: 700;
    color: #c0392b !important;
    text-decoration: underline;
}

/* Erfolgsmeldung */
.optwb-success h3 {
    color: #2e7d32;
}

.optwb-muted {
    font-size: 13px;
    opacity: .8;
    margin: 0 0 20px;
}

/* Honeypot */
.optwb-hp {
    display: none !important;
}
