/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1f4e79;
    --primary-dark: #173d5f;
    --secondary-color: #1f4e79;
    --text-color: #222222;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --hover-color: #173d5f;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-color);
    font-weight: 400;
    overflow-x: hidden;
}

/* Skip Link für Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-color);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Burger-Button (nur auf Desktop ausgeblendet) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1001;
}
.burger-btn:hover,
.burger-btn:focus {
    background: var(--bg-light);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav.nav-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav.nav-open .burger-line:nth-child(2) {
    opacity: 0;
}
.nav.nav-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-menu > .nav-item > a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu > .nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu > .nav-item > a:hover::after,
.nav-menu > .nav-item > a.active::after,
.nav-menu > .nav-item > a:focus::after {
    width: 100%;
}

.nav-menu > .nav-item > a:hover,
.nav-menu > .nav-item > a.active,
.nav-menu > .nav-item > a:focus {
    color: var(--primary-color);
    outline: none;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active,
.dropdown-menu a:focus {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-color);
    padding: 5rem 0 4rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    letter-spacing: -1px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    color: var(--text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Intro Section */
.intro-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.intro-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.intro-image img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.intro-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    width: 100%;
}

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

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
}

.intro-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Values Section */
.values-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
}

.value-card:nth-child(1) {
    animation-delay: 0.1s;
}

.value-card:nth-child(2) {
    animation-delay: 0.2s;
}

.value-card:nth-child(3) {
    animation-delay: 0.3s;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.value-image img {
    transition: transform 0.5s ease;
}

.value-card:hover .value-image img {
    transform: scale(1.1);
}

.value-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.value-content {
    padding: 2rem;
}

.value-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.value-content p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.benefits-image {
    width: 100%;
}

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

.benefits-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefits-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.benefits-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.video-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.video-section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

/* Desktop: Grid; Mobile-Slider ausgeblendet */
.videos-slider-mobile {
    display: none;
}

.videos-grid {
    display: grid;
    /* passt sich automatisch an die Anzahl der Videos an: 1 Video -> zentriert,
       mehrere -> nebeneinander, ab ~5 -> Umbruch in die nächste Reihe */
    grid-template-columns: repeat(auto-fit, minmax(220px, 270px));
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
    transform: scale(1);
}

.video-item:hover:not(.video-expanded) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.video-item.video-expanded {
    transform: scale(1.15);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.video-item:not(.video-expanded) {
    transform: scale(1);
}

.video-player[controls] {
    overflow: visible;
    position: relative;
    z-index: 10;
}

/* Wenn Controls aktiv sind, erlaube Overflow für Controls */
.video-item[data-interactive="true"],
.video-item.video-expanded {
    overflow: visible;
    margin-bottom: 50px;
}

.video-player[controls]::-webkit-media-controls {
    display: flex !important;
    opacity: 1 !important;
}

.video-player[controls]::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
}

.video-player[controls]::-webkit-media-controls-timeline {
    display: flex !important;
    flex: 1;
    cursor: pointer;
}

.video-player[controls]::-webkit-media-controls-play-button {
    display: flex !important;
    cursor: pointer;
}

.video-player[controls]::-webkit-media-controls-volume-slider {
    display: flex !important;
    cursor: pointer;
}

.video-item:nth-child(1) {
    animation-delay: 0.1s;
}

.video-item:nth-child(2) {
    animation-delay: 0.2s;
}

.video-item:nth-child(3) {
    animation-delay: 0.3s;
}

.video-item:nth-child(4) {
    animation-delay: 0.4s;
}

.video-item:hover:not(.video-expanded) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.video-item.video-expanded {
    transform: scale(1.15);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.video-item:not(.video-expanded) {
    transform: scale(1);
}

.video-player {
    transition: transform 0.5s ease;
}

.video-item:hover:not(.video-expanded) .video-player {
    transform: scale(1.05);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.video-play-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.video-placeholder-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background-color: var(--bg-light);
    cursor: pointer;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player:not([controls]) {
    cursor: pointer;
}

.video-player[controls] {
    cursor: default;
}

/* Video Controls Styling für bessere Sichtbarkeit */
.video-player[controls]::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
}

.video-player[controls]::-webkit-media-controls-play-button,
.video-player[controls]::-webkit-media-controls-timeline,
.video-player[controls]::-webkit-media-controls-current-time-display,
.video-player[controls]::-webkit-media-controls-time-remaining-display,
.video-player[controls]::-webkit-media-controls-volume-slider {
    display: flex;
}

/* Jobs Section */
.jobs-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.job-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
}

.job-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.job-card:nth-child(1) {
    animation-delay: 0.1s;
}

.job-card:nth-child(2) {
    animation-delay: 0.2s;
}

.job-card:nth-child(3) {
    animation-delay: 0.3s;
}

.job-card:nth-child(4) {
    animation-delay: 0.4s;
}

.job-card-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
    flex-shrink: 0;
}

