/* SG Turbine Golzow - Custom Styles */

/* Trix Editor Anpassungen */
trix-editor {
    min-height: 200px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

trix-editor:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

trix-toolbar {
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background: #f9fafb;
}

/* Prose Styles für HTML-Inhalte */
.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.prose p {
    margin-bottom: 1em;
}

.prose ul, .prose ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: 0.25em;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Line Clamp für Textkürzung */
.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;
}

/* Lightbox für Bildergalerie */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Kalender Styles */
.calendar-day {
    min-height: 100px;
}

.calendar-event {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    margin-bottom: 0.125rem;
    cursor: pointer;
}

.calendar-event-training {
    background-color: #dbeafe;
    color: #1e40af;
}

.calendar-event-match {
    background-color: #dcfce7;
    color: #166534;
}

.calendar-event-meeting {
    background-color: #fef3c7;
    color: #92400e;
}

.calendar-event-celebration {
    background-color: #fce7f3;
    color: #9d174d;
}

.calendar-event-other {
    background-color: #f3f4f6;
    color: #374151;
}

/* Drag and Drop für Bilder-Sortierung */
.sortable-ghost {
    opacity: 0.5;
}

.sortable-chosen {
    background-color: #eff6ff;
}

/* Responsive Tabellen */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

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

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

/* Print Styles */
@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
    
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
}
