/* ============================================================
   Keybuki Hinweisgeberschutz — Bearbeiter-Backend
   ============================================================ */

.admin-body {
    background: #fffbfb;
}

/* Sidebar Ergänzungen */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.sidebar-footer .nav-item {
    color: var(--gray-500) !important;
}

/* Main Content neben Sidebar */
.hinweis-main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: #fffbfb;
}

/* Page Header — DPA Style */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.page-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.mobile-menu-bar {
    display: none;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--gray-600);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.hinweis-page-content {
    padding: 24px 32px;
    max-width: 1200px;
}

/* Sidebar Overlay Mobile */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}

#sidebar-overlay.open {
    display: block;
}

@media (max-width: 900px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    .hinweis-main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-bar {
        display: block;
    }

    .hinweis-page-content {
        padding: 16px;
    }

    .hinweis-topbar {
        padding: 16px;
    }
}

/* Content */
.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Login — Keybuki Style */
.kb-login-card {
    display: flex;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 2px solid #C73178;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.kb-login-left {
    background: linear-gradient(180deg, #fdf2f7 0%, #fce8f1 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45%;
}

.kb-login-logo {
    margin-bottom: 30px;
}

.kb-login-logo img {
    height: 70px;
}

.kb-login-mascot {
    width: 240px;
    height: auto;
    margin-bottom: 16px;
}

.kb-login-left h1 {
    color: #404040;
    font-size: 32px;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
}

.kb-login-right {
    padding: 60px 50px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kb-login-title {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.kb-login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

.kb-form-group {
    margin-bottom: 20px;
}

.kb-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.kb-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.kb-form-group input:focus {
    outline: none;
    border-color: #C73178;
    box-shadow: 0 0 0 3px rgba(199, 49, 120, 0.1);
}

.kb-btn-login {
    width: 100%;
    padding: 14px;
    background: #C73178;
    color: var(--color-text-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.kb-btn-login:hover {
    background: #a82865;
}

.kb-btn-login:active {
    transform: scale(0.98);
}

.kb-btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.alert-danger-kb {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .kb-login-card {
        flex-direction: column;
        max-width: 420px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
    }

    .kb-login-left {
        width: 100%;
        padding: 40px 30px;
    }

    .kb-login-mascot {
        width: 160px;
    }

    .kb-login-left h1 {
        font-size: 26px;
    }

    .kb-login-right {
        width: 100%;
        padding: 40px 30px;
    }
}

/* Dashboard */
.fall-detail h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* KPI Cards v2 — DPA Style */
.kpi-card-v2 {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.kpi-icon .material-icons {
    color: #fff;
    font-size: 24px;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label-v2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.kpi-value-v2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

/* Dashboard 2-Column Grid */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-card {
    text-align: center;
    padding: 24px;
}

.dash-stat-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.dash-stat-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 15px;
    color: var(--gray-600);
}

.dash-stat-info .material-icons {
    font-size: 20px;
}

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

/* Section Cards */
.section-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

.section-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card h3 .material-icons {
    font-size: 20px;
}

.section-warning {
    border-color: var(--warning);
    background: var(--warning-light);
}

.section-warning h3 {
    color: #92400e;
}

/* List Items */
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.list-item.clickable {
    cursor: pointer;
}

.list-item.clickable:hover {
    background: var(--gray-50);
}

.fall-id-mono {
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 120px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 150ms ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Fall Cards */
.fall-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    transition: all 150ms ease;
}

.fall-card.clickable {
    cursor: pointer;
}

.fall-card.clickable:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(199, 49, 120, 0.08);
}

.fall-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fall-card-body {
    margin-bottom: 8px;
}

.fall-preview {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 6px;
    line-height: 1.5;
}

.fall-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* Badges */
.badge-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-neu { background: #fdf2f7; color: #C73178; }
.badge-in_bearbeitung { background: var(--warning-light); color: var(--warning); }
.badge-ermittlung { background: #fef3c7; color: #92400e; }
.badge-abgeschlossen { background: var(--success-light); color: var(--success); }
.badge-abgewiesen { background: var(--gray-100); color: var(--gray-500); }

.badge-kategorie {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-prioritaet {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-prio-niedrig { background: var(--gray-100); color: var(--gray-500); }
.badge-prio-mittel { background: var(--info-light); color: var(--info); }
.badge-prio-hoch { background: var(--warning-light); color: #92400e; }
.badge-prio-kritisch { background: var(--danger-light); color: var(--danger); }

.badge-ungelesen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.badge-warning {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--warning-light);
    color: #92400e;
}

.badge-danger {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--danger-light);
    color: var(--danger);
}

/* Fristen Icons */
.fristen-rot { color: var(--danger); font-size: 18px; }
.fristen-gelb { color: var(--warning); font-size: 18px; }
.fristen-gruen { color: var(--success); font-size: 18px; }

/* Fall Detail */
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-header h2 {
    margin-bottom: 0;
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

.meldung-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-800);
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--gray-50);
    padding: 16px;
    border-radius: 8px;
}

/* Nachrichten im Admin */
.nachrichten-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.nachricht {
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    max-width: 70%;
    position: relative;
}

.nachricht-melder {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    margin-right: auto;
    margin-left: 0;
}

.nachricht-bearbeiter {
    background: #fdf2f7;
    color: #1f2937;
    border: 1px solid #f0d4e2;
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 4px;
}

.nachricht-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    color: #9ca3af;
}

.nachricht-absender {
    font-weight: 600;
    color: #6b7280;
}

.nachricht-text {
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.nachricht-form-admin {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.nachricht-form-admin textarea {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
}

.nachricht-form-admin textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(199, 49, 120, 0.12);
}

.nachricht-form-admin .btn {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    height: 48px;
}

/* Aktionen Sidebar */
.action-group {
    margin-bottom: 16px;
}

.action-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.action-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.action-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Fristen Box */
.fristen-box {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.fristen-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.frist-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
}

.frist-row .btn-sm {
    min-width: 140px;
    text-align: center;
    justify-content: center;
}

.frist-row:last-child {
    border-bottom: none;
}

.frist-ok {
    color: var(--success);
    font-weight: 600;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 150ms ease;
}

.btn-sm:hover {
    background: #f9fafb;
    border-color: #C73178;
    color: #C73178;
}

.btn-sm.btn-primary {
    background: #fff;
    color: #C73178;
    border-color: #C73178;
}

.btn-sm.btn-primary:hover {
    background: #fdf2f7;
}

/* Protokoll */
.protokoll-list {
    max-height: 300px;
    overflow-y: auto;
}

.protokoll-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
}

.protokoll-item:last-child {
    border-bottom: none;
}

.protokoll-zeit {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.protokoll-aktion {
    color: var(--gray-700);
}

/* Einstellungen */
.melde-url-box {
    display: flex;
    gap: 8px;
}

.melde-url-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    background: var(--gray-50);
    color: var(--gray-700);
}

/* Utilities */
.text-muted {
    color: var(--gray-400);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr 320px;
    }

    .admin-content {
        padding: 16px;
    }
}

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

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-header {
        padding: 12px 16px;
    }

    .admin-nav {
        padding: 8px 16px;
        overflow-x: auto;
    }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .fall-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .detail-header {
        flex-wrap: wrap;
    }

    .melde-url-box {
        flex-direction: column;
    }

    .nachricht {
        max-width: 95%;
    }
}

/* ============================================================
   ONBOARDING WIZARD
   ============================================================ */

.onboarding-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
}

.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-500);
    flex-shrink: 0;
}

