/*
Theme Name: KW Theme
Theme URI: https://kraeuter-wildnis.de
Author: Martin Günther
Description: Maßgeschneidertes Theme für Kräuter-Wildnis
Version: 2.48.3
License: GNU General Public License v2 or later
Text Domain: kw-theme
*/

/* ========================================
   CSS VARIABLEN
======================================== */
:root {
    /* Farben */
    --kw-primary: #4A5D3F;
    --kw-primary-light: #5a6d4f;
    --kw-secondary: #7A9568;
    --kw-accent: #9CAF88;
    --kw-accent-light: #B8C9A9;
    --kw-cream: #FAF8F5;
    --kw-beige: #F5F0E8;
    --kw-white: #ffffff;
    --kw-text: #686868;
    --kw-text-dark: #333333;
    --kw-overlay: rgba(74, 93, 63, 0.4);
    
    /* Schriften */
    --font-body: 'Quicksand', Arial, sans-serif;
    --font-headline: 'Cormorant Garamond', Georgia, serif;
    --font-handschrift: 'Caveat', cursive;

    /* Typografie-Skala (einheitlich rem, Basis: html 16px) */
    --fs-xs: 0.8rem;       /* 12.8px – Anchor-Nav, Mini-Labels */
    --fs-sm: 0.9rem;        /* 14.4px – Kleintext, Footer-Legal, Individuelle-Labels */
    --fs-base: 1.2rem;      /* 19.2px – Fließtext, Buttons, Inputs */
    --fs-label: 0.85rem;    /* 13.6px – Section-Labels (UNSERE MISSION etc.) */
    --fs-handschrift: 1.9rem; /* 30.4px – Handschrift-Zitate */
    --fs-handschrift-hero: 2.3rem; /* 36.8px – Handschrift im Hero */
    --fs-h1: 2.2rem;        /* 35.2px – Hauptüberschriften */
    --fs-h2: 1.8rem;        /* 28.8px – Unterüberschriften */
    --fs-h3: 1.6rem;        /* 25.6px – Headline small */
    --fs-accordion: 1.2rem; /* 19.2px – FAQ Fragen */
    --fs-accordion-icon: 1.5rem; /* 24px – FAQ +/- Zeichen */

    /* Abstände */
    --section-padding: 80px;
    --section-padding-sm: 50px 20px;
    --container-width: 1200px;
    --container-narrow: 900px;
    --container-xs: 600px;
    
    /* Schatten */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    
    /* Übergänge – KEIN "all" (verursacht Scroll-Ruckeln durch ständige Repaints) */
    --transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* ========================================
   RESET & BASIS
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    /* scroll-behavior: smooth entfernt – verursacht auf manchen Browsern Scroll-Jank;
       Smooth-Scroll wird stattdessen per JS nur bei Klick-Navigation ausgelöst */
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--kw-text);
    background-color: var(--kw-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    overflow-x: hidden;
}

/* Einheitliche Textgröße für alle Fließtexte */
p, li, td, th, label, input, select, textarea, button {
    font-family: var(--font-body);
    font-size: var(--fs-base);
}

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

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

a:hover {
    color: var(--kw-secondary);
}

/* ========================================
   TYPOGRAFIE
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    color: var(--kw-primary);
    font-weight: 500;
    line-height: 1.3;
}

.kw-headline {
    font-family: var(--font-headline);
    font-size: var(--fs-h1);
    font-weight: 500;
    color: var(--kw-primary);
    margin-bottom: 0.5em;
}

.kw-headline-sm {
    font-family: var(--font-headline);
    font-size: var(--fs-h3);
    font-weight: 500;
    color: var(--kw-primary);
    margin: 1.5em 0 0.5em;
}

.kw-handschrift {
    font-family: var(--font-handschrift);
    font-size: var(--fs-handschrift);
    color: var(--kw-secondary);
    margin-bottom: 0.5em;
}

.kw-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--kw-secondary);
    margin-bottom: 10px;
}

.kw-text {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--kw-text);
}

.kw-text p {
    margin-bottom: 1em;
}

.kw-intro {
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--kw-text);
    max-width: 700px;
    margin: 0 auto 1.5em;
}

.kw-small-text {
    font-size: var(--fs-sm);
    color: var(--kw-text);
    opacity: 0.8;
}

/* ========================================
   LAYOUT
======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-xs {
    max-width: var(--container-xs);
}

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

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

/* Sections */
.kw-section {
    padding: var(--section-padding);
    contain: layout style;
}

