/* ═══════════════════════════════════════════════════════
   WiderrufEasy – Admin-Dashboard Styles
   Modern, clean, professional design
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=JetBrains+Mono:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:     #4f46e5;
    --primary-h:   #4338ca;
    --primary-l:   #eef2ff;
    --primary-xd:  #312e81;
    --success:     #059669;
    --success-l:   #ecfdf5;
    --danger:      #dc2626;
    --danger-l:    #fef2f2;
    --warning:     #d97706;
    --warning-l:   #fffbeb;
    --info:        #0284c7;
    --info-l:      #f0f9ff;
    --bg:          #f4f6fb;
    --surface:     #ffffff;
    --border:      #e5e7eb;
    --border-l:    #f3f4f6;
    --text:        #111827;
    --text-s:      #374151;
    --muted:       #6b7280;
    --light:       #9ca3af;
    --sidebar-bg:  #0f0e17;
    --sidebar-w:   264px;
    --topbar-h:    62px;
    --radius:      10px;
    --radius-sm:   6px;
    --radius-lg:   14px;
    --shadow:      0 1px 3px rgba(0,0,0,.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
    --transition:  180ms ease;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-h); }
code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--border-l); padding: 2px 7px; border-radius: 4px; }

/* ─── Layout ─────────────────────────────────────────── */
.we-layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ────────────────────────────────────────── */
.we-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
}

.we-sidebar-brand {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.we-sidebar-logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.we-sidebar-logo svg { width: 20px; height: 20px; color: #fff; }

.we-sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: -0.01em;
}

.we-sidebar-version {
    font-size: 11px;
    color: #6b7280;
    background: rgba(255,255,255,.06);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 500;
}

.we-sidebar-nav { padding: 12px 0; flex: 1; }

.we-nav-section {
    padding: 20px 24px 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4b5563;
    font-weight: 700;
}

.we-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
    position: relative;
}

.we-nav-link:hover {
    background: rgba(255,255,255,.04);
    color: #e5e7eb;
    text-decoration: none;
}

.we-nav-link.active {
    background: rgba(79,70,229,.12);
    color: #a5b4fc;
    border-left-color: var(--primary);
    font-weight: 600;
}

.we-nav-link svg {
    width: 19px; height: 19px; flex-shrink: 0; opacity: 0.65;
    stroke-width: 1.8;
}
.we-nav-link.active svg { opacity: 1; color: #818cf8; }

.we-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.we-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.we-sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.we-sidebar-user-info { overflow: hidden; }

.we-sidebar-user-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.we-sidebar-user-role {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.we-sidebar-logout {
    font-size: 13px;
    color: #6b7280 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color var(--transition);
    text-decoration: none;
}
.we-sidebar-logout:hover { color: #ef4444 !important; text-decoration: none; }
.we-sidebar-logout svg { width: 16px; height: 16px; }

/* ─── Main Area ──────────────────────────────────────── */
.we-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.we-topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.we-topbar-left { display: flex; align-items: center; gap: 16px; }

.we-topbar h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.we-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.we-breadcrumb a { color: var(--muted); }
.we-breadcrumb a:hover { color: var(--primary); }
.we-breadcrumb .sep { color: var(--light); }

.we-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.we-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
}
.we-menu-toggle svg { width: 22px; height: 22px; }

/* Content */
.we-content {
    padding: 28px 32px;
    flex: 1;
}

/* ─── Cards ──────────────────────────────────────────── */
.we-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-l);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition);
}

.we-card:hover { box-shadow: var(--shadow-md); }
.we-card-no-hover:hover { box-shadow: var(--shadow); }

.we-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-l);
}

.we-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* ─── KPI Grid ───────────────────────────────────────── */
.we-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.we-kpi {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-l);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
}
.we-kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.we-kpi-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.we-kpi-icon svg { width: 24px; height: 24px; }

.we-kpi-icon.indigo  { background: var(--primary-l); color: var(--primary); }
.we-kpi-icon.emerald { background: var(--success-l); color: var(--success); }
.we-kpi-icon.amber   { background: var(--warning-l); color: var(--warning); }
.we-kpi-icon.rose    { background: var(--danger-l);  color: var(--danger); }

.we-kpi-body { flex: 1; }
.we-kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.we-kpi-value { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -0.02em; }

/* ─── Tables ─────────────────────────────────────────── */
.we-table-wrap { overflow-x: auto; border-radius: var(--radius); }

.we-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.we-table th,
.we-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border-l);
}

