/* Dozenten Daten Frontend Styles - Isolated */
.dozenten-daten-container {
    --primary-color: #286291;
    --secondary-color: #2c3c56;
    --accent-color: #286291;
    --success-color: #286291;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-gray: #f1f1f1;
    --border-color: #d1d1d1;
    --text-color: #000000;
    --text-light: #666666;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --primary-light: #f1f1f1;
    --accent-light: #f1f1f1;
}

/* Alle Plugin-Styles sind auf .dozenten-daten-container beschränkt */
.dozenten-daten-container {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 3px dashed var(--primary-color);
    margin: 20px 0;
    width: 100%;
    max-width: none;
}

.dozenten-daten-container .dozenten-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.dozenten-daten-container .dozenten-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.dozenten-daten-container .dozenten-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dozenten-daten-container .dozenten-subtitle {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.dozenten-daten-container .dozenten-beschreibung {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.dozenten-daten-container .dozenten-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.dozenten-daten-container .dozenten-download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    position: relative;
}

.dozenten-daten-container .dozenten-download-btn:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.dozenten-daten-container .dozenten-download-btn .icon {
    font-size: 24px;
    min-width: 24px;
    text-align: center;
}

.dozenten-daten-container .dozenten-download-btn .text {
    flex: 1;
    text-align: left;
}

.dozenten-daten-container .dozenten-download-btn .hover-arrow {
    opacity: 0;
    font-size: 18px;
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.dozenten-daten-container .dozenten-download-btn:hover .hover-arrow {
    opacity: 1;
}

    /* Specific button styles - all buttons use same styling */
    .dozenten-daten-container .dozenten-download-btn.praesentation,
    .dozenten-daten-container .dozenten-download-btn.unterrichtsverlauf,
    .dozenten-daten-container .dozenten-download-btn.handout {
        background: var(--primary-color);
    }
    
    .dozenten-daten-container .dozenten-download-btn.praesentation:hover,
    .dozenten-daten-container .dozenten-download-btn.unterrichtsverlauf:hover,
    .dozenten-daten-container .dozenten-download-btn.handout:hover {
        background: var(--secondary-color);
    }
    
    /* Dark Mode: Alle Buttons haben die gleiche Farbe */
    @media (prefers-color-scheme: dark) {
        .dozenten-daten-container .dozenten-download-btn.praesentation,
        .dozenten-daten-container .dozenten-download-btn.unterrichtsverlauf,
        .dozenten-daten-container .dozenten-download-btn.handout {
            background: #286291;
        }
        
        .dozenten-daten-container .dozenten-download-btn.praesentation:hover,
        .dozenten-daten-container .dozenten-download-btn.unterrichtsverlauf:hover,
        .dozenten-daten-container .dozenten-download-btn.handout:hover {
            background: #2c3c56;
        }
    }

/* Download indicator - removed in favor of hover arrow */

/* Responsive Design - Optimized for all devices */

/* Desktop (1200px and above) */
@media (min-width: 1200px) {
    .dozenten-daten-container {
        width: 100%;
        max-width: none;
        padding: 35px;
        margin: 30px 0;
        border: 4px dashed var(--primary-color);
        border-radius: 12px;
    }
    
    .dozenten-daten-container .dozenten-title {
        font-size: 26px;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        font-size: 18px;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        padding: 20px 25px;
        font-size: 15px;
        gap: 20px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .icon {
        font-size: 22px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        font-size: 16px;
    }
}

/* Tablet Landscape (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .dozenten-daten-container {
        width: 100%;
        max-width: none;
        padding: 30px;
        margin: 25px 0;
        border: 3px dashed var(--primary-color);
        border-radius: 10px;
    }
    
    .dozenten-daten-container .dozenten-title {
        font-size: 28px;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        font-size: 22px;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        padding: 18px 22px;
        font-size: 16px;
        gap: 16px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .icon {
        font-size: 24px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        font-size: 18px;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .dozenten-daten-container {
        width: 100%;
        max-width: none;
        padding: 25px 20px;
        margin: 20px 0;
        border: 2px dashed var(--primary-color);
        border-radius: 8px;
    }
    
    .dozenten-daten-container .dozenten-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        font-size: 18px;
    }
    
    .dozenten-daten-container .dozenten-beschreibung {
        font-size: 15px;
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .dozenten-daten-container .dozenten-downloads {
        gap: 12px;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        padding: 16px 18px;
        font-size: 15px;
        gap: 14px;
        border-radius: 8px;
        border-width: 2px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .icon {
        font-size: 22px;
        min-width: 22px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        font-size: 16px;
    }
}

/* Mobile Large (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
    .dozenten-daten-container {
        width: 100%;
        max-width: none;
        padding: 20px 15px;
        margin: 15px 0;
        border: 2px dashed var(--primary-color);
        border-radius: 6px;
    }
    
    .dozenten-daten-container .dozenten-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .dozenten-daten-container .dozenten-title {
        font-size: 22px;
        letter-spacing: 0.3px;
        margin-bottom: 8px;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        font-size: 16px;
    }
    
    .dozenten-daten-container .dozenten-beschreibung {
        font-size: 14px;
        padding: 10px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .dozenten-daten-container .dozenten-downloads {
        gap: 10px;
        margin-top: 15px;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        padding: 14px 16px;
        font-size: 15px;
        gap: 12px;
        border-radius: 6px;
        border-width: 2px;
        flex-direction: row;
        text-align: left;
    }
    
    .dozenten-daten-container .dozenten-download-btn .icon {
        font-size: 20px;
        min-width: 20px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .text {
        text-align: left;
        flex: 1;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        font-size: 14px;
    }
}

/* Mobile Small (320px - 374px) */
@media (max-width: 374px) {
    .dozenten-daten-container {
        width: 100%;
        max-width: none;
        padding: 18px 12px;
        margin: 12px 0;
        border: 1px dashed var(--primary-color);
        border-radius: 6px;
    }
    
    .dozenten-daten-container .dozenten-header {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .dozenten-daten-container .dozenten-title {
        font-size: 20px;
        letter-spacing: 0.2px;
        margin-bottom: 6px;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        font-size: 15px;
    }
    
    .dozenten-daten-container .dozenten-beschreibung {
        font-size: 13px;
        padding: 8px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .dozenten-daten-container .dozenten-downloads {
        gap: 8px;
        margin-top: 12px;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        padding: 12px 14px;
        font-size: 14px;
        gap: 10px;
        border-radius: 5px;
        border-width: 1px;
        flex-direction: row;
        text-align: left;
    }
    
    .dozenten-daten-container .dozenten-download-btn .icon {
        font-size: 18px;
        min-width: 18px;
    }
    
    .dozenten-daten-container .dozenten-download-btn .text {
        text-align: left;
        flex: 1;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        font-size: 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .dozenten-daten-container .dozenten-download-btn {
        min-height: 44px; /* Minimum touch target size */
        padding: 16px 20px;
    }
    
    .dozenten-daten-container .dozenten-download-btn:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
    
    .dozenten-daten-container .dozenten-download-btn:active {
        background: var(--secondary-color);
        transform: scale(0.98);
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        opacity: 1; /* Always show arrow on touch devices */
    }
}

/* Loading state */
.dozenten-daten-container .dozenten-download-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.dozenten-daten-container .dozenten-download-btn.loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Success state */
.dozenten-daten-container .dozenten-download-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.dozenten-daten-container .dozenten-download-btn.success::after {
    content: '✓';
    opacity: 1;
    animation: none;
}

/* Error state */
.dozenten-daten-container .dozenten-download-btn.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dozenten-daten-container .dozenten-download-btn.error::after {
    content: '✗';
    opacity: 1;
    animation: none;
}

/* Print styles */
@media print {
    .dozenten-daten-container .dozenten-download-btn {
        background: #f0f0f0 !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .dozenten-daten-container .dozenten-download-btn:hover {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .dozenten-daten-container .dozenten-download-btn {
        border: 2px solid currentColor;
    }
    
    .dozenten-daten-container {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dozenten-daten-container .dozenten-download-btn {
        transition: none;
    }
    
    .dozenten-daten-container .dozenten-download-btn::before {
        display: none;
    }
    
    .dozenten-daten-container .dozenten-download-btn:hover::after {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dozenten-daten-container {
        background: #1a1a1a;
        color: #ffffff;
        border-color: #404040;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .dozenten-daten-container .dozenten-header {
        border-bottom-color: #404040;
    }
    
    .dozenten-daten-container .dozenten-header::after {
        background: #286291;
    }
    
    .dozenten-daten-container .dozenten-title {
        color: #286291;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        color: #b0b0b0;
    }
    
    .dozenten-daten-container .dozenten-beschreibung {
        background: #2a2a2a;
        color: #e0e0e0;
        border-left-color: #286291;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        background: #286291;
        color: #ffffff;
        border: 1px solid #2c3c56;
        box-shadow: 0 2px 8px rgba(40, 98, 145, 0.3);
    }
    
    .dozenten-daten-container .dozenten-download-btn:hover {
        background: #2c3c56;
        border-color: #1a252f;
        box-shadow: 0 4px 12px rgba(40, 98, 145, 0.4);
        transform: translateY(-1px);
    }
    
    .dozenten-daten-container .dozenten-download-btn:focus {
        outline-color: #286291;
        box-shadow: 0 0 0 3px rgba(40, 98, 145, 0.3);
    }
    
    .dozenten-daten-container .dozenten-download-btn .icon {
        color: #ffffff;
    }
    
    .dozenten-daten-container .dozenten-download-btn .text {
        color: #ffffff;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        color: #ffffff;
    }
    
    /* Kategorie View Styles im Dark Mode */
    .dozenten-daten-container .dozenten-entries {
        background: transparent;
    }
    
    .dozenten-daten-container .dozenten-entry {
        background: #2a2a2a;
        border-left-color: #286291;
        border: 1px solid #404040;
    }
    
    .dozenten-daten-container .entry-title {
        color: #286291;
    }
    
    .dozenten-daten-container .entry-description {
        color: #b0b0b0;
    }
    
    /* Scrollbar im Dark Mode */
    .dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar-track {
        background: #2a2a2a;
    }
    
    .dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar-thumb {
        background: #286291;
    }
    
    .dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar-thumb:hover {
        background: #2c3c56;
    }
    
    /* Loading, Success und Error States im Dark Mode */
    .dozenten-daten-container .dozenten-download-btn.loading {
        background: #2c3e50;
        color: #b0b0b0;
    }
    
    .dozenten-daten-container .dozenten-download-btn.success {
        background: linear-gradient(135deg, #27ae60, #2ecc71);
        color: #ffffff;
    }
    
    .dozenten-daten-container .dozenten-download-btn.error {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: #ffffff;
    }
    
    /* High contrast mode im Dark Mode */
    .dozenten-daten-container .dozenten-download-btn {
        border: 1px solid #286291;
    }
    
    .dozenten-daten-container {
        border: 2px dashed #286291;
    }
}

/* Focus styles for accessibility */
.dozenten-daten-container .dozenten-download-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Performance optimizations */
.dozenten-daten-container .dozenten-download-btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .dozenten-daten-container .dozenten-download-btn {
        border-width: 1.5px;
    }
    
    .dozenten-daten-container .dozenten-header::after {
        height: 1.5px;
    }
    
    .dozenten-daten-container {
        border-width: 1.5px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .dozenten-daten-container {
        width: 100%;
        max-width: none;
        padding: 15px 20px;
        margin: 10px 0;
        border: 2px dashed var(--primary-color);
    }
    
    .dozenten-daten-container .dozenten-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        font-size: 16px;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Print optimization */
@media print {
    .dozenten-daten-container {
        max-width: none;
        margin: 0;
        padding: 20px;
        border: 2px dashed #000;
        border-radius: 0;
        box-shadow: none;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .dozenten-daten-container .dozenten-title {
        color: #000000 !important;
    }
    
    .dozenten-daten-container .dozenten-subtitle {
        color: #333333 !important;
    }
    
    .dozenten-daten-container .dozenten-beschreibung {
        background: #f5f5f5 !important;
        color: #333333 !important;
        border-left-color: #000000 !important;
    }
    
    .dozenten-daten-container .dozenten-download-btn {
        border: 2px solid #000;
        background: #f9f9f9 !important;
        color: #000 !important;
        page-break-inside: avoid;
        margin-bottom: 10px;
        box-shadow: none !important;
    }
    
    .dozenten-daten-container .dozenten-download-btn:hover {
        background: #e9e9e9 !important;
        transform: none !important;
    }
    
    .dozenten-daten-container .dozenten-download-btn .hover-arrow {
        display: none;
    }
    
    .dozenten-daten-container .dozenten-entry {
        background: #f5f5f5 !important;
        border-left-color: #000000 !important;
        border: 1px solid #cccccc !important;
    }
    
    .dozenten-daten-container .entry-title {
        color: #000000 !important;
    }
    
    .dozenten-daten-container .entry-description {
        color: #333333 !important;
    }
}

/* Custom scrollbar for description */
.dozenten-daten-container .dozenten-beschreibung {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--light-gray);
}

.dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar {
    width: 8px;
}

.dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.dozenten-daten-container .dozenten-beschreibung::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Kategorie View Styles */
.dozenten-daten-container .dozenten-entries {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.dozenten-daten-container .dozenten-entry {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.dozenten-daten-container .entry-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.dozenten-daten-container .entry-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* Responsive for Kategorie View */
@media (max-width: 767px) {
    .dozenten-daten-container .dozenten-entries {
        gap: 20px;
    }
    
    .dozenten-daten-container .dozenten-entry {
        padding: 15px;
    }
    
    .dozenten-daten-container .entry-title {
        font-size: 16px;
    }
    
    .dozenten-daten-container .entry-description {
        font-size: 13px;
    }
}
