/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Color Palette - Earth Tones */
    --color-primary: #6A5642; /* Medium Brown */
    --color-primary-dark: #4A3B32; /* Dark Brown */
    --color-secondary: #8A9A5B; /* Soft Olive Green */
    --color-secondary-hover: #7b8b4d;
    --color-sand: #E8DCC4; /* Sand/Beige */
    --color-sand-light: #F7EFE4; /* Very light sand */
    --color-text-main: #2D241C; /* Very dark earth for text */
    --color-text-light: #6A6058;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(74, 59, 50, 0.1);
    --shadow-lg: 0 20px 40px rgba(74, 59, 50, 0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-sand-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo span {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

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

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.bg-light-earth {
    background-color: var(--color-sand);
}

.bg-dark {
    background-color: var(--color-primary-dark);
}

/* =========================================
   UI COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(138, 154, 91, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 154, 91, 0.4);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.w-100 { width: 100%; }
.mt-4 { margin-top: 1.5rem; }

/* Section Tag */
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-secondary);
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

/* Placeholder Img Class */
.default-img {
    background-color: #d1c8b8; /* fallback color */
    object-fit: cover;
}


/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(247, 239, 228, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar.scrolled .logo img {
    height: 85px;
}

.logo img {
    height: 200px; /* Base size. Not too massive to push everything down */
    transition: all var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-size: 2rem;
    margin: 0;
}

.navbar.scrolled .logo span {
    color: var(--color-primary-dark);
}

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

.nav-links a {
    color: var(--color-text-main);
    font-weight: 500;
    position: relative;
}

/* Make link text white on transparent background for hero readability */
.navbar:not(.scrolled) .nav-links a:not(.btn) {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.navbar:not(.scrolled) .logo span {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-dark);
    transition: var(--transition);
}

.navbar:not(.scrolled) .mobile-menu-toggle span {
    background-color: white;
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(74, 59, 50, 0.8) 0%, rgba(74, 59, 50, 0.3) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 .highlight {
    color: var(--color-sand);
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}


/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
}

.about-image .glass-img {
    border-radius: var(--radius-lg);
    z-index: 2;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 80%; /* Shrink container */
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 3/4; /* Vertical/Portrait Format */
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Adjusting the focus of specific slides so heads/people don't get cut off */
.slide:nth-child(1) { object-position: center; } /* Fohlen am Heu */
.slide:nth-child(2) { object-position: 80% center; } /* Pferde am Trog */
.slide:nth-child(3) { object-position: center; } /* Wälzendes Pferd */
.slide:nth-child(4) { object-position: center 20%; } /* Mann trägt Fohlen - Fokussierung weiter oben */
.slide:nth-child(5) { object-position: 20% center; } /* Kopf im Schnee - Fokussierung weiter links */
.slide:nth-child(6) { object-position: 70% center; } /* Braunes Pferd mit Verletzung - rechts gehalten */
.slide:nth-child(7) { object-position: center; } /* Welpe - zentriert */
.slide:nth-child(8) { object-position: center; } /* Frau mit Welpen - zentriert */

.slide.active {
    opacity: 1;
}

/* Slider Controls (Outer Edge) */
.profile-carousel-wrapper {
    position: relative;
    width: 100%;
    /* Extra padding on sides to make room for arrows */
    padding: 0 60px;
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary); 
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}


/* =========================================
   MISSION / SITUATION SECTION
   ========================================= */
.section-header {
    margin-bottom: 4rem;
}

.section-header p, .section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.section-title span {
    color: var(--color-secondary);
}

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

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    background: var(--color-sand);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}


/* =========================================
   ANKERLAND SECTION
   ========================================= */
.ankerland-section {
    background: var(--color-background);
    padding: 6rem 0;
}

.ankerland-text {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.ankerland-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

.ankerland-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.ankerland-slide.active {
    display: block;
}

.ankerland-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

@media (max-width: 768px) {
    .ankerland-split {
        grid-template-columns: 1fr;
    }
}

.ankerland-split img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.ankerland-text-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-section {
    background: var(--color-white); /* Light background for contrast */
    position: relative;
}

/* Subtle pattern for team section */
.team-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--color-sand) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

.team-carousel-wrapper {
    position: relative;
    width: 100%;
}

.team-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.team-slide.active {
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-card {
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--color-surface); /* solid card background on top of pattern */
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.team-photo-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--color-white);
    box-shadow: var(--shadow-md);
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Focus on faces mostly */
    transition: transform 0.5s ease;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom center;
}

