/* 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;
}

/* Search Form */
.widget-form-search {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.widget-form-search-input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-small);
    background: var(--color-background);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family-primary);
    transition: var(--transition-smooth);
}

.widget-form-search-input:focus {
    outline: none;
    border: 1px solid var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.widget-form-search-input::placeholder {
    color: var(--color-text-tertiary);
}

.category-filter,
.location-filter {
    min-width: 200px;
}

.widget-form-search-button {
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-small);
}

.widget-form-search-button:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

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

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

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

.widget-headline-section {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

/* Section Headers - Enhanced Headlines */
.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-header .widget-headline-section,
.section-header .widget-headline-h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-header .widget-headline-section::after,
.section-header .widget-headline-h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(243, 147, 36, 0.5);
}

.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);
}

.widget-tiles-container-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 1440px) {
    .widget-tiles-container-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}

.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;
}

/* 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;
}

.widget-tiles-container-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* widget-tile-outline hat keinen Rahmen laut ui-widget-tile.mdc Regel 008 */
.widget-tile-outline {
    border: none;
}

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

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

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

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

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

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

.widget-tile-new-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-success);
    color: var(--color-text-on-primary);
    border-radius: var(--border-radius-small);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-top: 0.5rem;
}

/* 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;
}

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

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

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

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

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

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

.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;
    }
    
    .widget-form-search {
        flex-direction: column;
    }
    
    .widget-form-search-input {
        min-width: 100%;
    }
    
    .category-filter,
    .location-filter {
        min-width: 100%;
    }
    
    .widget-tiles-container-3,
    .widget-tiles-container-4 {
        grid-template-columns: 1fr;
    }
    
    .home-hero-search {
        padding: 1rem;
    }
    
    .home-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header .widget-headline-section {
        font-size: var(--font-size-2xl);
    }
    
    .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;
    }
    
    .widget-form-search {
        flex-direction: column;
    }
    
    .widget-form-search-input {
        min-width: 100%;
    }
    
    .widget-tiles-container-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .widget-tiles-container-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-hero-search {
        padding: 1.5rem;
    }
    
    .home-pagination {
        flex-direction: row;
        gap: 20px;
    }
    
    .section-header .widget-headline-section {
        font-size: var(--font-size-2xl);
    }
    
    .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) {
    .widget-tiles-container-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .widget-tiles-container-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-hero-search {
        padding: 2rem;
    }
    
    .home-pagination {
        flex-direction: row;
        gap: 20px;
    }
}

/* Großer Desktop/Widescreen: min-width 1440px */
@media (min-width: 1440px) {
    .widget-tiles-container-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .widget-tiles-container-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .home-hero-search {
        padding: 2rem;
    }
    
    .home-pagination {
        flex-direction: row;
        gap: 20px;
    }
}