/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --accent-color: #dc2814;
    --accent-hover: #b91f0f;
    --warning-bg: rgba(220, 40, 20, 0.1);
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    --border-color: #d0d0d0;
    --primary-color: #dc2814;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition-speed: 0.3s;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-red-sm: 0 2px 8px rgba(220, 40, 20, 0.3);
    --shadow-red-md: 0 4px 16px rgba(220, 40, 20, 0.4);
    --shadow-red-lg: 0 8px 24px rgba(220, 40, 20, 0.5);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

/* Lazy Loading für Bilder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src]) {
    opacity: 1;
}

/* Custom Scrollbar für gesamte Website */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

p {
    margin: 0 !important;
}

/* ========================================
   Layout Structure
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed) ease;
    padding-top: 0;
}

/* Content Wrapper - Container für page-content und right-sidebar */
.content-wrapper {
    display: flex;
    flex: 1;
    gap: 0;
    width: 100%;
}

/* Main Column - Container für page-content + footer */
.main-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* ========================================
   Sidebar Navigation
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1), -2px 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-header {
    padding: 24px 24px 24px 24px;
    /*border-bottom: 1px solid var(--border-color);*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 271px;
}

.logo-link {
    display: block;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.1s ease;
}

/* Herzschlag Animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.08);
    }
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.08);
    }
    40% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.logo.heartbeat {
    animation: heartbeat 2s ease-in-out;
}

.sidebar-nav {
    flex: 1;
    padding: 0 0 1.5rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Right Sidebar
   ======================================== */
.right-sidebar {
    position: sticky;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
    align-self: stretch;
    overflow: visible;
}

.right-sidebar-content {
    height: 100%;
    padding: 1rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.right-sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

.right-sidebar-body {
    color: var(--text-primary);
    line-height: 1.6;
}

.right-sidebar-body p {
    margin-bottom: 1rem;
}

.right-sidebar-body p:last-child {
    margin-bottom: 0;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-section-title .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* Sidebar Items */
.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar-item:hover {
    transform: translateX(-2px);
    box-shadow: var(--shadow-md);
}

.sidebar-item-countdown {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    width: fit-content;
}

.sidebar-item-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-item-warning {
    font-size: 0.7rem;
    font-weight: 500;
    background: var(--warning-bg);
    border-radius: 6px;
    line-height: 1.3;
    padding: 0.5rem;
    display: flex;
    color: var(--accent-color);
    align-items: center;
    gap: 0.75rem;
}

.sidebar-item-warning::before {
    content: "⚠";
    font-size: 1.3rem;
}

.sidebar-item-countdown.cancelled {
    background: var(--text-secondary);
}

.sidebar-loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.sidebar-empty {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

/* Right Sidebar Toggle */
.right-sidebar-toggle {
    position: fixed;
    top: 50%;
    right: var(--sidebar-width);
    transform: translateY(-50%);
    width: 20px;
    height: 64px;
    background: var(--bg-primary);
    border: 0px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: -2px 0 2px rgba(0,0,0,0.1);
    transition: height 0.3s ease, right 0.3s ease;
    z-index: 10;
    overflow: hidden;
}

.right-sidebar.collapsed .right-sidebar-toggle {
    right: 0;
    height: 150px;
}

.right-sidebar-toggle:hover .material-symbols-outlined,
.right-sidebar-toggle:hover .right-sidebar-toggle-label {
    color: var(--accent-color);
}

.right-sidebar-toggle .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s ease, opacity 0.3s ease, height 0.3s ease;
}

/* Top icon: always visible, rotated when collapsed */
.right-sidebar-toggle-icon-top {
    height: 14px;
    opacity: 1;
}

.right-sidebar.collapsed .right-sidebar-toggle-icon-top {
    transform: rotate(180deg);
}

/* Bottom icon: hidden when expanded, visible when collapsed */
.right-sidebar-toggle-icon-bottom {
    display: none;
    height: 0;
    opacity: 0;
}

.right-sidebar.collapsed .right-sidebar-toggle-icon-bottom {
    display: block;
    height: 20px;
    opacity: 1;
    transform: rotate(180deg);
}

/* Toggle Label - hidden by default, vertical when collapsed */
.right-sidebar-toggle-label {
    font-size: 0.75rem;
    padding-top: 0.1rem;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.15s ease, opacity 0.1s ease;
}

.right-sidebar.collapsed .right-sidebar-toggle-label {
    height: 90px;
    opacity: 1;
    transition: height 0.3s ease, opacity 0.3s ease 0.1s;
}

/* Collapsed state */
.right-sidebar.collapsed {
    margin-right: calc(-1 * var(--sidebar-width));
}

/* Transition for smooth animation */
.right-sidebar {
    transition: margin-right 0.3s ease;
}

/* Hide toggle on mobile (sidebar is already hidden) */
@media (max-width: 1300px) {
    .right-sidebar-toggle {
        display: none;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 300;
    border-left: 3px solid transparent;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

/* Button-Reset für nav-item Buttons */
button.nav-item {
    width: 100%;
    text-align: left;
    background: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border-radius: 0;
}

.nav-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-item:hover {
    background-color: var(--bg-secondary);
    border-left-color: var(--accent-color);
}

.nav-item:hover .material-symbols-outlined {
    color: var(--accent-color);
}

.nav-item.active {
    background-color: rgba(220, 40, 20, 0.05);
    border-left-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 400;
}

.nav-item.active .material-symbols-outlined {
    color: var(--accent-color);
}

/* Navigation Subitems (Unterseiten) */
.nav-item.nav-subitem {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
    border-left-width: 2px;
}

.nav-item.nav-subitem .material-symbols-outlined {
    font-size: 20px;
}

.nav-item.nav-subitem:hover {
    opacity: 1;
}

.nav-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 1.5rem;
}

/* Navigation Levels (Zweistufige Navigation) */
.nav-level {
    display: none;
    animation: navSlideIn 0.3s ease;
}

.nav-level.active {
    display: block;
}

.nav-level.sliding-out {
    animation: navSlideOut 0.3s ease;
}

/* Navigation Toggle Button (Mitgliederbereich) */
.nav-toggle .nav-arrow {
    font-size: 24px;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover .nav-arrow {
    transform: translateX(3px);
    color: var(--accent-color);
}

/* Navigation Level Animations */
/* Vorwärts-Navigation (Level 1 -> Level 2) */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes navSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Login Button */
.btn-login {
    margin-top: 1.25rem;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

.btn-login:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-login .material-symbols-outlined {
    font-size: 18px;
}


/* ========================================
   Status Badges (Wiederverwendbare Komponenten)
   ======================================== */

/* Executive Badge - Vorstands-Badge */
.executive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #dc2814 0%, #b01f0f 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 40, 20, 0.3);
}

.executive-badge .material-symbols-outlined {
    font-size: 18px;
}

/* Role Badge - Berechtigungs-Badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.role-badge .material-symbols-outlined {
    font-size: 18px;
}

/* Honor Badge - Ehrentitel-Badge */
.honor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.honor-badge .material-symbols-outlined {
    font-size: 18px;
}

/* Badge Responsive Styles */
@media (max-width: 768px) {
    .executive-badge,
    .role-badge,
    .honor-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }

    .executive-badge .material-symbols-outlined,
    .role-badge .material-symbols-outlined,
    .honor-badge .material-symbols-outlined {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .executive-badge,
    .role-badge,
    .honor-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        gap: 0.2rem;
    }

    .executive-badge .material-symbols-outlined,
    .role-badge .material-symbols-outlined,
    .honor-badge .material-symbols-outlined {
        font-size: 12px;
    }
}

/* ========================================
   Page Header (Title + Action Button)
   ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    flex-wrap: wrap;
}

.page-header .page-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.page-subtitle {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   Primary Button (Wiederverwendbar)
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: var(--accent-color);
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 40, 20, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary .material-symbols-outlined {
    font-size: 20px;
    color: white;
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-primary);
}

/* ========================================
   Form Elements - Radio Buttons & Switches
   ======================================== */

/* Custom Radio Button */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    outline: none;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: all 0.2s ease;
}

input[type="radio"]:checked {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.switch input:checked + .switch-slider {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.switch:hover .switch-slider {
    box-shadow: 0 0 0 3px rgba(220, 40, 20, 0.1);
}

/* ========================================
   Ripple Effect
   ======================================== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 1.2s, height 1.2s;
    pointer-events: none;
}

.ripple.ripple-dark::after {
    background: rgba(0, 0, 0, 0.1);
}

.ripple.ripple-light::after {
    background: rgba(255, 255, 255, 0.3);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 1.5s ease-out;
}

.ripple-effect.ripple-dark {
    background: rgba(0, 0, 0, 0.1);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   Burger Menu (Mobile only)
   ======================================== */
.burger-menu {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.burger-menu:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.burger-menu .material-symbols-outlined {
    font-size: 28px;
    display: block;
}

/* ========================================
   Page Content
   ======================================== */
.page-content {
    flex: 1;
    padding: 2rem 2rem;
    width: 100%;
    min-width: 0;
    margin-bottom: 3rem;
    position: relative;
}

.page-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: var(--sidebar-width);
    bottom: 0;
    background-image: url('/assets/images/bfr/bfr_logo-white.png');
    background-repeat: no-repeat;
    background-size: 75%;
    background-position: center center;
    pointer-events: none;
    z-index: -1;
    transition: left 0.3s ease, right 0.3s ease;
}

/* Anpassung wenn Sidebar-Right eingeklappt */
.right-sidebar.collapsed ~ .page-content::before,
.content-wrapper:has(.right-sidebar.collapsed) .page-content::before {
    right: 0;
}


.page-title {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

/* ========================================
   Quill Editor Content Display
   ======================================== */
.my-quill-editor-content-display {
    white-space: pre-line;
    display: flow-root; /* Etabliert BFC - verhindert Kollaps bei gefloateten Elementen (z.B. rechtsbündige Bilder via quill-blot-formatter) */
}

.my-quill-editor-content-display strong {
    font-weight: 600;
}

/* Empty Content Block Message */
.content-block-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 0.95rem;
}

/* Links in Quill Content */
.my-quill-editor-content-display a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    position: relative;
}

.my-quill-editor-content-display a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Listen-Formatierung (Quill 2.0) */
.my-quill-editor-content-display ol {
    padding-left: 0;
    margin: 0.75rem 0;
    list-style: none;
}

.my-quill-editor-content-display ol > li {
    padding-left: 1.5rem;
    position: relative;
}

/* Geordnete Listen (nummeriert) */
.my-quill-editor-content-display ol > li[data-list="ordered"] {
    counter-increment: list-counter;
}

.my-quill-editor-content-display ol > li[data-list="ordered"]::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: normal;
}

/* Ungeordnete Listen (Bullet Points) */
.my-quill-editor-content-display ol > li[data-list="bullet"]::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: normal;
}

/* Counter-Reset für Listen mit ordered Items */
.my-quill-editor-content-display ol:has(> li[data-list="ordered"]) {
    counter-reset: list-counter;
}

/* Verschachtelte Listen */
.my-quill-editor-content-display ol ol {
    margin: 0.25rem 0;
}

/* Erste Ebene */
.my-quill-editor-content-display li[data-list="bullet"],
.my-quill-editor-content-display li[data-list="ordered"] {
    padding-left: 2rem;
}

/* Zweite Ebene (Einrückung) */
.my-quill-editor-content-display li[data-list="bullet"].ql-indent-1,
.my-quill-editor-content-display li[data-list="ordered"].ql-indent-1 {
    padding-left: 4rem;
}

/* Dritte Ebene (Einrückung) */
.my-quill-editor-content-display li[data-list="bullet"].ql-indent-2,
.my-quill-editor-content-display li[data-list="ordered"].ql-indent-2 {
    padding-left: 6rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-primary);
    padding: 3rem 1rem;
    margin-top: auto; /* Pushed to bottom of main-column */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link .material-symbols-outlined {
    font-size: 1.1rem;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Overlay (for mobile menu)
   ======================================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   Responsive Design - Mobile/Tablet
   ======================================== */
@media (max-width: 1300px) {
    /* Rechte Sidebar auf Tablets und Mobil ausblenden */
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }

    .sidebar {
        transform: translateX(100%);
        left: auto;
        right: 0;
        box-shadow: var(--shadow-lg);
        border-left: 1px solid var(--border-color);
        border-right: none;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Content Wrapper wird zu einer Spalte */
    .content-wrapper {
        flex-direction: column;
    }

    /* Extra Padding für mobile Browser-Navigation */
    .sidebar-nav {
        padding-bottom: 120px;
    }

    .burger-menu {
        display: block;
    }

    .logo {
        width: 120px;
    }

    .page-content {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-nav {
        gap: 1.5rem;
    }
}

/* ========================================
   Mobile adjustments
   ======================================== */
@media (max-width: 768px) {
    .page-content {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   Smooth Scrolling
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   Page Transition Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.page-content.fade-in {
    animation: fadeIn 0.4s ease;
}

.page-content.fade-out {
    animation: fadeOut 0.2s ease;
}


/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

/* iOS date input fix */
input[type="date"].form-input {
    min-width: 0;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

/* Select styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px (22rgba0, 40, 20, 0.1);
}

input.form-input[readonly] {
    background-color: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-error {
    display: none;
    padding: 0.75rem;
    margin: 1rem 0;
    background-color: rgba(220, 40, 20, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.form-error.active {
    display: block;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.password-toggle-btn .material-symbols-outlined {
    font-size: 20px;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(220, 40, 20, 0.03);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(220, 40, 20, 0.05);
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.file-upload-placeholder .material-symbols-outlined {
    font-size: 3rem;
    color: var(--text-secondary);
}

.file-upload-placeholder p {
    color: var(--text-primary);
    font-weight: 500;
}

.file-upload-placeholder .file-upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.file-upload-preview .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-upload-name {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.file-upload-remove {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-remove:hover {
    color: var(--accent-color);
}

.file-upload-remove .material-symbols-outlined {
    font-size: 1.5rem;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.btn-submit .material-symbols-outlined {
    font-size: 20px;
}

/* ========================================
   Form Sections & Grid (für große Formulare)
   ======================================== */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Versteckte Elemente */
.hidden {
    display: none !important;
}

/* Versteckte form-sections */
.form-section.hidden {
    display: none;
}

/* Letztes sichtbares form-section Element (hat kein sichtbares Geschwister danach) */
.form-section:not(.hidden):not(:has(~ .form-section:not(.hidden))) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

/* Profilbild-Upload Section */
.profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(220, 40, 20, 0.2);
    flex-shrink: 0;
}

.profile-image-preview img,
.profile-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-placeholder .material-symbols-outlined {
    font-size: 80px;
    color: var(--text-secondary);
}

.profile-image-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-image-message {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.profile-image-message.active {
    display: block;
}

.profile-image-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.profile-image-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.btn-upload,
.btn-delete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-upload {
    background: var(--primary-color);
    color: white;
}

.btn-upload:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 40, 20, 0.3);
}

.btn-delete {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
}

.btn-upload .material-symbols-outlined,
.btn-delete .material-symbols-outlined {
    font-size: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-group-wide {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Checkbox Styling - Modern Toggle Switch */
.form-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    border: 2px solid transparent;
    margin-bottom: 1rem;
}

.form-checkbox:last-child:not(:only-child) {
    margin-bottom: 0;
}

.form-checkbox:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Verstecke die native Checkbox */
.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Label Text */
.form-checkbox input[type="checkbox"] + span {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    padding-left: 3.5rem;
}

/* Toggle Switch Container */
.form-checkbox input[type="checkbox"] + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Toggle Switch Knob */
.form-checkbox input[type="checkbox"] + span::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover Effect auf Switch */
.form-checkbox:hover input[type="checkbox"] + span::before {
    background: var(--text-secondary);
}

/* Checked State - Container */
.form-checkbox input[type="checkbox"]:checked + span::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(222, 38, 38, 0.1);
}

/* Checked State - Knob bewegt sich nach rechts */
.form-checkbox input[type="checkbox"]:checked + span::after {
    left: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Active/Pressed State */
.form-checkbox:active input[type="checkbox"] + span::after {
    width: 24px;
}

/* Password Display */
.password-display {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
}

/* ========================================
   Quill Rich Text Editor - Global Styles
   ======================================== */

.quill-editor {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.quill-editor .ql-toolbar {
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 6px 6px 0 0;
}

.quill-editor .ql-container {
    border: none;
    font-size: 1.125rem;
}

/* Verwende Website-Schriftart (Nunito) für Quill-Editor */
.quill-editor .ql-container,
.quill-editor .ql-editor,
.ql-container,
.ql-editor {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.quill-editor .ql-editor {
    padding: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.quill-editor .ql-editor.ql-blank::before {
    color: var(--text-secondary);
    font-style: normal;
}

/* Quill Toolbar Buttons */
.ql-toolbar button {
    color: var(--text-primary);
}

.ql-toolbar button:hover {
    color: var(--accent-color);
}

.ql-toolbar button.ql-active {
    color: var(--accent-color);
}

/* Custom Emoji Button Alignment */
.ql-toolbar .ql-emoji {
    padding-top: 0 !important;
}

/* ========================================
   Emoji Picker (emoji-mart) - Global Styles
   ======================================== */
em-emoji-picker {
    --border-radius: 8px;
    --category-emoji-size: 1.5rem;
    --emoji-size: 1.75rem;
    --background-rgb: var(--bg-primary);
    --border-color: var(--border-color);
    --color-b: var(--text-primary);
    --color-c: var(--text-secondary);
    --input-border-radius: 6px;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
}

@media (prefers-color-scheme: dark) {
    em-emoji-picker {
        --background-rgb: 28, 28, 30;
    }
}

@media (max-width: 768px) {
    em-emoji-picker {
        max-width: calc(100vw - 2rem);
        --emoji-size: 1.5rem;
        --category-emoji-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    em-emoji-picker {
        max-width: calc(100vw - 1rem);
        --emoji-size: 1.25rem;
        --category-emoji-size: 1rem;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: var(--accent-color);
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: var(--accent-color);
}

.toast-info .toast-icon {
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.spinning {
    animation: spin 1s linear infinite;
}

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

/* Responsive Form Grid */
@media (max-width: 768px) {
    /* Buttons schrumpfen */
    .btn-primary,
    .btn-secondary {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }

    .btn-upload,
    .btn-delete {
        font-size: 0.8rem;
        padding: 0.625rem 1.25rem;
    }

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

    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .form-group-wide {
        grid-column: span 1;
    }

    .modal-container.modal-large {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
}

@media (max-width: 480px) {
    /* Buttons weiter schrumpfen */
    .btn-primary,
    .btn-secondary {
        font-size: 0.7rem;
        padding: 0.5em 0.5rem;
    }

    .btn-upload,
    .btn-delete {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   GPS Routes Components
   ======================================== */

/* GPS Routes List */
.gps-routes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gps-routes-list .content-empty-state {
    grid-column: 1 / -1;
}

/* GPS Route Card */
.gps-route-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.gps-route-card:hover {
    box-shadow: var(--shadow-md);
}

.gps-route-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.gps-route-header > div {
    width: 100%;
}

.gps-route-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gps-route-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.gps-route-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.gps-route-stat .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* GPS Route Preview */
.gps-route-preview {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
}

.gps-route-preview-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.gps-route-preview-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.gps-route-preview-placeholder .material-symbols-outlined {
    font-size: 3rem;
    opacity: 0.5;
}

.gps-route-preview-placeholder span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
}

/* GPS Route Actions */
.gps-route-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.gps-route-actions-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Generic Content Empty State */
.content-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

.content-empty-state .material-symbols-outlined {
    font-size: 3rem;
    opacity: 0.5;
    display: block;
    margin: 0 auto 1rem;
}

.content-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* GPS Routes Empty State - Use generic style */
.gps-routes-empty {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    color: var(--text-secondary);
}

.gps-routes-empty .material-symbols-outlined {
    font-size: 4rem;
    opacity: 0.5;
    display: block;
    margin: 0 auto 1rem;
}

.gps-routes-empty p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive GPS Routes */
@media (max-width: 768px) {
    .gps-routes-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .gps-route-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gps-route-stats {
        display: none;
    }
}

@media (max-width: 480px) {
    .gps-routes-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .content-empty-state,
    .gps-routes-empty {
        padding: 3rem 1.5rem;
    }

    .content-empty-state .material-symbols-outlined,
    .gps-routes-empty .material-symbols-outlined {
        font-size: 3rem;
    }

    .gps-route-actions {
        flex-direction: column;
    }

    .gps-route-actions-group {
        width: 100%;
        flex-direction: column;
    }

    .gps-route-actions .btn-sm,
    .gps-route-actions-group .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Quill Editor Global Styles
   Gemeinsame Styles für alle Quill-Editoren in Modals
   ======================================== */

/* Standard Quill Editor Höhe in Modals */
.modal-container .quill-editor {
    display: block;
}

.modal-container .quill-editor .ql-editor {
    min-height: 250px;
}

/* Größere Editor-Höhe für Beschreibungen */
.modal-container .quill-editor-lg .ql-editor {
    min-height: 300px;
}

/* Kleinere Editor-Höhe für kurze Texte (z.B. Absage-Begründungen) */
.modal-container .quill-editor-sm .ql-editor {
    min-height: 120px;
}

/* Form-Group Spacing für Quill-Editoren */
.modal-container .form-group:has(+ .form-group .quill-editor) {
    margin-bottom: 0;
}

.modal-container .form-group:has(.quill-editor) {
    padding-bottom: 45px;
    margin-top: -1rem;
}

/* ========================================
   Revoke Consent Container (Datenschutz)
   ======================================== */
.revoke-consent-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}