/* HSC Webplatform - Zentrale CSS-Datei */
/* Tailwind CSS ist das primäre Framework */

/* ===== CUSTOM APPLE-DESIGN SYSTEM ===== */
/* Erweitert Tailwind mit Apple-inspirierten Styles */

/* Apple Color System - Background Colors */
.apple-gray-50 { background-color: #F9FAFB; }
.apple-gray-100 { background-color: #F3F4F6; }
.apple-gray-200 { background-color: #E5E7EB; }
.apple-gray-300 { background-color: #D1D5DB; }
.apple-gray-400 { background-color: #9CA3AF; }
.apple-gray-500 { background-color: #6B7280; }
.apple-gray-600 { background-color: #4B5563; }
.apple-gray-700 { background-color: #374151; }
.apple-gray-800 { background-color: #1F2937; }
.apple-gray-900 { background-color: #111827; }

.apple-blue { background-color: #007AFF; }
.apple-blue-50 { background-color: #EBF8FF; }
.apple-blue-100 { background-color: #BEE3F8; }
.apple-blue-800 { background-color: #2B6CB0; }

/* Apple Text Colors */
.text-apple-gray-50 { color: #F9FAFB; }
.text-apple-gray-100 { color: #F3F4F6; }
.text-apple-gray-200 { color: #E5E7EB; }
.text-apple-gray-300 { color: #D1D5DB; }
.text-apple-gray-400 { color: #9CA3AF; }
.text-apple-gray-500 { color: #6B7280; }
.text-apple-gray-600 { color: #4B5563; }
.text-apple-gray-700 { color: #374151; }
.text-apple-gray-800 { color: #1F2937; }
.text-apple-gray-900 { color: #111827; }

.text-apple-blue { color: #007AFF; }
.text-apple-blue-50 { color: #EBF8FF; }
.text-apple-blue-100 { color: #BEE3F8; }
.text-apple-blue-800 { color: #2B6CB0; }

/* Apple Border Colors */
.border-apple-gray-50 { border-color: #F9FAFB; }
.border-apple-gray-100 { border-color: #F3F4F6; }
.border-apple-gray-200 { border-color: #E5E7EB; }
.border-apple-gray-300 { border-color: #D1D5DB; }
.border-apple-gray-400 { border-color: #9CA3AF; }
.border-apple-gray-500 { border-color: #6B7280; }
.border-apple-gray-600 { border-color: #4B5563; }
.border-apple-gray-700 { border-color: #374151; }
.border-apple-gray-800 { border-color: #1F2937; }
.border-apple-gray-900 { border-color: #111827; }

.border-apple-blue { border-color: #007AFF; }
.border-apple-blue-50 { border-color: #EBF8FF; }
.border-apple-blue-100 { border-color: #BEE3F8; }
.border-apple-blue-800 { border-color: #2B6CB0; }

/* Apple Design System - Additional Classes */
.rounded-apple { border-radius: 12px; }
.shadow-apple { box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.1), 0 2px 10px -2px rgba(0, 0, 0, 0.04); }
.shadow-apple-lg { box-shadow: 0 10px 40px -4px rgba(0, 0, 0, 0.1), 0 4px 25px -5px rgba(0, 0, 0, 0.04); }
.shadow-apple-xl { box-shadow: 0 20px 60px -4px rgba(0, 0, 0, 0.1), 0 8px 40px -5px rgba(0, 0, 0, 0.04); }

/* Apple-ähnliche Hover-Effekte */
.apple-hover {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.apple-hover:hover {
    transform: translateY(-1px);
}

/* Glass Morphism Effekt */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation mit fester Hintergrundfarbe */
.nav-glass {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile Menu Scrollbar */
#mobile-menu .overflow-y-auto::-webkit-scrollbar {
    @apply w-1;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-track {
    @apply bg-gray-100 rounded-sm;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb {
    @apply bg-gray-300 rounded-sm;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400;
}

/* Smooth Focus Rings */
.focus-ring:focus {
    @apply outline-none ring-2 ring-blue-500/50;
}

/* ===== APP-SPEZIFISCHE STYLES ===== */

/* Wiki Prose Styles */
.prose {
    @apply text-gray-700 max-w-none;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    @apply text-gray-900 font-semibold mt-8 mb-4;
}

.prose h1 {
    @apply text-4xl leading-10;
}

.prose h2 {
    @apply text-3xl leading-9;
}

.prose h3 {
    @apply text-2xl leading-8;
}

.prose h4 {
    @apply text-xl leading-7;
}

.prose p {
    @apply mt-5 mb-5 leading-7;
}

.prose ul, .prose ol {
    @apply mt-5 mb-5 pl-6;
}

.prose ul {
    @apply list-disc;
}

.prose ol {
    @apply list-decimal;
}

.prose li {
    @apply mt-2 mb-2;
}

.prose ul li::marker,
.prose ol li::marker {
    @apply text-gray-700;
}

.prose table {
    @apply w-full border-collapse mt-6 mb-6;
}

.prose th, .prose td {
    @apply border border-gray-300 p-3 text-left;
}

.prose th {
    @apply bg-gray-50 font-semibold;
}

.prose blockquote {
    @apply border-l-4 border-blue-500 pl-4 my-6 italic text-gray-600;
}

.prose code {
    @apply bg-gray-100 px-2 py-1 rounded text-sm font-mono;
}

.prose pre {
    @apply bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-6;
}

.prose pre code {
    @apply bg-transparent p-0;
}

/* ===== COMPONENT STYLES ===== */

/* Button Variants */
.btn-primary {
    @apply bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-secondary {
    @apply bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-danger {
    @apply bg-red-600 hover:bg-red-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

.btn-success {
    @apply bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-4 rounded-lg transition-colors duration-200;
}

/* Card Styles */
.card {
    @apply bg-white rounded-lg shadow-sm border border-gray-200 p-6;
}

.card-header {
    @apply border-b border-gray-200 pb-4 mb-4;
}

.card-title {
    @apply text-xl font-semibold text-gray-900;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 text-gray-900 bg-gray-50 border border-gray-200 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-error {
    @apply text-red-600 text-sm mt-1;
}

/* ===== UTILITY CLASSES ===== */

/* Spacing */
.space-y-8 > * + * {
    @apply mt-8;
}

.space-y-6 > * + * {
    @apply mt-6;
}

.space-y-4 > * + * {
    @apply mt-4;
}

/* Text Sizes */
.text-xs { @apply text-xs; }
.text-sm { @apply text-sm; }
.text-base { @apply text-base; }
.text-lg { @apply text-lg; }
.text-xl { @apply text-xl; }
.text-2xl { @apply text-2xl; }
.text-3xl { @apply text-3xl; }
.text-4xl { @apply text-4xl; }

/* Responsive Design */
@media (max-width: 640px) {
    .mobile-hidden {
        @apply hidden;
    }

    .mobile-full {
        @apply w-full;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ===== MATERIAL-SPEZIFISCHE STYLES ===== */
/* Material Cards */
.material-card {
    @apply border-l-4 border-green-600 transition-all duration-200;
}

.material-card:hover {
    @apply transform -translate-y-0.5 shadow-lg;
}

/* Material Type Badge */
.material-type-badge {
    @apply bg-gradient-to-r from-green-800 to-green-600 text-white px-3 py-1 rounded-full text-xs font-semibold;
}

/* Quantity Badges */
.quantity-badge {
    @apply px-4 py-2 rounded-xl font-semibold text-sm;
}

.quantity-available {
    @apply bg-green-100 text-green-800 border border-green-200;
}

.quantity-low {
    @apply bg-yellow-100 text-yellow-800 border border-yellow-200;
}

.quantity-empty {
    @apply bg-red-100 text-red-800 border border-red-200;
}

/* Transaction Items */
.transaction-item {
    @apply border-l-4 border-green-500 bg-gray-50 rounded-lg p-4 mb-3;
}

.transaction-issue {
    @apply border-l-red-500;
}

.transaction-return {
    @apply border-l-green-500;
}

.transaction-add {
    @apply border-l-blue-500;
}

/* Material Grid */
.material-grid {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6;
}

/* Form Sections */
.form-section {
    @apply bg-white p-8 rounded-xl shadow-sm mb-8;
}

.form-section h3 {
    @apply text-green-800 border-b-2 border-green-500 pb-2 mb-6;
}

/* Print Styles */
@media print {
    .no-print {
        @apply hidden;
    }

    .print-header {
        @apply flex justify-between items-center mb-8 border-b-2 border-green-800 pb-4;
    }

    .print-logo {
        @apply text-2xl font-bold text-green-800;
    }

    body {
        @apply bg-white;
    }

    .card, .material-card {
        @apply border border-gray-300 shadow-none mb-4;
    }
}

/* ===== WIKI-SPEZIFISCHE STYLES ===== */
/* Wiki-Styles sind jetzt direkt im base_wiki.html Template definiert */

/* Wiki Prose Styles (erweitert) */
.prose table.table-left {
    margin-left: 0;
    margin-right: auto;
}

.prose table.table-center {
    margin-left: auto;
    margin-right: auto;
}

.prose table.table-right {
    margin-left: auto;
    margin-right: 0;
}

.prose table.table-small {
    width: 50%;
}

.prose table.table-medium {
    width: 75%;
}

.prose table.table-large {
    width: 100%;
}

.prose table.table-bordered th,
.prose table.table-bordered td {
    border: 2px solid #d1d5db;
}

.prose table.table-striped tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.prose table.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

/* Layout Fixes */
.wiki-main-content {
    max-width: none;
    width: 100%;
    overflow-x: auto;
}

.wiki-main-content .wiki-content-wrapper {
    max-width: none;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive Wiki Design */
@media (max-width: 768px) {
    #wiki-sidebar {
        position: fixed;
        left: -320px;
        z-index: var(--z-modal);
        width: 320px !important;
    }

    #wiki-sidebar.show {
        left: 0;
    }

    .wiki-main-content {
        margin-left: 0;
        max-width: 100vw;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        @apply bg-gray-900 text-gray-100;
    }

    .dark-mode .card {
        @apply bg-gray-800 border-gray-700;
    }

    .dark-mode .form-input {
        @apply bg-gray-700 border-gray-600 text-gray-100;
    }
}
/* ===== BANNER-WERBUNG MOBILE OPTIMIERUNG ===== */
/* Mobile Card Layout für Banner-Werbung */
@media (max-width: 1024px) {
    .banner-mobile-card {
        @apply p-4 border-b border-gray-200 last:border-b-0;
    }
    
    .banner-mobile-card:hover {
        @apply bg-gray-50;
    }
    
    .banner-mobile-content {
        @apply flex flex-col space-y-2;
    }
    
    .banner-mobile-header {
        @apply flex items-center justify-between;
    }
    
    .banner-mobile-title {
        @apply text-sm font-medium text-gray-900 truncate;
    }
    
    .banner-mobile-subtitle {
        @apply text-sm text-gray-500;
    }
    
    .banner-mobile-details {
        @apply text-sm text-gray-600;
    }
    
    .banner-mobile-footer {
        @apply flex items-center justify-between mt-2;
    }
    
    .banner-mobile-actions {
        @apply flex space-x-2;
    }
    
    .banner-mobile-action-btn {
        @apply p-1 text-gray-600 hover:text-gray-900;
    }
}

/* Responsive Filter Layout */
@media (max-width: 640px) {
    .banner-filter-grid {
        @apply grid-cols-1 gap-4;
    }
    
    .banner-filter-item {
        @apply col-span-1;
    }
    
    .banner-search-item {
        @apply col-span-1;
    }
    
    .banner-clear-item {
        @apply col-span-1;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .banner-filter-grid {
        @apply grid-cols-2 gap-4;
    }
    
    .banner-filter-item {
        @apply col-span-1;
    }
    
    .banner-search-item {
        @apply col-span-2;
    }
    
    .banner-clear-item {
        @apply col-span-2;
    }
}

/* Mobile Button Optimierung */
@media (max-width: 640px) {
    .banner-mobile-btn {
        @apply w-full justify-center;
    }
    
    .banner-mobile-btn-group {
        @apply flex-col space-y-2 space-x-0;
    }
}

@media (min-width: 641px) {
    .banner-mobile-btn-group {
        @apply flex-row space-y-0 space-x-3;
    }
}

/* Mobile Header Optimierung */
@media (max-width: 1024px) {
    .banner-mobile-header-container {
        @apply flex-col space-y-4;
    }
    
    .banner-mobile-title-container {
        @apply text-center lg:text-left;
    }
    
    .banner-mobile-title {
        @apply text-2xl lg:text-3xl;
    }
}

/* Mobile Tabelle verstecken, Cards anzeigen */
@media (max-width: 1024px) {
    .banner-desktop-table {
        @apply hidden;
    }
    
    .banner-mobile-cards {
        @apply block;
    }
}

/* ===== STAND/EINSATZORT STYLES ===== */
/* Styling für Stand-Anzeige in Schichten */

.stand-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.stand-badge:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.stand-icon {
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.stand-name {
    font-weight: 500;
}

/* Stand-spezifische Farben für bessere Sichtbarkeit */
.stand-grill { color: #FF6B35 !important; }
.stand-drinks { color: #4ECDC4 !important; }
.stand-cake { color: #FFE66D !important; }
.stand-setup { color: #95A5A6 !important; }
.stand-cleanup { color: #95A5A6 !important; }
.stand-care { color: #007AFF !important; }
.stand-cash { color: #27AE60 !important; }
.stand-medic { color: #E74C3C !important; }

/* ===== DROPDOWN NAVIGATION STYLES ===== */
/* Moderne Click-Dropdown Navigation für bessere UX */

/* Dropdown Animation Classes */
.dropdown-enter {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease-in-out;
}

.dropdown-enter-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-exit {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.2s ease-in-out;
}

.dropdown-exit-active {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
}

/* Chevron Rotation Animation */
.chevron-rotate {
    transition: transform 0.2s ease-in-out;
}

.chevron-rotate.open {
    transform: rotate(180deg);
}

/* Tailwind rotate-180 Klasse für mobile Navigation */
.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile Touch Optimierung */
@media (max-width: 768px) {
    .dropdown-toggle {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .dropdown-toggle:active {
        background-color: rgba(0, 122, 255, 0.1);
    }
    
    /* Mobile Navigation Links */
    .apple-hover {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    .apple-hover:active {
        background-color: rgba(0, 122, 255, 0.1) !important;
        transform: scale(0.98);
    }
}

/* Dropdown Focus States */
.dropdown-toggle:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Mobile Dropdown Spacing */
.mobile-dropdown-item {
    padding-left: 1rem;
    margin-left: 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.mobile-dropdown-item:hover {
    border-left-color: #007AFF;
    background-color: rgba(0, 122, 255, 0.05);
}

/* Desktop Dropdown Z-Index */
.dropdown-menu {
    z-index: var(--z-dropdown);
}

/* Smooth Transitions für alle Dropdown-Elemente */
.dropdown-transition {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Stand-Anzeige */
@media (max-width: 768px) {
    .stand-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
    
    .stand-icon {
        font-size: 0.75rem;
    }
}

/* ===== END CUSTOM STYLES ===== */

/* Cache Bust: Tue Sep  9 20:15:00 CEST 2025 */