.progress-step.active {
    background: var(--primary);
    color: #fff;
}

.progress-step.done {
    background: var(--success);
    color: #fff;
}

.progress-line {
    height: 3px;
    width: 60px;
    background: var(--gray-200);
}

.progress-line.done {
    background: var(--success);
}

.onboarding-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.onboarding-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}

.onboarding-card h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 8px;
}

.onboarding-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 28px;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/* Slug Input */
.slug-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.slug-prefix {
    padding: 10px 2px 10px 14px;
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: 14px;
    white-space: nowrap;
    border-right: 1px solid var(--gray-200);
}

.slug-input-group input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 8px;
}

.slug-input-group input:focus {
    box-shadow: none !important;
}

/* Crypto Status */
.crypto-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

/* Recovery Key */
.recovery-box {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: var(--radius);
    padding: 20px;
}

.recovery-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.recovery-box p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.recovery-key-display {
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    word-break: break-all;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.recovery-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recovery-actions .btn {
    font-size: 13px;
    padding: 8px 14px;
}

/* Finish URL */
.melde-url-display {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}

.melde-url-display input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
    background: var(--primary-light);
    color: var(--gray-800);
}

.finish-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .onboarding-card { padding: 24px 18px; }
    .slug-prefix { font-size: 12px; padding: 10px 2px 10px 8px; }
    .melde-url-display { flex-direction: column; }
    .recovery-actions { flex-direction: column; }
    .progress-line { width: 30px; }
}

