/* ============================================
   Von Taurus - Scandinavian Design
   Jugendhilfe mit Herz
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

:root {
    /* Scandinavian Palette */
    --color-cream: #FAF8F5;
    --color-white: #FFFFFF;
    --color-sage: #8B9A7D;
    --color-sage-light: #A8B89C;
    --color-sage-dark: #6B7A5D;
    --color-terracotta: #D4A574;
    --color-terracotta-light: #E8C9A8;
    --color-charcoal: #2D2D2D;
    --color-gray: #6B6B6B;
    --color-light-gray: #F5F5F5;
    --color-border: #E8E5E0;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Source Serif 4', serif;
    
    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    padding-top: 70px; /* Space for fixed navbar */
  
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--color-sage-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-terracotta);
}


/* ============================================
/* Navigation - Scandinavian Minimal
   ============================================ */

.navbar {
    background: rgba(250, 248, 245, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transition: var(--transition);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-charcoal) !important;
    letter-spacing: -0.02em;
}

.navbar-brand span {
    color: var(--color-sage);
}

/* Fix container alignment */
.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-nav {
    margin-left: auto !important;
    align-items: center;
    flex-direction: row !important;
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-nav .nav-item {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-gray) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full);
    transition: var(--transition);
    margin: 0 0.25rem;
    display: inline-block !important;
}

.nav-link:hover {
    color: var(--color-charcoal) !important;
    background: var(--color-light-gray);
}

.nav-link.active {
    color: var(--color-sage-dark) !important;
    background: rgba(139, 154, 125, 0.1);
}

/* Ensure navbar collapse shows on mobile */
.navbar-collapse {
    flex-grow: 0;
}

@media (max-width: 991px) {
    .navbar-collapse {
        width: 100%;
    }
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .nav-link {
        display: block !important;
        padding: 0.75rem 0 !important;
    }
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    display: none; /* Hidden on desktop by default */
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-charcoal);
    height: 2px;
    border-radius: 2px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    transition: var(--transition);
    left: 0;
    border-radius: 2px;
}

.navbar-toggler-icon::before { top: 5px; }
.navbar-toggler-icon::after { bottom: 5px; }
/* Show hamburger only on mobile */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .navbar > .container {
        position: relative;
        padding-right: 3.5rem;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 248, 245, 0.98);
        border-bottom: 1px solid var(--color-border);
        overflow: hidden;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        pointer-events: none;
        z-index: 999;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-end !important;
        width: 100%;
    }
    
    .nav-link {
        display: block !important;
        width: 100%;
        text-align: right;
        padding: 0.75rem 1rem !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 45, 45, 0.7) 0%,
        rgba(45, 45, 45, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--color-white);
    font-size: 2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.hero-scroll a:hover {
    opacity: 1;
}

/* ============================================
   Sections - General
   ============================================ */

/* Default container padding for all screen sizes */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

section {
    padding: var(--space-xl) 0;
}

.section-light {
    background: var(--color-white);
}

.section-cream {
    background: var(--color-cream);
}

.section-sage {
    background: var(--color-sage);
}

.section-sage .section-title h2,
.section-sage .section-title p,
.section-sage h2,
.section-sage h3 {
    color: var(--color-white);
}

.section-sage p {
    color: rgba(255, 255, 255, 0.85);
}

/* Feature cards in sage section need dark text on white background */
.section-sage .feature-card {
    background: var(--color-white);
    color: var(--color-charcoal);
}

.section-sage .feature-card h3 {
    color: var(--color-charcoal);
}

.section-sage .feature-card p {
    color: var(--color-gray);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================
   Cards - Scandinavian Style
   ============================================ */

.card {
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: var(--space-md);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 154, 125, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--color-sage);
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   Feature Grid
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

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

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    color: var(--color-white);
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: var(--space-xs);
}

.feature-card p {
    font-size: 0.95rem;
}

/* ============================================
   Image & Text Section
   ============================================ */

.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    min-height: 600px;
    max-width: 80%;
    margin: 0 auto;
}

.image-text-section .image-wrapper {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    overflow: hidden;
    max-width: 800px;
}

.image-text-section .image-wrapper img {
    width: 100%;
    height: auto;
    max-height: clamp(350px, 70vh, 600px);
    object-fit: cover;
    
}

/* Horizontal image wrapper - better fit for landscape images */
.image-text-section .image-wrapper-horizontal {
    min-height: 350px;
    max-height: 450px;
    border-radius: var(--radius-lg);
    max-width: 900px;
}

.image-text-section .image-wrapper-horizontal img {
    width: 100%;
    height: auto;
    max-height: clamp(300px, 45vh, 500px);
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Section 3 image - allow full height to show complete image */

#section3 .image-wrapper {
    min-height: 400px;
    max-width: 600px;
    border-radius: 0;
}
#section3 .image-wrapper img {
    object-fit: contain;
    margin: 0 auto;
    border-radius: 1.5rem;
}

.image-text-section .content {
    padding: var(--space-md);
}

.image-text-section h2 {
    margin-bottom: var(--space-sm);
}

.image-text-section p {
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

/* Reverse layout */
.image-text-section.reverse .image-wrapper {
    order: 2;
}

.image-text-section.reverse .content {
    order: 1;
}

/* ============================================
   Steps / Numbered Items
   ============================================ */

.steps {
    display: grid;
    gap: var(--space-md);
}

.step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-sage);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
    color: var(--color-charcoal);
}

