/* ============================================================
   KISTENFREI DESIGN SYSTEM (KF-DS)
   Globale Layouts, Komponenten und Utilities
   ============================================================ */


/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
    --kf-primary: #17873f;
    --kf-primary-hover: #116e34;
    --kf-primary-soft: #eaf3ec;
    --kf-dark: #0d2a40;
    --kf-dark-green: #0a4c39;
    --kf-text: #173248;
    --kf-text-light: #5b6a76;
    --kf-text-muted: #8b96a8;
    --kf-white: #ffffff;
    --kf-bg: #fbfbf8;
    --kf-bg-soft: #f4f6f3;
    --kf-border: #e5eae7;

    --kf-success: #0a8f4e;
    --kf-success-soft: #e6f4ec;
    --kf-warning: #b8860b;
    --kf-warning-soft: #fdf3e0;
    --kf-danger: #c92a2a;
    --kf-danger-soft: #fdeaea;
    --kf-info: #1971c2;
    --kf-info-soft: #e7f1fa;

    --kf-radius-sm: 6px;
    --kf-radius: 10px;
    --kf-radius-lg: 16px;
    --kf-container: 1200px;
    --kf-section-space: 64px;
    --kf-gap: 16px;
    --kf-gap-lg: 32px;

    --kf-shadow-sm: 0 4px 12px rgba(13, 42, 64, 0.04);
    --kf-shadow: 0 12px 28px rgba(13, 42, 64, 0.08);
    --kf-shadow-hover: 0 18px 38px rgba(13, 42, 64, 0.12);
}


/* ============================================================
   2. RESET & BASIS
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--kf-text); background: var(--kf-bg); line-height: 1.5; -webkit-font-smoothing: antialiased; max-width: 100%; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.kf-container { width: min(var(--kf-container), calc(100% - 48px)); margin-inline: auto; min-width: 0; }
.kf-container-narrow { max-width: 760px; margin-inline: auto; min-width: 0; }


/* ============================================================
   3. TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4 { margin-top: 0; color: var(--kf-dark); letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; font-weight: 800; margin-bottom: 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 1em; }
.kf-eyebrow { margin: 0 0 10px; color: var(--kf-primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.kf-lead { max-width: 680px; margin: 0 0 20px; color: var(--kf-text-light); font-size: 1.05rem; line-height: 1.6; }
.kf-text-muted { color: var(--kf-text-muted); }
.kf-text-light { color: var(--kf-text-light); }
.kf-text-center { text-align: center; }
.kf-text-success { color: var(--kf-success); }
.kf-text-warning { color: var(--kf-warning); }
.kf-text-danger { color: var(--kf-danger); }


/* ============================================================
   4. SECTIONS & BACKGROUNDS
   ============================================================ */
.kf-section { padding: var(--kf-section-space) 0; min-width: 0; }
.kf-section-bg-white { background: var(--kf-white); }
.kf-section-bg-soft { background: var(--kf-bg-soft); }
.kf-section-bg-dark { background: var(--kf-dark); color: var(--kf-white); }
.kf-section-bg-dark .kf-eyebrow { color: #a7d8b6; }
.kf-section-bg-dark h2, .kf-section-bg-dark h3 { color: var(--kf-white); }
.kf-section-bg-dark p { color: #ccddd3; }
.kf-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 24px; min-width: 0; }
.kf-section-headline { max-width: 700px; margin-bottom: 24px; min-width: 0; }

/* Page Header (Dashboard) */
.kf-page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; min-width: 0; }
.kf-page-header-copy { min-width: 0; flex: 1 1 320px; }
.kf-page-header h2 { margin-bottom: 8px; }
.kf-page-header .kf-lead { margin-bottom: 0; }


/* ============================================================
   5. GLOBALE LAYOUTS
   ============================================================ */
.kf-grid { display: grid; gap: var(--kf-gap); min-width: 0; }
.kf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kf-grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kf-grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kf-stack { display: flex; flex-direction: column; gap: var(--kf-gap); min-width: 0; }
.kf-cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; }
.kf-align-center { align-items: center; }
.kf-align-start { align-items: start; }


