/* Zeltfest Planer - Premium Design CSS - Vollständige Version mit Navigation-Optimierungen */

/* ==========================================================================
   ROOT VARIABLEN
   ========================================================================== */
:root {
    --accent-color: #c0d900;
    --accent-hover: #a8bf00;
    --accent-light: rgba(192, 217, 0, 0.1);
    --accent-medium: rgba(192, 217, 0, 0.2);
    --primary-black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.2s ease-in-out;
    --transition-slow: 0.3s ease-in-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   SCROLLBAR STYLING
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.accent-text {
    color: var(--accent-color) !important;
}

.accent-bg {
    background-color: var(--accent-color) !important;
}

.accent-border {
    border-color: var(--accent-color) !important;
}

.transition-all {
    transition: all var(--transition-normal);
}

.transition-colors {
    transition: color var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.transition-transform {
    transition: transform var(--transition-normal);
}

.transition-shadow {
    transition: box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
    90% { transform: translateY(-2px); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.3s ease-out;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.3s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-hover {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-premium {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   BUTTON COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--gray-800);
    border-color: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-black);
    border-color: var(--accent-color);
    font-weight: 600;
}

.btn-accent:hover:not(:disabled) {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-400);
}

.btn-ghost {
    background-color: transparent;
    color: var(--gray-600);
    border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    margin-left: -0.5rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--gray-900);
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-sm);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background-color: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

.form-input-error,
.form-select-error,
.form-textarea-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-message {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
}

.form-input-group {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.form-input-group .form-input {
    padding-left: 2.5rem;
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-black);
    font-weight: bold;
    font-size: 0.75rem;
}

/* ==========================================================================
   NAVIGATION & SIDEBAR
   ========================================================================== */
.sidebar {
    background: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gray-200), transparent);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50), white);
}

.sidebar-logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--accent-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-weight: bold;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.sidebar-nav {
    padding: 1rem 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.50rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.sidebar-nav-item:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
    transform: translateX(2px);
}

.sidebar-nav-item.active {
    background-color: var(--accent-light);
    color: var(--primary-black);
    font-weight: 600;
}

.sidebar-nav-item.active::before {
    transform: scaleY(1);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    color: var(--accent-color);
}

.sidebar-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: color var(--transition-normal);
}