.kw-section-white {
    background-color: var(--kw-white);
}

.kw-section-cream {
    background-color: var(--kw-cream);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--kw-primary) 0%, var(--kw-primary-light) 100%);
    color: var(--kw-white);
    border-color: var(--kw-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--kw-primary-light) 0%, var(--kw-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--kw-white);
}

.btn-secondary,
.btn.is-outline {
    background: transparent;
    color: var(--kw-primary);
    border: 2px solid var(--kw-primary);
}

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

/* ========================================
   FLOATING HAMBURGER MENU
======================================== */
.kw-floating-menu {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
}

.kw-menu-checkbox {
    display: none;
}

.kw-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--kw-white);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(74, 93, 63, 0.2);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 10001;
}

.kw-menu-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(74, 93, 63, 0.3);
}

.kw-menu-icon,
.kw-menu-icon::before,
.kw-menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--kw-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.kw-menu-icon {
    position: relative;
}

.kw-menu-icon::before,
.kw-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.kw-menu-icon::before {
    top: -7px;
}

.kw-menu-icon::after {
    top: 7px;
}

/* Hamburger zu X Animation */
.kw-menu-checkbox:checked + .kw-menu-button .kw-menu-icon {
    background: transparent;
}

.kw-menu-checkbox:checked + .kw-menu-button .kw-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.kw-menu-checkbox:checked + .kw-menu-button .kw-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Navigation Panel */
.kw-menu-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--kw-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: right 0.4s ease;
    z-index: 10000;
    overflow-y: auto;
}

.kw-menu-checkbox:checked ~ .kw-menu-nav {
    right: 0;
}

.kw-menu-nav a {
    display: block;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--kw-primary);
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.kw-menu-nav a:hover {
    background: var(--kw-beige);
    padding-left: 25px;
}

.kw-menu-divider {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 6px 20px;
}

.kw-menu-divider + a,
.kw-menu-divider ~ a {
    font-size: var(--fs-sm);
    padding: 10px 20px;
    opacity: 0.7;
}

.kw-menu-divider ~ a:hover {
    opacity: 1;
}

/* Overlay when menu is open */
.kw-menu-checkbox:checked ~ .kw-menu-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 300px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.kw-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--kw-primary);
    color: var(--kw-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74, 93, 63, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.kw-back-to-top:hover {
    background: var(--kw-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 93, 63, 0.4);
    color: var(--kw-white);
}

.kw-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   GOOGLE reCAPTCHA BADGE – nach links verschieben
   (kollidiert sonst mit dem Back-to-Top Button)
======================================== */
.grecaptcha-badge {
    left: 4px !important;
    right: auto !important;
    width: 70px !important;
    overflow: hidden !important;
    transition: width 0.3s ease !important;
}
.grecaptcha-badge:hover {
    width: 256px !important;
}

/* ========================================
   HERO SECTION (Split Layout)
======================================== */
.kw-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background-color: var(--kw-cream);
}

.kw-hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: var(--kw-cream);
}

.kw-hero-content {
    max-width: 500px;
    text-align: center;
}

.kw-hero-logo {
    width: 340px;
    max-width: 100%;
    margin: 0 auto 30px;
}

.kw-hero-content .kw-handschrift {
    font-size: var(--fs-handschrift-hero);
    margin-bottom: 20px;
}

.kw-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.kw-hero-right {
    position: relative;
    overflow: hidden;
}

.kw-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}

.kw-hero-right:hover img {
    transform: scale(1.05);
}

.kw-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--kw-accent) 0%, var(--kw-secondary) 100%);
}

/* ========================================
   ÜBER UNS SECTION
======================================== */
.kw-about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: center;
}

