/* Font Face Declarations */
@font-face {
    font-family: 'Graphik';
    src: url('../assets/Graphik-Regular-Web.woff2') format('woff2'),
         url('../assets/Graphik-Regular-Web.woff') format('woff'),
         url('../assets/Graphik-Regular-Web.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Graphik';
    src: url('../assets/Graphik-Semibold-Web.woff2') format('woff2'),
         url('../assets/Graphik-Semibold-Web.woff') format('woff'),
         url('../assets/Graphik-Semibold-Web.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Untitled Serif';
    src: url('../assets/untitled-serif-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base size for desktop - 1rem = 16px */
}

body {
    font-family: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #CFD8DC;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #2D3C5B;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .material-icons {
    color: #fff;
    font-size: 28px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 70px 0 0;
    background: url('../assets/reichenau.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-right: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Untitled Serif', Georgia, serif;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    /* backdrop-filter: blur(10px); */
    display: inline-block;
}

.hero-subtitle {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    /* backdrop-filter: blur(10px); */
    display: inline-block;
    max-width: 90%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    hyphens: auto;
}

.cta-button {
    background: linear-gradient(135deg, #2D3C5B 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Graphik', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 85, 48, 0.3);
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Memorial Hero Section */
.memorial-hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 70px 0;
    background: url('../assets/site-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.memorial-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.memorial-hero .container {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.memorial-hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.memorial-hero .section-title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.memorial-hero .section-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Untitled Serif', serif;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 3rem;
    color: #2D3C5B;
    position: relative;
    font-family: 'Untitled Serif', Georgia, serif;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2D3C5B 0%, #4a7c59 100%);
    border-radius: 2px;
} */

/* About Section */
.about {
    padding: 100px 0;
    background-color: #fff;
}

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

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #263238;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2D3C5B;
}

.feature h3 {
    color: #2D3C5B;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Graphik', sans-serif;
}

.about-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Zoomable Image Styles */
.zoomable-image-container {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.zoomable-image-container:hover {
    transform: scale(1.03);
}

.zoomable-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.zoom-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #2D3C5B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.zoomable-image-container:hover .zoom-overlay {
    opacity: 1;
}

.zoom-icon {
    color: #2D3C5B;
    font-size: 20px;
}

.image-caption {
    font-size: 0.85rem;
    color: #263238;
    margin-top: 1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Zoomed modal styles */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.zoom-modal.active {
    display: flex;
}

.zoom-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.zoom-close .material-icons {
    color: #2D3C5B;
    font-size: 24px;
}

/* Image Comparison Styles - Pure CSS Solution */
.image-comparison {
    width: 100%;
    /* margin: 2rem 0; */
}

.image-comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 4px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
    overflow: hidden;
    --range: 50%;
    display: grid;
}

/* Position both images and slider above each other */
.image-background,
.image-foreground,
.comparison-slider {
    grid-column: 1;
    grid-row: 1;
}

.comparison-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Foreground image that gets clipped */
.image-foreground {
    clip-path: inset(0 calc(100% - var(--range)) 0 0);
    z-index: 2;
}

/* Range slider styling */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    z-index: 10;
    cursor: col-resize;
    -webkit-appearance: none;
    appearance: none;
}

/* Webkit slider track */
.comparison-slider::-webkit-slider-track {
    background: transparent;
    height: 100%;
    border: none;
}

/* Webkit slider thumb */
.comparison-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 100%;
    background: #fff;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); */
    cursor: col-resize;
    border: none;
    position: relative;
}

/* Firefox slider track */
.comparison-slider::-moz-range-track {
    background: transparent;
    height: 100%;
    border: none;
}

/* Firefox slider thumb */
.comparison-slider::-moz-range-thumb {
    width: 4px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: col-resize;
    border: none;
    border-radius: 0;
}

/* Slider handle circle - positioned using pseudo-element */
.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--range);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #2D3C5B;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 15;
}

/* Handle icon */
.comparison-slider::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: var(--range);
    transform: translate(-50%, -50%);
    color: #2D3C5B;
    font-size: 18px;
    font-weight: bold;
    pointer-events: none;
    z-index: 16;
}

.comparison-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.label-before,
.label-after {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Graphik', sans-serif;
}

/* Zoom button */
.zoom-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #2D3C5B;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.zoom-button:hover {
    background: #2D3C5B;
    color: #fff;
    transform: scale(1.1);
}

