/* === base/variables.css === */
/* 
 * Endless Worlds - CSS Variables
 * Zentrale Design-Tokens für alle Komponenten
 */

:root {
    /* Alliance-Farbpalette */
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #142554;
    --primary-blue-light: #3b82f6;
    --accent-gold: #d4af37;
    --accent-gold-light: #f5e17d;
    --silver: #94a3b8;
    --gold: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --gray-dark: #1f2937;
    --gray-medium: #6b7280;
    --gray-light: #e5e7eb;
    
    /* Dark Alliance Theme */
    --bg-primary: #080e1a;
    --bg-secondary: #0f1923;
    --bg-tertiary: #1a2535;
    --bg-card: #111c2a;
    --bg-elevated: #162030;
    --text-primary: #e8ecf1;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-glow: rgba(59, 130, 246, 0.08);
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --link-color: #60a5fa;
    --link-hover: #93c5fd;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 20px;
    
    /* Schatten-Standards */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 0.15s;
    --transition-normal: 0.25s;
    --transition-slow: 0.3s;
    
    /* Micro-Radius */
    --radius-xs: 4px;
    
    /* Input-Hintergrund */
    --bg-input: rgba(0, 0, 0, 0.25);
    --bg-input-focus: rgba(0, 0, 0, 0.35);
    --focus-ring: 0 0 0 2px rgba(59, 130, 246, 0.15);
}


/* === base/reset.css === */
/* 
 * Endless Worlds - Reset, Icons, Typography, Layout
 * Globale Basis-Styles
 */

/* Lucide Icons - Globale Styles */
.icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    vertical-align: -0.15em;
    display: inline-block;
    flex-shrink: 0;
}

.icon-sm { width: 14px; height: 14px; vertical-align: -0.1em; }
.icon-lg { width: 24px; height: 24px; vertical-align: -0.2em; }
.icon-xl { width: 32px; height: 32px; vertical-align: -0.25em; }

/* Icons in Flex-Containern zentrieren */
h1 .icon, h2 .icon, h3 .icon, h4 .icon, h5 .icon {
    vertical-align: middle;
}

/* Headings mit Icons als Flex-Container */
.card-header h2,
.card-header h3,
.card-header span,
.modal-header h3,
.modal-header h2,
.section-header,
.hero-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.card-header h5 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

