/* CSS Reset and Base styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --secondary-light: #38bdf8;
    --accent: #f43f5e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --max-width: 1200px;
    --header-height: 70px;
    --section-spacing: 6rem;
    --card-radius: 0.75rem;
    --transition-speed: 0.2s;
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content for accessibility */
.skip-to-main {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-to-main:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modern Reset and Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--gray-900);
    background-color: var(--gray-50);
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--secondary);
    margin: 0.75rem auto 0 auto;
    border-radius: 2px;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.2rem;
}

/* Modern Components */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Modern Card Design */
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.2rem 1.1rem 1.1rem 1.1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 280px;
    max-width: 320px;
    position: relative;
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

/* Special icon for Marktforscher/in card */
.marktforscher-icon {
    width: 2.7rem;
    height: 2.7rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(33,150,243,0.10);
    margin-bottom: 1rem;
}

/* Modern Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--gray-100);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

/* Modern Navigation */
nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    z-index: 1001;
    flex-shrink: 0;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s;
    z-index: -1;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-900);
    position: relative;
    transition: background-color var(--transition-speed);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--gray-900);
    transition: transform var(--transition-speed);
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.mobile-menu-btn.active .menu-icon {
    background-color: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .menu-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media screen and (max-width: 1200px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition-speed);
        z-index: 1000;
        overflow-x: unset;
        white-space: normal;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .nav-links .btn {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .card {
        min-width: 0;
        width: 100%;
        max-width: 400px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        padding: 0.75rem;
    }
}

/* Enhanced Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.03) 0%,
        rgba(14, 165, 233, 0.03) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 15s ease-in-out infinite;
}

.hero-shape-2 {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.03) 0%,
        rgba(99, 102, 241, 0.03) 100%);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: morphShape 20s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}

.hero-grid-item {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.02) 0%,
        rgba(14, 165, 233, 0.02) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-100);
}

.hero-badge .dot {
    margin: 0 0.5rem;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--gray-700);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--transition-speed);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.feature-item svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

@media screen and (max-width: 768px) {
    .hero {
        padding: calc(var(--header-height) + 2rem) 0 4rem 0;
        min-height: 80vh;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        justify-content: center;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-shape,
    .hero-shape-2 {
        animation: none;
    }
}

/* Animation Classes */
.fade-in {
        opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
    }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease-out forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1.08rem;
    line-height: 1.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1.08rem;
    transition: all var(--transition-speed);
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
}

.form-group.error input,
.form-group.error select {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    min-width: 20px;
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-700);
    flex: 1;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Date input styles */
input[type="date"] {
    min-height: 3rem;
    cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.cookie-banner.show {
    transform: translateY(0);
    display: block;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn,
.cookie-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    text-align: center;
}

.cookie-btn.accept {
    background: var(--primary);
    color: white;
}

.cookie-btn.decline {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content {
    max-width: 600px;
}

.error-title {
    font-size: clamp(4rem, 15vw, 8rem);
    line-height: 1;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles */
@media print {
    header {
        position: static;
    }

    .hero {
        margin-top: 0;
    }

    .btn,
    .nav-links,
    .cookie-banner {
        display: none;
    }
}

/* Forms */
.secure-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.secure-notice svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

@media (min-width: 965px) { /* When 3 columns are likely for .cards */
    .cards > .card:nth-child(4):last-child {
        grid-column-start: 2; /* Place in the middle column of a 3-column grid */
        /* The card will naturally take the width of this column. 
           If the card's own content needs centering, that's an internal style for the card. */
    }
}

/* Job Details Styles */
.job-details {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.job-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.job-details li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.job-details li strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Vorteile (Benefits) Cards Layout - 1:1 Old Site Style */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

/* Employment Models Cards - Better spacing for detailed content */
#anstellungsmodelle .cards {
    gap: 1.8rem;
}

#anstellungsmodelle .card {
    min-width: 300px;
    max-width: 350px;
}

/* Marktforscher card should be larger */
.card.marktforscher-card {
    min-width: 320px;
    max-width: 380px;
}

.card-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.10;
    z-index: 0;
    width: 70px;
    height: 70px;
    pointer-events: none;
}
.card .card-content {
    position: relative;
    z-index: 1;
    width: 100%;
}
.card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.card p {
    color: var(--gray-800);
    font-size: 0.98rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

/* Marktforscher/in card background uses company logo SVG */
.marktforscher-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.10;
    z-index: 0;
    width: 90px;
    height: 90px;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .card {
        min-width: 0;
        width: 100%;
        max-width: 400px;
    }
    
    #anstellungsmodelle .card {
        min-width: 0;
        max-width: 100%;
    }
}