/* ============================================================
   6. OBERFLÄCHEN: PANELS & CARDS
   ============================================================ */
.kf-panel { padding: 24px; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); background: var(--kf-white); min-width: 0; }
.kf-panel-soft { background: var(--kf-bg-soft); border-color: transparent; }
.kf-panel-scroll { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kf-card { padding: 24px; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); background: var(--kf-white); box-shadow: var(--kf-shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; min-width: 0; overflow-wrap: break-word; }
.kf-card:hover { transform: translateY(-3px); box-shadow: var(--kf-shadow-hover); }
.kf-card-compact { padding: 16px; }
.kf-card-interactive { cursor: pointer; }
.kf-card-interactive:hover { border-color: var(--kf-primary); }
.kf-card-primary { border-left: 4px solid var(--kf-primary); }
.kf-card-success { border-left: 4px solid var(--kf-success); }
.kf-card-warning { border-left: 4px solid var(--kf-warning); }
.kf-card-danger { border-left: 4px solid var(--kf-danger); }
.kf-card-info { border-left: 4px solid var(--kf-info); }


/* ============================================================
   7. BUTTONS & ACTIONS
   ============================================================ */
.kf-btn { display: inline-flex; min-height: 48px; padding: 0 24px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--kf-radius-sm); cursor: pointer; font-size: 0.9rem; font-weight: 700; transition: all 0.2s ease; white-space: nowrap; max-width: 100%; }
.kf-btn-primary { background: var(--kf-primary); color: var(--kf-white); box-shadow: 0 6px 16px rgba(23, 135, 63, 0.2); }
.kf-btn-primary:hover { background: var(--kf-primary-hover); transform: translateY(-1px); }
.kf-btn-secondary { border-color: var(--kf-border); background: var(--kf-white); color: var(--kf-text); }
.kf-btn-secondary:hover { border-color: var(--kf-text-light); background: var(--kf-bg-soft); }
.kf-btn-ghost { background: transparent; color: var(--kf-text-light); }
.kf-btn-ghost:hover { background: var(--kf-bg-soft); color: var(--kf-text); }
.kf-btn-danger { background: var(--kf-danger); color: var(--kf-white); }
.kf-btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.8rem; }
.kf-btn-lg { min-height: 56px; padding: 0 32px; font-size: 1rem; }
.kf-btn-block { width: 100%; }
.kf-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.kf-header-actions { flex: 0 1 auto; }
.kf-header-actions .kf-btn { flex: 1 1 auto; }


/* ============================================================
   8. BADGES & ICONS
   ============================================================ */
.kf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.kf-badge-primary { background: var(--kf-primary-soft); color: var(--kf-primary); }
.kf-badge-success { background: var(--kf-success-soft); color: var(--kf-success); }
.kf-badge-warning { background: var(--kf-warning-soft); color: var(--kf-warning); }
.kf-badge-danger { background: var(--kf-danger-soft); color: var(--kf-danger); }
.kf-badge-info { background: var(--kf-info-soft); color: var(--kf-info); }
.kf-badge-neutral { background: var(--kf-bg-soft); color: var(--kf-text-muted); }
.kf-icon-box { display: inline-flex; width: 40px; height: 40px; flex: none; align-items: center; justify-content: center; border-radius: var(--kf-radius-sm); background: var(--kf-primary-soft); color: var(--kf-primary); font-size: 1.1rem; font-weight: 800; }
.kf-icon-box-sm { width: 32px; height: 32px; font-size: 0.9rem; }
.kf-icon-box-circle { border-radius: 50%; }


/* ============================================================
   9. FORMULARE
   ============================================================ */
.kf-form-group { margin-bottom: 18px; min-width: 0; }
.kf-form-label { display: block; margin-bottom: 6px; color: var(--kf-text-light); font-size: 0.8rem; font-weight: 700; }
.kf-form-input, .kf-form-select, .kf-form-textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--kf-border); border-radius: var(--kf-radius-sm); background: var(--kf-white); color: var(--kf-text); transition: all 0.2s; }
.kf-form-textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.kf-form-input:focus, .kf-form-select:focus, .kf-form-textarea:focus { outline: none; border-color: var(--kf-primary); box-shadow: 0 0 0 3px var(--kf-primary-soft); }


