/* ============================================================
   PAGES.CSS – Seitenspezifische Styles
   ============================================================ */

/* ===== LOGIN HEADER (index.php) ===== */
.login-header {
    width: 100%;
    background: linear-gradient(135deg, var(--blau-dunkel) 0%, var(--blau) 60%, var(--blau-hell) 100%);
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 32px rgba(15, 74, 138, 0.18);
    position: relative;
    overflow: hidden;
    animation: fadeDown 0.5s ease both;
    padding: 40px 24px;
}

.login-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 40%);
    pointer-events: none;
}

.login-header h1 {
    font-family: var(--font-titel);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--weiss);
    letter-spacing: -0.3px;
    margin-bottom: 28px;
    position: relative;
}

/* ===== LOGIN BANNER (unter Navi auf index.php) ===== */
.login-banner {
    background: linear-gradient(135deg, var(--blau-dunkel) 0%, var(--blau) 60%, var(--blau-hell) 100%);
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-banner .login-form input[type="text"],
.login-banner .login-form input[type="password"] {
    flex: 1;
    padding: 13px 18px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.15);
    color: var(--weiss);
    font-family: var(--font-haupt);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(8px);
}

.login-banner .login-form input::placeholder { color: rgba(255,255,255,0.6); }
.login-banner .login-form input:focus {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.22);
}

.login-banner .login-btn {
    padding: 13px 28px;
    background: var(--weiss);
    color: var(--blau-dunkel);
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.15s;
}
.login-banner .login-btn:hover { background: var(--blau-soft); transform: translateY(-1px); }

.login-banner .login-links a { color: rgba(255,255,255,0.75); font-size:0.85rem; text-decoration:none; }
.login-banner .login-links a:hover { color: #fff; }
.login-banner .meldungen { width:100%; max-width:520px; }

/* ===== PAGE HEADER (register.php, verify.php usw.) ===== */
.page-header {
    width: 100%;
    background: linear-gradient(135deg, var(--blau-dunkel) 0%, var(--blau) 60%, var(--blau-hell) 100%);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 32px rgba(15, 74, 138, 0.18);
    position: relative;
    overflow: hidden;
    animation: fadeDown 0.5s ease both;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 40%);
    pointer-events: none;
}

.page-header h1 {
    font-family: var(--font-titel);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--weiss);
    margin-bottom: 6px;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    position: relative;
}

.page-header a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

/* ===== LOGIN FORMULAR ===== */
.login-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.login-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    flex: 1;
    padding: 13px 18px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.12);
    color: var(--weiss);
    font-family: var(--font-haupt);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(8px);
}

.login-form input::placeholder {
    color: rgba(255,255,255,0.55);
}

.login-form input:focus {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.18);
}