/* Anforderungen (Requirements) Card Layout */
.requirements-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.requirement-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    padding: 1.2rem 1.2rem;
    max-width: 340px;
    width: 100%;
    border: 1px solid #f3f4f6;
    text-align: left;
}
.requirement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.requirement-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.2em;
    position: relative;
    color: var(--gray-800);
    font-size: 1rem;
}
.requirement-card li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.requirement-icon {
    display: none;
}

/* Application Form Styles */
.contact-form {
    background: white;
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-content p {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.contact-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Stats Grid Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat {
    background: white;
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefits-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
}

/* Legal Pages Styles */
.legal-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}

.legal-content {
    background: white;
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.legal-content h3 {
    color: var(--gray-800);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.legal-content ul li {
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.legal-content ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.legal-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.last-updated {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-style: italic;
    text-align: right;
}

@media screen and (max-width: 768px) {
    .legal-section {
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 2rem;
    }

    .legal-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.95rem;
    }
}

/* Footer Styles */
.footer {
    background: white;
    border-top: 1px solid var(--gray-100);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-brand p {
    color: var(--gray-700);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gray-900);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: var(--gray-700);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive Improvements */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 0 2.5rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-cta {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid,
    .requirements-grid {
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Improved Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}

/* Section Styles */
.section {
    padding: 5rem 0 4rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: white;
}

.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray-700);
    text-align: center;
}

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

/* Solutions Grid */
.solutions-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .form-group input[type="date"] {
        min-height: 3.5rem;
    }
}

/* Mobile Navigation Button */
.scroll-nav-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.scroll-nav-btn:active {
    transform: scale(0.95);
}

.scroll-nav-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    transition: transform 0.3s ease;
    stroke-width: 2.5;
}

.scroll-nav-btn.up svg {
    transform: rotate(180deg);
}

.scroll-nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-nav-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

@media screen and (max-width: 768px) {
    .scroll-nav-btn {
        display: flex;
    }
}

@media (hover: none) {
    .scroll-nav-btn:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media screen and (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
}

/* Add this near the top of the file, after the CSS Reset section */
body.menu-open {
    overflow: hidden;
}

/* Contact Section Styles */
.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
}

.contact-content p {
    color: var(--gray-700);
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .contact-content {
        text-align: center;
        padding: 0 1rem;
    }

    .contact-content p {
        font-size: 1.1rem;
        margin: 0 auto;
        max-width: 500px;
    }
}

/* Job Description Grid */
.job-description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.job-description-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.job-description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.job-description-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.job-description-card ul {
    list-style: none;
    padding: 0;
}

.job-description-card ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-description-card ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Form Updates */
.contact-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.contact-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .checkbox-group {
        padding: 0.75rem 0;
    }

    .checkbox-group input[type="checkbox"] {
        min-width: 24px;
        width: 24px;
        height: 24px;
        margin-top: 0.125rem;
    }

    .checkbox-group label {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Spinner Animation */
.spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.spinner circle {
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Success Page Styles */
.success-card {
    max-width: 600px;
    margin: 8rem auto;
    padding: 3rem;
    text-align: center;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.success-icon {
    margin-bottom: 2rem;
    color: var(--primary);
    animation: scaleIn 0.5s ease-out;
}

.success-card h1 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.875rem;
}

.success-card p {
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.success-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Not Available Bar */
.not-available-bar {
    background: #e53935;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    margin-top: 1rem;
    letter-spacing: 1px;
    font-size: 1rem;
}

/* Fix for Weitere Informationen section */
#weitere-informationen .job-details {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    margin-top: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
#weitere-informationen .job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 0;
}
#weitere-informationen .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
#weitere-informationen .detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(33,150,243,0.10);
    background: #fff;
}
#weitere-informationen .detail-item svg {
    width: 36px;
    height: 36px;
    color: var(--secondary);
    flex-shrink: 0;
}
#weitere-informationen .detail-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}
#weitere-informationen .detail-content p {
    color: var(--gray-800);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
@media screen and (max-width: 768px) {
    #weitere-informationen .job-details {
        padding: 1.2rem 0.5rem;
    }
    #weitere-informationen .job-details-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    #weitere-informationen .detail-item {
        flex-direction: row;
        padding: 1rem 0.5rem;
    }
}

/* Marktforscher card should be larger */
.card.marktforscher-card {
    min-width: 320px;
    max-width: 380px;
} 