/* ─────────────────────────────────────────────────────────────────────────
   FörderPortal – Frontend CSS
   Dynamic :root{} variables are injected inline in templates/frontend/header.php
   ───────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Skip Navigation (BFSG / WCAG 2.4.1) ─── */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; text-decoration: none; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; padding: 0.75rem 1.5rem; background: var(--primary); color: var(--white); font-weight: 600; border-radius: 8px; z-index: 9999; text-decoration: none; outline: 3px solid var(--white); outline-offset: 2px; }

/* ─── Nav ─── */
.nav { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; transition: box-shadow 0.2s; }
.nav-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-bottom-color: transparent; }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gray-900); }
.nav-brand-icon { background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.04em; padding: 6px 8px; border-radius: 8px; line-height: 1; }
.nav-brand-text { font-weight: 700; font-size: 0.95rem; color: var(--gray-900); }
.nav-brand-sub { font-weight: 400; font-size: 0.7rem; color: var(--gray-600); margin-left: 0.375rem; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--gray-500); text-decoration: none; padding: 6px 14px; border-radius: 8px; transition: all 0.15s; position: relative; }
.nav-links a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-links a.active { color: var(--primary); background: var(--primary-50); font-weight: 600; box-shadow: inset 0 -2px 0 var(--primary); }

/* ─── Hero ─── */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); padding: 3rem 1.5rem 4.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; padding: 5px 14px; font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2); }
.hero h1 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; line-height: 1.2; }
.hero p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ─── Page header ─── */
.page-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); padding: 2.5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -60%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); border-radius: 50%; }
.page-header-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.375rem; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ─── Content ─── */
.main-content { flex: 1; max-width: 680px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem; }
.main-lift { margin-top: -2rem; position: relative; z-index: 1; }

/* ─── Cards ─── */
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.card { background: var(--white); border-radius: 16px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,82,150,0.08), 0 1px 4px rgba(0,0,0,0.04); border: 1px solid var(--gray-200); animation: cardIn 0.3s ease; }
.card h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.375rem; }
.card .subtitle { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.75rem; }

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--gray-500); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; transition: all 0.15s; background: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: 3px solid var(--primary); outline-offset: 2px; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,93,166,0.12); }
.form-group input::placeholder { color: var(--gray-400); }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.15s; text-decoration: none; width: 100%; position: relative; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--primary-dark); letter-spacing: 0.01em; }
.btn-primary:hover:not(:disabled) { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,93,166,0.25); }
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

