:root {
    --primary-color: #558B2F; /* Deep Green */
    --secondary-color: #8BC34A; /* Light Green */
    --accent-color: #FF9800; /* CTA Orange */
    --bg-color: #fcfcfc;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --footer-bg: #2E3336;
    --header-bg: #e8f5e9;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Merriweather', serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../pics/iStock-Foto Biovital-analyse.webp') no-repeat center center/cover;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2,
h3 {
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #F57C00;
}

/* Header & Nav */
header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: clamp(52px, 6vw, 80px);
    width: auto;
    max-width: min(100%, 260px);
    border-radius: 0;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../pics/Homepage Praxis 2.webp') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero {
    padding: 40px 0;
    min-height: calc(80vh - 80px);
}

.about-me-image-wrap {
    float: left;
    margin: 0 20px 20px 0;
}

.about-me-image {
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


.hero-content {
    max-width: 1200px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* Features/Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Quote/Testimonial Section */
.quote-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.quote-section blockquote {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-heading);
    max-width: 800px;
    margin: 0 auto;
}

.quote-section cite {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

/* Contact CTA */
.cta-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.ti-reviews-container-wrapper {
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #ececec;
    box-shadow: 0 14px 32px rgba(34, 34, 34, 0.08);
    padding: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-slider {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 30px 25px;
    position: relative;
}

.ti-reviews-title-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.ti-reviews-title-wrap h2 {
    margin-bottom: 8px;
}

.ti-reviews-subtitle {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.reviews-slider-track {
    position: relative;
    min-height: 280px;
}

.review-slide {
    display: none;
}

.review-slide.is-active {
    display: block;
}

.ti-review-card {
    text-align: center;
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 24px 20px;
    background-color: #fff;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.review-stars {
    margin: 0 0 12px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #f5b50a;
}

.review-slide blockquote {
    margin: 0 0 14px;
    font-style: italic;
    line-height: 1.7;
    font-size: var(--review-font-size, 1.05rem);
}

.review-text {
    overflow: hidden;
}

.review-text.is-collapsed {
    margin-bottom: 8px;
}

.review-more-btn {
    border: 0;
    background: transparent;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 12px;
}

.review-nav {
    position: absolute;
    top: 52%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e3e3e3;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.review-nav:hover {
    color: var(--accent-color);
}

.review-nav-prev {
    left: -18px;
}

.review-nav-next {
    right: -18px;
}

.review-meta {
    font-weight: 600;
    margin-bottom: 14px;
}

.review-meta span {
    font-weight: 400;
    color: var(--light-text);
}

.review-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.review-dots {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.review-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #d3d3d3;
    cursor: pointer;
}

.review-dot.is-active {
    background: var(--accent-color);
}

.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Systemische Aufstellungsarbeit */
.setup-page {
    max-width: 1020px;
}

.setup-intro {
    max-width: 860px;
    margin: 0 auto 40px;
    text-align: center;
}

.setup-intro p {
    margin-bottom: 16px;
    text-align: left;
}

.setup-intro p.text-center {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 24px;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.setup-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.setup-card p {
    margin-bottom: 14px;
}

.setup-list,
.setup-checklist {
    margin: 16px 0 18px;
    padding-left: 20px;
}

.setup-list {
    list-style: disc;
}

.setup-checklist {
    list-style: none;
    padding-left: 0;
}

.setup-list li,
.setup-checklist li {
    margin-bottom: 10px;
}

.setup-checklist li {
    position: relative;
    padding-left: 26px;
}

.setup-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.setup-highlight {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.12), rgba(85, 139, 47, 0.12));
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 26px 28px;
    margin: 10px 0 24px;
}

.setup-highlight p {
    margin-bottom: 12px;
}

.setup-highlight p:last-child,
.setup-card p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: var(--border-radius);
    top: 100%;
    left: 0;
    padding: 10px 0;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown.dropdown-align-left .dropdown-content {
    left: auto;
    right: 0;
}

.dropdown-content li {
    display: block;
    margin: 0;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: var(--text-color);
    font-weight: normal;
    white-space: normal; /* Allow text wrapping */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown-toggle {
    display: none; /* Hidden on desktop */
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.8em;
    color: var(--primary-color);
}


/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.2;
        hyphens: manual;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }

    h2 {
        font-size: clamp(1.45rem, 5.2vw, 1.9rem);
        line-height: 1.25;
        hyphens: manual;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }

    h3 {
        font-size: clamp(1.25rem, 4.6vw, 1.6rem);
        line-height: 1.3;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        text-align: center;
        max-height: 80vh; /* Allow scrolling if menu is long */
        overflow-y: auto;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .dropdown.active .dropdown-content {
        display: block; /* Show when active class is added via JS */
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        width: 100%;
        padding-left: 0;
    }

    .dropdown-toggle {
        display: inline-block;
        padding: 5px 10px;
        transform: rotate(0deg);
        transition: transform 0.3s;
    }

    .dropdown.active .dropdown-toggle {
        transform: rotate(180deg);
    }

    .dropdown-content a {
        padding-left: 30px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .review-nav-prev {
        left: 4px;
    }

    .review-nav-next {
        right: 4px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .navbar {
        padding: 0 20px;
    }

    .logo img {
        height: 60px;
        max-width: 200px;
    }

    .setup-card,
    .setup-highlight {
        padding: 20px;
    }

    .hero {
        min-height: calc(100svh - 80px);
        padding-top: 110px;
    }

    .about-me-image-wrap {
        float: none;
        margin: 0 auto 24px;
        text-align: center;
    }

    .about-me-image {
        width: min(250px, 100%);
    }
}

@media (min-width: 769px) and (max-width: 1220px) {
    .container {
        padding-left: clamp(24px, 3vw, 40px);
        padding-right: clamp(24px, 3vw, 40px);
    }

    .hero-content,
    .quote-section blockquote {
        padding-left: clamp(24px, 3vw, 40px);
        padding-right: clamp(24px, 3vw, 40px);
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 2000;
    border-top: 1px solid #eee;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .cookie-buttons {
        flex-shrink: 0;
    }
}

/* Cookie Settings Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 20px;
}

.cookie-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cookie-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-option label {
    cursor: pointer;
}

/* Cookie Placeholder (for blocked content) */
.cookie-placeholder {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.cookie-placeholder p {
    margin-bottom: 15px;
}

/* Card Component */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 20px auto;
    max-width: 800px; /* Wider to accommodate the calendar */
    border: 1px solid #eee;
}

.card-body {
    padding: 30px;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}


@media (max-width: 1100px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "contact-info booking-card"
            "contact-form booking-card";
    }

    .contact-grid > :nth-child(1) {
        grid-area: contact-info;
    }

    .contact-grid > :nth-child(2) {
        grid-area: booking-card;
    }

    .contact-grid > :nth-child(3) {
        grid-area: contact-form;
    }

    .contact-form-inline {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "contact-info"
            "booking-card"
            "contact-form";
    }
}

@media (max-width: 768px) {
    .section.container,
    .section > .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.jameda-wrapper {
    margin-top: 20px;
    margin-bottom: -15px;
}

.admin-card-edit-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 20px;
    align-items: start;
}

.admin-card-preview {
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}

.admin-card-preview h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #4b5563;
}

.admin-card-preview .service-card {
    margin: 0;
    padding: 16px;
    box-shadow: none;
}

@media (max-width: 980px) {
    .admin-card-edit-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    p,
    li,
    label,
    input,
    textarea,
    select,
    .btn,
    .review-slide blockquote {
        font-size: 0.95rem;
    }
}