.kw-about-image {
    overflow: hidden;
    border-radius: 12px;
}

.kw-about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 8s ease-out, box-shadow 0.4s ease;
}

.kw-about-image:hover img {
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
}

.kw-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.kw-feature {
    font-size: var(--fs-base);
    color: var(--kw-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Moderne SVG-Icons (Angebote-Features & Mission) */
.kw-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--kw-primary);
}

.kw-icon-leaf {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: -3px;
    margin-right: 6px;
}

/* Inline-Icons (im Fließtext, z.B. Herz, Pflanze) */
.kw-icon-inline {
    width: 20px;
    height: 20px;
    vertical-align: -3px;
    display: inline-block;
}

/* Icons in Buttons */
.kw-icon-btn {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    display: inline-block;
    margin-right: 4px;
}

/* Icons in Listen (feature-list) */
.kw-icon-li {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: -3px;
    margin-right: 8px;
    display: inline-block;
}

.kw-feature-list {
    list-style: none;
}

.kw-feature-list li,
.kw-feature-compact {
    font-size: var(--fs-base);
    color: var(--kw-text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ========================================
   MISSION SECTION
======================================== */
.kw-mission-section {
    position: relative;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.kw-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

.kw-mission-section > .container {
    position: relative;
    z-index: 1;
}

.kw-mission-list {
    list-style: none;
    margin: 20px 0;
}

.kw-mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 14px;
    font-size: var(--fs-base);
    color: var(--kw-text);
    line-height: 1.6;
}

/* ========================================
   ANGEBOTE SECTION
======================================== */
.kw-angebote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Ab 900px: alle 3 Karten untereinander statt 2+1 Layout */
@media (max-width: 900px) {
    .kw-angebote-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .kw-angebote-grid .kw-angebot-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: auto;
    }
    .kw-angebot-card {
        height: auto;
        min-height: 280px;
    }
}

.kw-angebot-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.kw-angebot-card:hover {
    transform: scale(1.03);
}

/* Standard-Overlay: etwas dunkler für bessere Lesbarkeit */
.kw-angebot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 93, 63, 0.55);
    transition: var(--transition);
}

.kw-angebot-card:hover .kw-angebot-overlay {
    background: rgba(74, 93, 63, 0.82);
}

/* Titel & Untertitel (Standardansicht) */
.kw-angebot-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    text-align: center;
    color: var(--kw-white);
    z-index: 2;
    transition: var(--transition);
}

.kw-angebot-card:hover .kw-angebot-content {
    opacity: 0;
}

.kw-angebot-title {
    font-family: var(--font-headline);
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--kw-white);
}

.kw-angebot-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Hover-Text (Beschreibung) */
.kw-angebot-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
    color: var(--kw-white);
    z-index: 3;
    opacity: 0;
    transition: var(--transition);
}

.kw-angebot-card:hover .kw-angebot-hover {
    opacity: 1;
}

.kw-angebot-hover .kw-angebot-title {
    margin-bottom: 12px;
}

.kw-angebot-desc {
    font-size: 1.0rem;
    line-height: 1.6;
    color: var(--kw-white);
    opacity: 0.95;
}

.kw-angebote-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ========================================
   EVENTS SECTION
======================================== */
.kw-events-section {
    position: relative;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.kw-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88);
}

.kw-events-section > .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   KINDER-SAFARI SECTION
======================================== */
.kw-safari-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.kw-safari-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.kw-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.kw-features-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   KINDERGEBURTSTAGE / PAKETE SECTION
======================================== */
.kw-birthday-section {
    position: relative;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    contain: layout style paint;
}

.kw-birthday-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
}

.kw-birthday-section > .container {
    position: relative;
    z-index: 1;
}

