/* Segelclubs-Detail Screen Styles - Mobile-First */

/* Segelclubs-Detail Container */
.segelclubs-detail {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Header */
.segelclubs-detail-header {
    margin-bottom: 30px;
}

.segelclubs-detail-back {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: var(--color-primary-dark);
}

/* Main Content */
.segelclubs-detail-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.segelclubs-detail-title {
    width: 100%;
    margin-bottom: 25px;
}

.segelclubs-detail-description,
.segelclubs-detail-history {
    margin-bottom: 30px;
}

.segelclubs-detail-description-title,
.segelclubs-detail-history-title,
.segelclubs-detail-sidebar-title {
    background: linear-gradient(135deg, #58A6FF 0%, #79B8FF 50%, #58A6FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: var(--font-weight-semibold);
    display: inline-block;
}

.segelclubs-detail-description-text,
.segelclubs-detail-history-text {
    margin-top: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Sidebar */
.segelclubs-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    transition: width 0.3s ease, min-width 0.3s ease;
}

.segelclubs-detail-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-height: 48px;
    box-sizing: border-box;
}

.segelclubs-detail-sidebar-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
    flex: 1;
    padding-right: var(--spacing-sm);
}

.segelclubs-detail-sidebar-toggle {
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0;
    cursor: pointer;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.segelclubs-detail-sidebar-toggle:active {
    transform: scale(0.95);
    background: var(--color-background-light);
}

.segelclubs-detail-sidebar-toggle:hover {
    background: var(--color-background-light);
    border-color: var(--color-primary);
}

.segelclubs-detail-sidebar-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    line-height: 1;
}

.segelclubs-detail-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    overflow: hidden;
}

.segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar {
    width: auto;
    min-width: auto;
    max-width: auto;
    overflow: visible;
    flex-shrink: 0;
}

.segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar-header {
    margin-bottom: 0;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    width: auto;
    min-width: auto;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar-title {
    display: none;
}

.segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar-content {
    display: none;
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
}

/* Info Cards */
.segelclubs-detail-info-card,
.segelclubs-detail-social-media-card {
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
}

.segelclubs-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.segelclubs-detail-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.segelclubs-detail-info-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.segelclubs-detail-info-value {
    color: var(--color-text-secondary);
}

.segelclubs-detail-info-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.segelclubs-detail-info-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Social Media List */
.segelclubs-detail-social-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.segelclubs-detail-social-media-list .widget-button-standard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Map Wrapper */
.segelclubs-detail-map-wrapper {
    width: 100%;
    margin-top: 40px;
    flex-basis: 100%;
}

.segelclubs-detail-map-wrapper .leaflet-map-container {
    width: 100%;
    min-height: 400px;
    height: 400px;
}

/* Not Found */
.segelclubs-not-found {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
}

.segelclubs-not-found-text {
    margin: 0;
}

/* Tablet Breakpoint: 600px-768px */
@media (width >= 600px) {
    .segelclubs-detail {
        padding: 30px 20px;
    }
    
    .segelclubs-detail-sidebar {
        flex: 1;
        min-width: 300px;
    }
    
    .segelclubs-detail-sidebar-header {
        padding: var(--spacing-md);
    }
    
    .segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar {
        width: auto;
        min-width: auto;
        max-width: auto;
        overflow: visible;
        padding: 0;
        margin: 0;
        margin-left: var(--spacing-xl);
        flex-shrink: 0;
    }
    
    .segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar-header {
        width: auto;
        min-width: auto;
        display: flex;
        visibility: visible;
        justify-content: center;
        padding: var(--spacing-sm);
    }
    
    .segelclubs-detail-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .segelclubs-detail-info-label {
        flex-shrink: 0;
        width: 120px;
    }
    
    .segelclubs-detail-info-value {
        text-align: right;
    }
}

/* Kleiner Desktop/13-Zoll: 1024px-1366px */
@media (width >= 1024px) and (width <= 1366px) {
    .segelclubs-detail {
        padding: 40px 30px;
        max-width: 1200px;
    }
    
    .segelclubs-detail-content {
        flex-direction: row;
        gap: 50px;
    }
    
    .segelclubs-detail-sidebar {
        min-width: 350px;
    }
    
    .segelclubs-detail-sidebar-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .segelclubs-detail-sidebar-toggle {
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
    }
    
    .segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar {
        width: auto;
        min-width: auto;
        max-width: auto;
        overflow: visible;
        padding: 0;
        margin: 0;
        margin-left: var(--spacing-xl);
        flex-shrink: 0;
    }
    
    .segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar-header {
        width: auto;
        min-width: auto;
        display: flex;
        visibility: visible;
        justify-content: center;
        padding: var(--spacing-sm);
    }
}

/* Großer Desktop/Widescreen: min-width: 1440px */
@media (width >= 1440px) {
    .segelclubs-detail-sidebar {
        min-width: 400px;
    }
    
    .segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar {
        width: auto;
        min-width: auto;
        max-width: auto;
        overflow: visible;
        padding: 0;
        margin: 0;
        margin-left: var(--spacing-xl);
        flex-shrink: 0;
    }
    
    .segelclubs-detail-content.segelclubs-detail-sidebar-collapsed .segelclubs-detail-sidebar-header {
        width: auto;
        min-width: auto;
        display: flex;
        visibility: visible;
        justify-content: center;
        padding: var(--spacing-sm);
    }
}