.job-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.job-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.job-card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.job-card-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card-location::before {
    content: "📍";
    font-size: 1rem;
}

.job-card-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.3s;
    width: fit-content;
    margin-top: auto;
}

.job-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.job-card-image {
    transition: transform 0.5s ease;
}

.job-card:hover .job-card-image {
    transform: scale(1.05);
}

.job-card:hover .job-card-button {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-dark);
    font-weight: 500;
}

/* Job Detail Page */
.job-detail-section {
    padding: 3rem 0;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--hover-color);
}

.job-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-light);
}

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

.job-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    gap: 1rem;
}

.meta-label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 120px;
}

.meta-value {
    color: var(--text-color);
}

.job-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.job-content .text-block {
    margin-bottom: 3rem;
}

.job-content .text-block:last-child {
    margin-bottom: 0;
}

.job-content .text-block h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: -0.3px;
}

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

.job-content li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    padding-left: 0;
}

.emoji-list {
    list-style: none;
    padding-left: 0;
}

.emoji-list li {
    margin-bottom: 0.75rem;
    padding-left: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.apply-section {
    text-align: center;
    padding: 2rem 0;
}

/* Application Form */
.application-section {
    padding: 3rem 0;
}

.page-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.application-form {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 3rem;
}

.form-section:last-of-type {
    margin-bottom: 2rem;
}

.form-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #28a745;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 44, 145, 0.4);
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0;
}

/* Honeypot-Feld (Spam-Schutz) – für Menschen unsichtbar */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-links {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo-image {
        height: 40px;
    }

    .header {
        padding: 1rem 0;
    }

    /* Burger-Menü: Button anzeigen, Navigation ausklappbar */
    .burger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 100vw);
        height: 100vh;
        background: var(--bg-color);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        margin: 0;
        list-style: none;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s;
        visibility: hidden;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.nav-open .nav-menu {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu > .nav-item {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > .nav-item > a {
        padding: 1rem 0;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0 0 0.5rem 0;
        padding-left: 1rem;
        display: none;
        min-width: auto;
        width: 100%;
        background: var(--bg-light);
        border-radius: 4px;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.6rem 1rem;
    }

    /* Overlay hinter Menü – Klick schließt Menü */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }
    .nav.nav-open .nav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .intro-section {
        padding: 3rem 0;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-image img {
        width: 100%;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .values-section {
        padding: 3rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-content {
        padding: 1.5rem;
    }

    .value-content h3 {
        font-size: 1.3rem;
    }

    .benefits-section {
        padding: 3rem 0;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-text h3 {
        font-size: 1.3rem;
    }

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

    .video-section {
        padding: 3rem 0;
    }

    .video-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Mobile: Video-Slideshow statt Grid */
    .videos-grid.videos-grid-desktop {
        display: none;
    }

    .videos-slider-mobile {
        display: block;
        position: relative;
        max-width: 400px;
        margin: 0 auto;
    }

    .video-slider-viewport {
        overflow: hidden;
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    .video-slider-track {
        display: flex;
        transition: transform 0.35s ease-out;
    }

    .videos-slider-mobile .video-item {
        flex: 0 0 100%;
        width: 100%;
        aspect-ratio: 9 / 16;
    }

    .videos-slider-mobile .video-player {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        color: var(--primary-color);
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--shadow);
        z-index: 10;
        transition: background 0.2s, transform 0.2s;
    }
    .video-slider-btn:hover,
    .video-slider-btn:focus {
        background: white;
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    .video-slider-prev { left: 8px; }
    .video-slider-next { right: 8px; }

    .video-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
    }
    .video-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: var(--border-color);
        cursor: pointer;
        padding: 0;
        transition: background 0.2s, transform 0.2s;
    }
    .video-slider-dot.active {
        background: var(--primary-color);
        transform: scale(1.2);
    }

    .video-player {
        width: 100%;
        height: 100%;
    }

    .video-item.video-expanded {
        transform: scale(1.1);
    }

    .jobs-section {
        padding: 3rem 0;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .job-card-image-wrap {
        height: 180px;
    }

    .job-card-title {
        font-size: 1.1rem;
    }

    .job-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .job-image-container {
        height: 250px;
    }

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

    .job-content {
        padding: 1.5rem;
    }

    .breadcrumbs {
        padding: 0.75rem 0;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
    }

    .job-content .text-block h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 1.5rem;
    }

    .form-section h2 {
        font-size: 1.3rem;
    }

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

    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

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

    .video-item {
        aspect-ratio: 9 / 16;
    }

    .video-item.video-expanded {
        transform: scale(1.05);
    }

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

    .video-section-title {
        font-size: 1.75rem;
    }

    .job-title {
        font-size: 1.5rem;
    }

    .text-block h2 {
        font-size: 1.5rem;
    }

    .value-content h3,
    .benefits-text h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