.kw-pakete-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.kw-paket-card {
    background: var(--kw-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.kw-paket-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.kw-paket-image {
    position: relative;
    height: 330px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kw-paket-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.kw-paket-badge {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--kw-white);
}

.kw-paket-number {
    display: block;
    font-family: var(--font-headline);
    font-size: 1.4rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.kw-paket-title {
    font-family: var(--font-headline);
    font-size: 2.2rem;
    font-weight: 500;
}

.kw-paket-content {
    padding: 25px;
    text-align: center;
}

.kw-paket-desc {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    color: var(--kw-primary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--kw-accent-light);
}

.kw-paket-text {
    font-size: var(--fs-base);
    color: var(--kw-text);
    line-height: 1.7;
}

.kw-paket-preis {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--kw-primary);
}

/* ========================================
   INFO GRID (Für wen / Ablauf)
======================================== */
.kw-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.kw-info-block {
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
}

/* ========================================
   HINT BAR (Sicherheit)
======================================== */
.kw-hint-bar {
    background-color: var(--kw-primary);
    padding: 60px 20px;
}

.kw-hint-bar .kw-headline {
    color: var(--kw-white);
}

.kw-hint-bar .kw-intro {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

/* ========================================
   FAQ SECTION
======================================== */
.kw-faq-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.kw-faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
}

.kw-faq-section > .container {
    position: relative;
    z-index: 1;
}

.kw-faq-box {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 50px;
}

.kw-accordion {
    margin-top: 30px;
}

.kw-accordion-item {
    border-bottom: 1px solid var(--kw-beige);
    margin-bottom: 0;
}

.kw-accordion-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-headline);
    font-size: var(--fs-accordion);
    font-weight: 500;
    color: var(--kw-primary);
    cursor: pointer;
    list-style: none;
}

.kw-accordion-item summary::-webkit-details-marker {
    display: none;
}

.kw-accordion-item summary::after {
    content: '+';
    font-size: var(--fs-accordion-icon);
    font-weight: 300;
    color: var(--kw-secondary);
    transition: var(--transition);
}

.kw-accordion-item[open] summary::after {
    content: '−';
}

.kw-accordion-content {
    padding: 0 0 20px;
    font-size: var(--fs-base);
    color: var(--kw-text);
    line-height: 1.75;
}

/* ========================================
   INDIVIDUELLE KURSE & WORKSHOPS
======================================== */
.kw-individuelle-section {
    padding: 80px 0;
}

.kw-individuelle-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.kw-individuelle-content .kw-text {
    text-align: center;
    margin-bottom: 2rem;
}

.kw-individuelle-content .kw-text p {
    margin-bottom: 1rem;
}

.kw-individuelle-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.kw-individuelle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.kw-individuelle-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kw-cream, #F5F0E8);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(74, 93, 63, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--kw-primary, #4A5D3F);
}

.kw-individuelle-icon svg {
    width: 28px;
    height: 28px;
}

.kw-section-cream .kw-individuelle-icon {
    background: #fff;
}

.kw-individuelle-icon:hover {
    transform: translateY(-3px);
    background: var(--kw-primary, #4A5D3F);
    color: #fff;
}

.kw-individuelle-item span:last-child {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--kw-text, #686868);
}

/* Responsive */
@media (max-width: 600px) {
    .kw-individuelle-icons {
        gap: 1.5rem;
    }
    .kw-individuelle-item {
        min-width: 80px;
    }
    .kw-individuelle-icon {
        width: 56px;
        height: 56px;
    }
    .kw-individuelle-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   NEWSLETTER SECTION
======================================== */
.kw-newsletter-section {
    background-color: #F2EFE9;
}

.kw-newsletter-image {
    width: 200px;
    max-width: 80%;
    margin: 0 auto 30px;
}

.kw-newsletter-form {
    max-width: 420px;
    margin: 30px auto;
}

/* --- Brevo/Sendinblue Formular: Nachname ausblenden --- */
.kw-newsletter-section .sib-form-block[data-required="false"]:has(input[name*="NACHNAME"]),
.kw-newsletter-section .sib-form-block[data-required="false"]:has(input[name*="LASTNAME"]),
.kw-newsletter-section p:has(> label[for*="NACHNAME"]),
.kw-newsletter-section p:has(> label[for*="LASTNAME"]) {
    display: none !important;
}
/* Fallback: Nachname über nth-child verstecken (3. Formularfeld) */
.kw-newsletter-section form > p:nth-of-type(3) {
    display: none !important;
}

/* --- Formular-Container --- */
.kw-newsletter-section .sib-form-container,
.kw-newsletter-section .sib-form,
.kw-newsletter-section .sibwp-form-wrapper,
.kw-newsletter-section form {
    max-width: 420px;
    margin: 30px auto 0;
    text-align: left;
}

/* Formular-Blöcke (Brevo) */
.kw-newsletter-section .sib-form-block {
    padding: 0;
    margin-bottom: 16px;
}

/* Auch native <p>-Wrapper um Label+Input stylen */
.kw-newsletter-section form > p {
    margin-bottom: 16px;
}

/* --- Labels --- */
.kw-newsletter-section label,
.kw-newsletter-section .sib-form label,
.kw-newsletter-section .entry__label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--kw-primary);
    margin-bottom: 8px;
    text-align: left;
}

