/* ====== VARIABLEN ====== */
:root {
    --caps-heading: 'Rubik';
    --heading: 'NunitoSans';
    --textfont: 'Inter';
    --menubgcolor: rgb(255, 255, 255);
    --menucolor: black;
    --accentcolor1: rgb(215, 25, 32);
    --accentcolor2: rgb(99, 100, 102);
    --accentcolor3: lightgray;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Additional variables for compatibility */
    --color-dark-bg: var(--background-white);
    --color-dark-section: var(--background-light);
    --color-hahn-red: var(--accentcolor1);
    --color-hahn-red-hover: rgb(180, 20, 27);
    --color-white: var(--background-white);
    --color-light-gray: var(--accentcolor3);
    --color-text-gray: var(--text-light);
    --color-card-bg: var(--background-white);

    --font-primary: var(--textfont);
    --font-heading: var(--heading);

    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
    --spacing-xlarge: 6rem;

    --border-radius-small: 8px;
    --border-radius-medium: 12px;
    --border-radius-large: 20px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====== NAVIGATION ====== */
.navbar {
    background-color: var(--menubgcolor);
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.nav-link {
    color: var(--menucolor);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    transition: all var(--transition-normal);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accentcolor1);
    background-color: var(--background-light);
}

/* ====== HERO SECTION ====== */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: var(--spacing-large) 5%;
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
    gap: var(--spacing-large);
}

.hero-image {
    flex: 1;
    max-width: 45%;
    animation: fadeInLeft 1s ease-out;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-content {
    flex: 1;
    animation: fadeInRight 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-medium);
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-title-highlight {
    color: var(--accentcolor1);
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-medium);
    line-height: 1.6;
}

/* ====== PAGE HEADER ====== */
.page-header {
    padding: var(--spacing-large) 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
    position: relative;
}

.company-image {
    max-width: 1175px;
    margin: 0 auto var(--spacing-medium);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.company-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ====== FILTER SECTION ====== */
.filter-section {
    padding: var(--spacing-medium) 5%;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-label {
    color: var(--text-dark);
    font-weight: 600;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background-color: var(--background-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--accentcolor1);
    background-color: var(--background-light);
}

.filter-btn.active {
    background-color: var(--accentcolor1);
    border-color: var(--accentcolor1);
    color: var(--background-white);
}

/* ====== FOOTER ====== */
.footer {
    background-color: rgb(99, 100, 102);
    padding-top: 30px;
    padding-bottom: 15px;
}

.footercontent h2 {
    text-align: left;
    font-family: 'NunitoSans';
    font-size: 36px;
    color: var(--menucolor);
    color: white;
}

.footercontent p{
    text-align: left;
    font-family: 'Inter';
    transition: 0.3s;
    font-size: 20px;
}

.footercontent p:hover{
    opacity: 0.7;
    transition: 0.3s;
}
  
.container {
    max-width: 1380px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: auto;
    text-align: center;
}


/* ====== JOBS SECTION ====== */
.jobs-section {
    padding: var(--spacing-large) 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.jobs-grid {
    display: grid;
    gap: var(--spacing-medium);
}

.job-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius-medium);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.job-card:hover {
    border-color: var(--accentcolor1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.job-image {
    width: 100%;
    height: 325px;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.job-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.job-type-badge {
    padding: 0.5rem 1.2rem;
    background-color: var(--color-hahn-red);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.job-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.job-meta-icon {
    color: var(--color-hahn-red);
    font-size: 1.1rem;
}

.job-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.job-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.job-tag {
    padding: 0.4rem 1rem;
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--color-hahn-red);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.job-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    line-height: 1.8;
}

.job-details strong {
    color: var(--text-dark);
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.job-details a {
    color: var(--color-hahn-red);
    text-decoration: none;
}

.job-details a:hover {
    text-decoration: underline;
}

/* ====== BUTTONS ====== */
.btn-primary,
.cta-button,
.cta-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--color-hahn-red);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover,
.cta-button:hover,
.cta-button-large:hover {
    background-color: var(--color-hahn-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(200, 16, 46, 0.3);
}

.cta-button-large {
    padding: 1.3rem 3rem;
    font-size: 1.1rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    background-color: var(--background-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accentcolor1);
    background-color: var(--background-light);
}

/* ====== VIDEO SECTION ====== */
.video-section {
    padding: var(--spacing-xlarge) 5%;
    background-color: var(--background-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-large);
    color: var(--text-dark);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-medium);
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-container {
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-title {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ====== REASONS SECTION ====== */
.reasons-section {
    padding: var(--spacing-xlarge) 5%;
    background-color: var(--background-white);
}

.reason-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-large);
    margin-bottom: var(--spacing-xlarge);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reason-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.reason-item.reverse {
    flex-direction: row-reverse;
}

.reason-image {
    flex: 1;
    max-width: 45%;
}

.reason-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.reason-content {
    flex: 1;
    padding: var(--spacing-medium);
}

.reason-number {
    font-size: 1rem;
    color: var(--color-hahn-red);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.reason-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-small);
    color: var(--text-dark);
}

.reason-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ====== CTA SECTION ====== */
.cta-section,
.cta-final-section {
    padding: var(--spacing-xlarge) 5%;
    background: linear-gradient(135deg, var(--color-hahn-red) 0%, #8a0a1f 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before,
.cta-final-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after,
.cta-final-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content,
.cta-final-content {
    position: relative;
    z-index: 1;
}

.cta-title,
.cta-final-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-text,
.cta-final-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== APPLICATION FORM ====== */
.application-section {
    padding: var(--spacing-large) 5%;
    max-width: 800px;
    margin: 0 auto;
}

.application-container {
    background-color: var(--background-white);
    border-radius: var(--border-radius-medium);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accentcolor1);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.word-count {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

#file-list {
    margin-top: 0.5rem;
}

#file-list li {
    font-size: 0.9rem;
    color: var(--text-light);
}

.error-messages {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: var(--border-radius-small);
    padding: 1rem;
    margin-bottom: 2rem;
    color: #c33;
}

.error-messages ul {
    margin: 0;
    padding-left: 1.5rem;
}

.success-message {
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: var(--border-radius-small);
    padding: 1rem;
    margin-bottom: 2rem;
    color: #363;
    font-weight: 600;
}

/* ====== MODAL ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--background-white);
    border-radius: var(--border-radius-medium);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image,
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .reason-item,
    .reason-item.reverse {
        flex-direction: column;
    }
    
    .reason-image {
        max-width: 100%;
    }
    
    .reason-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .job-title {
        font-size: 1.4rem;
    }
    
    .job-header {
        flex-direction: column;
    }
    
    .job-meta {
        gap: 1rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-title,
    .cta-final-title {
        font-size: 2rem;
    }
    
    .cta-text,
    .cta-final-text {
        font-size: 1.1rem;
    }
}