/* 
 * Index Page Styles
 * Spezielle Styles für die Startseite (index.html)
 */

.selection-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 100px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    position: relative;
}

.selection-container {
    max-width: 1400px;
    width: 100%;
}

.selection-header {
    text-align: center;
    margin-bottom: 80px;
}

.selection-header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.selection-header p {
    font-size: 1.4rem;
    color: #0051a2;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.selection-card {
    background: transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.selection-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover);
}

.selection-card:hover::before {
    transform: scaleX(1);
}

.selection-card-preview {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.selection-card-preview.website-preview {
    background-image: url('images/a_high-end_close-up_photo_of_a_precision_3d-printed_functional_part_premium_engineering_component_p_hvatzz2osq4rtxhlf5v9_2.png');
    background-size: cover;
    background-position: center;
}

.selection-card-preview.webdesign-preview {
    background-image: url('images/webdesignhero.png');
    background-size: cover;
    background-position: center;
}

.selection-card-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.selection-card-preview.webdesign-preview::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
}

.selection-card-content {
    padding: 50px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.selection-card-icon {
    display: none;
}

.selection-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.selection-card p {
    font-size: 1.15rem;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 35px;
    flex: 1;
}

.selection-card .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .selection-card .btn-primary {
        align-self: center;
        width: 100%;
        text-align: center;
    }
    
    /* Entferne "Zur" aus Button-Text auf mobilen Geräten */
    .selection-card a[href="website.html"] {
        font-size: 0;
    }
    
    .selection-card a[href="website.html"]::after {
        content: '3D-Druck Seite';
        font-size: 1rem;
    }
    
    .selection-card a[href="webdesign.html"] {
        font-size: 0;
    }
    
    .selection-card a[href="webdesign.html"]::after {
        content: 'Website-Erstellung';
        font-size: 1rem;
    }
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
    padding: 30px;
    text-align: center;
}

.preview-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.preview-overlay p {
    font-size: 1rem;
    color: white;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .selection-hero {
        padding: 120px 20px 60px;
    }
    
    .selection-header {
        margin-bottom: 50px;
    }
    
    .selection-header h1 {
        font-size: 2.8rem;
        margin-top: 20px; /* Verschiebe "Schweizer Druckwerk" nach unten, damit es hinter der Kopfzeile verschwindet */
    }
    
    .selection-header p {
        font-size: 1.2rem;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .selection-card-content {
        padding: 30px 25px;
    }
    
    .selection-card-preview {
        height: 220px;
    }
    
    .selection-card h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .selection-card .card-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .selection-hero {
        padding: 100px 15px 50px;
    }
    
    .selection-header {
        margin-bottom: 40px;
    }
    
    .selection-header h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        margin-top: 20px; /* Verschiebe "Schweizer Druckwerk" nach unten, damit es hinter der Kopfzeile verschwindet */
    }
    
    .selection-header p {
        font-size: 1rem;
    }
    
    .selection-grid {
        gap: 25px;
        margin-top: 30px;
    }
    
    .selection-card-content {
        padding: 25px 20px;
    }
    
    .selection-card h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .selection-card .card-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .selection-card-preview {
        height: 200px;
    }
    
    .preview-overlay h3 {
        font-size: 1.5rem;
    }
    
    .preview-overlay p {
        font-size: 0.9rem;
    }
    
    .selection-card .btn-primary {
        align-self: center;
        width: 100%;
        text-align: center;
    }
    
    /* Entferne "Zur" aus Button-Text auf mobilen Geräten */
    .selection-card a[href="website.html"] {
        font-size: 0;
    }
    
    .selection-card a[href="website.html"]::after {
        content: '3D-Druck Seite';
        font-size: 0.95rem;
    }
    
    .selection-card a[href="webdesign.html"] {
        font-size: 0;
    }
    
    .selection-card a[href="webdesign.html"]::after {
        content: 'Website-Erstellung';
        font-size: 0.95rem;
    }
}

