/* Stralys Kundenportal - CSS im Original stralys.de Design */

:root {
    /* Fallback Farben für ältere Browser */
    --brand-red: #8b2635;
    --brand-dark: #1f2937;
    
    --primary: #8b2635;
    --primary-foreground: #ffffff;
    
    --background: #fafafa;
    --foreground: #1f2937;
    
    --card: #ffffff;
    --card-foreground: #1f2937;
    
    --secondary: #f3f4f6;
    --secondary-foreground: #1f2937;
    
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    
    --accent: #f3f4f6;
    --accent-foreground: #8b2635;
    
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: #8b2635;
    
    --destructive: #dc2626;
    --success: #16a34a;
    --warning: #ca8a04;
    --info: #2563eb;
    
    --radius: 0.75rem;
    
    --spacing: 0.25rem;
}

/* Moderne Browser mit oklch() Support */
@supports (color: oklch(45% .18 25)) {
    :root {
        --brand-red: oklch(45% .18 25);
        --brand-dark: oklch(20% .02 260);
        --primary: oklch(45% .18 25);
        --primary-foreground: oklch(100% 0 0);
        --background: oklch(99% 0 0);
        --foreground: oklch(20% .02 260);
        --card: oklch(100% 0 0);
        --card-foreground: oklch(20% .02 260);
        --secondary: oklch(96% .01 260);
        --secondary-foreground: oklch(20% .02 260);
        --muted: oklch(96% .01 260);
        --muted-foreground: oklch(55% .02 260);
        --accent: oklch(96% .01 260);
        --accent-foreground: oklch(45% .18 25);
        --border: oklch(92% .01 260);
        --input: oklch(92% .01 260);
        --ring: oklch(45% .18 25);
        --destructive: oklch(57.7% .245 27.325);
        --success: oklch(55% .2 145);
        --warning: oklch(70% .15 85);
        --info: oklch(55% .2 250);
    }
}

/* Reset & Basis */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, oklch(98% .005 260), oklch(96% .01 260));
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: oklch(35% .15 25);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.sidebar-logo svg {
    width: 40px;
    height: 40px;
}

.sidebar-logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.2;
}

.sidebar-logo span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 400;
    letter-spacing: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 0.125rem;
}

.nav-item:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.nav-item.active {
    background: oklch(95% .02 25);
    color: var(--primary);
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--secondary);
    border-radius: var(--radius);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: oklch(95% .02 25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Cards - Glass Effect wie auf stralys.de */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 11px rgba(0, 0, 0, 0.08);
}

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

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: oklch(95% .02 25);
    color: var(--primary);
}

.stat-icon.green {
    background: oklch(95% .03 145);
    color: var(--success);
}

.stat-icon.blue {
    background: oklch(95% .03 250);
    color: var(--info);
}

.stat-icon.orange {
    background: oklch(95% .03 85);
    color: var(--warning);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.8rem;
    margin-top: 0.125rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background: var(--secondary);
}

tr:hover td {
    background: oklch(99% .005 260);
}