/* ============================================================
   10. MARKTPLATZ KOMPONENTEN
   ============================================================ */
.kf-trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 24px; color: var(--kf-text-muted); font-size: 0.85rem; font-weight: 600; }
.kf-trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.kf-check-list { margin: 0; padding: 0; list-style: none; }
.kf-check-list li { position: relative; margin: 10px 0; padding-left: 28px; color: var(--kf-text); }
.kf-check-list li::before { content: "✓"; position: absolute; top: 0; left: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--kf-primary); color: #fff; font-size: 0.75rem; font-weight: 900; }
.kf-process-flow { display: flex; align-items: stretch; gap: 12px; margin-top: 24px; min-width: 0; }
.kf-process-step { flex: 1; min-width: 0; padding: 20px; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); background: var(--kf-white); text-align: center; }
.kf-process-step strong { display: block; margin-bottom: 6px; color: var(--kf-dark); }
.kf-process-step p { margin: 0; font-size: 0.85rem; color: var(--kf-text-muted); }
.kf-process-arrow { display: flex; align-items: center; color: var(--kf-primary); font-size: 1.5rem; font-weight: 800; }


/* ============================================================
   11. DASHBOARD LAYOUT & SIDEBAR
   ============================================================ */
.kf-dashboard-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; width: 100%; }
.kf-dashboard-main { padding: 40px; max-width: 1400px; width: 100%; min-width: 0; overflow-x: hidden; }
.kf-dashboard-main > * { min-width: 0; }
.kf-dashboard-block { margin-bottom: 32px; }
.kf-sidebar { background: var(--kf-white); border-right: 1px solid var(--kf-border); padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; min-width: 0; }
.kf-sidebar-brand { padding: 0 24px 24px; border-bottom: 1px solid var(--kf-border); margin-bottom: 24px; }
.kf-sidebar-brand-name { font-size: 20px; font-weight: 800; color: var(--kf-dark); letter-spacing: -0.02em; }
.kf-sidebar-brand-name span { color: var(--kf-primary); }
.kf-sidebar-section { padding: 0 12px; margin-bottom: 24px; }
.kf-sidebar-title { padding: 0 12px 8px; font-size: 10px; font-weight: 700; color: var(--kf-text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.kf-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; color: var(--kf-text-light); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 2px; transition: all 0.15s; cursor: pointer; width: 100%; min-width: 0; border: none; background: none; font-family: inherit; text-align: left; }
.kf-nav-item:hover { background: var(--kf-bg-soft); color: var(--kf-text); }
.kf-nav-item.active { background: var(--kf-primary-soft); color: var(--kf-primary); font-weight: 600; }
.kf-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Dashboard KPI */
.kf-kpi-card { min-height: auto; }
.kf-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; min-width: 0; }
.kf-kpi-label { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--kf-text-muted); }
.kf-kpi-value { font-size: 2rem; font-weight: 800; color: var(--kf-dark); line-height: 1; margin-bottom: 8px; }
.kf-kpi-value span { font-size: 1.2rem; color: var(--kf-text-muted); font-weight: 600; }
.kf-kpi-badge { margin-bottom: 8px; }
.kf-kpi-note { margin: 0; font-size: 0.85rem; font-weight: 600; }

/* Quick Actions */
.kf-quick-link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.kf-quick-copy { min-width: 0; }
.kf-quick-copy h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--kf-dark); }
.kf-quick-copy p { margin: 0; font-size: 0.8rem; color: var(--kf-text-muted); }

/* Verifizierungs-Banner */
.kf-verification-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; border-left: 4px solid var(--kf-warning); background: var(--kf-warning-soft); }
.kf-verification-copy { flex: 1 1 240px; min-width: 0; }
.kf-verification-copy strong { color: var(--kf-warning); }
.kf-verification-copy p { margin: 4px 0 0; font-size: 0.9rem; color: var(--kf-text-light); }