.login-btn {
    padding: 13px 28px;
    background: var(--weiss);
    color: var(--blau-dunkel);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-titel);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.login-btn:hover {
    background: var(--blau-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.login-btn:active {
    transform: translateY(0);
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 4px;
}

.login-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover {
    color: var(--weiss);
}

/* ===== MELDUNGEN IM HEADER ===== */
.meldungen {
    width: 100%;
    max-width: 520px;
    margin-top: 8px;
    position: relative;
}

.fehler-header {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ffe0e3;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ===== VERIFY SEITE ===== */
.verify-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

.verify-icon.ok    { color: var(--erfolg-text); }
.verify-icon.fehler { color: var(--fehler-text); }
.verify-icon.warten { color: var(--blau); }

.verify-titel {
    text-align: center;
    margin-bottom: 16px;
}

.verify-titel.erfolg { color: var(--erfolg-text); }
.verify-titel.fehler { color: var(--fehler-text); }
.verify-titel.warten { color: var(--blau); }

.verify-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
}

/* ===== MOBIL ===== */
@media (max-width: 640px) {
    .login-row {
        flex-direction: column;
    }

    .login-btn {
        width: 100%;
    }
}

/* ===== DASHBOARD ===== */
.willkommen-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn {
    background: rgba(255, 50, 50, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
}

.wert.email {
    font-size: 1rem;
}

/* ===== PROFIL ===== */
.profil-main {
    padding-top: 24px;
    padding-bottom: 48px;
}

.profil-avatar-img {
    overflow: hidden;
    padding: 0;
}

.profil-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profil-alter {
    color: #8a9bb0;
    font-size: 12px;
}

.progress-text-max {
    margin-top: 6px;
}

.profil-edit-wrap {
    margin-top: 16px;
    text-align: center;
}

.anfragen-box-wrap {
    margin-top: 12px;
    display: none;
}

.freund-btn-wrap {
    margin-top: 16px;
    text-align: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.freund-btn-loading {
    font-size: 12px;
    color: #8a9bb0;
}

.gemeinsam-box {
    text-align: center;
    font-size: 12px;
    color: #8a9bb0;
    margin-top: 6px;
    display: none;
}

.profil-ueber-text {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f7fb;
    border: 1.5px solid #d0e1f5;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0f4a8a;
    text-decoration: none;
}

.profil-leer-text {
    color: #8a9bb0;
    font-size: 13px;
    font-style: italic;
}

.gesperrt-icon {
    font-size: 36px;
}

.gesperrt-titel {
    font-weight: 700;
    color: #4a5568;
}

.gesperrt-text {
    font-size: 12px;
    margin-top: 6px;
}

.gesperrt-link {
    color: #0f4a8a;
    font-weight: 700;
}

.freunde-anzahl {
    font-size: 13px;
    font-weight: 600;
    color: #8a9bb0;
}

.freunde-loading {
    color: #8a9bb0;
    font-size: 13px;
}

.freunde-fehler {
    color: #8a9bb0;
    font-size: 13px;
}

.freunde-leer {
    color: #8a9bb0;
    font-size: 13px;
    font-style: italic;
}

.freunde-privat {
    text-align: center;
    padding: 16px;
    color: #8a9bb0;
}

.freunde-privat-icon {
    font-size: 28px;
}

.freunde-privat-text {
    font-size: 13px;
}

.freund-avatar-mit-bild {
    background: #e8f0f8;
    padding: 0;
    overflow: hidden;
}

.freund-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.anfrage-link {
    font-weight: 700;
    text-decoration: none;
    flex: 1;
}

.anfrage-btn-accept {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== NACHRICHTEN ===== */
.input-readonly {
    background: #f0f4f8;
    cursor: not-allowed;
}

.nach-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-abbrechen {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid var(--blau);
    color: var(--blau);
    text-decoration: none;
    font-weight: 600;
}

.send-erfolg {
    display: none;
    margin-top: 16px;
    background: #d4f7e7;
    border: 1px solid #68d391;
    color: #276749;
    border-radius: 8px;
    padding: 12px 16px;
}

.send-fehler {
    display: none;
    margin-top: 16px;
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #9b2c2c;
    border-radius: 8px;
    padding: 12px 16px;
}

.nach-inhalt-link {
    color: #0f4a8a;
    font-weight: 600;
}

.btn-melden {
    padding: 10px 22px;
    background: #e53e3e;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.form-inline {
    display: contents;
}

.btn-zurueck-blau {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--blau);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.textarea-resizable {
    resize: vertical;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

.btn-melden-submit {
    padding: 10px 24px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.nach-badge-hidden {
    display: none;
}

.toggle-wrap-spaced {
    margin-bottom: 24px;
}

.einstellungen-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}









/* ===== FORUM ===== */
.mod-bar-hidden {
    display: none;
}

.modal-text {
    font-size: 13px;
    color: #8a9bb0;
    margin: 0 0 14px;
}

.modal-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5d73;
    display: block;
    margin-bottom: 6px;
}

.modal-select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #d0e1f5;
    border-radius: 8px;
    font-size: 14px;
}

.modal-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1.5px solid #d0e1f5;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.modal-field-group {
    margin-bottom: 14px;
}

.btn-melden-modal {
    background: #e53e3e;
}

.vorschau-leer {
    color: #8a9bb0;
}

.beitrag-skeleton {
    display: block;
    padding: 20px;
}

.skeleton-title {
    width: 50%;
    margin-bottom: 10px;
}

.skeleton-text {
    width: 80%;
}

.beitrag-fehler {
    padding: 24px;
    text-align: center;
    color: #e53e3e;
}

.beitrag-leer {
    padding: 32px;
    text-align: center;
    color: #8a9bb0;
}

.thema-views {
    font-size: 13px;
    color: #8a9bb0;
}

.autor-avatar-img {
    background: #e8f0f8;
}

.autor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beitrag-bearbeitet {
    color: #a0aec0;
}

.beitrag-link {
    color: #8a9bb0;
    text-decoration: none;
}

.beitrag-signatur {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e8f0f8;
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}

.btn-melden-beitrag {
    margin-left: auto;
    color: #e53e3e;
    border-color: #fc8181;
}

.reaktion-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reaktion-picker-wrap {
    position: relative;
}

.reaktion-add-icon {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.thema-geschlossen-box {
    text-align: center;
    padding: 24px;
    color: #8a9bb0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(15, 74, 138, 0.09);
}

.login-box {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 20px rgba(15, 74, 138, 0.09);
}

.login-link {
    color: #1a6fc4;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ===== TABLET PORTRAIT (768px) ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .karten-zeile.zwei,
    .karten-zeile.drei {
        grid-template-columns: 1fr;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
    
    .ml-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ml-search {
        width: 100%;
    }
    
    .ml-search input {
        width: 100%;
    }
}

/* ===== TABLET LANDSCAPE (1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .karten-zeile.drei {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== DESKTOP (1280px) ===== */
@media (min-width: 1025px) and (max-width: 1279px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== LARGE DESKTOP (1280px+) ===== */
@media (min-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .karten-zeile.drei {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ══════════════════════════════════════════════════════════════════════════════
   PROFIL BEARBEITEN
   ══════════════════════════════════════════════════════════════════════════════ */

.profil-edit-main {
    padding-top: 32px;
    padding-bottom: 64px;
}

.edit-header-actions {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.avatar-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f4ff;
    border: 1.5px solid #c7d8f5;
    border-radius: 99px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #0f4a8a;
    text-decoration: none;
    transition: all 0.2s;
}

.avatar-edit-link:hover {
    background: #e0ecff;
    border-color: #a7c0f0;
}

.avatar-edit-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-edit-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4a8a, #1a6fc4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PORTAL (index.php) - PHP-FUSION STYLE 3-SPALTEN LAYOUT
   ══════════════════════════════════════════════════════════════════════════════ */

/* ═══ LAYOUT ═══ */
.portal-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portal-main {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    gap: 15px;
    padding: 20px;
}

.fusion-left, .fusion-right {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Sticky Login-Box auf Desktop */
@media (min-width: 901px) {
    .portal-login-sticky {
        position: sticky;
        top: 10px;
        z-index: 10;
    }
}

.fusion-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ═══ SIDE PANEL (kleine Boxen) ═══ */
.side-panel {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.side-panel-header {
    background: linear-gradient(to bottom, #0f4a8a 0%, #1a6fc4 100%);
    border-bottom: none;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.side-panel-body {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
}

.side-panel-body.no-padding {
    padding: 0;
}

/* ═══ CENTER PANEL (große Boxen) ═══ */
.center-panel {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.center-panel-header {
    background: linear-gradient(to bottom, #0f4a8a 0%, #1a6fc4 100%);
    padding: 10px 15px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.center-panel-body {
    padding: 15px;
}

/* ═══ STATS LISTE ═══ */
.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-list .label {
    color: #64748b;
}

.stat-list .value {
    font-weight: 700;
    color: #0f4a8a;
}

/* ═══ USER LISTE ═══ */
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-list a {
    text-decoration: none;
    font-weight: 600;
}

.user-list a:hover {
    text-decoration: underline;
}

/* ═══ ONLINE DOT ═══ */
.online-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 5px;
}

/* ═══ FORUM LISTE ═══ */
.forum-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forum-item {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.forum-content {
    flex: 1;
    min-width: 0;
}

.forum-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

.forum-title a {
    color: #0f4a8a;
    text-decoration: none;
}

.forum-title a:hover {
    text-decoration: underline;
}

.forum-meta {
    font-size: 11px;
    color: #64748b;
}

.forum-excerpt {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══ MINI STATS ═══ */
.mini-stats {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

.mini-stat {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    border: 1px solid #bae6fd;
    min-width: 0;
}

.mini-stat-number {
    font-size: 22px;
    font-weight: 900;
    color: #0f4a8a;
    line-height: 1;
}

.mini-stat-label {
    font-size: 9px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .2px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

/* ═══ WELCOME BOX ═══ */
.welcome-box {
    background: linear-gradient(135deg, #0f4a8a 0%, #1a6fc4 100%);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.welcome-box h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.welcome-box p {
    margin: 0;
    font-size: 13px;
    opacity: .9;
}

/* ═══ LINK LISTE ═══ */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    border-bottom: 1px solid #f1f5f9;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    display: block;
    padding: 8px 12px;
    color: #0f4a8a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s;
}

.link-list a:hover {
    background: #f0f9ff;
}

.link-list a::before {
    content: '▸';
    margin-right: 6px;
    color: #64748b;
}

/* ═══ PORTAL INLINE STYLES ═══ */
.portal-header-subtitle {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    margin-top: 8px;
}

.portal-neuestes-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
}

.portal-neuestes-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4a8a, #1a6fc4);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.portal-neuestes-name {
    font-weight: 700;
    margin-bottom: 3px;
}

.portal-neuestes-name a {
    text-decoration: none;
}

.portal-neuestes-rolle {
    font-size: 11px;
    color: #64748b;
}

.portal-neuestes-datum {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 3px;
}

.portal-heute-time {
    float: right;
    font-size: 10px;
    color: #94a3b8;
}

.portal-themen-empty,
.portal-beitraege-empty {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
}

.portal-themen-meta a,
.portal-beitraege-meta a {
    text-decoration: none;
    font-weight: 600;
}

.portal-login-fehler {
    background: #fee;
    border: 1px solid #fcc;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #c33;
}

.portal-login-erfolg {
    background: #efe;
    border: 1px solid #cfc;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #3a3;
}

.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-login-input {
    padding: 8px;
    border: 1px solid #dfe6ee;
    border-radius: 4px;
    font-size: 12px;
}

.portal-login-btn {
    padding: 10px;
    background: linear-gradient(to bottom, #0f4a8a, #1a6fc4);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s ease;
    box-shadow: 0 2px 4px rgba(15,74,138,.3);
}

.portal-login-btn:hover {
    background: linear-gradient(to bottom, #0d3f75, #1560a8);
    box-shadow: 0 4px 8px rgba(15,74,138,.4);
    transform: translateY(-1px);
}

.portal-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15,74,138,.3);
}

.portal-login-links {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    text-align: center;
}

.portal-login-links a {
    color: #0f4a8a;
    text-decoration: none;
}

.portal-online-section {
    margin-bottom: 12px;
}

.portal-online-title {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.portal-online-text {
    font-size: 12px;
    line-height: 1.6;
}

.portal-online-text a {
    text-decoration: none;
    font-weight: 600;
}

.portal-gaeste-text {
    font-size: 12px;
    color: #8a9bb0;
}

.portal-crawler-item {
    font-size: 11px;
}

.portal-crawler-time {
    float: right;
    color: #94a3b8;
    font-size: 10px;
}

.portal-niemand {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.portal-top-medal {
    float: right;
    color: #0f4a8a;
    font-weight: 700;
}

.portal-rekord-number {
    font-size: 28px;
    font-weight: 900;
    color: #0f4a8a;
    line-height: 1;
}

.portal-rekord-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
}

.portal-rekord-datum {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 3px;
}

.portal-rang-label {
    color: inherit;
}

/* ═══ RESPONSIVE ═══ */
@media(max-width: 1200px) {
    .portal-main {
        max-width: 1000px;
    }
    
    .fusion-left, .fusion-right {
        width: 180px;
    }
}

@media(max-width: 768px) {
    .portal-main {
        flex-direction: column;
        padding: 10px;
    }
    
    .fusion-left, .fusion-right {
        width: 100%;
        flex-direction: column;
    }
    
    .fusion-center {
        width: 100%;
        order: 1;
    }
    
    .fusion-left {
        order: 2;
    }
    
    .fusion-right {
        order: 0;
    }
    
    .welcome-box {
        padding: 12px;
    }
    
    .welcome-box h2 {
        font-size: 16px;
    }
    
    .welcome-box p {
        font-size: 12px;
    }
}

@media(max-width: 480px) {
    .portal-main {
        padding: 5px;
        gap: 10px;
    }
    
    .side-panel-body {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .center-panel-body {
        padding: 10px;
    }
    
    .forum-item {
        padding: 8px;
        flex-direction: column;
        gap: 8px;
    }
    
    .forum-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .mini-stats {
        gap: 6px;
    }
    
    .mini-stat {
        padding: 8px;
    }
    
    .mini-stat-number {
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN LOGIN
   ═══════════════════════════════════════════════════════════════ */
.admin-login-body {
    background: #0f1923;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.admin-login-box {
    background: #1a2535;
    border: 1px solid #2a3a50;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.admin-login-box .login-icon {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}
.admin-login-box h1 {
    text-align: center;
    font-size: 1.2rem;
    color: #e8edf2;
    margin-bottom: 4px;
}
.admin-login-box .sub {
    text-align: center;
    font-size: .8rem;
    color: #4a6080;
    margin-bottom: 28px;
}
.admin-login-box label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #6a8aaa;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.admin-login-box input[type=text],
.admin-login-box input[type=password] {
    width: 100%;
    padding: 11px 14px;
    background: #0f1923;
    border: 1.5px solid #2a3a50;
    border-radius: 8px;
    color: #e8edf2;
    font-size: .92rem;
    margin-bottom: 16px;
    transition: border-color .2s;
    outline: none;
}
.admin-login-box input:focus { border-color: #1a6fc4; }
.admin-login-box button[type=submit] {
    width: 100%;
    padding: 12px;
    background: #1a6fc4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: 4px;
}
.admin-login-box button[type=submit]:hover { opacity: .85; }
.admin-login-box .fehler-liste {
    background: #2d1a1a;
    border: 1px solid #5a2020;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    list-style: none;
}
.admin-login-box .fehler-liste li {
    color: #e07070;
    font-size: .86rem;
}
.admin-login-box .fehler-liste li + li { margin-top: 4px; }


/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════════════════════ */
.dashboard-container { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #0f4a8a 0%, #1a6fc4 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(15,74,138,.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-content h1 { color: #fff; font-size: 2rem; margin: 0 0 8px; font-weight: 800; }
.hero-content p { color: rgba(255,255,255,.8); margin: 0; font-size: 1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn {
    padding: 12px 24px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s;
    backdrop-filter: blur(10px);
}
.hero-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }

/* Grid Layouts */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 30px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }

@media (max-width: 1024px) {
    .content-grid, .two-col-grid { grid-template-columns: 1fr; }
}

/* Cards */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(15,74,138,.08);
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 30px rgba(15,74,138,.12); }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0f8;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f4a8a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-badge {
    background: #e8f0f8;
    color: #1a6fc4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}

/* Stat Card */
.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(15,74,138,.08);
    border: 2px solid #e8f0f8;
    transition: all .2s;
}
.stat-card:hover { border-color: #1a6fc4; transform: translateY(-2px); }
.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a6fc4, #0f4a8a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.stat-label { font-size: .85rem; color: #8a9bb0; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: #0f4a8a; }

/* Progress Bar */
.progress-bar {
    background: #e8f0f8;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin: 12px 0;
}
.progress-fill {
    background: linear-gradient(90deg, #1a6fc4, #0f4a8a);
    height: 100%;
    border-radius: 10px;
    transition: width .5s ease;
}
.progress-text { font-size: .85rem; color: #8a9bb0; margin-top: 4px; }

/* List Items */
.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background .2s;
}
.list-item:hover { background: #f8fbff; }
.list-item:last-child { margin-bottom: 0; }
.list-icon {
    width: 40px;
    height: 40px;
    background: #e8f0f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.list-content { flex: 1; min-width: 0; }
.list-title { font-weight: 600; color: #2d3748; margin-bottom: 2px; font-size: .9rem; }
.list-meta { font-size: .8rem; color: #8a9bb0; }
.list-link { color: #1a6fc4; text-decoration: none; }
.list-link:hover { text-decoration: underline; }

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a6fc4, #0f4a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* Dashboard Stat Row */
.dash-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fbff;
    border-radius: 10px;
}
.dash-stat-label { color: #8a9bb0; font-size: .9rem; }
.dash-stat-value { font-weight: 700; color: #0f4a8a; font-size: 1.1rem; }
.dash-stat-value-sm { font-weight: 700; color: #0f4a8a; font-size: .9rem; }
.dash-stat-grid { display: grid; gap: 16px; }
.dash-stat-block { padding: 12px; background: #f8fbff; border-radius: 10px; }
.dash-stat-block-label { color: #8a9bb0; font-size: .85rem; margin-bottom: 4px; }
.dash-stat-block-value { font-weight: 600; color: #0f4a8a; font-size: .9rem; margin-bottom: 2px; }
.dash-stat-block-meta { font-size: .75rem; color: #8a9bb0; }
.quick-btn {
    padding: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
    border: 2px solid #e8f0f8;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.quick-btn:hover { border-color: #1a6fc4; background: #f8fbff; transform: translateY(-2px); }
.quick-btn-icon { font-size: 1.8rem; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8a9bb0;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: .5; }
.empty-state-text { font-size: .9rem; }

/* Rang Badge */
.rang-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: .85rem;
}

/* Online Indicator */
.online-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;
    bottom: 0;
    right: 0;
}
.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background .2s;
    position: relative;
}
.user-item:hover { background: #f8fbff; }
.user-avatar-wrap { position: relative; }

/* Dark Mode Overrides */
[data-theme="dark"] .card { background: #1e2a3a; box-shadow: 0 2px 20px rgba(0,0,0,.2); }
[data-theme="dark"] .card:hover { box-shadow: 0 4px 30px rgba(0,0,0,.3); }
[data-theme="dark"] .card-header { border-color: #2a3d52; }
[data-theme="dark"] .card-title { color: #8ecbff; }
[data-theme="dark"] .card-badge { background: #1a2d42; color: #4da6ff; }
[data-theme="dark"] .stat-card { background: linear-gradient(135deg, #1e2a3a 0%, #162030 100%); border-color: #2a3d52; }
[data-theme="dark"] .stat-card:hover { border-color: #4da6ff; }
[data-theme="dark"] .stat-label { color: #8a9bb0; }
[data-theme="dark"] .stat-value { color: #8ecbff; }
[data-theme="dark"] .hero-banner { background: linear-gradient(135deg, #0a1929 0%, #1a2d42 100%); }
[data-theme="dark"] .list-item:hover { background: #1a2d42; }
[data-theme="dark"] .list-title { color: #e0e8f0; }
[data-theme="dark"] .list-meta { color: #8a9bb0; }
[data-theme="dark"] .list-link { color: #4da6ff; }
[data-theme="dark"] .dash-stat-row { background: #162030; }
[data-theme="dark"] .dash-stat-label { color: #8a9bb0; }
[data-theme="dark"] .dash-stat-value, [data-theme="dark"] .dash-stat-value-sm { color: #8ecbff; }
[data-theme="dark"] .dash-stat-block { background: #162030; }
[data-theme="dark"] .dash-stat-block-label { color: #8a9bb0; }
[data-theme="dark"] .dash-stat-block-value { color: #8ecbff; }
[data-theme="dark"] .quick-btn { background: linear-gradient(135deg, #162030 0%, #1e2a3a 100%); border-color: #2a3d52; color: #e0e8f0; }
[data-theme="dark"] .quick-btn:hover { border-color: #4da6ff; background: #1a2d42; }
[data-theme="dark"] .progress-bar { background: #2a3d52; }
[data-theme="dark"] .user-item:hover { background: #1a2d42; }
[data-theme="dark"] .empty-state { color: #8a9bb0; }


/* ══════════════════════════════════════════════════════════════════════════════
   TICKETS
   ══════════════════════════════════════════════════════════════════════════════ */
.tk-wrap{max-width:900px;margin:0 auto;}
.tk-card{background:#fff;border-radius:16px;box-shadow:0 2px 16px rgba(15,74,138,.09);padding:28px;margin-bottom:20px;}
.tk-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px;}
.tk-title{font-size:20px;font-weight:800;color:#0f4a8a;}
.tk-btn{padding:10px 22px;background:linear-gradient(135deg,#0f4a8a,#1a6fc4);color:#fff;border-radius:8px;text-decoration:none;font-weight:700;font-size:14px;border:none;cursor:pointer;transition:.2s;}
.tk-btn:hover{opacity:.88;}
.tk-btn-sm{padding:8px 16px;font-size:13px;}
.tk-btn-outline{background:#fff;color:#0f4a8a;border:1.5px solid #d0e1f5;}
.tk-btn-outline:hover{background:#f0f6ff;border-color:#1a6fc4;}
.tk-table{width:100%;border-collapse:collapse;}
.tk-table th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;color:#8a9bb0;text-transform:uppercase;border-bottom:2px solid #e8f0f8;background:#fafcff;}
.tk-table td{padding:12px 16px;border-bottom:1px solid #f0f4f8;font-size:14px;vertical-align:middle;}
.tk-table tr:hover{background:#f5f8ff;}
.tk-table tr:last-child td{border-bottom:none;}
.tk-status{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:700;}
.tk-link{color:#1a6fc4;text-decoration:none;font-weight:600;}
.tk-link:hover{text-decoration:underline;}
.tk-leer{text-align:center;padding:48px;color:#8a9bb0;}
.tk-form .feld{margin-bottom:16px;}
.tk-form label{display:block;font-size:12px;font-weight:700;color:#4a5568;text-transform:uppercase;letter-spacing:.4px;margin-bottom:6px;}
.tk-form input,.tk-form textarea{width:100%;box-sizing:border-box;padding:10px 14px;border:1.5px solid #dde6f0;border-radius:8px;font-size:14px;font-family:inherit;background:#f8fafc;transition:.15s;}
.tk-form input:focus,.tk-form textarea:focus{outline:none;border-color:#1a6fc4;background:#fff;}
.tk-form textarea{min-height:120px;resize:vertical;}
/* Ticket-Detail */
.tk-detail-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px;}
.tk-detail-id{font-size:13px;color:#8a9bb0;font-weight:700;}
.tk-detail-betreff{font-size:20px;font-weight:800;color:#0f4a8a;flex:1;}
.tk-msg{display:flex;gap:12px;margin-bottom:16px;}
.tk-msg-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#0f4a8a,#1a6fc4);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;overflow:hidden;flex-shrink:0;}
.tk-msg-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.tk-msg-body{flex:1;background:#f4f7fb;border-radius:12px;padding:14px 18px;}
.tk-msg.admin .tk-msg-body{background:#eff8ff;border:1px solid #bfdbfe;}
.tk-msg-meta{font-size:12px;color:#8a9bb0;margin-bottom:6px;display:flex;align-items:center;gap:8px;}
.tk-msg-name{font-weight:700;color:#0f4a8a;}
.tk-msg.admin .tk-msg-name{color:#1e40af;}
.tk-admin-badge{background:#dbeafe;color:#1e40af;font-size:10px;font-weight:800;padding:2px 8px;border-radius:99px;}
.tk-msg-text{font-size:14px;line-height:1.6;color:#2d3748;white-space:pre-wrap;word-break:break-word;}
.tk-antwort{margin-top:20px;padding-top:20px;border-top:2px solid #e8f0f8;}
@media(max-width:600px){.tk-card{padding:20px 16px;}.tk-table th:nth-child(3),.tk-table td:nth-child(3){display:none;}}