.we-table thead th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.we-table tbody tr { transition: background var(--transition); }
.we-table tbody tr:hover { background: #fafaff; }
.we-table tbody td { vertical-align: middle; }

/* ─── Badges ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge-info    { background: var(--info-l);    color: var(--info); }
.badge-primary { background: var(--primary-l); color: var(--primary); }
.badge-warning { background: var(--warning-l); color: var(--warning); }
.badge-success { background: var(--success-l); color: var(--success); }
.badge-danger  { background: var(--danger-l);  color: var(--danger); }
.badge-muted   { background: #f3f4f6;          color: var(--muted); }

.badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }

.btn-primary   { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25); }
.btn-primary:hover { background: var(--primary-h); box-shadow: 0 4px 14px rgba(79,70,229,.35); }

.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }

.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-secondary { background: #f9fafb; color: var(--text-s); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f3f4f6; }

.btn-outline   { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-l); }

.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-xs  { padding: 4px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; justify-content: center; }

/* Shop-Löschen: im Ruhezustand dezent, Hover deutlich rot */
.btn-delete-shop {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 160ms ease;
}
.btn-delete-shop:hover {
    background: var(--danger-l);
    color: var(--danger);
    border-color: #fca5a5;
    transform: translateY(-1px);
}
.btn-delete-shop:active { transform: translateY(0); }
.btn-delete-shop svg { transition: transform 160ms ease; }
.btn-delete-shop:hover svg { transform: rotate(-5deg) scale(1.1); }

/* ─── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-s);
    margin-bottom: 6px;
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.form-control::placeholder { color: var(--light); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
}

.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── Alerts ─────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success { background: var(--success-l); color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: var(--danger-l);  color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-l); color: #92400e; border-color: #fde68a; }
.alert-info    { background: var(--info-l);     color: #075985; border-color: #bae6fd; }

/* ─── Detail Page ────────────────────────────────────── */
.we-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}

.we-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-l);
}
.we-detail-row:last-child { border-bottom: none; }

.we-detail-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 16px;
}

.we-detail-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.we-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 8px;
    padding-top: 8px;
}

.we-detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--light);
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border-l);
}

.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--muted); }

.detail-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-s);
    padding: 8px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 500;
}
.back-link:hover { color: var(--primary); }

/* ─── Timeline (Audit) ───────────────────────────────── */
.we-timeline { position: relative; padding-left: 28px; }

.we-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-l), var(--border));
    border-radius: 2px;
}

.we-timeline-item {
    position: relative;
    padding-bottom: 22px;
}

.we-timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--primary-l);
    box-shadow: 0 0 0 2px var(--surface);
}

.we-timeline-action {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}

.we-timeline-details {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.we-timeline-meta {
    font-size: 12px;
    color: var(--light);
    margin-top: 4px;
    font-weight: 500;
}

/* ─── Login Page ─────────────────────────────────────── */
.we-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sidebar-bg);
    position: relative;
    overflow: hidden;
}

.we-login-page::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 80vw; height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,.15) 0%, transparent 70%);
    pointer-events: none;
}

.we-login-page::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -20%;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
    pointer-events: none;
}

.we-login-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
}

.we-login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.we-login-logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.we-login-logo-icon svg { width: 24px; height: 24px; color: #fff; }

.we-login-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.we-login-card .subtitle {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.we-login-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 15px;
    border-radius: var(--radius);
    margin-top: 4px;
}

/* ─── Filter Bar ─────────────────────────────────────── */
.we-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.we-filter-bar .form-control,
.we-filter-bar .form-select {
    width: auto;
    min-width: 160px;
    padding: 8px 14px;
    font-size: 13px;
}

.we-filter-bar input[type="search"] {
    min-width: 260px;
}

/* ─── Pagination ─────────────────────────────────────── */
.we-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.we-pagination a,
.we-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: all var(--transition);
}

.we-pagination a:hover {
    background: var(--primary-l);
    color: var(--primary);
    text-decoration: none;
}

.we-pagination .active {
    background: var(--primary);
    color: #fff;
}

/* ─── Widget Integration Code Block ──────────────────── */
.we-code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 18px 92px 18px 20px;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow: hidden;
    position: relative;
    margin: 12px 0;
    max-width: 100%;
}

.we-code-block code {
    display: block;
    max-width: 100%;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.we-code-block .copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(255,255,255,.1);
    color: #cdd6f4;
    border: none;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background var(--transition);
}
.we-code-block .copy-btn:hover { background: rgba(255,255,255,.2); }

/* ─── Empty State ────────────────────────────────────── */
.we-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
}
.we-empty svg { width: 48px; height: 48px; color: var(--light); margin-bottom: 16px; }
.we-empty p { font-size: 15px; font-weight: 500; }