/* Empty State */
.kf-empty-state { padding: 60px 24px; text-align: center; }
.kf-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.kf-empty-state h4 { color: var(--kf-dark); margin-bottom: 8px; }
.kf-empty-state p { margin-bottom: 24px; max-width: 400px; margin-inline: auto; }

/* Tipps */
.kf-tips-panel { background: linear-gradient(135deg, var(--kf-primary-soft) 0%, var(--kf-bg-soft) 100%); border: none; padding: 32px; }
.kf-tips-head { text-align: center; margin-bottom: 24px; }
.kf-tips-head h3 { margin: 0; }
.kf-tip-card { background: rgba(255, 255, 255, 0.7); border: none; }
.kf-tip-card .kf-icon-box { margin-bottom: 12px; }
.kf-tip-card h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--kf-dark); }
.kf-tip-card p { margin: 0; font-size: 0.85rem; }


/* ============================================================
   12. TABELLEN
   ============================================================ */
.kf-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.kf-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--kf-text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--kf-border); background: var(--kf-bg-soft); }
.kf-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--kf-border); }
.kf-table tr:last-child td { border-bottom: none; }
.kf-table tr:hover td { background: var(--kf-bg-soft); }
.kf-table .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kf-table .actions { text-align: right; white-space: nowrap; }
.kf-table-title { display: block; color: var(--kf-dark); margin-bottom: 4px; overflow-wrap: anywhere; }
.kf-table-sub { display: block; font-size: 0.8rem; color: var(--kf-text-muted); }
.kf-price { color: var(--kf-primary); font-size: 1rem; font-weight: 800; }


/* ============================================================
   13. MOBILE ARTIKEL-LISTE (statt Tabelle)
   ============================================================ */
.kf-list-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kf-list-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--kf-border); border-radius: var(--kf-radius); background: var(--kf-white); min-width: 0; }
.kf-list-item-main { flex: 1 1 180px; min-width: 0; }
.kf-list-item-title { display: block; font-weight: 700; font-size: 0.95rem; color: var(--kf-dark); margin: 6px 0 4px; overflow-wrap: anywhere; }
.kf-list-item-meta { font-size: 0.8rem; color: var(--kf-text-muted); }
.kf-list-item-side { flex: 0 0 auto; text-align: right; }
.kf-list-item-price { font-weight: 800; color: var(--kf-primary); font-size: 1rem; white-space: nowrap; }
.kf-list-item-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.kf-list-item-actions .kf-btn { width: auto; flex: 1 1 auto; min-height: 40px; }
.kf-list-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; min-width: 0; }
.kf-list-header h3 { margin: 0; font-size: 1.3rem; }


/* ============================================================
   14. UPLOAD / DROPZONE
   ============================================================ */
.kf-dropzone { border: 2px dashed var(--kf-border); border-radius: var(--kf-radius); padding: 32px 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--kf-bg-soft); min-width: 0; }
.kf-dropzone:hover, .kf-dropzone.dragover { border-color: var(--kf-primary); background: var(--kf-primary-soft); }
.kf-dropzone-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }


/* ============================================================
   15. IMAGE PREVIEW GRID
   ============================================================ */
.kf-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; min-width: 0; }
.kf-preview-item { position: relative; aspect-ratio: 1/1; border-radius: var(--kf-radius-sm); overflow: hidden; border: 1px solid var(--kf-border); cursor: pointer; transition: transform 0.15s; min-width: 0; }
.kf-preview-item:hover { transform: scale(1.03); }
.kf-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-preview-item-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(201, 42, 42, 0.95); color: var(--kf-white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; opacity: 1; transition: opacity 0.15s; }
.kf-preview-item-primary { position: absolute; bottom: 6px; left: 6px; background: rgba(23, 135, 63, 0.95); color: var(--kf-white); padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; pointer-events: none; }
.kf-preview-item-size { position: absolute; bottom: 6px; right: 6px; background: rgba(13, 42, 64, 0.85); color: var(--kf-white); padding: 2px 6px; border-radius: 8px; font-size: 9px; font-family: 'SF Mono', monospace; }