/* --- Eingabefelder --- */
.kw-newsletter-section input[type="text"],
.kw-newsletter-section input[type="email"],
.kw-newsletter-section .sib-form input[type="text"],
.kw-newsletter-section .sib-form input[type="email"],
.kw-newsletter-section .entry__field input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--kw-text-dark);
    background: var(--kw-white);
    border: 2px solid #E8E4DC;
    border-radius: 14px;
    box-sizing: border-box;
    transition: var(--transition);
    -webkit-appearance: none;
}

.kw-newsletter-section input[type="text"]:focus,
.kw-newsletter-section input[type="email"]:focus,
.kw-newsletter-section .sib-form input:focus {
    outline: none;
    border-color: var(--kw-accent);
    box-shadow: 0 0 0 4px rgba(156, 175, 136, 0.15);
}

/* Placeholder-Styling */
.kw-newsletter-section input::placeholder {
    color: #B0A99A;
    font-style: italic;
}

/* --- Submit Button --- */
.kw-newsletter-section input[type="submit"],
.kw-newsletter-section button[type="submit"],
.kw-newsletter-section .sib-form input[type="submit"],
.kw-newsletter-section .sib-form button[type="submit"],
.kw-newsletter-section .sib-form-block__button {
    display: block;
    width: 100%;
    padding: 18px 32px;
    font-size: var(--fs-base);
    font-weight: 600;
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--kw-primary) 0%, var(--kw-primary-light) 100%);
    color: var(--kw-white);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    -webkit-appearance: none;
}