.team-card:hover .team-photo {
    transform: scale(1.1);
}

.default-team-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-sand);
    color: var(--color-primary-dark);
    font-size: 4rem;
}

.team-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary-dark);
}

.team-role {
    display: inline-block;
    font-size: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
}

.team-responsibility {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-main);
}

.team-bio {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--color-primary, #b3734b);
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    padding: 0;
    text-decoration: underline;
    font-size: 0.95rem;
    font-family: inherit;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--color-primary-dark, #8a5738);
}

/* =========================================
   SCHÜTZLINGE SECTION
   ========================================= */
.schuetzlinge-section {
    background: var(--color-surface);
    padding-bottom: 6rem;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.8rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-heading);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

.tab-content.active {
    display: block;
}

.profile-layout {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.profile-layout.active {
    display: grid;
}

.profile-story {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 10px;
}

.profile-slideshow .slideshow-container {
    margin: 0;
    width: 100%;
    max-width: none;
    box-shadow: var(--shadow-md);
}

/* Individual crop settings for newly assigned class names inside profiles */
.profile-slideshow .markus-1 { object-position: center; } 
.profile-slideshow .markus-2 { object-position: center; }
.profile-slideshow .markus-3 { object-position: center; } 
.profile-slideshow .markus-4 { object-position: center 5%; }
.profile-slideshow .markus-5 { object-position: center 10%; }
.profile-slideshow .markus-6 { object-position: center; }
.profile-slideshow .markus-7 { object-position: center; }

/* Default centering for standard profiles */
.profile-slideshow .slide.mica-1, .profile-slideshow .slide.mica-2, .profile-slideshow .slide.mica-3, .profile-slideshow .slide.mica-4, .profile-slideshow .slide.mica-5,
.profile-slideshow .slide[class*='nova-'], .profile-slideshow .slide[class*='raeuber-'],
.profile-slideshow .slide[class*='sharon-'], .profile-slideshow .slide[class*='caesar-'],
.profile-slideshow .slide[class*='dedina-'], .profile-slideshow .slide[class*='reena-'],
.profile-slideshow .slide[class*='bella-'], .profile-slideshow .slide[class*='namiba-'],
.profile-slideshow .slide[class*='darius-'], .profile-slideshow .slide[class*='sunny-'],
.profile-slideshow .slide[class*='bangert-'] {
    object-position: center;
}

/* Slide Indicators */
.slide-indicators {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.slide-indicators .dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Slide Captions */
.slide-caption {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(138, 154, 91, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-indicators .dot.active, .slide-indicators .dot:hover {
    background-color: var(--color-white);
} 
.profile-slideshow .slide-hund:nth-child(2) { object-position: center; }

.profile-details {
    background: var(--color-white);
    padding: 3rem;
    text-align: left;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.profile-details h3 {
    color: var(--color-primary-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-sand);
    padding-bottom: 0.8rem;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.profile-list li {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

.profile-list li strong {
    color: var(--color-text-main);
}

.profile-story {
    font-size: 1.1rem;
    line-height: 1.7;
    background: var(--color-sand-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.profile-story strong {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-style: italic;
    color: #888;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-layout.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .profile-slideshow .slideshow-container {
        margin: 0 auto 2rem auto;
        max-width: 500px;
    }
    .profile-carousel-wrapper {
        padding: 0 40px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* =========================================
   HOW TO HELP SECTION
   ========================================= */
.padding-large {
    padding: 6rem 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.help-item {
    background: var(--color-sand);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition);
}

.help-item:hover {
    background: var(--color-primary-dark);
}

.help-item:hover h4, 
.help-item:hover p {
    color: var(--color-white);
}

.help-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: color var(--transition);
}


/* =========================================
   CONTACT & DONATE SECTION
   ========================================= */
.bg-dark {
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for dark background */
.bg-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.contact-info p, .contact-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.contact-list {
    list-style: none;
    margin: 2rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list a {
    color: var(--color-sand);
}

.contact-list a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.donation-box h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.donation-box p {
    color: rgba(255, 255, 255, 0.9);
}

.bank-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

.bank-details p {
    margin-bottom: 0.5rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--color-white);
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #382c25;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 1.5rem;
}

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

.copyright {
    margin: 0;
}


/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* ------ 992px: Tablet ------ */
@media (max-width: 992px) {
    .hero h1 { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { order: -1; max-width: 600px; margin: 0 auto; width: 100%; }
    .image-accent { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ------ Navbar: Logo-Text ausblenden, wo er sonst das Menü überlappt ------ */
@media (min-width: 992px) and (max-width: 1279px) {
    .navbar .logo span { display: none; }
}

/* ------ Navbar: früher ins Burger-Menü, bevor der Nav gestaucht wird ------ */
@media (max-width: 991px) {
    .mobile-menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-sand-light);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        z-index: 999;
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links a { color: var(--color-text-main) !important; text-shadow: none !important; margin-bottom: 1rem; }
    .nav-links .btn { margin-bottom: 0; }

    /* Logo etwas kleiner im Burger-Modus */
    .logo img { height: 100px; }
    .logo span { font-size: 1.1rem; }
    .navbar.scrolled .logo img { height: 75px; }
}

/* ------ 768px: Phones ------ */
@media (max-width: 768px) {

    /* === Abstände === */
    .section { padding: 3rem 0; }
    .padding-large { padding: 3rem 0; }
    .ankerland-section { padding: 3rem 0; }
    .schuetzlinge-section { padding-bottom: 3rem; }
    .section-header { margin-bottom: 2rem; }
    .tabs-container { margin-bottom: 2rem; }

    /* === Animationen: kürzere Versätze verhindern Clipping === */
    .slide-right { transform: translateX(-20px); }
    .slide-left  { transform: translateX(20px);  }
    .fade-up     { transform: translateY(20px);  }

    /* === Hero === */
    .hero { min-height: 100svh; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .btn-large { width: 100%; text-align: center; }

    /* === Typografie === */
    .section-title { font-size: 2rem; }
    .about-text h2 { font-size: 2rem; }
    .contact-info h2 { font-size: 2rem; }

    /* === About: Slideshow auf Querformat umstellen === */
    .about-image .img-slider-prev { left: 5px !important; }
    .about-image .img-slider-next { right: 5px !important; }
    .about-image .slideshow-container {
        width: 100%;
        max-width: none;
        aspect-ratio: 4/3;
    }

    /* === Mission Cards === */
    .mission-cards { grid-template-columns: 1fr; gap: 1.5rem; }
    .card { padding: 2rem 1.5rem; }

    /* === Glass Panel === */
    .glass-panel { padding: 1.5rem; }

    /* === Ankerland === */
    .ankerland-carousel-wrapper { padding: 0 44px; }
    .ankerland-split { padding: 1.5rem; gap: 1.5rem; }
    .ankerland-split img { height: 160px !important; }

    /* === Team === */
    .team-carousel-wrapper { padding: 0 44px !important; }
    .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .team-card { padding: 2rem 1.5rem; }

    /* === Schützlinge: Tabs === */
    .tabs-container { gap: 10px; flex-wrap: wrap; }
    .tab-btn { padding: 0.6rem 1.5rem; font-size: 1rem; }

    /* === Profil-Carousel === */
    .profile-carousel-wrapper { padding: 0 44px; }

    /* Slideshow: kompakte Höhe auf Mobile */
    .profile-slideshow .slideshow-container {
        aspect-ratio: unset;
        height: 180px;
        max-height: 180px;
        margin: 0 auto 1.5rem auto;
        max-width: 100%;
    }

    /* Profil-Geschichte: kein internes Scroll mehr, readMore übernimmt das */
    .profile-story { max-height: none; overflow-y: visible; }

    /* Carousel-Buttons: vertikal zentriert auf der 180px-Slideshow */
    .profile-carousel-wrapper .slider-btn { top: 90px; transform: translateY(-50%); }
    .profile-carousel-wrapper .slider-prev { left: 0; }
    .profile-carousel-wrapper .slider-next { right: 0; }

    /* === Help Grid === */
    .help-grid { grid-template-columns: 1fr; }

    /* === Footer === */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { margin: 1rem 0; }
    .footer-links a { margin: 0 0.5rem; }
}

/* ------ 480px: Kleine Phones ------ */
@media (max-width: 480px) {

    /* === Container === */
    .container { width: 94%; }

    /* === Logo === */
    .logo img { height: 90px; }
    .logo span { font-size: 1rem; }

    /* === Hero === */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    /* === Typografie === */
    .section-title { font-size: 1.7rem; }
    .about-text h2 { font-size: 1.7rem; }
    .contact-info h2 { font-size: 1.7rem; }
    .donation-box h3 { font-size: 1.4rem; }

    /* === Slider-Buttons === */
    .slider-btn { width: 36px; height: 36px; font-size: 1rem; }

    /* === Carousel Padding === */
    .ankerland-carousel-wrapper { padding: 0 38px; }
    .team-carousel-wrapper { padding: 0 38px !important; }
    .profile-carousel-wrapper { padding: 0 38px; }

    /* === Ankerland === */
    .ankerland-split { padding: 1rem; }
    .ankerland-split img { height: 130px !important; }

    /* === Profil === */
    .profile-details { padding: 1.5rem; }
    .profile-details h3 { font-size: 1.6rem; }
    .profile-list li { font-size: 1rem; }
    .profile-slideshow .slideshow-container { height: 180px; max-height: 180px; }
    .profile-carousel-wrapper .slider-btn { top: 90px; }

    /* === Team === */
    .team-card { padding: 1.5rem 1rem; }
    .team-photo-wrapper { width: 120px; height: 120px; }
    .team-info h3 { font-size: 1.3rem; }

    /* === Tabs === */
    .tabs-container { gap: 8px; }
    .tab-btn { padding: 0.5rem 1.2rem; font-size: 0.95rem; }

    /* === Kontakt === */
    .bank-details p { font-size: 0.95rem; }
    .contact-list li { font-size: 1rem; }
    .social-links { flex-wrap: wrap; gap: 0.8rem; }

    /* === Glass Panel === */
    .glass-panel { padding: 1.2rem; }

    /* === Slide-Indikatoren === */
    .slide-indicators .dot { width: 9px; height: 9px; }

    /* === Modal === */
    .modal-content { padding: 1.5rem; }
    .modal-content h3 { font-size: 1.4rem; }
}

/* =========================================
   BILD-WRAPPER: IMMER SICHTBAR
   Container mit slide-left/slide-right/fade-up können opacity:0 auf alle
   Kinder-Bilder weitergeben. Explizit erzwingen.
   ========================================= */
.about-image,
.profile-slideshow,
.ankerland-carousel-wrapper,
.team-carousel-wrapper {
    opacity: 1 !important;
    transform: none !important;
}

/* Kinder-Elemente in display:none Carousel-Slides */
.profile-layout .slide-left,
.profile-layout .slide-right,
.profile-layout .fade-up,
.team-slide .slide-left,
.team-slide .slide-right,
.team-slide .fade-up,
.ankerland-slide .slide-left,
.ankerland-slide .slide-right,
.ankerland-slide .fade-up {
    opacity: 1 !important;
    transform: none !important;
}

/* =========================================
   SCROLL-TO-TOP BUTTON
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   ACTIVE NAV LINK
   ========================================= */
.nav-links a.active-nav:not(.btn)::after {
    width: 100%;
}

.navbar.scrolled .nav-links a.active-nav:not(.btn) {
    color: var(--color-secondary);
}

/* =========================================
   KONTAKT: BESSERE TAP-TARGETS
   ========================================= */
.contact-tap-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    color: var(--color-sand);
    font-size: 1.05rem;
}

.contact-tap-link:hover {
    color: var(--color-secondary);
}

/* =========================================
   MODAL STYLING
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.close-modal-btn:hover {
    color: var(--color-accent);
}