td {
    font-size: 0.875rem;
    color: var(--foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover {
    background: oklch(35% .15 25);
    color: var(--primary-foreground);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-danger {
    background: oklch(97% .02 25);
    color: var(--destructive);
    border: 1px solid oklch(90% .05 25);
}

.btn-danger:hover {
    background: var(--destructive);
    color: white;
}

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

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

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

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px oklch(45% .18 25 / 0.15);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-success {
    background: oklch(95% .03 145);
    color: var(--success);
}

.badge-warning {
    background: oklch(95% .03 85);
    color: oklch(55% .15 85);
}

.badge-danger {
    background: oklch(95% .03 25);
    color: var(--destructive);
}

.badge-info {
    background: oklch(95% .03 250);
    color: var(--info);
}

.badge-secondary {
    background: var(--secondary);
    color: var(--muted-foreground);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-success {
    background: oklch(98% .01 145);
    border-color: oklch(90% .05 145);
    color: var(--success);
}

.alert-error {
    background: oklch(98% .01 25);
    border-color: oklch(90% .05 25);
    color: var(--destructive);
}

.alert-warning {
    background: oklch(98% .02 85);
    border-color: oklch(90% .05 85);
    color: oklch(50% .15 85);
}

.alert-info {
    background: oklch(98% .01 250);
    border-color: oklch(90% .05 250);
    color: var(--info);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, oklch(98% .005 260), oklch(96% .01 260));
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--radius) + 8px);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 48px;
    margin-bottom: 1.5rem;
}

.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Ticket Messages */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.message.customer {
    background: var(--secondary);
    margin-right: 2rem;
}

.message.admin {
    background: oklch(97% .01 25);
    margin-left: 2rem;
    border-color: oklch(92% .02 25);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.message-sender {
    font-weight: 600;
    color: var(--primary);
}

.message-time {
    color: var(--muted-foreground);
}

.message-content {
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--foreground);
}

/* License Card */
.license-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.license-product {
    font-weight: 600;
    font-size: 1rem;
    color: var(--foreground);
}

.license-version {
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.license-key {
    font-family: ui-monospace, 'SF Mono', Monaco, monospace;
    background: oklch(97% .01 25);
    padding: 0.375rem 0.75rem;
    border-radius: calc(var(--radius) - 4px);
    color: var(--primary);
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid oklch(92% .02 25);
}

.license-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted-foreground);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: var(--muted-foreground);
}

.empty-state h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    background: var(--secondary);
    padding: 0.25rem;
    border-radius: var(--radius);
    width: fit-content;
}

.tab {
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 4px);
    color: var(--muted-foreground);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    text-decoration: none;
}

.tab:hover {
    color: var(--foreground);
}

.tab.active {
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.file-upload:hover {
    border-color: var(--primary);
    background: oklch(99% .005 25);
}

.file-upload input {
    display: none;
}

.file-upload svg {
    width: 36px;
    height: 36px;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.file-upload p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.file-upload .file-name {
    margin-top: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

/* Action Links */
.action-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Copy Button */
.copy-btn {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.15s ease;
}

.copy-btn:hover {
    color: var(--primary);
    background: oklch(97% .01 25);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    background: var(--card);
    border-bottom: 1px solid #e5e7eb;
    border-bottom-color: var(--border);
    z-index: 200;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-header-logo {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f2937;
    color: var(--foreground);
    border-radius: 0.75rem;
    border-radius: var(--radius);
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: #f3f4f6;
    background: var(--secondary);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

/* Sidebar Close Button (mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all 0.15s ease;
}

.sidebar-close:hover {
    background: var(--border);
    color: var(--foreground);
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: calc(60px + 1.5rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Tabellen auf Mobile */
    .table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    th, td {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .card {
        padding: 1rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 38px;
        height: 38px;
    }
    
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    /* Tabs */
    .tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.375rem;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 60px 0.75rem 1rem 0.75rem;
        padding-top: calc(60px + 1rem);
    }
    
    /* Buttons auf volle Breite */
    .btn {
        padding: 0.75rem 1rem;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Action Links vertikal */
    .action-links {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .action-links .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Tabelle: Weniger Spalten anzeigen */
    .hide-mobile {
        display: none !important;
    }
    
    th, td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Messages */
    .message.customer,
    .message.admin {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ticket Grid */
    .ticket-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Card Header */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* License Card */
    .license-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .alert svg {
        width: 16px;
        height: 16px;
    }
}

/* Touch-freundliche Elemente */
@media (hover: none) and (pointer: coarse) {
    .nav-item {
        padding: 0.875rem 0.75rem;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    select.form-control {
        font-size: 16px;
    }
}

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

.card, .stat-card {
    animation: fadeIn 0.3s ease;
}

/* Print Styles */
@media print {
    .sidebar, .page-actions, .btn, .mobile-header {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    body {
        background: white;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}