/* ============================================================
   16. FREEMIUM / LIMIT BANNER
   ============================================================ */
.kf-freemium-banner { background: linear-gradient(135deg, var(--kf-primary-soft) 0%, var(--kf-bg-soft) 100%); border: 1px solid var(--kf-primary); border-radius: var(--kf-radius); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; min-width: 0; }
.kf-freemium-counter { font-size: 2rem; font-weight: 800; color: var(--kf-primary); line-height: 1; }
.kf-freemium-counter span { font-size: 1.2rem; color: var(--kf-text-muted); font-weight: 600; }


/* ============================================================
   17. RESPONSIVE UTILITIES
   ============================================================ */
.kf-show-mobile { display: none; }

@media (max-width: 767px) {
    .kf-show-mobile { display: block; }
    .kf-hide-mobile { display: none !important; }
}


/* ============================================================
   18. RESPONSIVE: TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .kf-dashboard-layout { grid-template-columns: minmax(0, 1fr); }
    .kf-sidebar { display: none; }
    .kf-dashboard-main { padding: 24px 16px; max-width: 100%; overflow-x: hidden; }

    .kf-page-header { flex-direction: column; align-items: stretch; gap: 16px; }
    .kf-page-header-copy { flex: 1 1 auto; }
    .kf-header-actions { width: 100%; justify-content: flex-start; }
    .kf-header-actions .kf-btn { flex: 1 1 0; min-width: 0; padding: 0 14px; font-size: 0.85rem; }

    .kf-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
    .kf-section-head > * { min-width: 0; }
}


/* ============================================================
   19. RESPONSIVE: SMALL TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
    .kf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kf-grid-2-1 { grid-template-columns: minmax(0, 1fr); }
    .kf-process-flow { flex-direction: column; }
    .kf-process-arrow { transform: rotate(90deg); justify-content: center; }
}


/* ============================================================
   20. RESPONSIVE: MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {
    :root { --kf-section-space: 48px; --kf-gap: 12px; }
    .kf-container { width: min(100% - 32px, var(--kf-container)); }
    .kf-dashboard-main { padding: 20px 16px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .kf-panel { padding: 18px; }
    .kf-panel-scroll { padding: 0; }
    .kf-card { padding: 18px; }
    .kf-card-compact { padding: 14px; }

    .kf-grid-2, .kf-grid-3, .kf-grid-4, .kf-grid-2-1 { grid-template-columns: minmax(0, 1fr); }

    .kf-btn { min-height: 44px; padding: 0 18px; font-size: 0.85rem; }
    .kf-btn-sm { min-height: 40px; padding: 0 12px; font-size: 0.8rem; }
    .kf-btn-lg { min-height: 52px; padding: 0 24px; }
    .kf-header-actions .kf-btn { width: auto; flex: 1 1 0; padding: 0 12px; font-size: 0.8rem; }
    .kf-cluster > .kf-btn { width: auto; }
    .kf-quick-actions .kf-btn { width: auto; }

    .kf-kpi-value { font-size: 1.8rem; }
    .kf-kpi-note { font-size: 0.8rem; }

    .kf-quick-link { gap: 12px; }
    .kf-quick-copy h4 { font-size: 0.9rem; }
    .kf-quick-copy p { font-size: 0.75rem; }

    .kf-tips-panel { padding: 24px 18px; }
    .kf-empty-state { padding: 40px 20px; }

    .kf-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kf-dropzone { padding: 24px 16px; }

    .kf-verification-banner { padding: 16px; }
    .kf-verification-copy { flex: 1 1 100%; }
}


/* ============================================================
   21. RESPONSIVE: SEHR KLEINE HANDYS (max 420px)
   ============================================================ */
@media (max-width: 420px) {
    .kf-dashboard-main { padding: 16px 12px; }
    .kf-container { width: min(100% - 24px, var(--kf-container)); }
    .kf-quick-link { flex-direction: column; align-items: flex-start; gap: 10px; }
    .kf-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ============================================================
   22. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}