/* =========== GRUNDEINSTELLUNGEN & FARBPALETTE =========== */
:root {
    --primary-color: #ffc934; /* Haupt-Akzentfarbe Gelb */
    --secondary-color: #da4732; /* Sekundär-Akzentfarbe Rot */
    --dark-color: #453532;      /* Dunkle Schriftfarbe Braun */
    --light-color: #faf7f6;     /* Heller Hintergrund */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 15px; /* Abgerundete Ecken für alles */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    padding-top: 80px; /* Platz für den fixierten Header */
}

/* =========== HEADER & NAVIGATION =========== */
.main-header {
    background-color: rgba(250, 247, 246, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(69, 53, 50, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    z-index: 1001;
}

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

.desktop-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--dark-color);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

/* =========== BURGER & MOBILE NAVIGATION =========== */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.burger-menu.active .burger-line:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-line:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--light-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

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

.mobile-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.active a { opacity: 1; transform: translateY(0); }
.mobile-nav.active a:nth-child(1) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.35s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.4s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.45s; }
.mobile-nav.active a:nth-child(7) { transition-delay: 0.5s; }

/* =========== HERO SECTION (HOMEPAGE) =========== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    max-width: 45%;
    padding-right: 2rem;
}

.hero-text h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    font-weight: 700; 
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--dark-color), #7a6a66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}
.slogan { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--secondary-color); 
    margin-bottom: 1.5rem; 
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}
.intro { 
    font-size: 1rem; 
    margin-bottom: 2rem; 
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    font-family: var(--font-family);
    animation: fadeInUp 0.8s ease-out 0.6s forwards, pulse 2.5s infinite 1s;
    opacity: 0;
}

.cta-button:hover {
    animation-play-state: paused;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 201, 52, 0.4);
}

/* --- 3D-KARUSSELL --- */
.hero-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-carousel {
    width: 100%;
    max-width: 600px;
    height: 450px;
    position: relative;
    perspective: 1000px;
    cursor: grab;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(10px 15px 25px rgba(69, 53, 50, 0.2));
}

.carousel-nav {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(69, 53, 50, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    width: 40px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(250, 247, 246, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.image-carousel:hover .carousel-button {
    opacity: 1;
}

.carousel-button:hover {
    background-color: var(--primary-color);
}

.carousel-button.prev { left: -20px; }
.carousel-button.next { right: -20px; }


/* =========== ALLGEMEINE SEITEN-STILE =========== */
.page-header { background-color: var(--dark-color); color: var(--light-color); text-align: center; padding: 4rem 5%; }
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.2rem; color: var(--primary-color); max-width: 600px; margin: 0 auto; }

.content-section, .text-page-section { padding: 80px 5%; background-color: #ffffff; }
.content-container, .text-page-content { max-width: 1100px; margin: 0 auto; }

.content-item { display: flex; align-items: center; gap: 3rem; margin-bottom: 5rem; }
.content-item:last-child { margin-bottom: 0; }
.content-item.reverse { flex-direction: row-reverse; }
.content-item img { flex: 1; max-width: 50%; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(69, 53, 50, 0.1); object-fit: cover; }
.content-item .text-content { flex: 1; }
.content-item h2 { font-size: 2rem; margin-bottom: 1rem; }

.text-link { display: inline-block; margin-top: 1rem; color: var(--secondary-color); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.styled-list { list-style: none; padding-left: 0; }
.styled-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.styled-list li::before { content: '✓'; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }

.cta-banner { background-color: var(--light-color); padding: 3rem; border-radius: var(--border-radius); text-align: center; margin-top: 4rem; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { margin-bottom: 1.5rem; }

/* =========== "AKTUELL" SEITE =========== */
.news-section, .archive-section {
    padding: 60px 5%;
    background-color: #ffffff;
}
.archive-section {
    padding-top: 0;
    padding-bottom: 80px;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.2rem;
    display: inline-block;
    position: relative;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.news-card-link { text-decoration: none; color: inherit; }
.news-card { background: var(--light-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 1.5rem; }
.news-date { font-size: 0.8rem; color: var(--secondary-color); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.news-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.archive-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}
.archive-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: var(--dark-color);
    transition: background-color 0.3s ease;
}
.archive-item a:hover {
    background-color: var(--light-color);
}
.archive-date {
    font-size: 0.9rem;
    color: #888;
    flex-shrink: 0;
    margin-right: 2rem;
}
.archive-title {
    font-weight: 600;
}


/* =========== NEWS-ARTIKEL SEITE =========== */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 5%;
}
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}
.article-meta {
    margin-bottom: 1rem;
}
.back-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}
.article-date {
    display: block;
    color: #888;
    font-size: 0.9rem;
}
.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.article-subtitle {
    font-size: 1.2rem;
    color: #666;
}
.article-image-container {
    margin-bottom: 3rem;
}
.article-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}
.article-content {
    line-height: 1.8;
}
.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content p, .article-content ul {
    margin-bottom: 1.5rem;
}
.article-content ul {
    list-style-position: inside;
}


/* =========== "KONTAKT" SEITE (NEUES DESIGN) =========== */
.contact-section {
    padding: 80px 5%;
    background-color: #ffffff;
}
.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.contact-header p {
    font-size: 1.2rem;
    color: #666;
}
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(69, 53, 50, 0.1);
}
.contact-form .form-row {
    display: flex;
    gap: 2rem;
}
.contact-form .form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 8px; background-color: #fff; font-family: var(--font-family); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 201, 52, 0.3); }
.contact-form textarea { resize: vertical; }
.contact-form .cta-button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem;
}
.contact-info-wrapper {
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: var(--secondary-color);
}
.contact-info-item a, .contact-info-item p {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
}
.contact-info-item strong {
    font-weight: 600;
    display: block;
}