/* ─── Grid helpers ───────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .we-sidebar { transform: translateX(-100%); }
    .we-sidebar.open { transform: translateX(0); }
    .we-main { margin-left: 0; }
    .we-menu-toggle { display: flex; }
    .we-kpi-grid { grid-template-columns: 1fr 1fr; }
    .we-detail-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

.we-overlay-sidebar {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 199;
    display: none;
}
.we-overlay-sidebar.active { display: block; }

@media (max-width: 640px) {
    .we-kpi-grid { grid-template-columns: 1fr; }
    .we-content { padding: 16px; }
    .we-topbar { padding: 0 16px; }
    .we-filter-bar { flex-direction: column; }
    .we-filter-bar .form-control,
    .we-filter-bar .form-select,
    .we-filter-bar input[type="search"] {
        width: 100%;
        min-width: unset;
    }
    .form-row { grid-template-columns: 1fr; }
    .we-login-card { padding: 32px 24px; margin: 16px; }
}

/* ─── Hero-Buttons (Dashboard) ──────────────────────────── */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: transform 160ms cubic-bezier(.34,1.56,.64,1),
                box-shadow 200ms ease,
                background 200ms ease;
}

/* Schimmer-Overlay */
.btn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(255,255,255,.18) 50%,
        transparent 60%);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}
.btn-hero:hover::after { opacity: 1; }

.btn-hero:hover  { transform: translateY(-2px); text-decoration: none; }
.btn-hero:active { transform: translateY(0) scale(.97); }

/* SVG-Icon */
.btn-hero svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    transition: transform 200ms cubic-bezier(.34,1.56,.64,1);
}
.btn-hero:hover svg { transform: translateX(3px); }

/* Primär: Gradient Indigo → Violett */
.btn-hero-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow:
        0 2px 0 rgba(0,0,0,.12),
        0 4px 16px rgba(79,70,229,.30),
        inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow:
        0 2px 0 rgba(0,0,0,.15),
        0 8px 28px rgba(79,70,229,.42),
        inset 0 1px 0 rgba(255,255,255,.18);
    color: #fff;
}
.btn-hero-primary:active {
    box-shadow:
        0 1px 0 rgba(0,0,0,.12),
        0 2px 8px rgba(79,70,229,.22),
        inset 0 1px 0 rgba(255,255,255,.12);
}

/* Sekundär: Glassmorphism */
.btn-hero-secondary {
    background: rgba(255,255,255,.75);
    color: var(--text-s);
    border: 1.5px solid rgba(79,70,229,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 2px 8px rgba(15,23,42,.06);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.95);
    border-color: rgba(79,70,229,.35);
    color: var(--primary);
    box-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 6px 20px rgba(15,23,42,.10);
}
.btn-hero-secondary:active {
    box-shadow:
        0 1px 0 rgba(255,255,255,.9),
        0 1px 4px rgba(15,23,42,.08);
}
.btn-hero-secondary svg {
    color: var(--muted);
    transition: transform 200ms cubic-bezier(.34,1.56,.64,1), color 160ms ease;
}
.btn-hero-secondary:hover svg { color: var(--primary); transform: none; }