/* Rollen-Farben (WoW-Standard) */
.icon-tank, .tank-color { color: #69CCF0; }
.icon-heal, .heal-color { color: #00FF96; }
.icon-dps, .dps-color { color: #C41E3A; }

/* Status-Farben */
.icon-yes, .icon-success { color: var(--green); }
.icon-maybe, .icon-warning, .icon-main { color: var(--gold); }
.icon-no, .icon-error { color: var(--red); }
.icon-info, .icon-twink { color: #06b6d4; }

/* Utility: Flex Spacer */
.flex-spacer { flex: 1; }

/* Bunte Navigation & Seiten-Icons */
.icon-home { color: #60a5fa; }
.icon-raids, .icon-calendar { color: #f97316; }
.icon-seasons { color: #a855f7; }
.icon-loot { color: #06b6d4; }
.icon-stats { color: #22c55e; }
.icon-profile { color: #60a5fa; }
.icon-admin { color: #f43f5e; }
.icon-logout { color: #94a3b8; }
.icon-login { color: #3b82f6; }
.icon-register { color: var(--green); }
.icon-primary { color: #3b82f6; }
.icon-member { color: #a855f7; }

/* Animationen */
.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigation Icons */
.nav-link,
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link .icon,
.nav-brand .icon {
    margin: 0;
}

/* Button Icons */
.btn .icon {
    margin-right: 4px;
    vertical-align: middle;
}

.btn-icon-only .icon {
    margin: 0;
}

/* Badge mit Icons */
.badge .icon {
    vertical-align: -0.1em;
    margin-right: 2px;
}

/* Profile Sidebar Card Body - zentrierter Inhalt */
.profile-sidebar .card-body.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Profile Badge */
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Raid Info Icons zentrieren */
.raid-modal-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.raid-tooltip-label,
.raid-modal-role-label,
.raid-tooltip-role-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Signup-Liste Icons */
.signup-list-icon {
    display: inline-flex;
    align-items: center;
}

.signup-list-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Char-Card Rolle */
.char-card-role {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Basis-Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Globale Link-Stile */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Verbesserte Textkontraste */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

p, li, td, th {
    color: var(--text-primary);
}

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

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Globales Page-Container Layout - einheitliche Abstände */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 125px);
    padding: 0.5rem;
    margin: 0 0.5rem;
}

.page-container.page-fixed-height {
    height: calc(100vh - 125px);
    max-height: calc(100vh - 125px);
    overflow: hidden;
}

.page-container > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.page-container.page-fixed-height > .card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.page-container .card-header {
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-bottom: 0;
}

.page-container .card-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.page-container .header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-container .card-body {
    flex: 1;
    padding: 1rem;
    min-height: 0;
    overflow-y: auto;
}


/* === base/wow-colors.css === */
/* WoW-spezifische Stile */
.quality-epic { color: #a335ee; }
.quality-rare { color: #0070dd; }
.quality-uncommon { color: #1eff00; }
.quality-legendary { color: #ff8000; }

.role-tank { color: #69CCF0; }
.role-heal { color: #00FF96; }
.role-dps { color: #C41E3A; }

.wow-class-icon {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-xs);
    vertical-align: middle;
    margin-right: 2px;
}

.class-krieger, .class-warrior { color: #c79c6e; }
.class-paladin { color: #f58cba; }
.class-jäger, .class-hunter { color: #abd473; }
.class-schurke, .class-rogue { color: #fff569; }
.class-priester, .class-priest { color: #ffffff; }
.class-todesritter, .class-deathknight { color: #c41e3a; }
.class-schamane, .class-shaman { color: #0070de; }
.class-magier, .class-mage { color: #69ccf0; }
.class-hexenmeister, .class-warlock { color: #9482ca; }
.class-mönch, .class-monk { color: #00ff96; }
.class-druide, .class-druid { color: #ff7d0a; }
.class-dämonenjäger, .class-demonhunter { color: #a330c9; }
.class-rufer, .class-evoker { color: #33937f; }


/* === layout/header.css === */
/* ============================================
   EPIC ALLIANCE GUILD HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 40%, #0a1628 100%);
    border-bottom: 1px solid rgba(64, 156, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(64, 156, 255, 0.1);
    padding: 0;
    overflow: hidden;
}

/* Animierter Partikel-Hintergrund */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 600px 200px at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 200px at 80% 50%, rgba(147, 197, 253, 0.04) 0%, transparent 70%),
        radial-gradient(circle 2px at 10% 30%, rgba(147, 197, 253, 0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 25% 70%, rgba(59, 130, 246, 0.4) 0%, transparent 100%),
        radial-gradient(circle 2px at 45% 20%, rgba(147, 197, 253, 0.25) 0%, transparent 100%),
        radial-gradient(circle 1px at 60% 80%, rgba(96, 165, 250, 0.35) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 75% 40%, rgba(147, 197, 253, 0.2) 0%, transparent 100%),
        radial-gradient(circle 1px at 90% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 100%);
    pointer-events: none;
    animation: headerStarsTwinkle 8s ease-in-out infinite alternate;
}

@keyframes headerStarsTwinkle {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Goldene Akzentlinie unten */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.3) 20%, 
        rgba(212, 175, 55, 0.6) 50%, 
        rgba(212, 175, 55, 0.3) 80%, 
        transparent 100%
    );
    pointer-events: none;
}

.header .container {
    position: relative;
    z-index: 1;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 0.6rem 0;
}

/* ---- Guild Brand / Logo ---- */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    padding: 0.4rem 0;
}

.nav-brand .icon {
    width: 28px;
    height: 28px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
    transition: all var(--transition-slow) ease;
}

.nav-brand:hover .icon {
    color: #f0d060;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
    transform: scale(1.1);
}

.guild-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.guild-name-main {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #d4af37 0%, #f5e17d 30%, #d4af37 60%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.guild-name-sub {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.5);
    font-weight: 500;
    margin-top: 2px;
}

/* ---- Guild Logo ---- */
.guild-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    object-fit: cover;
    padding: 0;
    background: #080e1a;
    box-shadow: 0 0 12px rgba(30, 58, 138, 0.2);
    transition: all var(--transition-slow) ease;
    flex-shrink: 0;
}

.nav-brand:hover .guild-logo {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

/* Utility: Element ausblenden (ersetzt inline style="display:none") */
.nav-hidden {
    display: none !important;
}

/* ---- Navigation Menu ---- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(203, 213, 225, 0.85);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all var(--transition-normal) ease;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.08);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--red);
    border-radius: 9px;
    margin-left: 4px;
}

.nav-link .icon {
    transition: all var(--transition-normal) ease;
}

.nav-link:hover .icon {
    filter: drop-shadow(0 0 4px currentColor);
    transform: scale(1.1);
}

/* Aktiver Nav-Link Indikator */
.nav-link.active,
.nav-menu li a[href]:focus {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Separator zwischen Nav-Gruppen */
.nav-separator {
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 0.25rem;
}


/* === components/buttons.css === */
/* ============================================
   BUTTONS - Alliance Design System
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    color: white;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-error, .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-error:hover:not(:disabled), .btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.btn-info {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}

.btn-outline-primary {
    background: transparent;
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.btn-outline-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

.btn-outline-danger {
    background: transparent;
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-outline-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: var(--red);
}

.btn-outline-warning {
    background: transparent;
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.btn-outline-warning:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
}

.btn-outline-info {
    background: transparent;
    border-color: rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.btn-outline-info:hover:not(:disabled) {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
}

.btn-outline-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-outline-light:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}


/* === components/cards.css === */
/* ============================================
   GLOBAL CARD STYLES - Einheitliches System
   Ein System für alle Cards auf allen Seiten
   ============================================ */

/* Card Styles — Einheitliches System */
.card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--text-primary);
}

.card:last-child {
    margin-bottom: 0;
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(20, 37, 84, 0.5) 100%);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    pointer-events: none;
}

.card-header h2,
.card-header h3,
.card-header .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Card Body */
.card-body {
    padding: 1rem;
    color: var(--text-secondary);
}

/* Header Actions */
.card-header .header-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.toggle-with-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-help-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Kein Hover-Effekt für spezielle Cards */
.calendar-card:hover {
    transform: none;
}


/* === components/tables.css === */
/* ============================================
   TABLES - Alliance Design
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th,
.table td {
    padding: 0.6rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: transparent;
}

.table th {
    background: rgba(30, 58, 138, 0.15);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}


/* === components/forms.css === */
/* ============================================
   FORMS - Alliance Design
   ============================================ */
.form-group {
    margin-bottom: 0.85rem;
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--focus-ring);
    background: var(--bg-input-focus);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Dropdown option contrast fix */
select,
.form-select,
select.form-control {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

select option,
.form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.4rem 0.5rem;
}

select option:checked,
.form-select option:checked {
    background-color: var(--primary-blue);
    color: #ffffff;
}

select option:hover,
.form-select option:hover {
    background-color: var(--primary-blue);
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrapper .form-input,
.password-input-wrapper .form-control {
    padding-right: 3rem;
    width: 100%;
}
.password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    padding: 0.25rem;
    color: var(--text-secondary);
}
.password-toggle:hover {
    opacity: 1;
}


/* === components/alerts.css === */
/* ============================================
   ALERTS - Alliance Design (Dark-only)
   ============================================ */
.alert {
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
}

/* Enhanced Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 14, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}


/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) ease;
}

.slide-in-up {
    animation: slideInUp var(--transition-normal) ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal) ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: all var(--transition-normal) ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}


/* === components/badges.css === */
/* ============================================
   BADGES - Alliance Design
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
}

.badge-success, .bg-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.badge-warning, .bg-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

.badge-info, .bg-info {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.25);
}

.badge-tank, .bg-tank {
    background: rgba(105, 204, 240, 0.15);
    color: #69CCF0;
    border-color: rgba(105, 204, 240, 0.25);
}

.badge-heal, .bg-heal {
    background: rgba(0, 255, 150, 0.15);
    color: #00FF96;
    border-color: rgba(0, 255, 150, 0.25);
}

.badge-dps, .bg-dps {
    background: rgba(196, 30, 58, 0.15);
    color: #C41E3A;
    border-color: rgba(196, 30, 58, 0.25);
}


/* === components/modals-bootstrap.css === */
/* Modal Enhancements - Bootstrap 5 Modal Support */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    pointer-events: none;
}

.modal.show .modal-dialog {
    transform: none;
    pointer-events: auto;
}

.modal-dialog-lg {
    max-width: 800px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: var(--text-secondary);
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: var(--radius-xs);
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.85);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: var(--radius-xs);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}


/* === components/modals.css === */
/* ============================================
   GLOBAL MODAL STYLES - Einheitliches Design
   Verwendet gleiche Farben wie .card
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    pointer-events: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    will-change: opacity;
}

/* Alle Kinder von nicht-aktiven Modals sind nicht klickbar */
.modal-overlay * {
    pointer-events: none;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Alle Kinder von aktiven Modals sind klickbar */
.modal-overlay.active * {
    pointer-events: auto;
}

.modal-overlay-high {
    z-index: 10000;
}

/* Modal Dialog - Grundgerüst */
.modal-dialog {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    box-shadow: var(--shadow-modal);
    pointer-events: auto;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transform: translateY(8px) translateZ(0);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
    will-change: transform, opacity;
    contain: layout style;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

/* Modal Größen */
.modal-dialog.modal-sm {
    max-width: 350px;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-dialog.modal-xl {
    max-width: 1000px;
}

.modal-dialog.raid-modal-wide {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(20, 37, 84, 0.5) 100%);
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    pointer-events: none;
}

.modal-header h2,
.modal-header h3,
.modal-header .modal-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Modal Body - Konsistentes Padding */
.modal-body,
.modal-dialog > form,
.modal-dialog > div:not(.modal-header):not(.modal-footer) {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text-secondary);
}

/* Wenn Form direkt im modal-dialog */
.modal-dialog > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-dialog > form > *:not(button):not(.form-actions):not(.modal-footer) {
    padding-left: 1rem;
    padding-right: 1rem;
}

.modal-dialog > form > *:first-child {
    padding-top: 1rem;
}

/* Modal Footer */
.modal-footer,
.form-actions,
.modal-actions,
.modal-dialog form > div:last-child:has(button) {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    margin-top: auto;
}


/* HR in Modals */
.modal-dialog hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.75rem 0;
}

/* Checkbox in Modals */
.modal-dialog .form-check,
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.modal-dialog .form-check input[type="checkbox"],
.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue-light);
    cursor: pointer;
}

/* Hint text in Modals */
.modal-dialog .text-muted {
    color: var(--text-muted) !important;
}

/* Table action buttons spacing in Modals */
.modal-dialog td .btn + .btn {
    margin-left: 0.35rem;
}

/* Admin action buttons in Raid Detail */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Instance List in Modal */
.instance-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instance-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Modal Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Form-Elemente in Modals */
.modal-dialog .form-group,
.modal-dialog .mb-3 {
    margin-bottom: 1rem;
}

.modal-dialog .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-dialog .form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
}

/* Modal-Inputs: Nur bare HTML-Elemente brauchen Basis-Styling (erbt von globalen .form-* Regeln) */
.modal-dialog input[type="text"],
.modal-dialog input[type="password"],
.modal-dialog input[type="date"],
.modal-dialog input[type="time"],
.modal-dialog input[type="number"],
.modal-dialog textarea,
.modal-dialog select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.modal-dialog input:focus,
.modal-dialog select:focus,
.modal-dialog textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--focus-ring);
}

/* Form Grid Layouts */
.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-compact .form-group {
    margin-bottom: 0.5rem;
}

.form-compact .form-row {
    margin-bottom: 0.5rem;
}

.form-compact .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

/* Raid Multi-Datum Zeilen */
.raid-date-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.raid-date-row .form-input {
    flex: 1;
}

.raid-date-row .raid-time-input {
    flex: 0 0 110px;
}

.raid-date-row .raid-date-remove {
    flex-shrink: 0;
}

.autocomplete-list {
    position: absolute;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    margin-top: 0.15rem;
}

.autocomplete-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

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

.autocomplete-item:hover {
    background: var(--bg-hover);
}

#loot-item-group {
    position: relative;
}


/* === components/utilities.css === */
/* ============================================
   Hero Section (Landing Page) - Alliance Design
   ============================================ */
.hero-section {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f5e17d 30%, #d4af37 60%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Stats Grid (Quick Stats, Overview)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-value-blue { color: var(--primary-blue-light); }
.stat-value-green { color: var(--green); }
.stat-value-gold { color: var(--gold); }
.stat-value-red { color: var(--red); }

.stat-label {
    color: var(--text-secondary);
}

/* ============================================
   List Items (Raids, Loot, Activities)
   ============================================ */
.list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-title {
    font-weight: 600;
}

.list-item-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.list-item-value {
    text-align: right;
    color: var(--text-secondary);
}

/* ============================================
   Filter Form Grid
   ============================================ */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-actions {
    grid-column: 1 / -1;
}

/* ============================================
   Charts Grid
   ============================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container h3 {
    margin-bottom: 1rem;
}

/* ============================================
   Margin & Spacing Utilities
   ============================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ============================================
   Text Utilities
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--green); }
.text-error { color: var(--red); }
.text-warning { color: var(--gold); }

.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.font-mono { font-family: monospace; }

/* ============================================
   Display Utilities
   ============================================ */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.hidden { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }

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

/* ============================================
   Width Utilities
   ============================================ */
.w-100 { width: 100%; }

/* ============================================
   Inline Spinner (Button Loading State)
   ============================================ */
.spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Calendar Container
   ============================================ */
.calendar-container {
    height: 500px;
    min-height: 400px;
}


/* === pages/auth.css === */
/* ============================================
   Auth Pages (Login, Register) - Alliance Design
   ============================================ */
.auth-container {
    max-width: 400px;
    margin: 3rem auto;
}

.auth-box {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.4;
    border-radius: 2px;
}

.auth-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f5e17d 30%, #d4af37 60%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.remember-me-group {
    margin-bottom: 0.5rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.remember-me-label span {
    line-height: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--link-color);
}


/* === pages/raids-calendar.css === */
/* ============================================
   Kalender-spezifische Styles
   ============================================ */
.page-container .calendar-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.page-container .calendar-card .card-body {
    flex: 1;
    padding: 0.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.page-container .calendar-card > .card-header {
    margin-bottom: 0;
}

.page-container .calendar-card > .card-header h2 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}


/* Seasons-spezifische Styles - nutzt globale page-container */

/* Seasons Grid */
.seasons-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    width: 100%;
}

/* Session Item - volle Breite */
.session-item {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    width: 100%;
}

.session-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--shadow-glow);
}

.session-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.session-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.session-item-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.session-item-roles {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.session-item-roles .role-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.session-item-roles .role-count small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.session-item-roles .role-count.total {
    margin-left: auto;
}

/* Info Box für Modals */
.info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--text-secondary);
}

/* FullCalendar kompaktere Darstellung */
#raid-calendar {
    max-height: calc(100vh - 180px);
    overflow: hidden;
}

#raid-calendar .fc {
    max-height: calc(100vh - 180px);
}

#raid-calendar .fc-view-harness {
    max-height: calc(100vh - 220px);
}

#raid-calendar .fc-daygrid-body {
    font-size: 0.85rem;
}

#raid-calendar .fc-daygrid-day {
    min-height: 60px;
}

#raid-calendar .fc-daygrid-body {
    height: auto;
}

#raid-calendar .fc-scrollgrid-sync-table {
    height: auto;
}

#raid-calendar .fc-daygrid-day-frame {
    min-height: 45px;
    max-height: 80px;
}

#raid-calendar .fc-toolbar {
    margin-bottom: 0.25rem;
    padding: 0;
}

#raid-calendar .fc-toolbar-title {
    font-size: 1rem;
}

#raid-calendar .fc-button {
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
}

#raid-calendar .fc-col-header-cell {
    padding: 0.2rem 0;
}

/* Body overflow für Raids-Seite */
body.raids-page {
    overflow: hidden;
}

/* Utility-Klassen für Flexbox Layout */
.flex-row {
    display: flex;
    flex-direction: row;
}

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

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

/* Raids-Seite spezifische Klassen */
.raids-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.raids-header-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.2s ease;
}

.raids-header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.raids-header-actions .btn-success {
    background: rgba(16, 185, 129, 0.8);
    border-color: rgba(16, 185, 129, 0.9);
}

.raids-header-actions .btn-success:hover {
    background: rgba(16, 185, 129, 1);
}

.raids-admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.raids-admin-buttons .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.raids-admin-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Verbesserte Calendar-Card */
.page-container .calendar-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-container .calendar-card .card-body {
    background: var(--bg-card);
}

/* FullCalendar Verbesserungen */
#raid-calendar .fc-toolbar-title {
    color: var(--text-primary);
    font-weight: 600;
}

#raid-calendar .fc-button {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.85rem !important;
    padding: 0.35rem 0.6rem !important;
    transition: all 0.2s ease !important;
}

