/* ============================================== 
   LARS RITTER BEWERBUNGSTOOL - UNIFIED STYLES
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

/* ==============================================
   CSS VARIABLES
   ============================================== */
:root {
    /* Grundfarben */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Akzentfarben */
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    
    --red-300: #fca5a5;
    --red-400: #f87171;
    --red-500: #ef4444;
    
    --yellow-300: #fde047;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    
    --purple-300: #c4b5fd;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
}

/* ==============================================
   BASE STYLES
   ============================================== */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    width: 100%;
    scrollbar-gutter: stable;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==============================================
   LAYOUT CONTAINERS
   ============================================== */
.homepage-container {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==============================================
   NAVIGATION
   ============================================== */
.floating-header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    max-width: 1400px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
}

.floating-header.header-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-header.header-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.floating-header.hidden {
    opacity: 0;
    pointer-events: none;
}

.floating-header .container {
    width: 100%;
}

/* ==============================================
   CARDS UND KOMPONENTEN
   ============================================== */
.glass-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.auth-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   FORM STYLES
   ============================================== */
.form-group {
    margin-bottom: 0; /* Grid gap übernimmt den Abstand */
}

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

.form-input, .input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.5rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus, .input-field:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(55, 65, 81, 0.9);
}

.form-input::placeholder, .input-field::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

.input-with-icon {
    position: relative;
}

.input-with-icon span {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
}

.input-with-icon input {
    position: relative;
    padding-left: 2.5rem;
}

/* Select Spezialbehandlung */
.input-field select {
    background: rgba(55, 65, 81, 0.8);
    color: var(--text-primary);
}

.input-field option {
    background: rgb(55, 65, 81);
    color: var(--text-primary);
}

/* Date Input Kalender-Icon Styling */
.input-field[type="date"] {
    position: relative;
    color-scheme: dark;
}

.input-field[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2393c5fd'%3e%3cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    opacity: 1;
    color: transparent;
    width: 20px;
    height: 20px;
    filter: brightness(1.0);
}



/* Firefox Date Input */
.input-field[type="date"]::-moz-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2393c5fd'%3e%3cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-size: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ==============================================
   BUTTON SYSTEM
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    height: 2.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Primary Buttons (Blue) */
.btn-primary {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-300);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Secondary Buttons (Gray) */
.btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: var(--gray-300);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.5);
}

/* Success Buttons (Green) */
.btn-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-300);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

/* Danger Buttons (Red) */
.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red-300);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Warning Buttons (Yellow) */
.btn-warning {
    background: rgba(234, 179, 8, 0.2);
    color: var(--yellow-300);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.btn-warning:hover {
    background: rgba(234, 179, 8, 0.3);
    border-color: rgba(234, 179, 8, 0.5);
}

/* Purple Buttons */
.btn-purple {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-300);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-purple:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

/* ==============================================
   ACTION BUTTONS
   ============================================== */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 3rem;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.action-btn-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.action-btn:hover .action-btn-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.action-btn-text {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==============================================
   SEARCH FORM
   ============================================== */
.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.125rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input-wrapper:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: #64748b;
    margin-left: 1rem;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.875rem 0;
    color: #f1f5f9;
    font-size: 0.875rem;
    placeholder-color: #64748b;
}

.search-input::placeholder {
    color: #64748b;
}

.search-submit {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-300);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.625rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    backdrop-filter: blur(8px);
}

.search-submit:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.search-submit:active {
    transform: scale(0.95);
}

/* ==============================================
   STATUS TIMELINE
   ============================================== */
.status-timeline {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-step.achieved .timeline-icon {
    opacity: 1;
    transform: scale(1);
}

.timeline-step.pending .timeline-icon {
    opacity: 0.3;
    transform: scale(0.85);
}

.timeline-step.current .timeline-icon {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: pulse-current 2s infinite;
}

@keyframes pulse-current {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.7); 
    }
}

.timeline-connector {
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    width: 2px;
    height: 1rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    z-index: 1;
}

.timeline-connector.has-next {
    display: block;
}

.timeline-step:last-child .timeline-connector {
    display: none;
}

.timeline-step.achieved + .timeline-step .timeline-connector {
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.3));
}