.step-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-gray);
}

/* Ensure readable text in step items within sage section */
.section-sage .step-item {
    background: var(--color-white);
}

.section-sage .step-content h3 {
    color: var(--color-charcoal);
}

.section-sage .step-content p {
    color: var(--color-gray);
}





#section8 img{
    max-width: 100%;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    margin-top: var(--space-lg);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.contact-card {
    flex: 1 1 250px;
    max-width: 350px;
    text-align: center;
    padding: var(--space-md);
}

.contact-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 154, 125, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    color: var(--color-sage);
    font-size: 1.4rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.contact-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-card a {
    color: var(--color-sage-dark);
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    width: 100%;
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form .btn {
    display: inline-block;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 4px rgba(139, 154, 125, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--color-sage-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 154, 125, 0.3);
}

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

.btn-secondary:hover {
    background: #C4956A;
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-lg) 0 var(--space-md);
}

footer h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--color-terracotta);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.footer-bottom .footer-links {
    display: flex;
    gap: var(--space-sm);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: inline;
    margin: 0 var(--space-sm);
}

.footer-bottom a:hover {
    color: var(--color-terracotta);
}

/* ============================================
   About Us Page
   ============================================ */

.about-hero {
    background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-sage-dark) 100%);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--color-white);
}

.about-hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.about-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
    max-width: 80%;
    margin: 0 auto;
}

.about-content .image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 80%;
    box-shadow: var(--shadow-card);
}

.about-content .image-wrapper img {
    width: 100%;

}

.about-content h2 {
    margin-bottom: var(--space-sm);
}

.about-content p {
    margin-bottom: var(--space-sm);
}

/* ============================================
   Jobs Page
   ============================================ */

.jobs-hero {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #C4956A 100%);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--color-white);
}

.jobs-hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.job-listing {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.job-listing:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.job-listing h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-type {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.job-listing ul {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0;
}

.job-listing ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray);
}

.job-listing ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-sage);
    border-radius: 50%;
}

.job-listing .btn {
    margin-top: var(--space-sm);
}

/* ============================================
   Animations
   ============================================ */

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

/* Large screens optimization - MacBook Pro 16 and similar */
@media (min-width: 1440px) {
    /* Wider content containers */
    .image-text-section {
        max-width: 90%;
    }
    
    /* Larger carousel */
    .carousel-container {
        max-width: 1400px;
    }
    
    .carousel-slide img {
        height: clamp(500px, 65vh, 700px);
    }
    
    /* Larger image sections with clamp for scaling independence */
    .image-text-section .image-wrapper {
        min-height: 500px;
        max-width: 100%;
    }
    
    .image-text-section .image-wrapper img {
        max-height: clamp(400px, 65vh, 700px);
    }
    
    .image-text-section .image-wrapper-horizontal {
        min-height: 450px;
        max-width: 100%;
    }
    
    .image-text-section .image-wrapper-horizontal img {
        max-height: clamp(400px, 55vh, 600px);
    }
    
    /* Larger about us images */
    .about-content .image-wrapper {
        max-width: 100%;
    }
    
    /* Constrain feature cards on large screens */
    .feature-card {
        max-width: 500px;
    }
}

@media (min-width: 1920px) {
    /* Ultra-wide screens */
    .image-text-section {
        max-width: 95%;
    }
    
    .carousel-slide img {
        height: clamp(600px, 70vh, 800px);
    }
    
    .image-text-section .image-wrapper {
        min-height: 600px;
    }
    
    .image-text-section .image-wrapper img {
        max-height: clamp(500px, 70vh, 800px);
    }
    
    .feature-card {
        max-width: 550px;
    }
}

@media (max-width: 1024px) {
    .image-text-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .image-text-section .image-wrapper {
        min-height: 250px;
        max-height: 300px;
        order: 1 !important;
    }
    
    .image-text-section .image-wrapper img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Horizontal image wrapper on tablet */
    .image-text-section .image-wrapper-horizontal {
        min-height: 200px;
        max-height: 250px;
    }
    
    .image-text-section .image-wrapper-horizontal img {
        max-height: 250px;
    }
    
    .image-text-section .content {
        order: 2 !important;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-lg: 3rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .contact-section {
        padding: var(--space-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile image fixes */
    .image-text-section .image-wrapper {
        min-height: 180px;
        max-height: 80%;
    }
    
    .image-text-section .image-wrapper img {
        max-height: 100%;
    }
    
    .image-text-section .image-wrapper-horizontal {
        min-height: 150px;
        max-height: 200px;
    }
    
    .image-text-section .image-wrapper-horizontal img {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .card {
        padding: var(--space-sm);
    }
    
    .job-listing {
        padding: var(--space-md);
    }
}

/* Map container */
.contact-map-small {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.contact-map-small iframe {
    display: block;
}

/* ============================================
   Erlebnisse Carousel Section
   ============================================ */

.erlebnisse-carousel-section {
    background: var(--color-white);
    padding: var(--space-xl) 0;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: var(--space-lg) var(--space-md) var(--space-md);
    color: var(--color-white);
    text-align: center;
}

.carousel-caption h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-charcoal);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--color-sage);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 350px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