/* =========== IMPRESSUM/DATENSCHUTZ SEITE =========== */
.text-page-content { max-width: 800px; }
.text-page-content h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 1rem; }
.text-page-content h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.text-page-content p { margin-bottom: 1rem; }
.text-page-content a { color: var(--secondary-color); }

/* =========== FOOTER =========== */
.main-footer { background-color: var(--dark-color); color: var(--light-color); padding: 2rem 5%; text-align: center; }
.footer-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: var(--light-color); text-decoration: none; margin-left: 1.5rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); }

/* =========== ANIMATION =========== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 201, 52, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 201, 52, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 201, 52, 0);
    }
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 900px) {
    body { 
        padding-top: 70px; 
    }
    .main-header { 
        height: 70px; 
    }
    .desktop-nav { 
        display: none; 
    }
    .burger-menu { 
        display: flex; 
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        min-height: auto;
        gap: 2rem;
    }
    .hero-text { 
        max-width: 100%; 
        padding-right: 0;
        order: 1; /* Text kommt zuerst */
    }
    .hero-text h1 { 
        font-size: 2.5rem; 
        line-height: 1.2;
    }
    .slogan {
        font-size: 1.1rem;
    }
    
    .hero-images { 
        display: none; /* Karussell auf Mobilgeräten ausblenden */
    }

    .page-header { 
        padding: 3rem 5%; 
    }
    .page-header h1 { 
        font-size: 2.2rem; 
    }
    .page-header p {
        font-size: 1.1rem;
    }

    .content-section, .news-section, .archive-section, .contact-section, .text-page-section {
        padding: 50px 5%;
    }

    .content-item, .content-item.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3.5rem;
    }
    .content-item img { 
        max-width: 100%; 
    }
    .content-item h2 { 
        font-size: 1.8rem; 
    }

    .cta-banner {
        padding: 2rem;
    }
    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .contact-header h1 { font-size: 2rem; }
    .contact-container { padding: 2rem; }
    .contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-info-wrapper { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    
    .footer-content { 
        flex-direction: column; 
        gap: 1rem; 
    }
    .footer-links {
        display: flex;
        gap: 1.5rem;
    }
    .footer-links a {
        margin-left: 0;
    }

    .archive-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }
}
