/**
 * ===================================================
 * Potential-Matcher - Aktivitätsdetail-Styles
 *
 * @copyright (c) 2026 Leif Stuhrmann
 * @license   Proprietär - Alle Rechte vorbehalten
 *
 * Diese Software ist urheberrechtlich geschützt.
 * Die Nutzung ist nur mit ausdrücklicher schriftlicher
 * Erlaubnis des Autors gestattet.
 * ===================================================
 */

.activity-detail-layout {
    position: relative;
}

.activity-detail-layout::after {
    content: "";
    display: block;
    clear: both;
}

.activity-detail-sidebar {
    float: right;
    width: 32%;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.activity-detail-content {
    overflow: visible;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .activity-detail-sidebar {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}

/* ===================================================
   Aktivitätsbeschreibung
   =================================================== */

.activity-description {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.activity-description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-bottom: 1px solid #d1d5db;
    cursor: pointer;
    user-select: none;
}

.activity-description-header:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #b4b9c7 100%);
}

.activity-description-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-description-toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.activity-description-toggle-btn:hover {
    background-color: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.activity-description-content {
    padding: 12px 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
}

.activity-description-content.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
}

/* ===================================================
   Aktivitätsinformationen
   =================================================== */

.activity-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 0.5rem;
    margin-bottom: 1rem;
}

.activity-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem 0;
}

.activity-info-item-full {
    grid-column: 1 / -1;
}

.activity-info-icon-circle {
    min-width: 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #eeeeee;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-info-content {
    min-width: 0;
}

.activity-info-content h3 {
    font-size: 0.9rem;
    margin: 0 0 0.2rem;
    font-weight: 700;
    color: #6c757d;
}

.activity-info-content p {
    margin: 0;
    color: #212529;
}

.activity-info-content a {
    color: #212529;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.activity-info-content a:hover {
    text-decoration: underline;
}

/* ===================================================
   Potenziale
   =================================================== */

.activity-potentials {
    margin-bottom: 1rem;
}

.activity-potentials-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-potentials-content {
    color: #212529;
}

.activity-potentials-content p {
    margin-bottom: 0;
}

/* ===================================================
   Aktivitätsinformationen – Mobile
   =================================================== */

@media (max-width: 767.98px) {
    .activity-info-grid {
        grid-template-columns: 1fr;
    }

    .activity-info-item-full {
        grid-column: auto;
    }
}