/* =========================================
   0. VARIABLEN & RESET
   ========================================= */
:root {
    --jpl-orange: #FF6600;
    --jpl-dark: #1d1d1f;
    --apple-gray: #f5f5f7;
    --white: #ffffff;
    --text-gray: #86868b;
    --max-width: 1200px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--white);
    color: var(--jpl-dark);
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--jpl-orange);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* =========================================
   1. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-smooth);
}

nav.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    margin-left: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.scrolled .nav-links a:not(.btn-contact) {
    color: var(--jpl-dark);
}

.btn-contact {
    background-color: var(--jpl-orange);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
}

/* =========================================
   2. HERO SEKTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.8);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(48px, 9vw, 90px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: clamp(18px, 2.2vw, 26px);
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.cta-button-main {
    background: var(--jpl-orange);
    color: white;
    padding: 18px 38px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.cta-secondary-hero {
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    transition: 0.3s;
}

.cta-button-main:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
}

/* =========================================
   3. SERVICES & CARDS
   ========================================= */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 20px;
}

.section-title {
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.03em;
    margin-bottom: 70px;
    text-align: center;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: #fbfbfd;
    border-radius: 28px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.card-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.card-content {
    padding: 40px;
}

.card-content h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.6;
}

/* =========================================
   4. STATS (COUNTER)
   ========================================= */
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
    padding: 80px 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--jpl-dark);
    letter-spacing: -2px;
    line-height: 1;
}

.stat-number small {
    font-size: 32px;
    color: var(--jpl-orange);
    vertical-align: middle;
}

.stat-label {
    font-size: 14px;
    color: var(--jpl-orange);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-top: 10px;
}

/* =========================================
   5. KONTAKT SECTION
   ========================================= */
.contact-section {
    background-color: var(--jpl-dark);
    color: var(--white);
    padding: 100px 40px;
    border-radius: 50px;
    margin: 40px 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
    border-color: var(--jpl-orange);
}

.submit-btn {
    background: var(--jpl-orange);
    color: white;
    padding: 20px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.info-item h4 {
    color: var(--jpl-orange);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

/* =========================================
   6. UTILS & FLOATING
   ========================================= */
.orange-text { color: var(--jpl-orange); }

.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(8deg);
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .nav-links { display: none; }
    .logo img { height: 45px; }
    .hero h1 { font-size: 48px; }
    .form-group { grid-template-columns: 1fr; }
    .contact-section { padding: 60px 20px; border-radius: 30px; }
    .stats-grid { gap: 30px; }
}

/* =========================================
   7. KARRIERE SEITE SPEZIFISCH
   ========================================= */

/* Hero-Bereich für Unterseiten */
.sub-hero {
    background: var(--jpl-dark);
    padding: 180px 20px 100px;
    text-align: center;
    color: var(--white);
}

.sub-hero h1 {
    font-size: clamp(42px, 7vw, 75px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.benefit-card {
    text-align: center;
    padding: 40px 20px;
    transition: var(--transition-smooth);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Job Liste */
.jobs-container {
    background: var(--apple-gray);
    border-radius: 50px;
    padding: 80px 40px;
    margin-bottom: 120px;
}

.jobs-list {
    max-width: 900px;
    margin: 0 auto;
}

.job-item {
    background: var(--white);
    padding: 35px 45px;
    border-radius: 28px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.02);
}

.job-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.job-info h3 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.job-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #fff3eb;
    color: var(--jpl-orange);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Der Bewerben-Button im Apple-Style */
.btn-apply {
    background: var(--jpl-dark);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--jpl-orange);
    transform: scale(1.05);
}

/* Mobile Anpassung für Jobs */
@media (max-width: 768px) {
    .job-item {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .btn-apply {
        width: 100%;
        margin-top: 20px;
    }

    .jobs-container {
        padding: 60px 20px;
        border-radius: 30px;
    }
}