#raid-calendar .fc-button:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--primary-blue-light) !important;
}

#raid-calendar .fc-button-active {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

#raid-calendar .fc-daygrid-day-number {
    color: var(--text-primary);
    font-weight: 500;
}

#raid-calendar .fc-col-header-cell-cushion {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

#raid-calendar .fc-daygrid-day.fc-day-today {
    background: rgba(59, 130, 246, 0.1) !important;
}

#raid-calendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#raid-calendar {
    --fc-event-bg-color: transparent;
    --fc-event-border-color: transparent;
}

#raid-calendar .fc-event {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    cursor: pointer;
    color: #ffffff !important;
}

#raid-calendar .fc-event:hover {
    background: rgba(0,0,0,0.2) !important;
}

#raid-calendar .fc-event .fc-event-title,
#raid-calendar .fc-event .fc-event-content,
#raid-calendar .fc-event-main {
    color: #ffffff !important;
}

#raid-calendar .fc-event .fc-event-meta {
    color: rgba(255, 255, 255, 0.85) !important;
}

#raid-calendar td.fc-day-has-raid .fc-daygrid-day-frame {
    position: static !important;
    background: transparent !important;
}

#raid-calendar td.fc-day-has-raid .fc-daygrid-day-top {
    position: relative;
    z-index: 3;
    display: none;
}

#raid-calendar td.fc-day-has-raid .fc-daygrid-day-top .fc-daygrid-day-number {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0;
}

#raid-calendar td.fc-day-has-raid .fc-daygrid-day-events {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

#raid-calendar td.fc-day-has-raid .fc-daygrid-event-harness {
    margin: 0 !important;
    flex: 1;
    display: flex;
}

#raid-calendar td.fc-day-has-raid .fc-daygrid-day-bottom {
    display: none;
}

#raid-calendar td.fc-day-has-raid .fc-event {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1;
    display: flex;
    align-items: stretch;
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-content {
    padding: 2px 6px 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-main {
    padding: 0 !important;
    display: flex;
    flex: 1;
}

#raid-calendar td.fc-day-has-raid .fc-event:hover {
    background: rgba(0,0,0,0.2) !important;
    transform: none;
    box-shadow: none;
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-title,
#raid-calendar td.fc-day-has-raid .fc-event .fc-event-meta {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-day {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
}

#raid-calendar td.fc-day-has-raid .fc-event .fc-event-meta {
    font-size: 0.7rem;
    color: #ffffff !important;
    opacity: 0.9;
    text-align: center;
}

/* Titel-Farbe nach Anmeldestatus */
#raid-calendar .fc-event .fc-event-title.fc-title-yes {
    color: #4ade80 !important;
}

#raid-calendar .fc-event .fc-event-title.fc-title-maybe {
    color: #facc15 !important;
}

#raid-calendar .fc-event .fc-event-title.fc-title-no {
    color: #f87171 !important;
}


/* === pages/raids.css === */
/* ============================================
   Raid Tooltip
   ============================================ */
.raid-tooltip {
    position: fixed;
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    max-width: 280px;
    pointer-events: none;
}

.raid-tooltip-title {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.raid-tooltip-subtitle {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 12px;
}

.raid-tooltip-grid {
    display: grid;
    gap: 6px;
    font-size: 0.85em;
}

.raid-tooltip-row {
    display: flex;
    justify-content: space-between;
}

.raid-tooltip-label {
    color: var(--text-secondary);
}

.raid-tooltip-value {
    color: var(--text-primary);
}

.raid-tooltip-roles {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    justify-content: center;
}

.raid-tooltip-role {
    text-align: center;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.raid-tooltip-role-value {
    font-weight: 700;
}

.raid-tooltip-role-label {
    font-size: 0.7em;
    color: var(--text-secondary);
}

.raid-tooltip-note {
    margin-top: 12px;
    padding: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    color: var(--text-secondary);
}

.raid-tooltip-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75em;
    color: var(--text-secondary);
}

/* ============================================
   Raid Details Modal
   ============================================ */
.raid-modal-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.raid-modal-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    flex: 1 1 auto;
    min-width: 120px;
}

.raid-modal-info-icon {
    font-size: 20px;
}

.raid-modal-info-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.raid-modal-info-value {
    color: var(--text-primary);
}

.raid-modal-roles {
    display: flex;
    gap: 8px;
}

.raid-modal-role {
    text-align: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    flex: 1;
}

.raid-modal-role-tank {
    border-left: 3px solid #69CCF0;
}

.raid-modal-role-heal {
    border-left: 3px solid #00FF96;
}

.raid-modal-role-dps {
    border-left: 3px solid #C41E3A;
}

.raid-modal-role-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.raid-modal-role-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.raid-modal-note {
    padding: 6px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.raid-modal-note-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.raid-modal-note-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Raid Signup - gleicher Stil wie Info/Rollen Cards */
.raid-modal-signup {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.raid-modal-signup-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signup-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signup-row .char-select-cards {
    flex: 1;
    min-width: 0;
}

.status-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-shrink: 0;
}

/* Platzhalter Char-Card (kein Main/Twink gesetzt) */
.char-card-placeholder {
    cursor: pointer;
}

.char-card-empty {
    border-style: dashed !important;
    opacity: 0.6;
}

.char-card-empty:hover {
    opacity: 1;
    border-color: var(--primary-blue-light) !important;
}

.char-card-empty .char-card-name {
    color: var(--text-muted);
    font-weight: 500;
}

.char-card-empty .char-card-details {
    color: var(--primary-blue-light);
    font-size: 0.6rem;
}

/* Char-Picker Modal */
.char-picker-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 320px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.char-picker-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(20, 37, 84, 0.5) 100%);
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.char-picker-body {
    padding: 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.char-picker-item {
    padding: 0.6rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.char-picker-item:hover {
    background: rgba(30, 58, 138, 0.15);
    border-color: var(--primary-blue-light);
}

.char-picker-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.char-picker-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.char-picker-create {
    padding: 0.25rem;
}

.char-create-field {
    margin-bottom: 0.35rem;
}

.char-create-field input,
.char-create-field select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.char-create-field input:focus,
.char-create-field select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    outline: none;
    box-shadow: var(--focus-ring);
    background: var(--bg-input-focus);
    color: var(--text-primary);
}

.char-create-field select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ============================================
   FullCalendar Event Content
   ============================================ */
.fc-event-content {
    padding: 2px;
    overflow: hidden;
    color: #ffffff;
}

.fc-event-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fc-event-meta {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.instance-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.instance-list-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.instance-img-preview {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instance-no-img {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xs);
    color: rgba(255, 255, 255, 0.25);
}

.instance-list-actions {
    display: flex;
    gap: 0.3rem;
}

.instance-image-preview-wrap {
    margin-top: 0.75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instance-image-preview-large {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

td.fc-day-has-raid {
    position: relative;
}

td.fc-day-has-raid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--raid-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

/* Split-Raid: 2 Instanzen diagonal geteilt (/ Diagonale: unten-links nach oben-rechts) */
td.fc-day-split-raid::before {
    clip-path: polygon(0 0, 0 100%, 100% 0);
}

td.fc-day-split-raid::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--raid-bg-image2);
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* Triple-Raid: 3 Instanzen nebeneinander (je ein Drittel) */
td.fc-day-triple-raid::before {
    clip-path: polygon(0 0, 33.33% 0, 33.33% 100%, 0 100%);
}

td.fc-day-triple-raid::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--raid-bg-image2);
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(33.33% 0, 66.66% 0, 66.66% 100%, 33.33% 100%);
}

td.fc-day-triple-raid .fc-daygrid-day-frame {
    position: relative;
}

td.fc-day-triple-raid .fc-daygrid-day-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--raid-bg-image3);
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(66.66% 0, 100% 0, 100% 100%, 66.66% 100%);
}

.fc-event-cancelled {
    opacity: 0.85;
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.fc-title-cancelled {
    text-decoration: line-through;
}

.raid-cancelled-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(239, 68, 68, 0.12);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 500;
}

.raid-cancelled-banner .icon {
    width: 16px;
    height: 16px;
    color: var(--red);
}

.raid-cancelled-title {
    color: var(--red) !important;
    font-weight: 600;
}

.raid-cancel-notice-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    line-height: 1.5;
}

.raid-cancel-notice-item:last-child {
    border-bottom: none;
}

.fc-event-signed-up {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 0.65em;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    text-shadow: none;
    flex-shrink: 0;
}

.fc-status-yes {
    background: #00FF96;
    color: #080e1a;
    box-shadow: 0 0 6px rgba(0, 255, 150, 0.5);
}

.fc-status-maybe {
    background: #d4af37;
    color: #080e1a;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.fc-status-no {
    background: #C41E3A;
    color: #ffffff;
    box-shadow: 0 0 6px rgba(196, 30, 58, 0.5);
}


