/* Modern Terminverwaltung Styles */
.termin-verwaltung,
.termin-ausgabe {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* Formular Styles */
.termin-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.termin-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.video-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.submit-button {
    background: #534243;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #403334;
}

/* Termin Liste Styles */
.termin-list-container h2 {
    margin-bottom: 1.5rem;
}

.termin-grid {
    display: grid;
    gap: 1.5rem;
}

.termin-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.termin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.termin-card.past {
    opacity: 0.7;
}

.termin-date {
    font-size: 1.1rem;
    color: #534243;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #534243;
}

.termin-content h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.termin-description {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-link {
    display: inline-block;
    color: #007cba;
    text-decoration: none;
    margin-bottom: 1rem;
}

.event-link:hover {
    text-decoration: underline;
}

.termin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e1e1;
}

.action-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.action-link.edit {
    background: #007cba;
    color: white;
}

.action-link.delete {
    background: #dc3545;
    color: white;
}

.action-link:hover {
    opacity: 0.9;
}

/* Video Links */
.video-links {
    margin: 1rem 0;
}

.video-preview {
    display: inline-block;
    margin: 0.5rem 1rem 0.5rem 0;
    text-align: center;
}

.video-preview img {
    max-width: 200px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.video-preview a {
    text-decoration: none;
    color: #333;
}

.video-link {
    margin: 0.5rem 0;
}

/* Attachments */
.termin-attachments {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.attachment-item {
    text-align: center;
    position: relative;
}

.attachment-image img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.attachment-video video {
    max-width: 300px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.attachment-file a {
    display: block;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.delete-attachment {
    display: block;
    margin-top: 0.5rem;
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Messages */
.termin-success {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.termin-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* Delete Confirmation */
.delete-confirmation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.button-danger {
    background: #dc3545;
    color: white;
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button:hover {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .termin-form-container {
        padding: 1rem;
    }
    
    .termin-grid {
        grid-template-columns: 1fr;
    }
    
    .termin-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .attachment-image img,
    .attachment-video video {
        max-width: 100%;
    }
    
    .video-preview {
        display: block;
        margin: 1rem 0;
    }
    
    .video-preview img {
        max-width: 100%;
    }
}

/* Lightbox Override */
.termin-attachments a[data-lightbox] img {
    cursor: zoom-in;
}