.timeline-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.timeline-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.timeline-icon.gray {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.timeline-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.timeline-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.timeline-step.pending .timeline-title {
    color: #64748b;
}

.timeline-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.timeline-step.current .timeline-title {
    color: #60a5fa;
    font-weight: 700;
}

/* Mobile Timeline */
.status-timeline.mobile {
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-flow.mobile {
    gap: 0.5rem;
}

.timeline-step.mobile {
    gap: 0.75rem;
}

.timeline-icon.mobile {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.timeline-title.mobile {
    font-size: 0.75rem;
}

.timeline-date.mobile {
    font-size: 0.65rem;
}

.timeline-connector.mobile {
    left: 1rem;
    height: 0.5rem;
    top: 2.5rem;
}

@media (max-width: 768px) {
    .timeline-flow:not(.mobile) {
        gap: 0.75rem;
    }
    
    .timeline-icon:not(.mobile) {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .timeline-title:not(.mobile) {
        font-size: 0.875rem;
    }
    
    .timeline-date:not(.mobile) {
        font-size: 0.75rem;
    }
    
    .timeline-connector:not(.mobile) {
        left: 1.25rem;
        height: 0.75rem;
    }
}

/* ==============================================
   FILTER BADGES
   ============================================== */
.filter-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.filter-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-badge:active {
    transform: scale(0.98);
}

/* ==============================================
   TABLES
   ============================================== */
.table-container {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    padding: 1rem;
}

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

.table-row:hover {
    background: rgba(51, 65, 85, 0.4);
}

.table-header {
    background: rgba(30, 41, 59, 0.8);
    font-weight: 600;
    color: var(--text-primary);
}

/* Mobile Table Styles */
.mobile-table-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.mobile-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-table-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-table-label {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.mobile-table-value {
    color: #f1f5f9;
    text-align: right;
    font-size: 0.875rem;
    word-break: break-word;
}

/* Spezielle Tabellenzeilen-Hervorhebungen */
.row-warning {
    background-color: rgba(255, 255, 0, 0.1) !important;
}

.row-critical {
    background-color: rgba(255, 0, 0, 0.1) !important;
}

/* ==============================================
   ALERTS
   ============================================== */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    transition: all 0.2s ease;
}

.alert-success:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    transition: all 0.2s ease;
}

.alert-error:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fde047;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
    transition: all 0.2s ease;
}

.alert-warning:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-300);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Icon styling for alerts */
.alert-error i,
.alert-success i,
.alert-warning i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 1rem;
}

/* ==============================================
   STATUS BADGES
   ============================================== */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-total {
    background: rgba(71, 85, 105, 0.4);
    color: #cbd5e1;
    border: 1px solid rgba(71, 85, 105, 0.4);
}

