/*
Theme Name: Kneipp Theme
Description: Modernes WordPress Theme (Version 3.4 - Mobile, Tablet, Desktop).
Version: 3.4.0
*/

/* ==========================================================================
   1. BASIS (Mobile First - Das sehen Handys & alle anderen als Basis)
   ========================================================================== */
:root {
    --c-green: #156a40;
    --c-green-light: #2e8b57;
    --c-text: #1a1a1a;
    --c-background: #ffffff;
    --c-dark-bg: #1e3526;

    --h-slider: 100vh;
    --h-wave: 200px; /* Etwas kleiner auf Handy */
    --m-content: -100px; /* Weniger hochziehen auf Handy */

    --z-slider: 1;
    --z-wave: 10;
    --z-content: 20;
    --z-menu: 9999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; margin-top: 0 !important; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.7; color: #333; background-color: #fff; overflow-x: hidden; margin: 0; padding: 0; }

h1, h2, h3 { font-family: "Times New Roman", serif; font-weight: 800; margin-bottom: 1rem; color: #000; }
p { font-size: 1.1rem; margin-bottom: 1.5rem; color: #444; }
a { color: var(--c-green); text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* HERO SLIDER (Handy) */
.hero-container { position: relative; width: 100%; height: 100vh !important; overflow: hidden; margin: 0; padding: 0; top: 0; }
.full-width-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; padding: 0; }
#hero-slider, .splide__track, .splide__list, .splide__slide { height: 100vh !important; width: 100%; margin: 0; }
.slide-background { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; background-color: #2c3e50; }
.slide-background::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%); }

.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: white; z-index: 20; width: 95%;
    pointer-events: none;
}
.hero-title { font-size: 2.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.9); margin-bottom: 1rem; color: white; line-height: 1.2; }
.hero-subtitle { font-size: 1.2rem; color: white; }
.hero-actions { pointer-events: auto; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.button { padding: 12px 30px; border-radius: 50px; font-weight: 700; text-transform: uppercase; display: inline-block; width: 100%; max-width: 300px; text-align: center; }
.button-primary { background: #1e7a4c; color: white; }
.button-secondary { background: white; color: #1e7a4c; }

/* Welle */
.wave-container { position: absolute; bottom: -1px; left: 0; width: 100%; height: 120px; z-index: 10; pointer-events: none; overflow: hidden; line-height: 0; }
.wave { width: 300%; height: 100%; } /* Breiter auf Handy für Animation */
.wave path { transform-origin: center bottom; transition: fill 0.3s ease; }
.wave-layer-1 { animation: wave-flow 20s linear infinite; fill: #1565c0; opacity: 1; }
.wave-layer-2 { animation: wave-flow 12s linear infinite reverse; fill: #42a5f5; opacity: 1; }
.wave-layer-3 { animation: wave-flow 7s linear infinite; fill: #e3f2fd; opacity: 1; }
@keyframes wave-flow { 0% { transform: translateX(0) scaleY(1); } 50% { transform: translateX(-25%) scaleY(0.90); } 100% { transform: translateX(-50%) scaleY(1); } }

/* Kacheln */
.elements-section {
    background: linear-gradient(to bottom, #e3f2fd 0%, #ffffff 40%);
    position: relative; z-index: 20;
    margin-top: var(--m-content);
    padding-top: 80px; padding-bottom: 4rem;
}
.container { width: 90%; margin: 0 auto; }
.elements-main-title { text-align: center; font-size: 2rem; color: #156a40; margin-bottom: 2rem; text-shadow: 0 2px 0 rgba(255,255,255,0.6); }

.elements-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } /* Handy: 1 untereinander */

.element-card {
    background: white; padding: 2rem; border-radius: 20px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: 6px solid transparent; color: #333;
}
.element-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Kurse & Regional */
.course-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 2rem; }
.course-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 10px rgba(0,0,0,0.05); border: 1px solid #eee; padding: 1.5rem; }

.regional-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 2rem; }
.regional-item { background: white; padding: 1rem; border-radius: 10px; border: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.regional-icon { font-size: 2rem; }

/* Menü */
.menu-container { position: fixed; top: 20px; right: 20px; z-index: 9999; perspective: 1000px; }
.hamburger-menu { width: 60px; height: 60px; background: var(--c-green); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hamburger-icon span { display: block; width: 30px; height: 3px; background: white; margin: 3px 0; }
.nav-overlay { position: fixed; inset: 0; background: rgba(30, 53, 38, 0.98); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s; z-index: 9990; }
.nav-overlay.active { opacity: 1; visibility: visible; }
.nav-menu a { display: block; font-size: 1.5rem; color: white; padding: 15px; font-weight: 700; }

/* Footer */
.site-footer { background: #1e3526; color: white; padding: 3rem 1rem; text-align: center; }
.footer-menu { display: flex; flex-direction: column; gap: 1rem; list-style: none; }


/* ==========================================================================
   3. TABLET (Ab 768px Breite - z.B. iPads)
   ========================================================================== */
@media (min-width: 768px) {

    /* Welle & Abstand */
    .wave-container { height: 200px; }
    .elements-section { margin-top: -140px; }

    /* Hero */
    .hero-title { font-size: 3.5rem; }
    .hero-actions { flex-direction: row; } /* Buttons nebeneinander */
    .button { width: auto; padding: 14px 40px; }

    /* Kacheln: 2 nebeneinander (sieht auf Tablet am besten aus) */
    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    /* Damit die letzte Kachel (Nr. 5) mittig zentriert ist */
    .element-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    /* Kurse: 2 nebeneinander */
    .course-grid { grid-template-columns: repeat(2, 1fr); }

    /* Regional: 3 nebeneinander */
    .regional-grid { grid-template-columns: repeat(3, 1fr); }
    .regional-item { flex-direction: column; text-align: center; padding: 2rem; }

    /* Footer: Links nebeneinander */
    .footer-menu { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}


/* ==========================================================================
   4. DESKTOP (Ab 1024px Breite - Laptops & PCs)
   ========================================================================== */
@media (min-width: 1024px) {

    /* Layout */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

    /* Welle riesig */
    .wave-container { height: 280px; }
    .wave { width: 100%; }
    .elements-section { margin-top: -220px; padding-top: 100px; }

    /* Hero */
    .hero-title { font-size: 4.5rem; line-height: 1.1; }
    .hero-subtitle { font-size: 1.8rem; }

    /* Kacheln: Alle 5 in einer Reihe! */
    .elements-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
    .element-card:last-child { grid-column: auto; max-width: 100%; margin: 0; } /* Reset Tablet Zentrierung */
    .elements-main-title { font-size: 3rem; }

    /* Kurse: 3 nebeneinander */
    .course-grid { grid-template-columns: repeat(3, 1fr); }

    /* Regional: 5 nebeneinander */
    .regional-grid { grid-template-columns: repeat(5, 1fr); }

    /* Menü Button größer */
    .menu-container { top: 30px; right: 40px; }
    .hamburger-menu { width: 70px; height: 70px; }
    .nav-menu a { font-size: 2rem; padding: 10px; }
}

/* ==========================================================================
   UTILITIES & FARBEN (Für alle)
   ========================================================================== */
.fade-in-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Farbzuordnung Kacheln */
.element-card[data-element="wasser"] { border-top-color: #2196f3; } .element-card[data-element="wasser"]:hover { background: #2196f3; }
.element-card[data-element="pflanzen"] { border-top-color: #4caf50; } .element-card[data-element="pflanzen"]:hover { background: #4caf50; }
.element-card[data-element="bewegung"] { border-top-color: #ff5722; } .element-card[data-element="bewegung"]:hover { background: #ff5722; }
.element-card[data-element="ernaehrung"] { border-top-color: #ff9800; } .element-card[data-element="ernaehrung"]:hover { background: #ff9800; }
.element-card[data-element="balance"] { border-top-color: #9c27b0; } .element-card[data-element="balance"]:hover { background: #9c27b0; }

.element-card:hover { transform: translateY(-10px); color: white !important; }
.element-card:hover h3, .element-card:hover p { color: white !important; }
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #1e7a4c; color: white; border: none; border-radius: 50%; z-index: 999; opacity: 0; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.back-to-top.is-visible { opacity: 1; }

/* ==========================================================================
   FOOTER PREMIUM DESIGN
   ========================================================================== */
.site-footer {
    background-color: #1a2e22; /* Sehr dunkles Grün */
    color: #e0e0e0; /* Helles Grau für Text */
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    font-family: "Times New Roman", serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #1e7a4c;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-slogan {
    font-style: italic;
    color: #81c784; /* Hellgrün */
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer-contact-list, .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-list .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.footer-links a, .footer-contact-list a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover, .footer-contact-list a:hover {
    color: white;
    padding-left: 5px; /* Kleiner Ruck nach rechts */
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: white; }
.sep { margin: 0 10px; color: #555; }