/* Dashboard refresh */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 26px 28px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92)),
        linear-gradient(135deg, rgba(14,165,233,.12), rgba(16,185,129,.08));
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.dashboard-eyebrow {
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.dashboard-hero h2 { font-size: 30px; line-height: 1.1; color: var(--text); margin-bottom: 7px; }
.dashboard-hero p { color: var(--muted); font-size: 15px; max-width: 620px; }
.dashboard-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.dashboard-kpi-card {
    display: block;
    min-height: 135px;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid #e3e8f0;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.dashboard-kpi-card::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: currentColor;
    opacity: .65;
}
.dashboard-kpi-card:hover {
    color: var(--text);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15,23,42,.1);
    border-color: #cbd5e1;
}
.kpi-total { color: #2563eb; }
.kpi-today { color: #059669; }
.kpi-open { color: #d97706; }
.kpi-risk { color: #dc2626; }
.dashboard-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dashboard-kpi-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.dashboard-kpi-icon,
.quick-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15,23,42,.06);
    color: currentColor;
}
.dashboard-kpi-icon svg,
.quick-icon svg { width: 20px; height: 20px; }
.dashboard-kpi-value {
    font-size: 38px;
    font-weight: 850;
    line-height: 1;
    color: var(--text);
    letter-spacing: 0;
    margin-bottom: 10px;
}
.dashboard-kpi-meta { color: var(--muted); font-size: 13px; font-weight: 600; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 20px;
    margin-bottom: 20px;
}
.dashboard-panel {
    background: var(--surface);
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
}
.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.dashboard-panel-header h3 { color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.2; }
.dashboard-panel-header p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dashboard-score {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 60%),
        conic-gradient(#059669 calc(var(--score) * 1%), #edf2f7 0);
    flex-shrink: 0;
}
.dashboard-score span { font-size: 16px; font-weight: 850; color: var(--text); }

.status-stack {
    display: flex;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
    margin-bottom: 18px;
}
.status-stack-segment { display: block; min-width: 4px; }
.status-info { background: #0284c7; color: #0284c7; }
.status-primary { background: #2563eb; color: #2563eb; }
.status-warning { background: #d97706; color: #d97706; }
.status-success { background: #059669; color: #059669; }
.status-danger { background: #dc2626; color: #dc2626; }
.status-muted { background: #94a3b8; color: #64748b; }
.status-breakdown { display: grid; gap: 9px; }
.status-row {
    display: grid;
    grid-template-columns: 12px minmax(120px, 180px) minmax(120px, 1fr) 42px;
    align-items: center;
    gap: 10px;
    color: var(--text-s);
    padding: 9px 10px;
    border-radius: 10px;
    transition: background var(--transition), transform var(--transition);
}
.status-row:hover { background: #f8fafc; color: var(--text); text-decoration: none; transform: translateX(2px); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; }
.status-name { font-size: 13px; font-weight: 700; }
.status-bar { height: 8px; border-radius: 999px; background: #edf2f7; overflow: hidden; }
.status-bar span { display: block; height: 100%; border-radius: inherit; background: #94a3b8; min-width: 0; }
.status-dot.status-info ~ .status-bar span { background: #0284c7; }
.status-dot.status-primary ~ .status-bar span { background: #2563eb; }
.status-dot.status-warning ~ .status-bar span { background: #d97706; }
.status-dot.status-success ~ .status-bar span { background: #059669; }
.status-dot.status-danger ~ .status-bar span { background: #dc2626; }
.status-dot.status-muted ~ .status-bar span { background: #94a3b8; }
.status-row strong { justify-self: end; color: var(--text); font-size: 14px; }

.quick-actions { display: grid; gap: 10px; }
.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    color: var(--text);
    background: #fbfdff;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.quick-action:hover { color: var(--text); text-decoration: none; background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }
.quick-action strong,
.quick-action small { display: block; }
.quick-action strong { font-size: 14px; line-height: 1.25; }
.quick-action small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.quick-icon.status-info { background: #e0f2fe; color: #0284c7; }
.quick-icon.status-primary { background: #dbeafe; color: #2563eb; }
.quick-icon.status-warning { background: #fef3c7; color: #d97706; }
.quick-icon.status-success { background: #d1fae5; color: #059669; }
.quick-icon.status-danger { background: #fee2e2; color: #dc2626; }
.dashboard-insight {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
}
.dashboard-insight span,
.dashboard-insight strong { display: block; }
.dashboard-insight span { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.dashboard-insight strong { color: var(--text); font-size: 15px; }

.dashboard-tabs {
    display: inline-flex;
    padding: 4px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #f8fafc;
}
.dashboard-tab {
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    padding: 7px 12px;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.dashboard-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.dashboard-table-wrap { border: 1px solid #eef2f7; }
.dashboard-table tbody tr.is-hidden { display: none; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.person-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.person-cell strong,
.person-cell small { display: block; }
.person-cell strong { font-size: 14px; color: var(--text); line-height: 1.25; }
.person-cell small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.dashboard-panel-footer { display: flex; justify-content: flex-end; margin-top: 16px; }

@media (max-width: 1024px) {
    .dashboard-kpi-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .dashboard-hero { align-items: stretch; flex-direction: column; padding: 22px; }
    .dashboard-hero h2 { font-size: 25px; }
    .dashboard-hero-actions { justify-content: flex-start; }
    .dashboard-kpi-grid { grid-template-columns: 1fr; }
    .dashboard-panel { padding: 18px; }
    .dashboard-panel-header { align-items: flex-start; flex-direction: column; }
    .dashboard-tabs { width: 100%; }
    .dashboard-tab { flex: 1; }
    .status-row { grid-template-columns: 12px 1fr 40px; }
    .status-bar { grid-column: 2 / 4; }
}

/* ─── Shops Page ─────────────────────────────────────── */
.shop-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.shop-size-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .we-detail-grid.shops-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .col-url,
    .col-mail { display: none; }

    .shop-color-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-size-grid  { grid-template-columns: 1fr; }

    /* Widget-Code lesbarer auf Mobile */
    .we-code-block { font-size: 11.5px; padding: 14px; }
    .we-code-block .copy-btn { position: static; display: block; margin-bottom: 10px; width: 100%; text-align: center; }

    /* Shop-Tabelle: Aktions-Buttons untereinander */
    .we-table td[style*="white-space:nowrap"] { white-space: normal !important; }
}

@media (max-width: 420px) {
    .shop-color-grid { grid-template-columns: 1fr; }
}