.status-sent {
    background: rgba(37, 99, 235, 0.4);
    color: var(--blue-300);
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.status-interview {
    background: rgba(124, 58, 237, 0.4);
    color: var(--purple-300);
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.status-no-response {
    background: rgba(107, 114, 128, 0.4);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.status-accepted {
    background: rgba(5, 150, 105, 0.4);
    color: var(--green-300);
    border: 1px solid rgba(5, 150, 105, 0.4);
}

.status-rejected {
    background: rgba(220, 38, 38, 0.4);
    color: var(--red-300);
    border: 1px solid rgba(220, 38, 38, 0.4);
}

/* ==============================================
   USER INTERFACE KOMPONENTEN
   ============================================== */
.user-badge {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    height: 2.25rem;
}

.user-badge:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--blue-400);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-badge-name {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .user-badge-name {
        font-size: 0.75rem;
    }
}

/* ==============================================
   TEMPLATES UND SPEZIFISCHE KOMPONENTEN
   ============================================== */
.template-preview {
    white-space: pre-line;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    margin: 0;
    background: rgba(15, 23, 42, 0.4);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: var(--blue-300);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.125rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.placeholder-tag:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ==============================================
   UTILITIES
   ============================================== */
.edit-btn {
    color: var(--blue-400);
    transition: color 0.2s ease;
}

.edit-btn:hover {
    color: var(--blue-300);
}

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

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

.bg-primary {
    background-color: var(--bg-primary);
}

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

.bg-tertiary {
    background-color: var(--bg-tertiary);
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

.footer p {
    margin: 0;
    font-size: 0.875rem;
}

/* ==============================================
   TABLE DISPLAY CONTROL
   ============================================== */
/* Standard: Desktop-Tabelle sichtbar, Mobile-Karten versteckt */
.desktop-table {
    display: block;
}

.mobile-cards {
    display: none;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Mobile First Approach */

/* Mobile Devices (phones and tablets, up to 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-top: 85px;
    }
    
    .homepage-container {
        padding: 0.5rem;
        height: auto;
        min-height: 100vh;
    }
    
    .floating-header {
        top: 0.5rem;
        width: 98%;
        padding: 0.5rem;
        border-radius: 0.75rem;
        min-height: 60px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .floating-header.header-hidden {
        transform: translateY(-120%);
    }
    
    .auth-card {
        padding: 1rem;
        margin: 0.5rem;
        max-width: none;
        width: calc(100% - 1rem);
    }
    
    .btn, .btn-icon {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn-icon span {
        display: none;
    }
    
    .stat-card {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-card .text-3xl {
        font-size: 1.5rem;
    }
    
    .glass-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card {
        padding: 1rem;
        text-align: center;
    }
    
    .feature-card i {
        font-size: 2rem;
    }
    
    /* Show mobile table instead of desktop table */
    .desktop-table {
        display: none !important;
    }
    
    .mobile-cards {
        display: block !important;
    }
    
    /* Filter badges mobile responsive */
    .filter-badge {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .filter-badge span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .filter-badge i {
        font-size: 0.75rem;
    }
    
    .form-input, .input-field {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Action buttons mobile */
    .action-btn {
        padding: 0.75rem 1.25rem;
        min-height: 2.75rem;
    }
    
    .action-btn-icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-right: 0.5rem;
    }
    
    .action-btn-text {
        font-size: 0.875rem;
    }
    
    /* Search mobile */
    .search-input-wrapper {
        padding: 0.1rem;
    }
    
    .search-input {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }
    
    .search-submit {
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0.625rem;
    }
}

/* Extra Small Devices (very small phones, up to 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }
    
    .floating-header {
        top: 0.25rem;
        width: 99%;
        padding: 0.25rem;
        border-radius: 0.5rem;
        min-height: 55px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .floating-header.header-hidden {
        transform: translateY(-130%);
    }
    
    .user-badge, .btn-danger, .btn-primary, .btn-success {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .filter-badge {
        flex: 1 1 100%;
        margin-bottom: 0.25rem;
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }
    
    .glass-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-table-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .mobile-table-row {
        padding: 0.5rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .mobile-table-label {
        font-size: 0.75rem;
        margin-right: 0;
    }
    
    .mobile-table-value {
        font-size: 0.8rem;
        text-align: left;
    }
    
    /* Action buttons sehr kleine Bildschirme */
    .action-btn {
        padding: 0.625rem 1rem;
        min-height: 2.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-btn-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0;
        margin-bottom: 0.125rem;
    }
    
    .action-btn-text {
        font-size: 0.75rem;
        text-align: center;
    }
    
    /* Search sehr kleine Bildschirme */
    .search-input {
        font-size: 0.75rem;
        padding: 0.625rem 0;
    }
    
    .search-submit {
        min-width: 2.25rem;
        height: 2.25rem;
    }
}

/* Tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .floating-header {
        top: 0.5rem;
        width: 98%;
        padding: 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    /* Show desktop table on tablets and larger */
    .desktop-table {
        display: block !important;
    }
    
    .mobile-cards {
        display: none !important;
    }
    
    /* Make table horizontally scrollable */
    .table-responsive-wrapper {
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
}

/* Large Devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
    .floating-header {
        width: 95%;
    }
    
    .main-container {
        padding: 0 1.5rem;
    }
    
    .btn:hover, .btn-icon:hover {
        transform: translateY(-1px);
    }
    
    /* Action buttons desktop */
    .action-btn {
        max-width: 200px;
    }
    
    /* Search desktop */
    .search-input-wrapper {
        max-width: 400px;
    }
}

/* ==============================================
   FORM ENHANCEMENTS
   ============================================== */
.form-group {
    margin-bottom: 0; /* Grid gap übernimmt den Abstand */
}

/* Mobile: Grid wird zu einer Spalte */
@media (max-width: 768px) {
    .auth-card {
        max-width: 500px;
        padding: 1.5rem;
    }
    
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        max-width: none;
        margin: 0.5rem;
        padding: 1rem;
    }
}

/* Mobile Specific Classes */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-block {
        display: block !important;
    }
    
    .mobile-flex {
        display: flex !important;
    }
    
    .mobile-grid {
        display: grid !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-text-sm {
        font-size: 0.875rem !important;
    }
    
    .mobile-p-2 {
        padding: 0.5rem !important;
    }
    
    .mobile-mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    /* Stack buttons vertically on mobile */
    .mobile-stack > * {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .mobile-stack > *:last-child {
        margin-bottom: 0;
    }
}

/* Print Styles */
@media print {
    .floating-header,
    .btn,
    .btn-icon {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
    }
} 