.zoom-button .material-icons {
    font-size: 20px;
    color: inherit;
}

/* Zoomed state */
.image-comparison-container.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    border-radius: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create a wrapper for the zoomed content that matches image dimensions */
.image-comparison-container.zoomed::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 90vh * (4/3)); /* Assume landscape aspect ratio */
    height: min(90vh, 90vw * (3/4));
    z-index: 15;
    pointer-events: none;
}

.image-comparison-container.zoomed .comparison-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* Ensure slider works in zoom mode - constrain to image area */
.image-comparison-container.zoomed .comparison-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, calc(90vh * 1.33)); /* Match image dimensions */
    height: min(90vh, calc(90vw * 0.75));
    z-index: 20;
    cursor: col-resize;
}

.image-comparison-container.zoomed .image-background,
.image-comparison-container.zoomed .image-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
}

.image-comparison-container.zoomed .image-foreground {
    clip-path: polygon(0 0, var(--range) 0, var(--range) 100%, 0 100%);
}

.image-comparison-container.zoomed .zoom-button {
    position: fixed; /* Use fixed positioning relative to viewport */
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 30;
}

.image-comparison-container.zoomed .comparison-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    padding: 10px 20px;
    z-index: 25;
}

/* Image description */
.image-description {
    margin-top: 1rem;
    padding: 0;
}

.image-description p {
    font-size: 0.85rem;
    line-height: 1.6;
    /* color: #263238; */
    color: #546E7A;
    margin: 0;
}

.image-description strong {
    color: #2D3C5B;
    font-weight: 600;
}

