:root {
    --color-primary: #1b4332;
    --color-primary-light: #2d6a4f;
    --color-accent: #e63946;
    --color-accent-hover: #c1121f;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    --color-text-main: #212529;
    --color-text-muted: #6c757d;
    --color-text-light: #f8f9fa;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    --border-radius: 8px;
    --border-radius-lg: 16px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);

    --transition-speed: 0.3s;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--color-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

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

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

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

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

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.bold {
    font-weight: 600;
}

.strong {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

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

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: var(--spacing-md);
}

.logo a {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.header-logo {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo a span {
    color: var(--color-primary-light);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(0.5rem, 2vw, var(--spacing-lg));
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary-light);
    transition: width var(--transition-speed) ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-800.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-light);
    text-align: center;
    padding-top: 80px;
}

@media (min-width: 600px) {
    .hero {
        background-image: url('../images/hero-1200.jpg');
    }
}

@media (min-width: 1000px) {
    .hero {
        background-image: url('../images/hero-1600.jpg');
    }
}

@media (min-width: 1400px) {
    .hero {
        background-image: url('../images/hero.jpg');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(27, 67, 50, 0.7), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
}

/* Content Grid */
.content-grid {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.two-cols {
    grid-template-columns: 1fr 1fr;
}

.text-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
    background-color: rgba(230, 57, 70, 0.1);
    margin-top: var(--spacing-lg);
}

.alert p {
    margin: 0;
    color: var(--color-primary);
    font-weight: 500;
}

.warning-icon {
    margin-right: var(--spacing-sm);
    color: var(--color-accent);
}

.rounded-image-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.rounded-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rounded-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Timeline / History */
.timeline-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--color-primary-light);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid var(--color-bg-light);
}

.year {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-sm);
}

.timeline-text {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-text:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Spenden Section */
.spenden-section {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.spenden-card {
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.spenden-content {
    padding: clamp(2rem, 5vw, 4rem);
}

.spenden-content h2,
.spenden-content h3 {
    text-align: center;
}

.spenden-content h3 {
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

.spenden-content p {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.konto-info {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-xl) 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.konto-info p {
    text-align: left;
    margin-bottom: var(--spacing-sm);
}

.konto-info h4 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail span {
    color: var(--color-text-muted);
    min-width: 150px;
}

.detail .highlight {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.spenden-notes p {
    text-align: left;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background-color: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

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

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 2001;
}

.lightbox-prev {
    left: 20px;
    border-radius: 3px;
}

.lightbox-next {
    right: 20px;
    border-radius: 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--color-accent);
}

/* Footer */
.site-footer {
    background-color: var(--color-text-main);
    color: var(--color-text-light);
    padding-top: var(--spacing-xl);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-grid h4 {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Media Queries */
@media (max-width: 900px) {
    .two-cols {
        grid-template-columns: 1fr;
    }

    .timeline-content::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 14px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        transition: left 0.3s ease;
    }

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

    .nav-list a {
        font-size: 1.5rem;
        padding: 0.5rem 0;
    }

    .header-logo {
        height: 36px;
    }

    .logo a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .detail span {
        display: block;
        width: 100%;
        margin-bottom: 4px;
    }
}

@media (min-width: 901px) {
    .text-content {
        padding-right: var(--spacing-xl);
    }
}