/* === pages/profile.css === */
/* ============================================
   Profile Page Styles
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* .profile-card entfernt — nutzt jetzt .card System */

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}



.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* .content-section entfernt — nutzt jetzt .card System */

.characters-container {
    min-height: 100px;
}

/* ============================================
   Charakter-Cards - Modernes WoW-Design
   ============================================ */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.character-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    opacity: 0.6;
    transition: opacity var(--transition-slow) ease;
}

.character-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--shadow-glow);
}

.character-card:hover::before {
    opacity: 1;
}

/* Main-Charakter Highlight */
.character-card.char-main::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 1;
    height: 3px;
}

.character-card.char-main {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(145deg, rgba(31, 42, 26, 0.9) 0%, rgba(19, 29, 18, 0.9) 100%);
}

/* Twink Highlight */
.character-card.char-twink::before {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    opacity: 1;
    height: 3px;
}

.character-card.char-twink {
    border-color: rgba(6, 182, 212, 0.3);
    background: linear-gradient(145deg, rgba(23, 34, 49, 0.9) 0%, rgba(13, 26, 40, 0.9) 100%);
}

/* Card Header mit Name + Status Badge */
.char-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
    gap: 0.5rem;
}

.char-identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.char-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-realm {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.char-status-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.char-status-badge.badge-main {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.char-status-badge.badge-twink {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Card Body - Klasse + Rolle */
.char-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 1rem 0.75rem;
}

.char-class-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.char-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.char-role-tag.role-tank {
    background: rgba(105, 204, 240, 0.12);
    color: #69CCF0;
    border: 1px solid rgba(105, 204, 240, 0.2);
}

.char-role-tag.role-heal {
    background: rgba(0, 255, 150, 0.12);
    color: #00FF96;
    border: 1px solid rgba(0, 255, 150, 0.2);
}

.role-select {
    appearance: auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-fast) ease;
}
.role-select:hover, .role-select:focus {
    border-color: rgba(59, 130, 246, 0.5);
    outline: none;
    box-shadow: var(--focus-ring);
}
.role-select.role-tank { color: #69CCF0; border-color: rgba(105, 204, 240, 0.3); }
.role-select.role-heal { color: #00FF96; border-color: rgba(0, 255, 150, 0.3); }
.role-select.role-dps { color: #C41E3A; border-color: rgba(196, 30, 58, 0.3); }

.char-role-tag.role-dps {
    background: rgba(196, 30, 58, 0.12);
    color: #C41E3A;
    border: 1px solid rgba(196, 30, 58, 0.2);
}

/* Card Footer - Aktionen */
.char-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.char-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.char-actions .btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.char-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.char-actions .btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.char-actions .btn-icon.btn-warning:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.char-actions .btn-icon.btn-info:hover {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.3);
}

.char-actions .char-clear-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.char-actions .char-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.activities-container {
    min-height: 80px;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.activity-item:hover {
    border-color: var(--primary-blue);
}

.activity-icon {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.activity-text {
    flex: 1;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-placeholder p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}


/* === pages/seasons-detail.css === */
/* ============================================
   Session Detail Styles (v2)
   ============================================ */
#sessionDetailModal .modal-dialog {
    max-width: 1050px;
    width: 95vw;
}

.sheet-layout {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    gap: 0.75rem;
    min-height: 300px;
}

.sheet-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.raid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.raid-table thead {
    background: var(--bg-tertiary);
}

.raid-table th {
    padding: 0.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    border-bottom: 2px solid var(--border-color);
}

.raid-table th:nth-child(3),
.raid-table td.cell-role { text-align: center; width: 50px; }
.raid-table th:nth-child(5),
.raid-table td.cell-edit { width: 70px; text-align: center; white-space: nowrap; }
.cell-edit { display: flex; gap: 4px; justify-content: center; align-items: center; }

.raid-row {
    border-left: 3px solid transparent;
}

.raid-row.tank { background: rgba(239, 68, 68, 0.15); border-left-color: var(--red); }
.raid-row.heal { background: rgba(34, 197, 94, 0.15); border-left-color: var(--green); }
.raid-row.dps { background: rgba(59, 130, 246, 0.15); border-left-color: var(--primary-blue-light); }
.raid-row.empty { background: var(--bg-tertiary); }

.raid-row.own-row {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.raid-row {
    border-bottom: 1px solid var(--border-color);
}

.raid-row td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    line-height: 1.4;
}

.cell-edit {
    white-space: nowrap;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.cell-name { font-weight: 500; color: var(--text-primary); }
.cell-name.class-krieger, .cell-name.class-warrior { color: #c79c6e !important; }
.cell-name.class-paladin { color: #f58cba !important; }
.cell-name.class-jäger, .cell-name.class-hunter { color: #abd473 !important; }
.cell-name.class-schurke, .cell-name.class-rogue { color: #fff569 !important; }
.cell-name.class-priester, .cell-name.class-priest { color: #ffffff !important; }
.cell-name.class-todesritter, .cell-name.class-deathknight { color: #c41e3a !important; }
.cell-name.class-schamane, .cell-name.class-shaman { color: #0070de !important; }
.cell-name.class-magier, .cell-name.class-mage { color: #69ccf0 !important; }
.cell-name.class-hexenmeister, .cell-name.class-warlock { color: #9482ca !important; }
.cell-name.class-mönch, .cell-name.class-monk { color: #00ff96 !important; }
.cell-name.class-druide, .cell-name.class-druid { color: #ff7d0a !important; }
.cell-name.class-dämonenjäger, .cell-name.class-demonhunter { color: #a330c9 !important; }
.cell-name.class-rufer, .cell-name.class-evoker { color: #33937f !important; }
.cell-class { color: var(--text-secondary); }
.cell-notes { color: var(--text-muted); font-size: 0.8rem; }
.cell-edit button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    opacity: 1;
    font-size: 0.75rem;
    padding: 1px 4px;
    line-height: 1.2;
    color: var(--text-primary);
    transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease;
}
.cell-edit button:hover {
    background: var(--bg-hover);
    border-color: rgba(59, 130, 246, 0.5);
}
.cell-edit .btn-danger-icon {
    color: #e57373;
}
.cell-edit .btn-danger-icon:hover {
    background: rgba(229, 115, 115, 0.15);
    border-color: #e57373;
}

.sheet-right-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.stats-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
}

.stats-row.tank { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.stats-row.heal { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.stats-row.dps { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.stats-row.active { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.stats-divider {
    border: none !important;
    border-top: 1px solid var(--text-muted) !important;
    margin: 0.4rem 0;
}

.detail-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signup-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-btn {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.form-group-btn .btn {
    flex: 1;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .sheet-layout {
        grid-template-columns: 1fr;
    }
    .sheet-right { 
        flex-direction: row; 
        order: -1;
    }
    .stats-box { flex: 1; }
}

/* Raid Modal Body - Flex-Container für durchgehendes Spaltenlayout */
.raid-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Raid Modal - Zweispaltiges Layout */
.raid-modal-columns {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.raid-modal-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

.raid-modal-right {
    flex: 0 0 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.raid-modal-right .raid-signups-admin {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.raid-modal-right table {
    font-size: 0.85rem;
}

.raid-modal-right th,
.raid-modal-right td {
    padding: 0.4rem 0.5rem;
}

@media (max-width: 900px) {
    .raid-modal-columns {
        flex-direction: column;
    }
    /* Raid-Infos (left) zuerst, dann Anmeldungen (right) */
    .raid-modal-left {
        order: 0;
    }
    .raid-modal-right {
        order: 1;
    }
}

/* Raid Modal Layout */
.raid-modal-wide {
    max-width: 800px;
    width: 95%;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}


/* Signup List Styles */
.signup-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.signup-list-item {
    display: flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xs);
    gap: 0.5rem;
}

.signup-list-icon {
    font-size: 0.9rem;
}

.signup-list-name {
    flex: 1;
    min-width: 80px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signup-list-status {
    font-size: 0.9rem;
}

.signup-list-status.status-yes { color: var(--green); }
.signup-list-status.status-maybe { color: var(--gold); }
.signup-list-status.status-no { color: var(--red); }

.signup-list-select {
    padding: 0.05rem 0.2rem;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: var(--radius-xs);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    height: 22px;
}

.signup-list-delete {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
}

.signup-list-delete:hover {
    background: #dc2626;
}

/* User Signup Status */
.user-signup-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-signup-icon {
    font-size: 1.25rem;
}

.user-signup-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-signup-select {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* .modal-overlay-high — definiert oben bei Modal Styles */

/* Flex Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column-gap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Nav Settings List */
.nav-settings-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0 0.75rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-settings-header span {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.nav-settings-header span:first-child {
    justify-content: flex-start;
}

.nav-settings-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.nav-settings-label {
    font-size: 1rem;
}

.text-small {
    font-size: 0.85rem;
}

/* Character Selection Cards */
.char-select-cards {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.char-card {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
    position: relative;
}

.char-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.char-card-content {
    padding: 0.75rem 0.5rem;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.2s ease;
    border-top: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.char-card input[type="radio"]:checked + .char-card-content {
    border-color: var(--primary-blue-light);
    border-top-color: var(--primary-blue-light);
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.15) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.char-card-signed-up .char-card-content {
    border-color: var(--green) !important;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, var(--bg-tertiary) 100%) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.4) !important;
}

.char-card-signed-up .char-card-badge {
    color: var(--green);
    background: rgba(16, 185, 129, 0.15);
}

.char-card:hover .char-card-content {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.char-card-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    line-height: 1.4;
    text-align: center;
}

.char-card-twink .char-card-badge {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
}

.char-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.char-card-details {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.char-card-role {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
    width: 100%;
    text-align: center;
}

.twink-select {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.char-loading {
    color: var(--text-muted);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
}

/* Signup Inline Layout */
.signup-inline {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.status-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.status-btn input[type="radio"] {
    display: none;
}

.status-btn:hover {
    background: var(--bg-tertiary);
}

.status-btn.status-yes:has(input:checked) {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--green);
    color: var(--green);
}

.status-btn.status-maybe:has(input:checked) {
    background: rgba(245, 158, 11, 0.3);
    border-color: var(--gold);
    color: var(--gold);
}

.status-btn.status-no:has(input:checked) {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--red);
    color: var(--red);
}

/* Character Card Highlights - siehe oben im Charakter-Cards Abschnitt */

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
}

.badge.bg-info {
    background: var(--primary-blue-light);
    color: white;
}

/* .profile-loot-section entfernt — nutzt jetzt .card System */

.recent-loot-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.loot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
}

.loot-name {
    color: var(--text-primary);
    font-weight: 500;
}

.loot-date {
    font-size: 0.7rem;
}


/* === pages/admin.css === */
/* ============================================
   Admin Page Styles
   ============================================ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Admin-Grid Card Layout */
.admin-grid .card {
    display: flex;
    flex-direction: column;
}

.admin-grid .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-grid .card-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex: 1;
}

.admin-grid .card-body .btn {
    align-self: flex-start;
}

/* Ensure all admin cards have equal height */
.admin-grid {
    align-items: stretch;
}

.admin-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-grid .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.users-table, .characters-table {
    width: 100%;
    margin-top: 1rem;
}

.users-table th, .characters-table th {
    text-align: left;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.users-table th.text-center, .characters-table th.text-center {
    text-align: center;
}

.users-table td, .characters-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Auto-Anmeldung User Management */
.auto-signup-current-users h5 {
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 1.5rem;
}

.auto-signup-users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.auto-signup-user-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
}

.auto-signup-user-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-blue);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}




/* === pages/loot.css === */
/* ============================================
   LOOT DETAIL
   ============================================ */
.list-item-clickable {
    cursor: pointer;
    transition: background var(--transition-fast) ease;
}

.list-item-clickable:hover {
    background: rgba(59, 130, 246, 0.06);
}

.loot-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.loot-detail-table td,
.loot-detail-table th {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.loot-detail-label {
    color: var(--text-muted);
    width: 120px;
    white-space: nowrap;
}

.loot-detail-rolls-header {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.loot-detail-rolls-head th {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
}

.loot-detail-rolls td {
    font-size: 0.82rem;
}

.loot-detail-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Wowhead Tooltip Links */
.list-item a[href*="wowhead.com"],
.loot-detail-title a[href*="wowhead.com"],
#loot-detail-title a[href*="wowhead.com"] {
    text-decoration: none;
    cursor: pointer;
}

.list-item a[href*="wowhead.com"]:hover {
    text-decoration: underline;
}

/* Loot Pagination */
.loot-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.loot-pagination .form-select {
    width: auto;
    min-width: 0;
}

#loot-pager {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
}

.loot-pager-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.loot-page-dots {
    padding: 0 0.2rem;
    color: var(--text-muted);
}

/* Loot Rolls Section (inline im Formular) */
.loot-rolls-section {
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
}

.loot-rolls-section .form-label {
    margin-bottom: 0.5rem;
}

.loot-rolls-section #rolls-list {
    max-height: 40vh;
}

/* Roll Winner Badge */
.roll-row-winner {
    position: relative;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
    border-radius: 6px;
    padding-top: 1.4rem !important;
}

.roll-winner-badge {
    position: absolute;
    top: 2px;
    left: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgb(34, 197, 94);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   LOOT IMPORT
   ============================================ */
.import-code-textarea {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.import-actions {
    margin-top: 1rem;
}

.import-preview-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
}

.import-preview-item:last-child {
    margin-bottom: 0;
}

.import-preview-header {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.import-preview-rolls {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.import-preview-rolls ul {
    margin: 0.25rem 0 0 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.import-preview-rolls li {
    padding: 0.15rem 0;
}


/* === pages/chat.css === */
/* ========================================
   Chat
   ======================================== */

.chat-layout {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 140px);
}

/* Chat-Card: Layout-Erweiterung für .card */
.chat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-sidebar {
    position: absolute;
    left: calc(100% + 1rem);
    top: 0;
    width: 180px;
}

/* Chat-Channels nutzt .card — keine Extra-Styles nötig */

/* Chat-Channels Header: Extras für .card-header */
.chat-channels .chat-channels-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    justify-content: center;
    gap: 0.4rem;
}

.chat-channels-title .icon {
    width: 14px;
    height: 14px;
}

.chat-channels-list {
    display: flex;
    flex-direction: column;
    padding: 0.35rem;
}

.chat-channel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    text-align: left;
    width: 100%;
}

.chat-channel-item .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.chat-channel-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.chat-channel-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #7cacf8;
}

.chat-channel-item.active .icon {
    opacity: 1;
}

.chat-channel-system .icon {
    color: #f7941d;
}

.chat-channel-system.active {
    background: rgba(247, 148, 29, 0.12);
    color: #f7941d;
}

.chat-channel-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-channel-badge {
    display: none;
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #5865f2;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    flex-shrink: 0;
}

.chat-channel-badge.visible {
    display: inline-block;
}

.chat-channel-system .chat-channel-badge {
    background: #f7941d;
}

.chat-input-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.chat-announcements {
    flex-shrink: 0;
}

.chat-ann-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(247, 181, 56, 0.08);
    border-bottom: 1px solid rgba(247, 181, 56, 0.15);
}

.chat-ann-icon {
    flex-shrink: 0;
    color: #f7b538;
    margin-top: 1px;
}

.chat-ann-icon .icon {
    width: 16px;
    height: 16px;
}

.chat-ann-content {
    flex: 1;
    min-width: 0;
}

.chat-ann-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.chat-ann-meta {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.chat-ann-delete {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: var(--radius-xs);
    opacity: 0.5;
    transition: all var(--transition-fast) ease;
}

.chat-ann-delete:hover {
    opacity: 1;
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.chat-ann-delete .icon {
    width: 14px;
    height: 14px;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-announce-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast) ease;
    display: flex;
    align-items: center;
}

.chat-announce-btn:hover {
    color: #f7b538;
    border-color: rgba(247, 181, 56, 0.3);
    background: rgba(247, 181, 56, 0.08);
}

.chat-announce-btn .icon {
    width: 16px;
    height: 16px;
}

.chat-announce-modes {
    display: flex;
    gap: 1rem;
}

.chat-announce-mode {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.chat-announce-duration {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Chat-Header nutzt .card-header — nur flex-shrink extra */
.chat-header-actions-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-actions-wrap h2 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-online-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-loading,
.chat-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.chat-date-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.chat-date-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.chat-date-divider span {
    background: var(--bg-card);
    padding: 0 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 80%;
}

.chat-msg-own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.chat-msg-own .chat-msg-avatar {
    display: none;
}

.chat-msg-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-msg-own .chat-msg-content {
    align-items: flex-end;
}

.chat-msg-name {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-left: 0.5rem;
    font-weight: 600;
}

.chat-msg-own .chat-msg-name {
    display: none;
}

.chat-msg-bubble {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px 16px 16px 4px;
    padding: 0.5rem 0.85rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    word-break: break-word;
    max-width: 100%;
}

.chat-msg-own .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary-blue), #4f6ef7);
    border-radius: 16px 16px 4px 16px;
}

/* WarcraftLogs Bot Embed */
.chat-msg-bot {
    justify-content: center;
    align-self: center;
    max-width: 100%;
    padding: 0.5rem 0;
}

.chat-msg-bot .wcl-embed {
    display: flex;
    max-width: 480px;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(30, 33, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wcl-embed-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #e45d20, #f7941d);
}

.wcl-embed-body {
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wcl-embed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wcl-icon {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-xs);
}

.wcl-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f7941d;
    letter-spacing: 0.02em;
}

.wcl-embed-header .chat-msg-time {
    margin-left: auto;
}

.wcl-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #7cacf8;
    text-decoration: none;
    line-height: 1.3;
}

.wcl-title:hover {
    text-decoration: underline;
    color: #a0c4ff;
}

.wcl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.wcl-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.wcl-meta-item .icon {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

.wcl-bosses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
}

.wcl-boss {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.wcl-boss-kill {
    color: #4ade80;
}

.wcl-boss-wipe {
    color: #f87171;
}

.wcl-stats {
    display: flex;
    gap: 0.75rem;
}

.wcl-stat {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-xs);
}

.wcl-stat-kills {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.wcl-stat-wipes {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.wcl-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #f7941d;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast) ease;
}

.wcl-link:hover {
    color: #ffb347;
    text-decoration: underline;
}

.wcl-link .icon {
    width: 14px;
    height: 14px;
}

.chat-emoji-inline {
    height: 1.25em;
    width: 1.25em;
    vertical-align: -0.25em;
    display: inline;
    margin: 0 1px;
}

.chat-msg-text {
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-wrap;
    color: #fff;
}

.chat-msg-time {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    align-self: flex-end;
    line-height: 1;
}

.chat-msg-own .chat-msg-time {
    color: rgba(255, 255, 255, 0.6);
}

.chat-msg-edited {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.chat-msg-actions {
    display: none;
    gap: 0.3rem;
    margin-left: 0.5rem;
    align-items: center;
}

.chat-msg:hover .chat-msg-actions {
    display: inline-flex;
}

.chat-msg-action-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-msg-action-btn .icon {
    width: 13px;
    height: 13px;
}

.chat-edit-btn {
    color: var(--accent-gold);
}

.chat-edit-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.chat-delete-btn {
    color: #f87171;
}

.chat-delete-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: #f87171;
    color: #f87171;
}

.chat-edit-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 220px;
    margin-top: 0.5rem;
}

.chat-edit-input {
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.chat-edit-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--focus-ring);
}

.chat-edit-buttons {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.chat-edit-buttons .btn {
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-edit-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #4f6ef7);
    border: none;
    color: #fff;
}

.chat-edit-buttons .btn-primary:hover {
    filter: brightness(1.1);
}

.chat-edit-buttons .btn-secondary {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.chat-edit-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
}

.chat-edit-buttons .icon {
    width: 14px;
    height: 14px;
}

.chat-msg.editing .chat-msg-actions {
    display: none !important;
}

.chat-input-area {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.chat-typing-indicator {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0 0.5rem 0.5rem;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-typing-dots {
    display: inline-flex;
    gap: 2px;
}

.chat-typing-dots span {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.chat-input {
    flex: 1;
    border-radius: 20px !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.9rem;
    transition: box-shadow 0.2s ease;
}

.chat-input:focus {
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.3);
}

.chat-emoji-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-emoji-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.chat-emoji-btn .icon {
    width: 20px;
    height: 20px;
}

.chat-send-btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast) ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn .icon {
    width: 16px;
    height: 16px;
}

/* @keyframes spin + .icon-spin — definiert am Anfang der Datei */

/* Chat: Nachrichten-Gruppen (gleicher User hintereinander) */
.chat-msg-group-cont .chat-msg-avatar,
.chat-msg-group-cont .chat-msg-name {
    visibility: hidden;
}

.chat-msg-group-cont .chat-msg-avatar {
    width: 32px;
}

.chat-msg-group-start {
    margin-top: 0.75rem;
}

/* Fluent Emoji Picker (Teams-Style) */
.chat-emoji-picker-wrapper {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    display: none;
    z-index: 100;
}

.chat-emoji-picker-wrapper.active {
    display: block;
}

.fluent-emoji-picker {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    width: 340px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fluent-emoji-header {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fluent-emoji-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fluent-emoji-search:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--focus-ring);
}

.fluent-emoji-search::placeholder {
    color: var(--text-muted);
}

.fluent-emoji-tabs {
    display: flex;
    padding: 0.35rem 0.5rem;
    gap: 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.fluent-emoji-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.4rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast) ease;
    opacity: 0.6;
}

.fluent-emoji-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.85;
}

.fluent-emoji-tab.active {
    background: rgba(59, 130, 246, 0.2);
    opacity: 1;
}

.fluent-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}

.fluent-emoji-item {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.12s ease, transform 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.fluent-emoji-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fluent-emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.15);
}

.fluent-emoji-item:active {
    transform: scale(0.95);
}

/* @Mention Autocomplete Dropdown */
.chat-mention-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.4rem;
    display: none;
    z-index: 101;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-height: 240px;
    overflow-y: auto;
    padding: 0.3rem;
}

.chat-mention-dropdown.active {
    display: block;
}

.chat-mention-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s ease;
}

.chat-mention-item:hover,
.chat-mention-item.active {
    background: rgba(99, 102, 241, 0.15);
}

.chat-mention-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.chat-mention-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* @Mention Highlights in Nachrichten */
.chat-mention {
    color: #7cacf8;
    background: rgba(99, 102, 241, 0.12);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
    cursor: default;
}

.chat-mention-self {
    color: #f7b538;
    background: rgba(247, 181, 56, 0.12);
}

/* Links in Nachrichten */
.chat-link {
    color: #7cacf8;
    text-decoration: none;
    word-break: break-all;
}

.chat-link:hover {
    text-decoration: underline;
    color: #a0c4ff;
}

/* YouTube Vorschau */
.chat-yt-preview {
    display: flex;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    margin-top: 0.35rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    max-width: 360px;
}

.chat-yt-preview:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 0, 0, 0.25);
    text-decoration: none;
}

.chat-yt-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.chat-yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.chat-yt-preview:hover .chat-yt-play {
    opacity: 1;
}

.chat-yt-play svg {
    width: 28px;
    height: 28px;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.chat-yt-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    min-width: 0;
}

.chat-yt-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-yt-domain {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #ff0000;
    opacity: 0.8;
}

.chat-yt-domain svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Bild-Upload Button */
.chat-upload-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-upload-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.chat-upload-btn.uploading {
    opacity: 0.5;
    pointer-events: none;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.3; }
}

/* Bild in Nachrichten */
.chat-msg-image {
    max-width: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    margin: 0.2rem 0;
    transition: opacity 0.15s ease;
}

.chat-msg-image:hover {
    opacity: 0.85;
}

.chat-msg-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
}

/* Drag & Drop Overlay */
.chat-dragover {
    outline: 2px dashed rgba(99, 102, 241, 0.5);
    outline-offset: -4px;
    background: rgba(99, 102, 241, 0.04);
}

/* Lightbox */
.chat-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.chat-lightbox.active {
    display: flex;
}

.chat-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.chat-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 1;
}

.chat-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* === pages/home.css === */
/* ============================================
   Homepage - Aktuelle Raids Cards
   ============================================ */
.upcoming-raids-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.upcoming-raid-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition-normal) ease, transform var(--transition-fast) ease, box-shadow var(--transition-normal) ease;
    overflow: hidden;
}

.upcoming-raid-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.upcoming-raid-card.raid-cancelled {
    opacity: 0.55;
}

.upcoming-raid-card.raid-cancelled:hover {
    opacity: 0.75;
}

/* Instance image header */
.upcoming-raid-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-raid-img-placeholder {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--primary-blue-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* Dual instance images (side by side) */
.upcoming-raid-img-dual {
    display: flex;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-raid-img-half {
    width: 50%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Triple instance images (side by side, 3 images) */
.upcoming-raid-img-triple {
    display: flex;
    width: 100%;
    height: 80px;
    border-bottom: 1px solid var(--border-color);
}

.upcoming-raid-img-third {
    width: 33.333%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Content area */
.upcoming-raid-content {
    padding: 0.65rem 0.75rem 0.75rem;
}

/* Title row: name + signup status */
.upcoming-raid-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.upcoming-raid-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-raid-status {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

/* Instance subtitle */
.upcoming-raid-instance {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Info grid: date, time, duration */
.upcoming-raid-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
}

.upcoming-raid-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.upcoming-raid-info-item .icon {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

/* Role badges row */
.upcoming-raid-roles {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.upcoming-raid-role {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 600;
}

.upcoming-raid-role .icon {
    width: 12px;
    height: 12px;
}

.upcoming-raid-role.role-tank .role-count { color: #69CCF0; }
.upcoming-raid-role.role-heal .role-count { color: #00FF96; }
.upcoming-raid-role.role-dps .role-count { color: #C41E3A; }

.upcoming-raid-role .role-label {
    color: var(--text-muted);
    font-weight: 400;
}

/* Participants total */
.upcoming-raid-participants {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.upcoming-raid-participants .icon {
    width: 12px;
    height: 12px;
}

.upcoming-raid-participants .participants-count {
    font-weight: 600;
    color: var(--text-primary);
}

/* Note */
.upcoming-raid-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.3rem 0.45rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.1rem;
}

/* Cancelled overlay */
.upcoming-raid-cancelled-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-xs);
    z-index: 2;
}

/* Hint footer */
.upcoming-raid-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.4rem;
    opacity: 0;
    transition: opacity var(--transition-fast) ease;
}

.upcoming-raid-card:hover .upcoming-raid-hint {
    opacity: 1;
}


/* === pages/misc.css === */
/* ============================================
   Character Sync Page
   ============================================ */
.sync-status-grid {
    margin-bottom: 1rem;
}

.sync-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 0.5rem 0;
}

.sync-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.sync-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sync-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sync-char-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sync-char-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, transform var(--transition-fast) ease;
}

.sync-char-item:hover {
    border-color: var(--border-hover);
    transform: translateX(2px);
}

.sync-char-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.sync-char-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.sync-char-details {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sync-char-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

/* ============================================
   Toggle Switch (Admin Navigation)
   ============================================ */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: all var(--transition-slow) ease;
    border-radius: 26px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform var(--transition-slow) ease;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--green);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Password Input Toggle — siehe oben bei "Password Toggle" */

/* ============================================
   Raid Signup Status Icons (Index/Calendar)
   ============================================ */
.signup-status-icon {
    font-size: 1.2rem;
}
.signup-status-icon.status-yes {
    color: #4ade80;
}
.signup-status-icon.status-maybe {
    color: #facc15;
}
.signup-status-icon.status-no {
    color: #f87171;
}
.signup-status-icon.status-none {
    color: #6b7280;
}

/* ============================================
   Char Picker (Raids)
   ============================================ */
.char-picker-hint {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.char-picker-create-btn {
    width: 100%;
    margin-top: 0.25rem;
}

/* ============================================
   Icon Color Utility (Character Sync)
   ============================================ */
.icon-connected {
    color: var(--green);
}

/* ============================================
   Signup Locked (15 Min vor Raid-Start)
   ============================================ */
.signup-locked {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-md);
    color: #f87171;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Twink-Toggle im Raid-Kalender Header
   ============================================ */
.twink-toggle {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}
.twink-toggle .toggle-label {
    margin-left: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    user-select: none;
}
.twink-toggle input:checked ~ .toggle-label {
    color: var(--green);
}

/* Gesperrte Twink-Card */
.char-card-locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.char-card-locked .char-card-name {
    color: #f87171;
}
.char-card-locked .char-card-details {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* ============================================
   Benutzergruppen - Rechte-Matrix
   ============================================ */
.perm-category {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.perm-category-title {
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}
.perm-items {
    padding: 0.25rem 0;
}
.perm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.75rem;
}
.perm-item:hover {
    background: rgba(255,255,255,0.02);
}
.perm-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.toggle-sm {
    transform: scale(0.8);
    transform-origin: right center;
}
.badge-system {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-radius: var(--radius-xs);
    margin-left: 0.35rem;
    vertical-align: middle;
}

.badge-ilvl {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-radius: var(--radius-xs);
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* ============================================
   ROLLS SYSTEM
   ============================================ */
.roll-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    align-items: center;
}

.roll-row .roll-player {
    flex: 2 1 0;
    min-width: 0;
    width: auto;
}

.roll-row .roll-random-name {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.roll-row .roll-type {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

.roll-row .roll-value {
    width: 70px;
    flex: 0 0 70px;
}

.roll-row .form-select,
.roll-row .form-input,
.modal-dialog .roll-row .form-select,
.modal-dialog .roll-row .form-input,
.modal-dialog .roll-row input[type="number"],
.modal-dialog .roll-row input[type="text"],
.modal-dialog .roll-row select {
    width: auto;
}

#rolls-rows {
    max-height: 50vh;
    overflow-y: auto;
}

.roll-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.15rem 0.15rem 0.15rem 0;
}

.roll-tag-remove {
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 0.15rem;
}

.roll-tag-remove:hover {
    color: var(--red);
}

.rolls-add-row {
    margin-top: 0.5rem;
}

.rolls-add-row .form-input {
    width: 70px;
    flex: 0 0 70px;
}

#rolls-list {
    max-height: 50vh;
    overflow-y: auto;
}

.rolls-empty {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.roll-delete {
    flex: 0 0 auto;
    padding: 0.2rem 0.45rem;
    line-height: 1;
    font-size: 1rem;
}



/* === pages/gildentreffen.css === */
/* ============================================
   GILDENTREFFEN
   ============================================ */

/* Participants column (countdown + participants stacked) */
.gt-col-participants {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gt-col-participants > .card {
    margin-bottom: 0;
}

.gt-col-participants .gt-card-participants {
    min-width: unset;
    max-width: unset;
}

/* Countdown */
.gt-countdown {
    text-align: center;
}

.gt-countdown-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gt-grid {
    display: grid;
    grid-template-columns: 3fr 2fr auto;
    gap: 1.5rem;
    align-items: start;
}

.gt-card-participants {
    min-width: 240px;
    max-width: 300px;
}

.gt-card-participants .card-header {
    gap: 0.5rem;
}

.gt-grid .card-body p:not(.text-muted) {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.gt-info-content {
    line-height: 1.7;
    word-wrap: break-word;
    color: var(--text-primary);
}

.gt-info-content h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-primary);
}

.gt-info-content ul,
.gt-info-content ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.gt-info-content li {
    color: var(--text-primary);
}

/* Editor Toolbar */
.gt-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.gt-toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.gt-toolbar-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.gt-toolbar-sep {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 4px 4px;
    align-self: center;
}

/* Editor Area */
.gt-editor-area {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--text-primary);
    line-height: 1.7;
    outline: none;
}

.gt-editor-area:focus {
    border-color: var(--primary);
}

.gt-editor-area.gt-no-bottom-radius {
    border-radius: 0;
}

/* Link Input Bar */
.gt-link-input {
    padding: 0.5rem;
    background: var(--bg-elevated, var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.gt-link-input .form-control-sm {
    background: var(--bg-primary, #1a1a2e);
    color: var(--text-primary);
    border-color: var(--primary);
}

.gt-link-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gt-link-input-row .form-control-sm {
    flex: 1;
}

/* Links in info content */
.gt-info-content a {
    color: var(--primary);
    text-decoration: underline;
}

.gt-info-content a:hover {
    color: var(--primary-hover, #60a5fa);
}

.gt-editor-area a {
    color: var(--primary);
    text-decoration: underline;
}

.gt-participants {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gt-participant {
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.gt-participant:last-child {
    border-bottom: none;
}

.gt-participant:hover {
    background: var(--bg-hover);
}

.gt-participant-name {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Poll */
.gt-poll-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.gt-poll-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.gt-poll-ended {
    opacity: 0.7;
}

.gt-poll-question {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.gt-poll-option {
    position: relative;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}

.gt-poll-option-selectable:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.gt-poll-option-voted {
    cursor: pointer;
}

.gt-poll-option-voted:hover {
    border-color: var(--primary);
}

.gt-poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius);
    transition: width 0.3s ease;
    pointer-events: none;
}

.gt-poll-option-mine {
    border-color: var(--primary);
}

.gt-poll-option-mine .gt-poll-bar {
    background: rgba(59, 130, 246, 0.25);
}

.gt-poll-option-text {
    position: relative;
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 1;
}

.gt-poll-option-pct {
    position: relative;
    float: right;
    color: var(--text-secondary);
    font-size: 0.8rem;
    z-index: 1;
}

.gt-poll-footer {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gt-poll-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gt-poll-option-row {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .gt-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gt-col-participants {
        grid-column: 1 / -1;
    }
    .gt-col-participants .gt-card-participants {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .gt-grid {
        grid-template-columns: 1fr;
    }
    .gt-col-participants .gt-card-participants {
        max-width: none;
    }
}


/* === responsive/desktop.css === */
/* ============================================
   Desktop Responsive (≥769px)
   Regeln die NUR auf Desktop gelten.
   Mobile-Regeln befinden sich in mobile.css
   ============================================ */
@media (min-width: 769px) {
    /* Mobile-Navigation auf Desktop verstecken */
    .hamburger-btn,
    .mobile-header-action,
    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }

    /* Header-Container breiter als Content, damit alle Nav-Links passen */
    .header .container {
        max-width: 1600px;
    }

    /* Gildenname darf auf Desktop nie umbrechen oder schrumpfen */
    .header .nav-brand {
        flex-shrink: 0;
    }

    .header .guild-name {
        white-space: nowrap;
    }
}


/* === responsive/mobile.css === */
/* ============================================
   Mobile Responsive — Tablet & Mobile (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* Desktop Navigation auf Mobile verstecken, Hamburger anzeigen */
    .header .nav-menu:not(.mobile-nav-drawer-menu) {
        display: none !important;
    }
    
    .header .nav {
        justify-content: space-between;
        gap: 0.5rem;
    }

    .header .nav-brand {
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
        gap: 0.5rem;
    }

    .header .guild-logo {
        width: 36px;
        height: 36px;
    }

    .header .guild-name {
        white-space: nowrap;
        overflow: hidden;
    }

    .header .guild-name-main {
        font-size: 1.2rem;
        letter-spacing: 0.06em;
    }

    .header .guild-name-sub {
        font-size: 0.55rem;
        letter-spacing: 0.18em;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .card {
        padding: 0.875rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    /* ========================================
       KALENDER - Quadratische Tageskacheln
       ======================================== */
    .fc {
        font-size: 0.75rem;
    }
    
    .fc .fc-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
        width: 100%;
        text-align: center;
        order: -1;
    }
    
    .fc .fc-button {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    .fc .fc-col-header-cell {
        padding: 0.3rem 0 !important;
    }
    
    .fc .fc-col-header-cell-cushion {
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    /* Kompakter Kalender auf Mobile */
    .fc .fc-daygrid-day-frame {
        min-height: 44px !important;
        padding: 2px;
    }
    
    .fc .fc-daygrid-day-top {
        justify-content: center;
    }
    
    .fc .fc-daygrid-day-top {
        flex: 0 0 auto;
        justify-content: center;
    }
    
    .fc .fc-daygrid-day-number {
        font-size: 0.75rem;
        padding: 1px 3px;
        font-weight: 500;
    }
    
    .fc .fc-daygrid-day-events {
        margin: 0 !important;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .fc .fc-daygrid-event-harness {
        margin: 0 !important;
    }
    
    .fc .fc-daygrid-event {
        font-size: 0.65rem !important;
        padding: 2px 3px !important;
        margin: 1px 0 !important;
        border-radius: 3px;
        line-height: 1.3;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        min-height: 28px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .fc .fc-event-title {
        font-weight: 600;
        font-size: 0.7rem;
    }
    
    .fc .fc-event-time {
        font-size: 0.6rem;
        opacity: 0.9;
    }
    
    .fc .fc-daygrid-more-link {
        font-size: 0.6rem !important;
    }
    
    /* Event-Inhalt besser sichtbar */
    .fc .fc-daygrid-day-events {
        overflow: visible !important;
    }
    
    /* ========================================
       MODALS - GLOBALE MOBILE VERSION
       Alle Modals: Fullscreen, scrollbar, Close sichtbar
       ======================================== */
    
    /* Bootstrap .modal */
    .modal {
        padding: 0 !important;
        align-items: flex-start !important;
    }
    
    .modal-dialog,
    .modal-dialog-lg,
    .modal-dialog-xl,
    .modal-dialog-scrollable,
    .modal-dialog-centered {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100vh !important;
    }
    
    .modal-content {
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    /* Custom .modal-overlay */
    .modal-overlay {
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    
    .modal-overlay .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    /* Modal Header - IMMER sichtbar oben */
    .modal-header,
    .modal-overlay .modal-header {
        padding: 0.75rem 1rem !important;
        flex-shrink: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background: var(--bg-secondary) !important;
        border-bottom: 1px solid var(--border-color) !important;
        min-height: 50px !important;
    }
    
    .modal-header h5, 
    .modal-header h3,
    .modal-header h2,
    .modal-title {
        font-size: 1rem !important;
        margin: 0 !important;
        flex: 1 !important;
    }
    
    /* Close Button - IMMER sichtbar */
    .modal-header .btn-close,
    .modal-header .modal-close,
    .modal-header button[class*="close"],
    .modal-header [data-bs-dismiss="modal"] {
        flex-shrink: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 101 !important;
    }
    
    /* Modal Body - Scrollbar */
    .modal-body,
    .raid-modal-body,
    .modal-overlay .modal-body {
        padding: 0.75rem 1rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 1 auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: none !important;
        min-height: 0 !important;
    }
    
    /* Modal Footer - IMMER sichtbar unten */
    .modal-footer,
    .modal-overlay .modal-footer {
        padding: 0.75rem 1rem !important;
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 100 !important;
        background: var(--bg-secondary) !important;
        border-top: 1px solid var(--border-color) !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        display: flex !important;
    }
    
    .modal-footer .btn,
    .form-actions .btn,
    .modal-actions .btn {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 0 !important;
        padding: 0.6rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    /* ========================================
       SPEZIFISCHE MODAL-INHALTE
       ======================================== */
    
    /* Raid Modal Columns */
    .raid-modal-columns {
        flex-direction: column !important;
        overflow: visible !important;
        min-height: auto !important;
        flex: none !important;
        gap: 0.75rem !important;
    }
    
    .raid-modal-left, 
    .raid-modal-right {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        flex: none !important;
    }
    
    /* Raid Info Cards */
    .raid-info-card {
        padding: 0.6rem !important;
    }
    
    .raid-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .raid-info-item {
        padding: 0.5rem !important;
    }
    
    .raid-role-stats {
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .raid-role-stat {
        flex: 1 !important;
        text-align: center !important;
        padding: 0.5rem !important;
    }
    
    /* Signup Liste */
    .signup-list {
        max-height: none !important;
    }
    
    .signup-list-item {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .signup-list-name {
        flex: 1 1 auto !important;
        min-width: 60px !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    .signup-list-select {
        flex-shrink: 1 !important;
        min-width: 45px !important;
        max-width: 60px !important;
    }
    
    .signup-list-actions {
        flex-shrink: 0 !important;
        display: flex !important;
        gap: 0.25rem !important;
    }
    
    /* Charakter Picker */
    .char-picker-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .char-picker-item {
        padding: 0.75rem !important;
        min-height: 48px !important;
    }
    
    /* Admin Tables */
    .modal table,
    .modal-overlay table,
    [class*="modal"] table {
        font-size: 0.8rem !important;
    }
    
    .modal table th,
    .modal table td,
    .modal-overlay table th,
    .modal-overlay table td {
        padding: 0.4rem !important;
    }
    
    /* Sheet Layout (Seasons) */
    .sheet-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .sheet-main {
        order: 1 !important;
    }
    
    .sheet-right {
        order: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .stats-box {
        flex: 1 1 45% !important;
        min-width: 140px !important;
        padding: 0.5rem !important;
    }
    
    /* ========================================
       FORM CONTROLS - Touch-optimiert
       ======================================== */
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .form-input, .form-select, .form-textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 44px; /* Touch target */
    }
    
    /* Buttons */
    .btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 0.4rem 0.75rem;
    }
    
    .btn-icon {
        min-width: 36px;
        min-height: 36px;
    }
    
    /* ========================================
       CHAT - Mobile Layout
       ======================================== */
    .chat-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    .chat-sidebar {
        position: static;
        left: auto;
        width: 100%;
        order: -1;
    }
    
    .chat-channels-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .chat-channel-item {
        white-space: nowrap;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }
    
    .chat-card {
        flex: 1;
        min-height: 0;
    }
    
    .chat-messages {
        padding: 0.75rem;
    }
    
    .chat-msg {
        max-width: 90%;
    }
    
    .chat-emoji-picker-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .fluent-emoji-picker {
        width: 300px;
    }
    
    .fluent-emoji-grid {
        grid-template-columns: repeat(7, 1fr);
        max-height: 200px;
    }
    
    /* ========================================
       RAIDS - Mobile Kalender & Header
       ======================================== */
    
    /* Card-Header Buttons wrappen */
    .calendar-card > .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .raids-header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .raids-header-actions .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
    
    .raids-admin-buttons {
        width: 100%;
    }
    
    /* Kalender: Fancy-Hintergrundbild auf Mobile komplett deaktivieren */
    td.fc-day-has-raid::before,
    td.fc-day-has-raid::after {
        display: none !important;
    }
    
    td.fc-day-has-raid {
        position: relative !important;
    }
    
    td.fc-day-has-raid .fc-daygrid-day-frame {
        position: static !important;
    }
    
    td.fc-day-has-raid .fc-daygrid-day-events {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        overflow: hidden !important;
        margin: 0 !important;
        display: block !important;
    }
    
    td.fc-day-has-raid .fc-daygrid-event-harness {
        margin: 1px 0 !important;
        display: block !important;
        flex: none !important;
    }
    
    td.fc-day-has-raid .fc-event {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
        border-radius: 3px !important;
        padding: 1px 3px !important;
        font-size: 0.55rem !important;
        margin: 0 !important;
        display: block !important;
        flex: none !important;
    }
    
    td.fc-day-has-raid .fc-event .fc-event-content,
    td.fc-day-has-raid .fc-event .fc-event-main {
        padding: 0 !important;
        display: block !important;
        flex: none !important;
    }
    
    td.fc-day-has-raid .fc-event .fc-event-title {
        font-size: 0.55rem !important;
        font-weight: 600;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    td.fc-day-has-raid .fc-event .fc-event-meta {
        display: none !important;
    }
    
    td.fc-day-has-raid .fc-daygrid-day-top .fc-daygrid-day-number {
        color: var(--text-primary) !important;
        text-shadow: none !important;
        font-weight: 500 !important;
    }
    
    td.fc-day-has-raid .fc-daygrid-day-bottom {
        display: block !important;
    }
    
    #raid-calendar .fc-daygrid-day-frame {
        min-height: 50px !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    /* Twink-Toggle kompakter */
    .twink-toggle-label {
        font-size: 0.8rem;
    }
}

/* ============================================
   Mobile Responsive — Kleine Phones (≤480px)
   ============================================ */
@media (max-width: 480px) {
    /* Container & Spacing */
    .container {
        padding: 0 12px;
    }
    
    .mt-4 {
        margin-top: 1rem !important;
    }
    
    /* Cards */
    .card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card-header span {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Profile Page */
    .profile-layout {
        gap: 1rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .profile-stats .stat-item {
        padding: 0.5rem 0.25rem;
    }
    
    .profile-stats .stat-value {
        font-size: 1rem;
    }
    
    .profile-stats .stat-label {
        font-size: 0.65rem;
    }
    
    /* Character Cards */
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .character-card {
        border-radius: var(--radius-lg);
    }
    
    .char-card-body {
        padding: 0.875rem;
    }
    
    .char-card-name {
        font-size: 1rem;
    }
    
    .char-card-realm {
        font-size: 0.75rem;
    }
    
    .char-card-badges {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .char-card-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .char-card-actions {
        padding: 0.625rem 0.875rem;
        gap: 0.375rem;
    }
    
    .char-card-actions .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.375rem;
    }
    
    /* Forms */
    .form-input, .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content {
        border-radius: var(--radius-lg);
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
    
    /* Calendar */
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc .fc-button {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .fc .fc-daygrid-day-number {
        font-size: 0.8rem;
        padding: 2px 4px;
    }
    
    .fc .fc-event {
        font-size: 0.7rem;
        padding: 1px 3px;
    }
    
    /* Chat */
    .chat-layout {
        flex-direction: column;
        height: auto;
    }
    
    .chat-sidebar {
        width: 100%;
        order: -1;
    }
    
    .chat-channels-list {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.25rem;
        gap: 0.25rem;
    }
    
    .chat-channel-item {
        white-space: nowrap;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }
    
    .chat-card {
        height: calc(100vh - 230px);
        min-height: 400px;
        border-radius: 0;
    }
    
    .chat-messages {
        padding: 0.75rem;
    }
    
    .chat-msg {
        max-width: 90%;
    }
    
    .chat-msg-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    .chat-msg-group-cont .chat-msg-avatar {
        width: 28px;
    }
    
    .chat-msg-bubble {
        padding: 0.45rem 0.7rem;
    }
    
    .chat-msg-text {
        font-size: 0.85rem;
    }
    
    .chat-emoji-picker-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .fluent-emoji-picker {
        width: 300px;
    }
    
    .fluent-emoji-grid {
        grid-template-columns: repeat(7, 1fr);
        max-height: 200px;
    }
    
    .fluent-emoji-item {
        width: 34px;
        height: 34px;
    }
    
    .fluent-emoji-item img {
        width: 24px;
        height: 24px;
    }
    
    /* Section Headers */
    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .section-header h3, .section-header h2 {
        font-size: 1rem;
    }
    
    /* List Items */
    .list-item {
        padding: 0.75rem;
    }
    
    .list-item-title {
        font-size: 0.9rem;
    }
    
    .list-item-meta {
        font-size: 0.75rem;
    }
    
    /* Character Cards Mobile */
    .char-header {
        padding: 0.75rem 0.75rem 0.5rem;
    }
    
    .char-name {
        font-size: 0.95rem;
    }
    
    .char-realm {
        font-size: 0.7rem;
    }
    
    .char-status-badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .char-meta {
        padding: 0.25rem 0.75rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .char-class-tag, .char-role-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .char-actions {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }
    
    .char-actions .btn,
    .char-actions .btn-icon,
    .char-actions .char-clear-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .char-actions .btn-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    
    .char-clear-btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    /* Profile Header Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .section-header > div:last-child {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .section-header .btn {
        flex: 1;
    }
    
    /* Season Modal Mobile */
    .sheet-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .sheet-main {
        order: 1;
    }
    
    .sheet-right {
        order: 0;
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stats-box {
        flex: 1 1 45%;
        min-width: 140px;
        padding: 0.5rem;
    }
    
    /* Season Tabelle kompakter */
    #sessionDetailModal .table,
    .sheet-main table {
        font-size: 0.75rem;
    }
    
    #sessionDetailModal .table th,
    #sessionDetailModal .table td,
    .sheet-main table th,
    .sheet-main table td {
        padding: 0.35rem 0.4rem;
    }
    
    /* Buttons in Season-Modal */
    #sessionDetailModal .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #sessionDetailModal .modal-footer .btn {
        width: 100%;
    }
    
    /* Tabellen auf Mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table th, .table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .table .btn-icon {
        width: 28px;
        height: 28px;
        padding: 0.2rem;
    }
    
    /* Admin Cards Mobile */
    .admin-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-grid .card {
        padding: 1rem;
    }
    
    /* Form Grid auf Mobile: alle Spalten zu einer */
    .form-row-2,
    .form-row-3,
    .loot-form-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Kalender Mobile Anpassungen */
    .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
    
    .fc .fc-button-group {
        flex-wrap: nowrap;
    }
    
    .fc-daygrid-event {
        font-size: 0.65rem !important;
        padding: 1px 2px !important;
    }
    
    .fc-event-title {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Card Header Mobile */
    .card-header .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Homepage Upcoming Raids */
    .upcoming-raids-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-raid-img,
    .upcoming-raid-img-placeholder,
    .upcoming-raid-img-dual,
    .upcoming-raid-img-half,
    .upcoming-raid-img-triple,
    .upcoming-raid-img-third {
        height: 60px;
    }
    
    .upcoming-raid-name {
        font-size: 0.88rem;
    }
    
    .upcoming-raid-info {
        gap: 0.25rem 0.5rem;
        font-size: 0.72rem;
    }
    
    .upcoming-raid-roles {
        flex-wrap: wrap;
    }

    /* Hero Section für eingeloggten Zustand */
    .hero-section .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-section .hero-actions .btn {
        width: 100%;
    }
}