@media (max-width: 768px) {
    .zoom-button {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
    
    .zoom-button .material-icons {
        font-size: 18px;
    }
    
    .image-comparison-container.zoomed .zoom-button {
        position: fixed; /* Ensure button stays visible on mobile */
        top: 10px;
        right: 10px;
        z-index: 35;
    }
    
    .image-comparison-container.zoomed .comparison-labels {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        padding: 10px;
        z-index: 25;
    }
    
    .image-comparison-container.zoomed .comparison-slider {
        width: min(95vw, calc(95vh * 1.33)); /* Slightly larger on mobile */
        height: min(95vh, calc(95vw * 0.75));
    }
    
    .image-description {
        margin-top: 1rem;
        padding: 0;
    }
    
    .image-description p {
        font-size: 0.9rem;
    }
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.section-intro {
    font-size: 1rem;
    color: #263238;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.history-detailed {
    margin-top: 1rem;
    padding-top: 1rem;
    /* border-top: 2px solid #e9ecef; */
}

.history-detailed h3 {
    color: #2D3C5B;
    font-size: 1.8rem;
    /* margin-bottom: 1.5rem; */
    font-family: 'Untitled Serif', Georgia, serif;
}

.history-detailed p {
    font-size: 1rem;
    color: #263238;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.memorial-details {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.memorial-feature {
    /* padding: 2rem; */
    /* background: #f8f9fa; */
    border-radius: 15px;
    /* border-left: 4px solid #2D3C5B;  */
}

.memorial-img {
    /* padding: 2rem; */
    /* background: #f8f9fa; */
    max-width: 100%;
    border-radius: 5px;
    /* border-left: 4px solid #2D3C5B; */
}

.transparent-img {
    background: transparent !important;
    /* Ensure PNG transparency is preserved */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.memorial-feature h3 {
    color: #2D3C5B;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.2;
    font-family: 'Untitled Serif', Georgia, serif;
}

.memorial-feature p {
    margin-bottom: 1rem;
    color: #263238;
    line-height: 1.6;
}

.remembrance-content {
    /* max-width: 900px; */
    margin: 0 auto;
}

.remembrance-text {
    font-size: 1rem;
    color: #263238;
    line-height: 1.6;   
}

.remembrance-text p {
    margin-bottom: 1.5rem;
}

.memorial-inscription {
    padding: 2rem 0;
    margin: 2rem 0;
    position: relative;
}

.memorial-inscription p {
    font-size: 2rem;
    color: #263238;
    margin-bottom: 1rem;
    font-family: 'Untitled Serif', Georgia, serif;
    line-height: 1.3;
    position: relative;
    padding: 0 3rem;
}

.memorial-inscription p::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    width: 2rem;
    height: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ed1c24' class='icon icon-tabler icons-tabler-filled icon-tabler-quote'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 5a2 2 0 0 1 2 2v6c0 3.13 -1.65 5.193 -4.757 5.97a1 1 0 1 1 -.486 -1.94c2.227 -.557 3.243 -1.827 3.243 -4.03v-1h-3a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 2 -2z' /%3E%3Cpath d='M18 5a2 2 0 0 1 2 2v6c0 3.13 -1.65 5.193 -4.757 5.97a1 1 0 1 1 -.486 -1.94c2.227 -.557 3.243 -1.827 3.243 -4.03v-1h-3a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 2 -2z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
}

.memorial-inscription p::after {
    content: '';
    position: absolute;
    right: -1rem;
    bottom: -0.5rem;
    width: 2rem;
    height: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ed1c24' class='icon icon-tabler icons-tabler-filled icon-tabler-quote'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 5a2 2 0 0 1 2 2v6c0 3.13 -1.65 5.193 -4.757 5.97a1 1 0 1 1 -.486 -1.94c2.227 -.557 3.243 -1.827 3.243 -4.03v-1h-3a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 2 -2z' /%3E%3Cpath d='M18 5a2 2 0 0 1 2 2v6c0 3.13 -1.65 5.193 -4.757 5.97a1 1 0 1 1 -.486 -1.94c2.227 -.557 3.243 -1.827 3.243 -4.03v-1h-3a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 2 -2z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    transform: scaleX(-1);
}

.memorial-inscription footer {
    font-size: 0.9rem;
    color: #263238;
    font-style: normal;
}

.educational-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.educational-info h4 {
    color: #2D3C5B;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.educational-info p {
    color: #263238;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #2D3C5B;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: #263238;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2D3C5B;
}

/* Form Styles */
.form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.form h3 {
    color: #2D3C5B;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2D3C5B;
}

.submit-button {
    background: linear-gradient(135deg, #2D3C5B 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Graphik', sans-serif;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 85, 48, 0.3);
}

/* Footer */
.footer {
    background-color: #9DA9BB;
    color: #2D3C5B;
    font-size: 12px;
    text-align: center;
    padding: 2rem 0;
}

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

.footer-text {
    flex: 1;
    text-align: left;
}

.footer-logos {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Responsive Design */
/* Large tablet/small desktop optimization */
@media (max-width: 1024px) {
    html {
        font-size: 15px; /* 1rem = 15px on large tablets */
    }
}

@media (max-width: 768px) {
    /* Adjust rem base for tablet/mobile - makes everything proportionally smaller */
    html {
        font-size: 15px; /* 1rem = 14px on tablets/mobile */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2D3C5B;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 50px;
        background-attachment: scroll;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 1rem 1.5rem;
        border-radius: 10px;
    }

    .hero-subtitle,
    .hero-description {
        padding: 0.8rem 1.2rem;
        border-radius: 6px;
        max-width: 95%; /* Slightly wider on mobile */
        font-size: 0.9rem; /* Slightly smaller font on mobile */
        margin: 0 auto 1.5rem auto; /* Center and reduce bottom margin */
        display: block; /* Full width block on mobile */
    }

    .memorial-hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 50px;
        background-attachment: scroll;
        min-height: 60vh;
    }

    .memorial-hero .container {
        flex-direction: column;
        text-align: center;
    }

    .memorial-hero-content {
        margin: 0;
        max-width: 100%;
        padding: 0 1rem;
    }

    .memorial-hero .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .memorial-hero .section-intro {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: 0; /* Show image first on mobile */
    }

    /* Ensure images don't overflow on mobile */
    .about-img,
    .gallery-img,
    .memorial-img,
    .zoomable-image {
        max-width: 100%;
        height: auto;
    }

    /* Ensure proper text wrapping */
    .section-title,
    .hero-title,
    .memorial-hero .section-title {
        word-wrap: break-word;
        hyphens: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features {
        margin-top: 1rem;
    }

    /* Map responsive styles for tablet/mobile */
    #map-container {
        height: 300px !important; /* Square-ish on mobile, considering mobile width */
    }

    .map-controls {
        display: none; /* Hide filters completely on mobile */
    }

    .map-sidebar {
        display: none; /* Hide sidebar completely on mobile */
    }

    .sidebar-toggle {
        display: none; /* Hide sidebar toggle on mobile */
    }
}

@media (max-width: 480px) {
    /* Adjust rem base for small mobile - makes everything even more compact */
    html {
        font-size: 15px; /* 1rem = 13px on small mobile devices */
    }

    .hero-title {
        font-size: 2rem;
        padding: 0.8rem 1.2rem;
        border-radius: 8px;
    }

    .hero-subtitle {
        font-size: 0.85rem; /* Even smaller on very small screens */
        padding: 0.6rem 1rem;
        max-width: 98%; /* Almost full width on very small screens */
        line-height: 1.4;
        margin: 0 auto 1rem auto;
    }

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

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    /* Additional mobile safety margins */
    .section-title {
        margin: 0 10px;
    }

    .memorial-hero-content {
        padding: 0 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

    .footer-logo {
        height: 35px;
    }

    /* Map responsive styles for small mobile */
    .map-controls {
        display: none; /* Hide filters completely on small mobile */
    }

    #map-container {
        height: 250px; /* More square on very small screens */
    }

    .map-sidebar {
        display: none; /* Hide sidebar completely on small mobile */
    }

    .sidebar-toggle {
        display: none; /* Hide sidebar toggle on small mobile */
    }

    #birthplaces-map {
        height: 400px; /* Ensure birthplaces map has proper height */
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Image Placeholder Styles - excluding SVGs */
img:not([src$=".svg"]) {
    background-color: #f0f0f0;
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Ensure SVG logos display properly */
.footer-logo {
    background: none !important;
    background-image: none !important;
}

/* Map Section Styles */
.map-section {
    padding: 100px 0;
    background-color: #fff;
}

#map-container {
    position: relative;
    height: 600px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4rem;
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); */
}

.map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-width: 280px;
}

.map-controls h3 {
    color: #2D3C5B;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    margin-right: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:not(:checked) + .checkmark {
    opacity: 0.3;
}

/* Camp type colors */
.checkmark.zwangsarbeiterlager {
    color: #e74c3c;
}

.checkmark.kriegsgefangenenlager {
    color: #3498db;
}

.checkmark.umsiedlungslager {
    color: #f39c12;
}

.checkmark.kz {
    color: #8e44ad;
}

.checkmark.aussenlager {
    color: #27ae60;
}

.checkmark.anderes-lager {
    color: #95a5a6;
}

#mapbox-map {
    width: 100%;
    height: 100%;
}

/* Birthplaces Map */
.birthplaces-map-container {
    margin: 0;
    align-self: start;
}

.birthplaces-map-container h3 {
    font-size: 1.4rem;
    color: #2D3C5B;
    margin-bottom: 0.5rem;
    font-family: 'Untitled Serif', Georgia, serif;
    font-weight: 200;
}

.birthplaces-map-container p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#birthplaces-map {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
}

