/* Home Page */

/* Mobile-First: Basis-Styles gelten für mobile Geräte */
.home-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.home-hero {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    padding: 40px 15px;
    margin-bottom: 40px;
}

.home-hero-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h1);
    line-height: var(--line-height-tight);
    margin-bottom: 24px;
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.home-hero-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-large);
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.home-features-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-primary);
}

/* Mobile-First: Basis-Styles gelten für mobile Geräte */
.features-grid {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-card {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 25px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--color-border-light);
    background-color: var(--color-surface-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.feature-card-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    color: var(--color-text-secondary);
}

/* Mobile-First: Responsive Design - Regel 022: 4 Breakpoints */
/* Basis-Styles gelten für mobile (max-width: 576px) - keine Media Query erforderlich */

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .home-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .home-hero {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

/* Kleiner Desktop/13-Zoll (min-width: 1024px) */
@media (min-width: 1024px) {
    .home-container {
        max-width: 1200px;
        padding: 0;
    }
    
    .home-hero {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        gap: 24px;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .home-container {
        max-width: 1200px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        gap: 24px;
    }
}

/* Segelclub Map Section */
.home-segelclub-map-section {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 40px;
    margin-bottom: 40px;
}

.segelclub-map-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

/* Search Form Section */
.home-search-section {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.widget-form-search {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.widget-form-search-button {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(158, 122, 255, 0.2);
}

.widget-form-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 122, 255, 0.3);
    opacity: 0.95;
}

.widget-form-search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(158, 122, 255, 0.2);
}

/* Segelclubs Section */
.home-segelclubs {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 60px;
    margin-bottom: 40px;
}

.home-segelclubs-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h2);
    line-height: var(--line-height-tight);
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-primary);
}

/* Mobile-First: Basis-Styles gelten für mobile Geräte */
.segelclubs-grid {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
}

.segelclub-card {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.segelclub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.segelclub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(158, 122, 255, 0.2);
    border-color: var(--color-primary);
    background-color: var(--color-surface-hover);
}

.segelclub-card:hover::before {
    opacity: 1;
}

.segelclub-card-content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.segelclub-card-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h3);
    line-height: var(--line-height-tight);
    margin-bottom: 0;
    margin-top: 0;
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: -0.015em;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.segelclub-card:hover .segelclub-card-title {
    background-position: 100% 50%;
    filter: drop-shadow(0 2px 8px rgba(158, 122, 255, 0.2));
}

.segelclub-card-title-link {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.015em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    background-position: 0% 50%;
}

.segelclub-card-title-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.segelclub-card-title-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    filter: blur(2px);
}

.segelclub-card-title-link:hover {
    background-position: 100% 50%;
    transform: translateX(2px);
    filter: drop-shadow(0 2px 8px rgba(158, 122, 255, 0.3));
}

.segelclub-card-title-link:hover::before {
    width: 100%;
    opacity: 1;
}

.segelclub-card-title-link:hover::after {
    width: 100%;
    opacity: 0.8;
}

.segelclub-card-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.segelclub-card-location {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-tertiary);
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.segelclub-card-location::before {
    content: '📍';
    font-size: 1.1em;
}

.segelclub-card-contact {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.segelclub-card-contact-item {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-small);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.segelclub-card-contact-item strong {
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 60px;
}

.segelclub-card-contact-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-small);
    line-height: var(--line-height-base);
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.segelclub-card-contact-link:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.segelclub-card-info-items {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.segelclub-card-info-item {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-small);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    margin: 0;
}

.segelclub-card-info-item strong {
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: 4px;
}

.segelclub-card-actions {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.segelclub-card-detail-button {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    width: 100%;
}

.segelclub-card-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-secondary);
    transition: all 0.2s ease;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.segelclub-card-link:hover {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(158, 122, 255, 0.3);
}

.segelclub-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.segelclub-card-link:hover::after {
    transform: translateX(4px);
}

.segelclub-card-map-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    height: 250px;
    min-height: 250px;
}

.segelclub-map {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    height: 100%;
    min-height: 250px;
}

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .segelclub-map-container {
        height: 500px;
        min-height: 500px;
    }
    
    .widget-form-search {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .widget-form-search .widget-form-input {
        flex: 1;
        min-width: 150px;
    }
    
    .widget-form-search-button {
        flex: 0 0 auto;
    }
    
    .segelclubs-grid {
        max-width: 800px;
    }
    
    .segelclub-card-map-container {
        height: 300px;
        min-height: 300px;
    }
    
    .segelclub-map {
        min-height: 300px;
    }
    
    .segelclub-card-actions {
        flex-direction: row;
        gap: 12px;
    }
    
    .segelclub-card-detail-button {
        flex: 1;
        width: auto;
    }
    
    .segelclub-card-link {
        flex: 1;
        width: auto;
    }
}

/* Kleiner Desktop/13-Zoll (min-width: 1024px) */
@media (min-width: 1024px) {
    .segelclub-map-container {
        height: 600px;
        min-height: 600px;
    }
    
    .widget-form-search {
        max-width: 800px;
    }
    
    .segelclubs-grid {
        max-width: 1200px;
    }
    
    .segelclub-card {
        flex-direction: row;
    }
    
    .segelclub-card-content {
        flex: 1;
        padding: 35px;
        justify-content: space-between;
    }
    
    .segelclub-card-map-container {
        flex: 1;
        height: auto;
        min-height: 300px;
    }
    
    .segelclub-map {
        min-height: 300px;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .segelclub-map-container {
        height: 700px;
        min-height: 700px;
    }
    
    .segelclubs-grid {
        max-width: 1200px;
    }
    
    .segelclub-card-map-container {
        min-height: 350px;
    }
    
    .segelclub-map {
        min-height: 350px;
    }
}

/* Pagination */
.home-pagination {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.home-pagination-link {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    color: var(--color-text-primary);
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    transition: all 0.2s ease;
    font-weight: 500;
}

.home-pagination-link:hover {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 122, 255, 0.3);
}

.home-pagination-current {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    color: var(--color-text-inverse);
    background: var(--gradient-primary);
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(158, 122, 255, 0.3);
}

.home-pagination-ellipsis {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    color: var(--color-text-secondary);
}

.home-pagination-prev,
.home-pagination-next {
    font-weight: 600;
    min-width: auto;
    padding: 8px 16px;
}

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .home-pagination {
        gap: 12px;
    }
    
    .home-pagination-link {
        min-width: 44px;
        height: 44px;
    }
    
    .home-pagination-current {
        min-width: 44px;
        height: 44px;
    }
    
    .home-pagination-ellipsis {
        min-width: 44px;
        height: 44px;
    }
}

/* Kleiner Desktop/13-Zoll (min-width: 1024px) */
@media (min-width: 1024px) {
    .home-pagination {
        gap: 16px;
    }
}
