/**
 * Content-Type Specific Styles für KI-Kartierung
 * Datei: static/assets/css/content-types.css
 */

/* =====================================
   CONTENT-TYPE BADGES
   ===================================== */

.content-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.2s ease;
}

/* KI-Dienste (Blau) */
.content-type-ki_dienst,
.content-type-badge.content-type-ki_dienst {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.3);
}

.content-type-ki_dienst:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* KI-Projekte (Grün) */
.content-type-ki_projekt,
.content-type-badge.content-type-ki_projekt {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.3);
}

.content-type-ki_projekt:hover {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

/* KI-Handreichungen (Orange) */
.content-type-ki_handreichung,
.content-type-badge.content-type-ki_handreichung {
    background-color: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.3);
}

.content-type-ki_handreichung:hover {
    background-color: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

/* =====================================
   PAGE HEADERS FÜR CONTENT-TYPE-SEITEN
   ===================================== */

.page-header {
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, currentColor 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0.1;
    z-index: 0;
}

.page-header h1 {
    color: white;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 700;
}

.page-header .icon {
    font-size: 1.5em;
    opacity: 0.9;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

/* Content-Type-spezifische Header-Farben */
.page-header.ki-dienste {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.page-header.ki-projekte {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.page-header.ki-handreichungen {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
}

/* =====================================
   CONTENT-TYPE DESCRIPTION BOXES
   ===================================== */

.content-type-description {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid;
    position: relative;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-type-description h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.content-type-description p {
    margin: 0;
    line-height: 1.6;
}

/* KI-Dienste Description */
.content-type-description.ki-dienste {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-left-color: #3b82f6;
}

.content-type-description.ki-dienste h2 {
    color: #1e40af;
}

.content-type-description.ki-dienste p {
    color: #3730a3;
}

/* KI-Projekte Description */
.content-type-description.ki-projekte {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border-left-color: #10b981;
}

.content-type-description.ki-projekte h2 {
    color: #065f46;
}

.content-type-description.ki-projekte p {
    color: #047857;
}

/* KI-Handreichungen Description */
.content-type-description.ki-handreichungen {
    background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 100%);
    border-left-color: #f59e0b;
}

.content-type-description.ki-handreichungen h2 {
    color: #92400e;
}

.content-type-description.ki-handreichungen p {
    color: #78350f;
}

/* =====================================
   STATS BOXES
   ===================================== */

.stats-box {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
    border: 1px solid #f3f4f6;
}

.stat-item {
    border-right: 1px solid #e5e7eb;
    padding-right: 1rem;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, currentColor 0%, rgba(0,0,0,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Content-Type-spezifische Stat-Farben */
.ki-dienste .stat-number {
    color: #3b82f6;
}

.ki-projekte .stat-number {
    color: #10b981;
}

.ki-handreichungen .stat-number {
    color: #f59e0b;
}

/* =====================================
   PROJECT CARDS ENHANCEMENTS
   ===================================== */

.project-card {
    border-top: 3px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Content-Type-spezifische Card-Akzente */
.ki-dienste .project-card {
    border-top-color: #3b82f6;
}

.ki-dienste .project-card:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.ki-projekte .project-card {
    border-top-color: #10b981;
}

.ki-projekte .project-card:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.ki-handreichungen .project-card {
    border-top-color: #f59e0b;
}

.ki-handreichungen .project-card:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

/* =====================================
   TAG CLOUDS
   ===================================== */

.tag-cloud-section,
.tech-cloud-section {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.tag-cloud-section h2,
.tech-cloud-section h2 {
    margin: 0 0 1.5rem 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.tag-cloud,
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cloud-tag,
.cloud-tech {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #374151;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

.cloud-tag:hover,
.cloud-tech:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cloud-tag.active,
.cloud-tech.active {
    color: white;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Content-Type-spezifische Tag-Farben */
.ki-dienste .cloud-tag.active,
.ki-dienste .cloud-tech.active {
    background-color: #3b82f6;
}

.ki-dienste .cloud-tag:hover,
.ki-dienste .cloud-tech:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.ki-projekte .cloud-tag.active,
.ki-projekte .cloud-tech.active {
    background-color: #10b981;
}

.ki-projekte .cloud-tag:hover,
.ki-projekte .cloud-tech:hover {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.ki-handreichungen .cloud-tag.active,
.ki-handreichungen .cloud-tech.active {
    background-color: #f59e0b;
}

.ki-handreichungen .cloud-tag:hover,
.ki-handreichungen .cloud-tech:hover {
    background-color: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.tag-count {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Tag-Gewichtungen */
.weight-1 { 
    font-size: 0.875rem; 
    opacity: 0.75;
}

.weight-2 { 
    font-size: 0.9375rem; 
    opacity: 0.85;
}

.weight-3 { 
    font-size: 1rem; 
    opacity: 0.9;
}

.weight-4 { 
    font-size: 1.125rem; 
    font-weight: 600;
}

.weight-5 { 
    font-size: 1.25rem; 
    font-weight: 700;
}

/* =====================================
   TECH-CLOUD SPEZIFISCH
   ===================================== */

.tech-cloud-section.ki-dienste {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
}

.tech-cloud-section.ki-projekte {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.tech-cloud-section.ki-handreichungen {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.cloud-tech {
    background-color: #dceefb;
    color: #0369a1;
}

.ki-dienste .cloud-tech {
    background-color: #dbeafe;
    color: #1e40af;
}

.ki-projekte .cloud-tech {
    background-color: #d1fae5;
    color: #065f46;
}

.ki-handreichungen .cloud-tech {
    background-color: #fed7aa;
    color: #92400e;
}

/* =====================================
   FILTER ACTIVE STATES
   ===================================== */

.filter-active .project-card {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.filter-active .project-card.tag-match,
.filter-active .project-card.tech-match {
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* =====================================
   MORE TAGS FUNCTIONALITY
   ===================================== */

.more-tags-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.more-tags-toggle {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.more-tags-toggle:hover {
    color: #374151;
}

.ki-dienste .more-tags-toggle {
    color: #3b82f6;
}

.ki-projekte .more-tags-toggle {
    color: #10b981;
}

.ki-handreichungen .more-tags-toggle {
    color: #f59e0b;
}

.more-tags-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.more-tags-content.expanded {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 768px) {
    .page-header {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .stats-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tag-cloud,
    .tech-cloud {
        gap: 0.5rem;
    }

    .cloud-tag,
    .cloud-tech {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .weight-5 {
        font-size: 1rem;
    }

    .weight-4 {
        font-size: 0.9375rem;
    }

    .tag-cloud-section,
    .tech-cloud-section {
        padding: 1.5rem;
    }
}

/* =====================================
   PRINT STYLES
   ===================================== */

@media print {
    .page-header {
        background: none !important;
        color: black !important;
        border-bottom: 2px solid #000;
    }

    .page-header h1,
    .page-header p {
        color: black !important;
    }

    .content-type-badge {
        border: 1px solid #000 !important;
        background: none !important;
        color: black !important;
    }

    .tag-cloud,
    .tech-cloud,
    .more-tags-toggle {
        display: none;
    }

    .stats-box {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* =====================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================== */

.cloud-tag:focus,
.cloud-tech:focus,
.more-tags-toggle:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.content-type-badge[aria-label] {
    cursor: help;
}

/* Reduzierte Bewegung für Nutzer mit entsprechenden Einstellungen */
@media (prefers-reduced-motion: reduce) {
    .cloud-tag,
    .cloud-tech,
    .project-card,
    .more-tags-content {
        transition: none;
        animation: none;
    }

    .cloud-tag:hover,
    .cloud-tech:hover,
    .project-card:hover {
        transform: none;
    }
}