.map-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 300px;
    background: #f6f6f4;
    transition: transform 0.3s ease;
    z-index: 100;
}

.map-sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar-toggle {
    position: absolute;
    left: -40px;
    top: 20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #2D3C5B;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar-toggle .material-icons {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #4a7c59;
}

.sidebar-content {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    font-size: 0.9rem;
}

.sidebar-content h3 {
    color: #2D3C5B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

#camp-details {
    line-height: 1.6;
}

#camp-details h4 {
    color: #2D3C5B;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

#camp-details .camp-name {
    font-family: 'Untitled Serif', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2D3C5B;
}

#camp-details p {
    margin-bottom: 0.8rem;
    color: #263238;
    font-size: 0.85rem;
}

.camp-info-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.camp-info-section:last-child {
    border-bottom: none;
}

/* Mapbox popup customization */
.mapboxgl-popup-content {
    background: #2D3C5B;
    color: #000000;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Graphik', sans-serif;
}

.mapboxgl-popup-close-button {
    color: white;
    font-size: 20px;
}

.mapboxgl-popup-tip {
    border-top-color: #2D3C5B;
}

/* Landscape Pattern Animation */
.landscape-pattern-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #EEE;
    border-radius: 4px;
    overflow: hidden;
    margin: 2rem 0;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.landscape-pattern-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.pattern-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(45, 60, 91, 0.9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.pattern-overlay h4 {
    margin: 0 0 0.5rem 0;
    font-family: 'Untitled Serif', Georgia, serif;
    font-size: 1.2rem;
}

.pattern-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .landscape-pattern-container {
        height: 300px;
    }
    
    .pattern-overlay {
        top: 10px;
        left: 10px;
        padding: 0.8rem 1rem;
    }
    
    .pattern-overlay h4 {
        font-size: 1rem;
    }
    
    .pattern-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .landscape-pattern-container {
        height: 160px;
    }
}
