:root {
    --w-primary: #ad2230;
    --w-primary-dark: #8a1b26;
    --w-text: #1f2937;
    --w-muted: #6b7280;
    --w-border: #e5e7eb;
    --w-error: #b91c1c;
    --w-error-bg: #fef2f2;
    --w-bg: #f5f6f7;
    --w-card-bg: #ffffff;
    --w-bar-bg: #ffffff;
    --w-footer-bg: #f9fafb;
    --w-content-width: 720px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.widerruf-page {
    background: var(--w-bg);
    color: var(--w-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */

.widerruf-header {
    background: var(--w-bar-bg);
    border-bottom: 1px solid var(--w-border);
}

.widerruf-header-inner {
    max-width: var(--w-content-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.widerruf-logo-slot {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.widerruf-logo-slot--right {
    justify-content: flex-end;
}

.widerruf-logo {
    max-width: 180px;
    max-height: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.widerruf-mandant {
    color: var(--w-muted);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Main / Card ---------- */

.widerruf-main {
    flex: 1;
    width: 100%;
    padding: 40px 16px;
}

.widerruf-card {
    max-width: var(--w-content-width);
    margin: 0 auto;
    background: var(--w-card-bg);
    border: 1px solid var(--w-border);
    border-radius: 8px;
    padding: 40px;
}

.widerruf-headline {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
}

.widerruf-intro {
    margin-bottom: 28px;
    color: var(--w-muted);
}

.widerruf-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.widerruf-alert--error {
    background: var(--w-error-bg);
    color: var(--w-error);
    border: 1px solid var(--w-error);
}

/* ---------- Fields ---------- */

.widerruf-field {
    margin-bottom: 18px;
}

.widerruf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.widerruf-required {
    color: var(--w-error);
}

.widerruf-input,
.widerruf-textarea,
.widerruf-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--w-border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.widerruf-input:focus,
.widerruf-textarea:focus,
.widerruf-select:focus {
    outline: none;
    border-color: var(--w-primary);
    box-shadow: 0 0 0 3px rgba(173, 34, 48, 0.15);
}

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

.widerruf-field--error .widerruf-input,
.widerruf-field--error .widerruf-textarea,
.widerruf-field--error .widerruf-select {
    border-color: var(--w-error);
}

.widerruf-help {
    font-size: 13px;
    color: var(--w-muted);
    margin: 6px 0 0;
}

.widerruf-error {
    font-size: 13px;
    color: var(--w-error);
    margin: 6px 0 0;
}

.widerruf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.widerruf-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
}

.widerruf-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.widerruf-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--w-border);
}

.widerruf-button {
    appearance: none;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.widerruf-button--primary {
    background: var(--w-primary);
    color: #fff;
}

.widerruf-button--primary:hover {
    background: var(--w-primary-dark);
}

.widerruf-success {
    text-align: center;
    padding: 16px 0;
}

.widerruf-success h1 {
    font-size: 22px;
    margin: 0 0 12px;
}

/* ---------- Footer ---------- */

.widerruf-footer {
    background: var(--w-footer-bg);
    border-top: 1px solid var(--w-border);
}

.widerruf-footer-inner {
    max-width: var(--w-content-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13px;
    color: var(--w-muted);
}

.widerruf-footer-links,
.widerruf-footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.widerruf-footer-links {
    gap: 6px 20px;
}

.widerruf-footer-social {
    gap: 6px;
    margin-left: auto;
}

.widerruf-footer a {
    color: var(--w-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.widerruf-footer-links a:hover {
    color: var(--w-primary);
}

.widerruf-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--w-muted);
    transition: color 0.15s, background 0.15s;
}

.widerruf-footer-social a:hover {
    color: var(--w-primary);
    background: rgba(0, 0, 0, 0.04);
}

.widerruf-footer-social svg {
    display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
    .widerruf-card {
        padding: 24px 20px;
    }

    .widerruf-main {
        padding: 24px 12px;
    }

    .widerruf-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .widerruf-footer-social {
        margin-left: 0;
    }
}