/* Bearbeiter Verwaltung */
.bearbeiter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
}

.bearbeiter-info {
    flex: 1;
}

.bearbeiter-info strong {
    display: block;
    font-size: 14px;
    color: var(--gray-800);
}

.bearbeiter-info span {
    font-size: 13px;
    color: var(--gray-500);
}

.loading-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-400);
    padding: 12px 0;
}

/* Crypto locked */
.crypto-locked {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--warning-light);
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

.crypto-locked .material-icons {
    font-size: 20px;
}

/* Meldung Rows — Dashboard */
.meldung-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    background: #fff;
}

.meldung-row:hover {
    border-color: #C73178;
    box-shadow: 0 2px 8px rgba(199,49,120,0.08);
    transform: translateX(2px);
}

.meldung-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meldung-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fdf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meldung-row-icon .material-icons {
    font-size: 20px;
    color: #C73178;
}

.meldung-row-info {
    display: flex;
    flex-direction: column;
}

.meldung-row-info strong {
    font-size: 14px;
    color: #1f2937;
    font-family: 'SF Mono', SFMono-Regular, Consolas, monospace;
}

.meldung-row-info span {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.meldung-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meldung-row-arrow {
    color: #d1d5db;
    font-size: 22px;
    transition: color 150ms ease;
}

.meldung-row:hover .meldung-row-arrow {
    color: #C73178;
}

@media (max-width: 600px) {
    .meldung-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .meldung-row-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: modalFadeIn 150ms ease forwards;
}

@keyframes modalFadeIn {
    to { opacity: 1; }
}

.modal-card,
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    transform: translateY(10px);
    animation: modalSlideIn 150ms ease forwards;
}

.modal-header {
    padding: 0 0 12px;
}

.modal-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    padding: 12px 0 0;
}

@keyframes modalSlideIn {
    to { transform: translateY(0); }
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon .material-icons {
    font-size: 24px;
    color: #fff;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    text-align: center;
}

.modal-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 150ms ease;
    font-family: inherit;
}

.modal-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.modal-btn-cancel:hover {
    background: #e5e7eb;
}

.modal-btn-confirm {
    background: #C73178;
    color: #fff;
}

.modal-btn-confirm:hover {
    background: #a82865;
}

/* Settings Tabs */
.settings-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    padding-bottom: 0;
    justify-content: flex-start;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    white-space: nowrap;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 150ms ease;
    font-family: inherit;
}

.settings-tab:hover {
    color: #374151;
    background: #f9fafb;
}

.settings-tab.active {
    color: #C73178;
    border-bottom-color: #C73178;
}

.settings-tab .material-icons {
    font-size: 18px;
}

.settings-tab-content.hidden {
    display: none;
}

/* Settings Buttons — kleiner und eleganter */
.einstellungen-page .btn-primary,
.einstellungen-page .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 6px;
}

.einstellungen-page .btn-primary .material-icons,
.einstellungen-page .btn-secondary .material-icons {
    font-size: 16px;
}

.form-group input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: #C73178;
    box-shadow: 0 0 0 3px rgba(199, 49, 120, 0.1);
}

/* Trial Upgrade Button (aus components.css) */
.trial-upgrade-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: #1ea434;
    color: var(--color-text-white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.trial-upgrade-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

/* User Info Footer */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #C73178;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon.btn-logout {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-icon.btn-logout:hover {
    background: #f3f4f6;
    color: #C73178;
}

.datei-dropdown.show { display: block !important; }

#dateien-liste .meldung-row:hover {
    transform: none;
}

#dateien-liste .btn-primary:hover {
    padding: 6px 14px;
    font-size: 13px;
    transform: none;
}