/* Home Screen Styles */
.home-container {
    max-width: 100%;
}

/* Hero Section */
.home-hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.home-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.home-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Statistics Section */
.home-statistics {
    margin-bottom: 3rem;
}

.statistics-tile {
    display: flex;
    flex-direction: column;
}

/* Statistics tiles: neutraler Hintergrund statt orange/braun (base-tile-primary) */
.statistics-tile .base-tile-primary {
    background: transparent;
}

.statistics-tile .base-tile-primary:hover {
    background: transparent;
    box-shadow: var(--shadow-elevated-hover);
}

.statistics-tile .base-tile {
    padding: 0;
}

.home-positions .base-tile {
    padding: 0;
}

/* Position und Location tiles: gleiche Struktur wie Statistics (base-tile-primary, neutraler Hintergrund) */
.position-tile .base-tile-primary,
.location-tile .base-tile-primary {
    background: transparent;
}

.position-tile .base-tile-primary:hover,
.location-tile .base-tile-primary:hover {
    background: transparent;
    box-shadow: var(--shadow-elevated-hover);
}

.home-locations .base-tile {
    padding: 0;
}

/* Featured Jobs Section */
.home-featured-jobs {
    margin-bottom: 3rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text-on-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(243, 147, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 700px;
    margin: 0 auto;
    font-weight: var(--font-weight-normal);
}

.job-tile {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

/* Positions and Locations Actions */
.home-positions-actions {
    text-align: center;
    margin-top: 20px;
}

.home-locations-actions {
    text-align: center;
    margin-top: 20px;
}

/* Registration & Job-Alert Box (below map) */
.home-registration-box {
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.home-registration-box-tile {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    text-align: left;
}

.home-registration-box-title-container {
    text-align: left;
}

.home-registration-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    text-align: left;
}

.home-registration-box-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

/* Job Map Section */
.home-job-map-section {
    margin: 2rem 0;
    width: 100%;
}

.job-map-container {
    width: 100%;
    height: 400px;
    max-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-medium);
    position: relative;
    display: block !important;
    min-height: 400px;
}

/* Leaflet Map Container - 011-ui-leaflet.mdc Regel 013: Mindestgröße */
.job-map-container .leaflet-map-container {
    min-height: 400px;
    min-width: 100%;
    height: 100%;
}

/* Leaflet Container Styling */
.job-map-container .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Custom Marker Icon Styling */
.custom-marker-icon {
    background: transparent;
    border: none;
}

.custom-marker-icon-inner {
    width: 30px;
    height: 30px;
    background-color: var(--color-marker) !important;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid var(--color-text-on-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(var(--color-primary-rgb), 0.6);
    position: relative;
    display: block !important;
}

.custom-marker-icon-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--color-text-on-primary);
    border-radius: 50%;
}

/* Categories Section */
.home-categories {
    margin-bottom: 3rem;
}

/* Position Tiles */
.home-positions {
    margin-bottom: 3rem;
}

.home-positions .base-tiles-container-3-standalone {
    overflow: visible;
}

.position-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

/* Hover auf Link = Effekt auf sichtbare Kachel (base-tile); overflow visible verhindert Abschneiden */
.home-positions .position-tile-link:hover .position-tile .base-tile {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated-hover);
    overflow: visible;
}

.home-positions .position-tile-link:active .position-tile .base-tile {
    transform: translateY(0);
}

.position-tile {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.home-positions .position-tile .base-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Company Tiles */
.home-companies {
    margin-bottom: 3rem;
}

.company-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.company-tile-link:hover .company-tile {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-tile-link:active .company-tile {
    transform: translateY(0);
}

.company-tile {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.company-tile-link .company-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Location Tiles */
.home-locations {
    margin-bottom: 3rem;
}

.home-locations .base-tiles-container-3-standalone {
    overflow: visible;
}

.location-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.home-locations .location-tile-link:hover .location-tile .base-tile {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated-hover);
    overflow: visible;
}

.home-locations .location-tile-link:active .location-tile .base-tile {
    transform: translateY(0);
}

.location-tile {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.home-locations .location-tile .base-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-tile-link,
.location-tile-link:visited,
.location-tile-link:hover,
.location-tile-link:active {
    text-decoration: none;
    color: inherit;
}

#home-hero-search-form-title::after {
    content: none;
    display: none;
}

.home-hero-search {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    box-shadow: var(--shadow-small);
    position: relative;
    overflow: hidden;
}

.home-hero-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.home-job-listings {
    margin-bottom: 2rem;
}

.home-no-jobs {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
}

.home-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Design - 4 Breakpoints laut ui-css.mdc Regel 022 */
/* Mobile: max-width 576px */
@media (max-width: 576px) {
    .home-hero {
        padding: 2rem 0;
    }
    
    .home-hero-actions {
        flex-direction: column;
    }
    
    .home-hero-search {
        padding: 1rem;
    }
    
    .home-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        padding: 0 1rem;
    }
    
    .home-job-map-section {
        margin: 1.5rem 0;
    }
    
    .job-map-container {
        width: 100%;
        height: 300px;
    }
}

/* Tablet/iPad: 600px-768px */
@media (min-width: 600px) and (max-width: 768px) {
    .home-hero {
        padding: 2.5rem 0;
    }
    
    .home-hero-search {
        padding: 1.5rem;
    }
    
    .home-pagination {
        flex-direction: row;
        gap: 20px;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .job-map-container {
        width: 100%;
        height: 350px;
    }
}

/* Kleiner Desktop/13-Zoll: 1024px-1366px */
@media (min-width: 1024px) and (max-width: 1366px) {
    .home-hero-search {
        padding: 2rem;
    }
    
    .home-pagination {
        flex-direction: row;
        gap: 20px;
    }
}

/* Großer Desktop/Widescreen: min-width 1440px */
@media (min-width: 1440px) {
    .home-hero-search {
        padding: 2rem;
    }
    
    .home-pagination {
        flex-direction: row;
        gap: 20px;
    }
}