/**
 * Homepage Styles - Premium Redesign
 * Hero, Team Section, Portfolio Grid, Contact
 */

/* ===========================================
   HERO SECTION - Full-screen with Image
   =========================================== */
.hero-video {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 var(--spacing-2xl) 140px;
    background: #0a0a0a;
}

/* Hero Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Dark Overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.hero-title-large {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 500;
    color: white;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--spacing-sm);
    letter-spacing: 0.5px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 42px;
    background: white;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 0;
    transition: all var(--transition-normal);
    border: none;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.cta-button:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cta-button-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button-outline:hover {
    background: white;
    color: #1a1a1a;
    border-color: white;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: hero-scroll-bounce 2s infinite;
    pointer-events: none;
}

.hero-scroll i {
    font-size: 20px;
}

@keyframes hero-scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===========================================
   TEAM SECTION
   =========================================== */
.team-section {
    padding: 140px var(--spacing-2xl);
    background: #fff;
}

.team-section .section-title::after {
    display: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--light-text);
    line-height: 1.8;
    font-weight: 400;
}

.team-content {
    max-width: 1100px;
    margin: 0 auto;
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
}

.team-image:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.team-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
    transition: filter var(--transition-normal);
}

.team-image:hover img {
    filter: grayscale(0%);
}

.team-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: white;
    padding: 60px var(--spacing-lg) var(--spacing-lg);
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

.team-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.team-description p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
}

/* ===========================================
   PORTFOLIO PREVIEW
   =========================================== */
.portfolio-preview {
    padding: 140px var(--spacing-2xl);
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 0;
    cursor: pointer;
    background: var(--primary-color);
    text-decoration: none;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-normal);
    filter: brightness(0.95);
}

.portfolio-item:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-title {
    font-family: var(--font-heading);
    color: white;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-item-title {
    transform: translateY(0);
}

.portfolio-item-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform var(--transition-normal) 0.05s;
}

.portfolio-item:hover .portfolio-item-subtitle {
    transform: translateY(0);
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.contact-section {
    padding: 140px var(--spacing-2xl);
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

.contact-info > p {
    margin-bottom: var(--spacing-xl);
    line-height: 1.9;
    color: var(--light-text);
    font-size: 16px;
}

.contact-details {
    margin-top: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light-text);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color var(--transition-normal);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Contact Form - Premium Style */
.contact-form {
    background: var(--bg-light);
    padding: var(--spacing-2xl);
    border-radius: 0;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    background: #fff;
    color: var(--text-color);
    transition: all var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* Form validation states */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #28a745;
}

.form-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
}

.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    margin-top: var(--spacing-lg);
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

.submit-button {
    width: 100%;
    padding: 20px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: var(--spacing-md);
}

.submit-button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .hero-video {
        min-height: 100vh;
        padding: 100px var(--spacing-md);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }

    .team-section,
    .portfolio-preview,
    .contact-section {
        padding: 100px var(--spacing-md);
    }

    .team-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Mobile: Container-Verhältnis = Bild-Verhältnis (5:6), so dass kein Crop nötig ist.
       object-position fällt nur bei kleinen Abweichungen ins Gewicht – Köpfe oben bleiben sichtbar. */
    .team-image {
        aspect-ratio: 5 / 6;
    }
    .team-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center 10%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Mobile: Bildverhältnis an die echten Fotos angleichen (3:2),
       damit Köpfe und Bildinhalte nicht mehr abgeschnitten werden. */
    .portfolio-item {
        aspect-ratio: 3 / 2;
    }

    .portfolio-item img {
        object-fit: cover;
        object-position: center 30%; /* leichte Oben-Priorität für Köpfe */
    }

    .portfolio-item-overlay {
        opacity: 1;
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 55%,
            rgba(0, 0, 0, 0.75) 100%
        );
    }

    .portfolio-item-title,
    .portfolio-item-subtitle {
        transform: translateY(0);
    }

    /* Kontakt-Sektion kompakt auf Mobile */
    .contact-section {
        padding: 60px var(--spacing-md) 40px;
    }

    .contact-content {
        gap: 32px;
    }

    .contact-info h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .contact-info > p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-details {
        margin-top: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .contact-item {
        gap: 10px;
        margin-bottom: 0;
        padding: 10px 0;
        border-bottom: none;
        align-items: flex-start;
    }

    .contact-item i {
        font-size: 15px;
        width: 18px;
        margin-top: 2px;
    }

    .contact-item strong {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .contact-item a,
    .contact-item > div {
        font-size: 13px;
        line-height: 1.35;
    }

    .contact-form {
        padding: 20px 18px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 15px;
    }

    .form-group textarea {
        min-height: 90px;
    }

    .form-error {
        font-size: 11px;
        min-height: 0;
        margin-top: 2px;
    }

    .submit-button {
        padding: 14px 24px;
        font-size: 12px;
        letter-spacing: 1.5px;
        margin-top: 4px;
    }

    .hero-scroll {
        display: none;
    }
}

/* ===========================================
   SCROLL TO TOP
   =========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #333;
    transform: translateY(-4px);
}

/* ===========================================
   HERO SOUND TOGGLE
   =========================================== */
.hero-sound-toggle {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-sound-toggle i {
    font-size: 15px;
}

.hero-sound-toggle.active i::before {
    /* Wechsel zu fa-volume-up klingt lesbar ohne JS-Hack */
}

@media (max-width: 768px) {
    .hero-sound-toggle {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        font-size: 12px;
    }
    .hero-sound-label {
        display: none;
    }
}