.sidebar-footer {
    padding: 1rem 0.5rem;
    border-top: 1px solid var(--gray-200);
    background: linear-gradient(135deg, white, var(--gray-50));
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   COLLAPSED SIDEBAR - DESKTOP ONLY
   ========================================================================== */
@media (min-width: 1025px) {
    .sidebar.collapsed {
        width: 5rem !important;
    }

    /* Logo zentrieren */
    .sidebar.collapsed .sidebar-logo {
        justify-content: center;
        padding: 1rem 0.5rem;
    }

    .sidebar.collapsed .sidebar-logo-text {
        display: none !important;
    }

    /* Countdown anpassen */
    .sidebar.collapsed .countdown-text,
    .sidebar.collapsed .countdown-date {
        display: none !important;
    }

    .sidebar.collapsed .countdown-number {
        font-size: 0.875rem;
    }

    /* Navigation Items - Icons zentrieren */
    .sidebar.collapsed .sidebar-nav-item {
        justify-content: center !important;
        padding: 0.75rem 0 !important;
        margin: 0.25rem 0.5rem;
        position: relative;
    }

    /* Content ausblenden */
    .sidebar.collapsed .sidebar-nav-content {
        display: none !important;
    }

    /* Icon Container styling */
    .sidebar.collapsed .sidebar-nav-icon-container {
        width: 3rem !important;
        height: 3rem !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    /* Icon styling */
    .sidebar.collapsed .sidebar-nav-icon {
        font-size: 1.125rem !important;
        margin: 0 !important;
    }

    /* Hover-Effekte */
    .sidebar.collapsed .sidebar-nav-item:hover .sidebar-nav-icon-container {
        background: rgba(192, 217, 0, 0.1) !important;
        transform: scale(1.05);
    }

    /* Active State */
    .sidebar.collapsed .sidebar-nav-item.active .sidebar-nav-icon-container {
        background: var(--accent-color) !important;
    }

    .sidebar.collapsed .sidebar-nav-item.active .sidebar-nav-icon {
        color: #000 !important;
    }

    /* Badge Position */
    .sidebar.collapsed .sidebar-nav-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        z-index: 10;
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    /* Quickactions */
    .sidebar.collapsed .sidebar-quickactions-title {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-quickactions-buttons {
        grid-template-columns: 1fr;
        max-width: 3rem;
        margin: 0 auto;
        gap: 0.5rem;
    }

    .sidebar.collapsed .sidebar-quickaction-btn {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }

    /* Footer Actions */
    .sidebar.collapsed .sidebar-bottom-actions .sidebar-nav-item {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .sidebar.collapsed .sidebar-bottom-actions .sidebar-nav-content {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-bottom-actions .sidebar-nav-icon-container {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Version Info ausblenden */
    .sidebar.collapsed .sidebar-version {
        display: none !important;
    }

    /* Separator anpassen */
    .sidebar.collapsed .sidebar-separator {
        margin: 1rem auto;
        width: 2rem;
    }

    /* Tooltips */
    .sidebar.collapsed .sidebar-nav-item:hover::after {
        content: attr(title);
        position: absolute;
        left: calc(100% + 0.5rem);
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
        animation: tooltipFadeIn 0.2s ease forwards;
    }
}

@keyframes tooltipFadeIn {
    to { opacity: 1; }
}

/* ==========================================================================
   HEADER & USER MENU
   ========================================================================== */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.user-menu {
    position: relative;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    background: transparent;
}

.user-menu-button:hover {
    background-color: var(--gray-100);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-width: 12rem;
    z-index: 50;
    overflow: hidden;
    animation: slideInFromRight 0.2s ease-out;
}

.user-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--gray-100);
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: var(--accent-color);
    color: var(--primary-black);
    font-size: 0.75rem;
    font-weight: 700;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* ==========================================================================
   MOBILE NAVIGATION - 3x3 KACHEL-MENÜ
   ========================================================================== */
@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    /* Verstecke normale Sidebar-Elemente auf Mobile */
    .sidebar-logo,
    .sidebar-nav,
    .sidebar-quickactions,
    .sidebar-footer {
        display: none;
    }
    
    /* Mobile Grid Container */
    .sidebar-mobile-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 400px;
        width: 100%;
        padding: 2rem;
        background: white;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: mobileMenuSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Mobile Close Button */
    .sidebar-mobile-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #374151;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 60;
    }
    
    .sidebar-mobile-close:hover {
        background: white;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Tablet - 4x4 Grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar-mobile-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 500px;
        gap: 1.25rem;
    }
}

/* Mobile Navigation Tiles */
.sidebar-mobile-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.sidebar-mobile-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #c0d900, #a8c200);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-mobile-tile:hover::before,
.sidebar-mobile-tile.active::before {
    opacity: 1;
}

.sidebar-mobile-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(192, 217, 0, 0.3);
    border-color: #c0d900;
    color: #000;
}

.sidebar-mobile-tile.active {
    border-color: #c0d900;
    color: #000;
    box-shadow: 0 8px 25px rgba(192, 217, 0, 0.4);
}

.sidebar-mobile-tile i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.sidebar-mobile-tile span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Badge für Mobile Tiles */
.sidebar-mobile-tile .mobile-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: badgePulse 2s infinite;
}

@keyframes mobileMenuSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================================================
   TASK COMPONENTS
   ========================================================================== */
.task-item {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-200);
    border-left: 4px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.task-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.task-item:hover::before {
    opacity: 1;
}

.task-item.completed {
    border-left-color: #10b981;
    background-color: #f0fdf4;
}

.task-item.overdue {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.task-item.upcoming {
    border-left-color: var(--accent-color);
    background-color: var(--accent-light);
}

.task-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid var(--gray-300);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.task-checkbox:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.task-checkbox:focus {
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ==========================================================================
   DOCUMENT COMPONENTS
   ========================================================================== */
.document-card {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.document-card:hover::before {
    transform: scaleX(1);
}

.document-header {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    position: relative;
    overflow: hidden;
}

.document-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(192, 217, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.document-card:hover .document-header::before {
    opacity: 1;
}

.document-icon {
    font-size: 3rem;
    transition: all var(--transition-normal);
}

.document-card:hover .document-icon {
    transform: scale(1.1);
}

.document-content {
    padding: 1rem;
}

.document-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.document-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.document-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-action-btn {
    padding: 0.375rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    background: transparent;
}

.document-action-btn:hover {
    background-color: var(--gray-100);
    transform: scale(1.1);
}

.document-action-btn.primary:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.document-action-btn.danger:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1;
    letter-spacing: 0.025em;
}

.badge-success {
    background-color: #d1fae5;
    color: #047857;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-accent {
    background-color: var(--accent-light);
    color: var(--primary-black);
}

.badge-gray {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

/* ==========================================================================
   STATISTICS CARDS
   ========================================================================== */
.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border-top: 4px solid var(--accent-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(192, 217, 0, 0.02) 100%);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    background-color: var(--accent-light);
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ==========================================================================
   MODAL COMPONENTS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: slideInFromRight 0.3s ease-out;
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50), white);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

/* ==========================================================================
   UPLOAD DROPZONE
   ========================================================================== */
.upload-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-dropzone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.upload-dropzone:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.upload-dropzone:hover::before {
    opacity: 1;
}

.upload-dropzone.dragover {
    border-color: var(--accent-color);
    background-color: var(--accent-medium);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.upload-dropzone:hover .upload-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ==========================================================================
   TABLE COMPONENTS
   ========================================================================== */
.table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition-normal);
}

.table tr:hover td {
    background-color: var(--gray-50);
}

.table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--gray-200);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 640px) {
    .card-hover:hover {
        transform: none;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal-content {
        max-width: 95vw;
        margin: 0.5rem;
    }
}

@media (max-width: 768px) {
    .stat-card {
        text-align: center;
    }
    
    .document-header {
        aspect-ratio: 4/3;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .upload-dropzone {
        padding: 2rem 1rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .sidebar,
    .header,
    .btn,
    .modal-overlay {
        display: none !important;
    }
    
    .card,
    .document-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   MODERNE KONTAKT-KACHELN
   ========================================================================== */

/* Container für das Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Hauptkarte */
.contact-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateY(0);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
    transform-origin: left;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(192, 217, 0, 0.2);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

/* Header der Karte */
.contact-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(192, 217, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-header::after {
    opacity: 1;
}

/* Avatar */
.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    box-shadow: 0 4px 12px rgba(192, 217, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.contact-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(192, 217, 0, 0.4);
}

/* Header-Text */
.contact-header-text {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-name {
    color: #000;
}

.contact-role {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-role {
    color: #4b5563;
}

/* Body der Karte */
.contact-body {
    padding: 1.5rem;
}

/* Firma */
.contact-company {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(192, 217, 0, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-company {
    background: rgba(192, 217, 0, 0.12);
    transform: translateX(2px);
}

/* Kontakt-Informationen */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateX(4px);
    padding-left: 0.5rem;
}

.contact-info-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.contact-info-item:hover .contact-info-icon {
    color: var(--accent-color);
}

.contact-info-text {
    flex: 1;
    min-width: 0;
}

.contact-info-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-info-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Notizen */
.contact-notes {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-notes {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-color: rgba(192, 217, 0, 0.1);
}

.contact-notes-icon {
    color: #9ca3af;
    margin-top: 0.125rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.contact-card:hover .contact-notes-icon {
    color: var(--accent-color);
}

.contact-notes-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    flex: 1;
}

/* Footer der Karte */
.contact-footer {
    background: linear-gradient(135deg, #fafbfc, #f8fafc);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Action Buttons */
.contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.contact-action i {
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-action:hover i {
    transform: scale(1.1);
}

.contact-action-edit {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.contact-action-edit:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-action-delete {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.contact-action-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        border-radius: 12px;
    }
    
    .contact-header {
        padding: 1.25rem;
    }
    
    .contact-body {
        padding: 1.25rem;
    }
    
    .contact-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
    
    .contact-card:hover {
        transform: translateY(-4px);
    }
}

/* Animationen für das Laden */
@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: contactFadeIn 0.6s ease-out forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }
.contact-card:nth-child(5) { animation-delay: 0.5s; }
.contact-card:nth-child(6) { animation-delay: 0.6s; }

/* Leerer Zustand */
.no-contacts {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px dashed #e5e7eb;
    transition: all 0.3s ease;
}

.no-contacts:hover {
    border-color: var(--accent-color);
    background: rgba(192, 217, 0, 0.02);
}

.no-contacts i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.no-contacts:hover i {
    color: var(--accent-color);
}

.no-contacts h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-contacts p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.no-contacts .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-contacts .btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 217, 0, 0.3);
}

/* ==========================================================================
   AUFGABEN-KARTEN UND PRIORITÄTEN
   ========================================================================== */

.task-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
}

.task-card.priority-critical::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.task-card.priority-high::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.task-card.priority-medium::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.task-card.priority-low::before {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.task-card.priority-completed::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* ==========================================================================
   KATEGORIE-ICONS UND FILTER
   ========================================================================== */

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.category-filter-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    padding: 16px;
    border: 2px solid transparent;
}

.category-filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.category-filter-card.active {
    background-color: rgba(192, 217, 0, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   BENACHRICHTIGUNGS-BADGES
   ========================================================================== */

.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

/* Status-Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.overdue {
    background-color: #fecaca;
    color: #dc2626;
    animation: urgent-flash 2s infinite;
}

.status-badge.today {
    background-color: #fed7aa;
    color: #ea580c;
}

.status-badge.upcoming {
    background-color: #dbeafe;
    color: #2563eb;
}

.status-badge.completed {
    background-color: #dcfce7;
    color: #16a34a;
}

@keyframes urgent-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================================================
   STATISTIK-DASHBOARD
   ========================================================================== */

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.stats-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* ==========================================================================
   FORMULARE UND INPUTS
   ========================================================================== */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-label i {
    margin-right: 8px;
    color: #6b7280;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 217, 0, 0.1);
    background-color: #fafafa;
}

.form-input:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input:valid {
    border-color: #10b981;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* ==========================================================================
   BUTTONS UND ACTIONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 217, 0, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-ghost:hover {
    background: #f9fafb;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Action Buttons */
.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

.action-btn.edit:hover {
    background: #dbeafe;
    color: #2563eb;
}

.action-btn.delete:hover {
    background: #fecaca;
    color: #dc2626;
}

.action-btn.complete:hover {
    background: #dcfce7;
    color: #16a34a;
}

.action-btn.email:hover {
    background: #fed7aa;
    color: #ea580c;
}

/* ==========================================================================
   MODALS UND OVERLAYS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* ==========================================================================
   PROGRESS UND LOADING
   ========================================================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 4px;
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   RESPONSIVE DESIGN ERGÄNZUNGEN
   ========================================================================== */

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .task-card {
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .task-card .flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        margin-top: 16px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .category-filter-card {
        padding: 12px;
        text-align: center;
    }
    
    .stats-card {
        padding: 16px;
        text-align: center;
    }
    
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
}

/* Tablet Anpassungen */
@media (min-width: 768px) and (max-width: 1024px) {
    .category-filter-card {
        padding: 14px;
    }
    
    .task-card {
        padding: 20px;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT (Vorbereitung)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .dark-mode {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #4b5563;
    }
    
    .dark-mode .task-card {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .dark-mode .form-input {
        background: var(--bg-secondary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-accent { color: var(--accent-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.border-accent { border-color: var(--accent-color) !important; }

.shadow-soft { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.shadow-medium { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-strong { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.rounded-soft { border-radius: 4px; }
.rounded-medium { border-radius: 8px; }
.rounded-strong { border-radius: 12px; }

.transition-fast { transition: all 0.15s ease; }
.transition-normal { transition: all 0.3s ease; }
.transition-slow { transition: all 0.5s ease; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .task-card::before {
        display: none;
    }
    
    .action-btn {
        display: none;
    }
    
    .stats-card {
        break-inside: avoid;
    }
    
    .category-filter-card {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .task-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .status-badge {
        border: 1px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .task-card:hover {
        transform: none;
    }
    
    .notification-badge::after {
        animation: none;
    }
}

/* ==========================================================================
   KONTAKTE MODERNISIERUNG - Ergänzungen für style.css
   ========================================================================== */

/* Header Statistiken */
.kontakte-header-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Erweiterte Filter-Sektion */
.filter-section-enhanced {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filter-grid-enhanced {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
}

.search-wrapper-enhanced {
    position: relative;
}

.search-input-enhanced {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input-enhanced:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(192, 217, 0, 0.1);
}

.search-icon-enhanced {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.view-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.view-btn.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
}

/* Verbesserte Kontaktkarten */
.contact-card-enhanced {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
}

.contact-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-header-enhanced {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1.5rem;
    position: relative;
}

.contact-header-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.contact-avatar-enhanced {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.contact-avatar-enhanced.sponsor {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}

.contact-avatar-enhanced.vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.contact-avatar-enhanced.partner {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Status Badges */
.contact-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.sponsor {
    background: rgba(192, 217, 0, 0.1);
    color: #84cc16;
}

.badge.vip {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge.partner {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge.inactive {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

/* Verbesserte Kontakt-Items */
.contact-item-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item-enhanced:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.contact-icon-enhanced {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contact-icon-enhanced.email {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.contact-icon-enhanced.phone {
    background: linear-gradient(135deg, #10b981, #059669);
}

.contact-icon-enhanced.company {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.25rem;
}

.quick-action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    font-size: 0.75rem;
}

.quick-action:hover {
    background: rgba(192, 217, 0, 0.1);
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Verbesserte Action Buttons */
.contact-action-enhanced {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-action-enhanced.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.contact-action-enhanced.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.contact-action-enhanced.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.contact-action-enhanced.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Erweiterte Notizen */
.contact-notes-enhanced {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Animationen */
@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card-enhanced {
    animation: contactFadeIn 0.5s ease forwards;
}

.contact-card-enhanced:nth-child(1) { animation-delay: 0.1s; }
.contact-card-enhanced:nth-child(2) { animation-delay: 0.2s; }
.contact-card-enhanced:nth-child(3) { animation-delay: 0.3s; }
.contact-card-enhanced:nth-child(4) { animation-delay: 0.4s; }
.contact-card-enhanced:nth-child(5) { animation-delay: 0.5s; }
.contact-card-enhanced:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .filter-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card-enhanced:hover {
        transform: translateY(-4px);
    }
    
    .kontakte-header-stats {
        justify-content: center;
    }
    
    .view-toggle {
        justify-self: center;
    }
}

/* Skeleton Loading für bessere UX */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Logo/Banner Anzeige in Kacheln */
.contact-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    position: relative;
}

.contact-logo {
    position: absolute;
    bottom: -20px;
    left: 1rem;
    width: 60px;
    height: 60px;
    border: 3px solid white;
    border-radius: 0.5rem;
    background: white;
    padding: 0.25rem;
    object-fit: contain;
}

.contact-card-with-media {
    margin-top: 20px;
}

.contact-card-with-media .contact-header {
    padding-left: 5rem;
}

.address-info {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.address-info i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Liste Ansicht Erweiterungen */
.list-item-with-media {
    padding-left: 5rem;
    position: relative;
}

.list-item-logo {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

/* ==========================================================================
   IDEEN-MODUL SPEZIFISCHE STYLES
   ========================================================================== */

/* Modal Overlay für Ideen */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.95);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px 16px 0 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #374151;
    transform: scale(1.1);
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* Priorität Icons */
.priority-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.75rem;
}

.priority-niedrig {
    background: #dcfce7;
    color: #16a34a;
}

.priority-normal {
    background: #f3f4f6;
    color: #6b7280;
}

.priority-hoch {
    background: #fecaca;
    color: #dc2626;
}

/* Status Badges erweitert */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-neu {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-in-bearbeitung {
    background: #fed7aa;
    color: #ea580c;
}

.status-umgesetzt {
    background: #dcfce7;
    color: #16a34a;
}

.status-verworfen {
    background: #fecaca;
    color: #dc2626;
}

/* Tag Styles */
.idea-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.idea-tag:hover {
    background: #e5e7eb;
    cursor: pointer;
}

/* Drag & Drop Upload Area */
.upload-area-active {
    border-color: var(--accent-color) !important;
    background-color: rgba(192, 217, 0, 0.05) !important;
}

/* File Preview Items */
.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.file-preview-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Buttons erweitert */
.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 217, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: 2px solid #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Quick Action Buttons */
.quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
    transform: scale(1.05);
}

/* Grid Layout für Ideen-Cards */
.ideen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.ideen-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #e5e7eb;
}

.ideen-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ideen-card.priority-hoch {
    border-left-color: #dc2626;
}

.ideen-card.priority-normal {
    border-left-color: #6b7280;
}

.ideen-card.priority-niedrig {
    border-left-color: #16a34a;
}

/* Responsive Anpassungen für Ideen */
@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .ideen-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* Line Clamp für Text-Abschnitte */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animate on Hover */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    z-index: 1000;
    padding: 0.5rem 0.75rem;
    background: #1f2937;
    color: white;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error States */
.form-success {
    border-color: #10b981 !important;
    background-color: #ecfdf5;
}

.form-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

/* Badge Count für Navigation */
.nav-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: var(--accent-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    border: 2px solid white;
}