/* ─── Alerts ─── */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 8px; animation: alertIn 0.25s ease; }
.alert-error { background: #FDF2F2; color: #C9291E; border: 1px solid #F5C6CB; }
.alert-success { background: #EDFAF2; color: #0F7B3F; border: 1px solid #B8DFCB; }
.alert-info { background: var(--primary-50); color: var(--primary); border: 1px solid #B3D1F0; }
.alert-warning { background: #FFFBEB; color: #8B6914; border: 1px solid #F0DDA0; }
.alert .alert-close { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 1rem; padding: 0 0.25rem; line-height: 1; }
.alert .alert-close:hover { opacity: 1; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes alertOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }
.alert.dismissing { animation: alertOut 0.25s ease forwards; }

/* ─── Loading spinner ─── */
.btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.2); border-top-color: var(--primary-dark); border-radius: 50%; animation: spin 0.6s linear infinite; flex-shrink: 0; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Features ─── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.feature { background: var(--white); border-radius: var(--radius-sm); padding: 1.5rem; border: 1px solid var(--gray-200); transition: box-shadow 0.2s, transform 0.2s; }
.feature:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.09); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.4rem; }
.feature h3 { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.feature p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.55; }
/* Donate card — visually distinct accent treatment */
.feature--donate { border-color: color-mix(in srgb, var(--accent) 35%, var(--gray-200)); background: linear-gradient(160deg, #fffdf4 0%, var(--white) 100%); }
.feature--donate:hover { box-shadow: 0 8px 20px rgba(240,171,0,0.15); }

/* ─── Hamburger Menu ─── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.6rem; }
    .hero { padding: 2rem 1rem 3.5rem; }
    .page-header { padding: 2rem 1rem; }
    .main-content { padding: 1.25rem 1rem; }
    .card { padding: 1.5rem; }
    .features { grid-template-columns: 1fr; }
    .nav-brand-sub { display: none; }
    .nav-hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        flex-direction: column;
        padding: 0.5rem 0;
        z-index: 49;
    }
    .nav-links.nav-open { display: flex; }
    .nav-links a { padding: 0.75rem 1.5rem; border-radius: 0; }
    .nav-links a:hover { background: var(--gray-50); }
    .nav-inner { position: relative; }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
}

/* ─── License Lock (Read-Only Mode) ─── */
.license-locked {
    opacity: 0.38;
    pointer-events: none;
    filter: grayscale(0.5);
    user-select: none;
}
.license-locked-notice {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.license-locked-notice span { flex: 1; }

/* ─── Focus Visible (WCAG 2.4.7) ─── */
:focus-visible {
    outline: 2px solid var(--primary, #005DA6);
    outline-offset: 2px;
}

/* ─── Touch Targets (WCAG 2.5.8) ─── */
@media (pointer: coarse) {
    .btn, button, a[role="button"], .nav-links a {
        min-height: 44px;
    }
}

/* ─── Form Error & Hint Styling (WCAG 1.3.1 / 3.3.1) ─── */
.field-error {
    color: var(--error, #DC2626);
    font-size: 0.78rem;
    margin-top: 0.25rem;
    display: block;
}

.form-hint {
    color: var(--text-muted, #6B7685);
    font-size: 0.78rem;
    margin-top: 0.15rem;
    display: block;
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--error, #DC2626);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══ Utility Classes ═══ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted, #6B7685); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }

.rounded { border-radius: 10px; }
.rounded-sm { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.border { border: 1px solid var(--gray-200, #E2E6EC); }
.bg-muted { background: var(--gray-50, #F7F8FA); }
.bg-white { background: white; }
.shadow-card { box-shadow: 0 2px 12px rgba(0,61,115,0.06); }

.hidden { display: none; }
.w-full { width: 100%; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.uppercase { text-transform: uppercase; }
.no-shrink { flex-shrink: 0; }
.cursor-pointer { cursor: pointer; }
.no-underline { text-decoration: none; }
.color-inherit { color: inherit; }

/* ═══ Frontend Component Classes ═══ */
.section-card { background: white; border: 1px solid #D8E1EC; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.section-title { font-size: 0.95rem; color: #003D73; margin-bottom: 1rem; }

.info-box { padding: 0.75rem; background: var(--gray-50, #F7F8FA); border-radius: 8px; border: 1px solid var(--gray-200, #E2E6EC); }
.info-box--primary { background: #EBF2FA; border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.info-box--warning { background: #FEF3C7; border-color: #F0AB00; }
.info-box--success { background: #DCFCE7; border-color: #059669; }
.info-box--blue-left { background: #EBF2FA; border-left: 4px solid #005DA6; border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; }

.otp-input { text-align: center; font-size: 1.75rem; letter-spacing: 0.75rem; font-weight: 700; }
.otp-input-lg { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.75rem; }
.otp-input-md { text-align: center; font-size: 1.25rem; letter-spacing: 0.3em; }
.countdown-text { font-size: 0.85rem; color: var(--text-muted, #6B7685); margin-top: 0.5rem; }

.input-uppercase { text-transform: uppercase; }

.alert--col { flex-direction: column; gap: 0.25rem; }
.alert--col-sm { flex-direction: column; gap: 0.375rem; }

.hero-card { box-shadow: 0 8px 32px rgba(0,82,150,0.12), 0 2px 8px rgba(0,0,0,0.06); }

.success-banner { background: #D1FAE5; border: 1px solid #A7F3D0; border-radius: 12px; padding: 2rem; text-align: center; }
.success-banner .icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.success-banner .icon-lg { font-size: 2rem; margin-bottom: 0.75rem; }
.success-banner h2 { color: #1a3a5c; font-size: 1.25rem; margin-bottom: 0.75rem; }

.warning-banner { background: #FFF9E6; border: 1px solid #F0DDA0; border-radius: 12px; padding: 2rem; text-align: center; }
.warning-banner h2 { color: #B45309; font-size: 1.25rem; margin-bottom: 0.5rem; }

.error-banner { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1.5rem; font-size: 0.9rem; }

.disabled-banner { background: white; border: 1px solid #D8E1EC; border-radius: 12px; padding: 2rem; text-align: center; }

.link-primary { color: #005DA6; text-decoration: none; font-weight: 600; }
.link-muted { color: var(--gray-400); text-decoration: none; font-size: 0.85rem; }
.link-subtle { color: #5A6B80; font-size: 0.85rem; }

.btn-primary-block { width: 100%; padding: 0.875rem; background: #005DA6; color: white; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.btn-primary-sm { display: inline-block; padding: 0.625rem 1.5rem; background: #005DA6; color: white; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-primary-md { width: 100%; padding: 0.75rem; background: #005DA6; color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn-danger-block { width: 100%; padding: 0.625rem; background: #DC2626; color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn-save-block { width: 100%; padding: 0.625rem; background: #005DA6; color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn-amber { display: inline-block; padding: 0.625rem 1.5rem; background: #B45309; color: white; border-radius: 8px; text-decoration: none; font-weight: 600; }

.donation-card { background: white; border-radius: 10px; padding: 1rem; border: 1px solid var(--gray-200, #E2E6EC); margin-bottom: 0.75rem; }
.donation-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.donation-amount { font-size: 1.1rem; font-weight: 700; color: var(--primary, #005DA6); }

.stat-cell { background: #F4F7FA; padding: 0.75rem; border-radius: 8px; text-align: center; }
.stat-label { font-size: 0.65rem; text-transform: uppercase; color: #5A6B80; font-weight: 600; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: #005DA6; }
.stat-value-md { font-size: 1rem; font-weight: 600; }

.detail-cell { background: var(--gray-50); padding: 12px; border-radius: 8px; }
.detail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-bottom: 3px; }
.detail-value { font-weight: 600; font-size: 0.9rem; }
.detail-cell--span { grid-column: 1 / -1; }

.reason-box { margin-top: 0.375rem; padding: 8px 12px; background: rgba(255,255,255,0.6); border-radius: 8px; font-size: 0.85rem; }

.timeline-col { display: flex; flex-direction: column; }
.timeline-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 1rem; }

.status-timeline { padding: 1rem 0; }
.status-step { display: flex; gap: 0.75rem; padding: 0.75rem 0; position: relative; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.status-dot--active { background: var(--primary, #005DA6); }
.status-dot--done { background: var(--success, #059669); }
.status-dot--pending { background: var(--gray-300, #CDD3DC); }

.stepper { display: flex; justify-content: space-between; margin-bottom: 2rem; padding: 1rem 0; position: relative; }
.stepper-line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--gray-200, #E2E6EC); z-index: 0; }
.stepper-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.stepper-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200, #E2E6EC); color: var(--gray-500, #6B7685); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; transition: all 0.3s; }
.stepper-label { font-size: 0.7rem; color: var(--gray-400, #94A0B0); font-weight: 500; white-space: nowrap; }

.checkbox-label { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; font-size: 0.875rem; color: #5A6B80; }
.checkbox-label input[type="checkbox"] { accent-color: #005DA6; margin-top: 3px; flex-shrink: 0; width: 1rem; height: 1rem; }

.checkbox-label-sm { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.8rem; color: #5A6B80; }
.checkbox-label-sm input[type="checkbox"] { accent-color: #005DA6; margin-top: 2px; flex-shrink: 0; }

.radio-card { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 2px solid #D8E1EC; border-radius: 10px; cursor: pointer; }
.radio-card--active { border-color: #005DA6; }
.radio-card input[type="radio"] { accent-color: #005DA6; }
.radio-card strong { color: #003D73; }
.radio-card .sub { font-size: 0.8rem; color: #5A6B80; }

.radio-card-sm { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem; border: 2px solid #D8E1EC; border-radius: 10px; cursor: pointer; }
.radio-card-sm--active { border-color: #005DA6; }
.radio-card-sm input[type="radio"] { accent-color: #005DA6; }

.radio-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border: 1.5px solid #D8E1EC; border-radius: 8px; cursor: pointer; font-size: 0.85rem; }
.radio-option input[type="radio"] { accent-color: #005DA6; }

.receipt-checkbox { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; margin-bottom: 0.75rem; }
.receipt-checkbox input[type="checkbox"] { accent-color: #005DA6; }

.sepa-mandate-confirm { background: #FFFBEB; border: 2px solid #F59E0B; border-radius: var(--radius); padding: 1.5rem; }
.sepa-mandate-confirm h3 { color: #92400E; margin-bottom: 0.75rem; font-size: 1rem; }
.sepa-mandate-confirm p { font-size: 0.875rem; color: #92400E; margin-bottom: 1.25rem; }

.sepa-mandate-active { background: #F0FDF4; border: 1.5px solid #86EFAC; border-radius: var(--radius); padding: 1.25rem; }
.sepa-mandate-revoked { background: #FEF2F2; border: 1.5px solid #FECACA; border-radius: var(--radius); padding: 1.25rem; }

.sepa-mandate-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.sepa-mandate-table td { padding: 3px 0; }
.sepa-mandate-table td:first-child { color: var(--gray-500); width: 45%; }

.sepa-consent-label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 0.8rem; color: #92400E; line-height: 1.4; }
.sepa-consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.sepa-info-box { padding: 0.75rem; background: #FFF9E6; border: 1px solid #F0DDA0; border-radius: 8px; font-size: 0.78rem; color: #8B6914; margin-top: 0.5rem; }

.payment-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #F0F3F7; font-size: 0.85rem; }

.feature--link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.feature--link-primary { border: 2px solid var(--primary); }
.feature-cta { color: var(--primary); font-weight: 600; }

.next-payment-bar { margin-top: 0.75rem; padding: 0.5rem; background: #EBF2FA; border-radius: 8px; font-size: 0.85rem; color: #005DA6; text-align: center; }

.signature-notice { background: #FFF9E6; border: 1px solid #F0DDA0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; text-align: center; }
.signature-notice h3 { color: #B45309; font-size: 1rem; margin-bottom: 0.5rem; }
.signature-notice p { font-size: 0.85rem; color: #8B6914; margin-bottom: 1rem; }

.confirm-card { border: 2px solid #F0AB00; background: #FFFBEE; }
.confirm-card h3 { font-size: 1rem; color: #92620A; margin-bottom: 0.5rem; }
.confirm-card p { font-size: 0.88rem; color: #6B5A30; margin-bottom: 1rem; }

.otp-info-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; padding: 8px 12px; background: var(--primary-50); border-radius: 8px; border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); }
.otp-info-bar span { font-size: 0.8rem; color: var(--primary); font-weight: 500; }

.page-header--padded { padding: 2.5rem 0; }
.card--mb { margin-bottom: 1.25rem; }

.text-dark-blue { color: #003D73; }
.text-gray { color: #5A6B80; }
.text-green-dark { color: #065F46; }
.text-amber { color: #8B6914; }
.text-amber-dark { color: #B45309; }
.text-success { color: #059669; }
.text-error { color: var(--error, #DC2626); }

.btn-revoke { background: none; border: 1.5px solid #DC2626; color: #DC2626; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }

.grid-plz-ort { grid-template-columns: 120px 1fr; }
.grid-iban-bic { grid-template-columns: 2fr 1fr; }

@media (max-width: 640px) {
    .form-row { flex-direction: column; }
    .grid-2-mobile { grid-template-columns: 1fr; }
}
