/* Widerruf-Seite – ergänzt impressum.css (Header/Footer/Container werden dort definiert) */

.widerruf-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    max-width: 720px;
    margin: 0 auto;
}

.widerruf-card h1 {
    font-size: 1.7rem;
    color: #0f172a;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.widerruf-card h1 i {
    color: #2563EB;
}

.widerruf-intro {
    color: #475569;
    line-height: 1.7;
    margin: 0 0 1.8rem;
}

.widerruf-field {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.widerruf-field label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.widerruf-field .optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.85rem;
}

.req {
    color: #dc2626;
}

.widerruf-field input,
.widerruf-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.widerruf-field input:focus,
.widerruf-field textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.widerruf-field textarea {
    resize: vertical;
    min-height: 96px;
}

.widerruf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin: 0.5rem 0 1.8rem;
}

.widerruf-checkbox input {
    margin-top: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    accent-color: #2563EB;
}

.widerruf-checkbox label {
    color: #1e293b;
    line-height: 1.5;
    font-weight: 500;
}

/* Honeypot – für echte Nutzer unsichtbar */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.widerruf-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    text-decoration: none;
    text-align: center;
}

.widerruf-btn:active {
    transform: translateY(1px);
}

.widerruf-btn-primary {
    background: #2563EB;
    color: #fff;
    width: 100%;
}

.widerruf-btn-primary:hover {
    background: #1d4ed8;
}

.widerruf-btn-primary:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.widerruf-btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.widerruf-btn-secondary:hover {
    background: #cbd5e1;
}

.widerruf-btn-link {
    width: auto;
    margin-top: 1.5rem;
}

.widerruf-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.widerruf-actions .widerruf-btn-secondary {
    flex: 1 1 160px;
}

.widerruf-actions .widerruf-btn-primary {
    flex: 2 1 220px;
    width: auto;
}

.widerruf-summary {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.widerruf-summary div.row {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #eef2f7;
}

.widerruf-summary div.row:last-child {
    border-bottom: none;
}

.widerruf-summary dt {
    flex: 0 0 42%;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.widerruf-summary dd {
    flex: 1;
    margin: 0;
    color: #0f172a;
    word-break: break-word;
}

.widerruf-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.widerruf-success-text {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 10px;
    padding: 1.2rem 1.3rem;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.ml-footer-mail {
    text-decoration: none;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .widerruf-card {
        padding: 1.5rem;
    }

    .widerruf-summary dt {
        flex-basis: 100%;
    }

    .widerruf-summary div.row {
        flex-direction: column;
        gap: 0.25rem;
    }
}