.kw-newsletter-section input[type="submit"]:hover,
.kw-newsletter-section button[type="submit"]:hover,
.kw-newsletter-section .sib-form input[type="submit"]:hover,
.kw-newsletter-section .sib-form-block__button:hover {
    background: linear-gradient(135deg, var(--kw-primary-light) 0%, var(--kw-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 93, 63, 0.35);
}

/* --- Brevo-eigene Styles überschreiben --- */
.kw-newsletter-section .sib-form .entry__field {
    display: block;
}

.kw-newsletter-section .sib-form .entry__label {
    display: block;
    margin-bottom: 8px;
}

/* Brevo Inline-Styles überschreiben */
.kw-newsletter-section .sib-form-block div[style] {
    background: transparent !important;
}

.kw-newsletter-section .sib-form .sib-form-block input {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    background: var(--kw-white) !important;
    border: 2px solid #E8E4DC !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

/* ========================================
   BEWERTUNGEN SECTION
======================================== */
.kw-bewertungen-section {
    background-color: #FAF8F5;
}

/* ========================================
   KONTAKT SECTION
======================================== */
.kw-kontakt-section {
    background: linear-gradient(135deg, var(--kw-primary) 0%, var(--kw-primary-light) 100%);
    padding: 60px 20px;
    color: var(--kw-white);
}

.kw-kontakt-section .kw-label {
    color: rgba(255, 255, 255, 0.8);
}

.kw-kontakt-section .kw-headline {
    color: var(--kw-white);
}

.kw-kontakt-section .kw-handschrift {
    color: var(--kw-accent-light);
}

.kw-kontakt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.kw-kontakt-section .btn-secondary {
    color: var(--kw-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.kw-kontakt-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--kw-white);
    color: var(--kw-white);
}

.kw-kontakt-divider {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 30px auto;
}

.kw-kontakt-image {
    width: auto;
    max-width: 220px;
    max-height: 180px;
    object-fit: contain;
    margin: 0 auto 25px;
}

.kw-kontakt-info {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.kw-kontakt-info a {
    color: var(--kw-white);
    text-decoration: underline;
}

.kw-footer-legal {
    margin-top: 30px;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
}

.kw-footer-legal a {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   GALERIE SLIDER
======================================== */
/* Impressionen-Section Wrapper */
.kw-impressionen-section .kw-headline {
    margin-bottom: 30px;
}

/* Impressionen Section: kein seitliches Padding für edge-to-edge Slider */
.kw-impressionen-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Plugin-CSS überschreiben: Edge-to-edge wie Referenz grün-sein.de */
.kw-impressionen-section .kw-gallery-slider {
    padding: 0 !important;
    margin-bottom: 60px;
    background: var(--kw-white) !important;
}

.kw-impressionen-section .kw-gallery-slide {
    padding: 0 !important;
}

.kw-impressionen-section .kw-gallery-slide img {
    border-radius: 0 !important;
    box-shadow: none !important;
    aspect-ratio: 16/10 !important;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ========================================
   STICKY ANCHOR NAV (optional)
======================================== */
.kw-anchor-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 100;
    display: none; /* Aktivieren wenn gewünscht */
}

.kw-anchor-nav a {
    display: block;
    padding: 8px 15px;
    font-size: var(--fs-xs);
    color: var(--kw-text);
    border-right: 2px solid transparent;
    transition: var(--transition);
}

.kw-anchor-nav a:hover,
.kw-anchor-nav a.active {
    color: var(--kw-primary);
    border-right-color: var(--kw-primary);
}

/* ========================================
   FOOTER (minimal, da Kontakt-Section)
======================================== */
.site-footer {
    display: none; /* Footer ist in Kontakt-Section integriert */
}

/* ========================================
   DEKORATIVE KRÄUTER-ILLUSTRATIONEN
   (innerhalb der eigenen Section positioniert)
======================================== */

/* Section muss overflow sichtbar und relativ sein */
.kw-has-deko {
    position: relative;
    overflow: hidden;
}

/* Gemeinsame Basis: absolute Positionierung oben in der Section */
.kw-deko-inside {
    position: absolute;
    top: 20px;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.kw-deko-inside img {
    height: 250px;
    width: auto;
    opacity: 0.6;
    pointer-events: none;
}

/* Rechts / Links */
.kw-deko-inside-right {
    right: 40px;
}
.kw-deko-inside-right img {
    transform: rotate(-3deg);
}

.kw-deko-inside-left {
    left: 40px;
}
.kw-deko-inside-left img {
    transform: rotate(5deg) scaleX(-1);
}

/* Termine-Sträußchen: etwas weiter links (zur Mitte hin) */
.kw-events-section .kw-deko-inside-right {
    right: 80px;
}

/* Korb-Illustration über "Wer wir sind" */
.kw-korb-deko {
    margin-bottom: 10px;
}

.kw-korb-deko img {
    height: 120px;
    width: auto;
    opacity: 0.55;
}


/* ========================================
   SEITENINHALTE (.entry-content)
   Für Unterseiten: Impressum, Datenschutz etc.
======================================== */

/* Page Header */
.kw-page-header {
    background: var(--kw-primary);
    padding: 120px 20px 60px;
    text-align: center;
}

.kw-page-header .kw-headline {
    color: #fff;
    margin: 0;
}

.kw-page-header .kw-label {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

/* Content-Bereich */
.entry-content {
    line-height: 1.85;
    color: var(--kw-text);
}

/* Gutenberg-Blöcke: leere Gruppen/Spalten ohne Inhalt verstecken */
.entry-content .wp-block-group:empty,
.entry-content .wp-block-cover:empty,
.entry-content .wp-block-columns:empty {
    display: none;
}

/* Gutenberg-Block-Hintergründe im Theme-Stil */
.entry-content .has-background {
    border-radius: 12px;
    padding: 20px 24px;
}

/* Event-Detailseite: leere Meta-Box aus kw-site-enhancements überschreiben */
div.kw-event-meta,
.kw-event-single .kw-event-meta,
.kw-event-content .kw-event-meta,
.kw-event-container .kw-event-meta {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.entry-content h2 {
    font-family: var(--font-headline);
    font-size: var(--fs-h2);
    color: var(--kw-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E8E4DC;
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-family: var(--font-headline);
    font-size: var(--fs-h3);
    color: var(--kw-primary);
    margin: 2rem 0 0.75rem;
}

.entry-content h4 {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--kw-text-dark);
    margin: 1.5rem 0 0.5rem;
}

.entry-content p {
    margin-bottom: 1rem;
    font-size: var(--fs-base);
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
}

.entry-content ul {
    list-style: none;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: var(--fs-base);
}

.entry-content ul li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.entry-content ol li {
    margin-bottom: 0.5rem;
    font-size: var(--fs-base);
}

.entry-content a {
    color: var(--kw-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--kw-accent);
    transition: var(--transition);
}

.entry-content a:hover {
    color: var(--kw-secondary);
    text-decoration-color: var(--kw-primary);
}

.entry-content strong {
    color: var(--kw-text-dark);
    font-weight: 600;
}

.entry-content em {
    color: var(--kw-accent);
}

.entry-content blockquote {
    border-left: 3px solid var(--kw-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--kw-cream);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Trennlinie in Content */
.entry-content hr {
    border: none;
    border-top: 1px solid #E8E4DC;
    margin: 2rem 0;
}

/* ========================================
   LEGAL-SEITEN (Impressum, Datenschutz)
======================================== */
.kw-legal-content h2 {
    font-size: 1.5rem;
}

.kw-legal-box {
    background: var(--kw-cream);
    border: 1px solid #E8E4DC;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 1rem 0 1.5rem;
}

.kw-legal-box-highlight {
    background: #fff;
    border: 2px solid var(--kw-accent);
    box-shadow: 0 4px 15px rgba(74, 93, 63, 0.08);
}

.kw-legal-box p {
    margin-bottom: 0.3rem;
}

.kw-legal-box p:last-child {
    margin-bottom: 0;
}

.kw-legal-date {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E8E4DC;
    text-align: center;
    color: var(--kw-accent);
    font-size: var(--fs-sm);
}

/* Zurück-Button auf Unterseiten */
.kw-page-back {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #E8E4DC;
}

/* ========================================
   KONTAKT-FOOTER (alle Seiten)
======================================== */
.kw-site-footer {
    background: var(--kw-primary);
    padding: 50px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.kw-site-footer .container {
    max-width: 600px;
}

.kw-footer-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.kw-footer-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.kw-footer-info {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    line-height: 1.6;
}

.kw-footer-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.kw-footer-info a:hover {
    color: #fff;
}

.kw-footer-divider {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1.5rem auto;
}

.kw-footer-copyright {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.kw-footer-legal-links {
    font-size: var(--fs-xs);
}

.kw-footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.kw-footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .kw-hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .kw-hero-left {
        padding: 80px 40px 60px;
        order: 1;
    }
    
    .kw-hero-right {
        height: 50vh;
        order: 2;
    }
    
    .kw-hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .kw-hero-logo {
        margin: 0 auto 30px;
    }
    
    .kw-hero-buttons {
        justify-content: center;
    }
    
    .kw-about-grid,
    .kw-safari-grid,
    .kw-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .kw-about-image {
        display: none;
    }
    
    .kw-pakete-grid {
        grid-template-columns: 1fr;
    }
    
    /* Floating Menu Anpassungen für Tablet */
    .kw-floating-menu {
        top: 20px;
        right: 20px;
    }
    
    .kw-menu-button {
        width: 50px;
        height: 50px;
    }
    
    .kw-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    /* Deko: Tablet - etwas kleiner */
    .kw-deko-inside img {
        height: 180px;
        opacity: 0.5;
    }
    .kw-deko-inside-right { right: 15px; }
    .kw-deko-inside-left { left: 15px; }
}

@media (max-width: 768px) {
    .kw-headline {
        font-size: var(--fs-h2);
    }

    .kw-hero-title {
        font-size: var(--fs-h1);
    }
    
    .kw-hero-left {
        padding: 60px 25px 50px;
    }
    
    .kw-angebote-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kw-angebote-grid .kw-angebot-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: auto;
    }

    .kw-angebot-card {
        height: auto;
        min-height: 260px;
    }

    /* Auf Touch-Geräten: Hover-Text immer sichtbar */
    .kw-angebot-content {
        opacity: 0;
    }

    .kw-angebot-hover {
        opacity: 1;
    }

    .kw-angebot-card:hover .kw-angebot-overlay {
        background: rgba(74, 93, 63, 0.50);
    }

    .kw-angebot-desc {
        font-size: 0.82rem;
    }
    
    .kw-angebote-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .kw-features-grid {
        grid-template-columns: 1fr;
    }
    
    .kw-faq-box {
        padding: 30px 20px;
    }
    
    .kw-accordion-item summary {
        font-size: 1.1rem;
        padding: 15px 0;
    }
    
    .kw-paket-image {
        height: 250px;
    }
    
    .kw-section {
        padding: var(--section-padding-sm);
    }

    /* Galerie: Mobile - 1 Bild, volle Breite */
    .kw-impressionen-section .kw-gallery-slide {
        width: 100% !important;
    }
    .kw-impressionen-section .kw-gallery-slide img {
        aspect-ratio: 16/10 !important;
    }

    /* Deko: Mobile - klein, innerhalb der Section, mit extra Padding oben */
    .kw-has-deko {
        padding-top: 70px !important;
    }
    .kw-deko-inside {
        top: 15px;
    }
    .kw-deko-inside img {
        height: 110px;
        opacity: 0.45;
    }
    .kw-deko-inside-right { right: 5px; }
    .kw-deko-inside-left { left: 5px; }

    .kw-korb-deko img {
        height: 85px;
    }
}

@media (max-width: 480px) {
    .kw-hero-buttons {
        flex-direction: column;
    }
    
    .kw-hero-buttons .btn {
        width: 100%;
    }
    
    .kw-kontakt-buttons {
        flex-direction: column;
    }
    
    .kw-kontakt-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   WORDPRESS ADMIN BAR FIX
======================================== */
/* WordPress Admin Bar Offset */
body.admin-bar .kw-floating-menu {
    top: 57px;
}

@media (max-width: 782px) {
    body.admin-bar .kw-floating-menu {
        top: 66px;
    }
}

/* ========================================
   PLUGIN STYLES (KW Events, Bewertungen)
======================================== */
/* Event Cards */
.kw-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.kw-event-card {
    background: var(--kw-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.kw-event-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .kw-event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kw-event-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   NEWSLETTER DANKE-SEITE
======================================== */
.kw-danke-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    background: var(--kw-cream, #F5F0E8);
}

.kw-danke-logo {
    margin-bottom: 2.5rem;
    text-align: center;
}

.kw-danke-logo img {
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 8px 25px rgba(74, 93, 63, 0.15));
    animation: kw-danke-fadein 0.8s ease-out;
}

.kw-danke-headline {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

@keyframes kw-danke-fadein {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.kw-danke-text {
    max-width: 500px;
    margin: 2rem auto;
}

.kw-danke-image {
    margin: 2rem auto;
    text-align: center;
}

.kw-danke-image img {
    height: 150px;
    width: auto;
    opacity: 0.5;
    margin: 0 auto;
}

.kw-danke-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .kw-danke-actions {
        flex-direction: column;
        align-items: center;
    }
    .kw-danke-actions .btn {
        width: 100%;
    }
}

/* ========================================
   WP ACCESSIBILITY TOOLBAR – versteckt,
   per Footer-Link "Barrierefreiheit" einblendbar
======================================== */
.a11y-toolbar {
    display: none !important;
}

.a11y-toolbar.kw-toolbar-visible {
    display: block !important;
}
