:root {
    --primary: #336C00;
    --primary-dark: #043C16;
    --primary-light: #57C5BA;
    --primary-gradient: linear-gradient(135deg, #336C00 0%, #043C16 100%);
    --secondary: #EEEDEB;
    --orange: #FF8100;
    --orange-dark: #E6730D;
    --text: #333333;
    --text-light: #555555;
    --text-large: rgb(85, 85, 85);
    --white: #FFF;
    --light-gray: #F5F5F5;
    --border: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0rem;
    text-transform: none;
    font-size: 1.2rem;
    color: var(--text);
    background-color: var(--white);
    padding-top: 82px;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    max-width: 100vw;
    /* Prevent content from exceeding viewport width */
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--primary);
}

h2 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 3.135rem;
    color: var(--primary);
    line-height: 1.2;
}

h3 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--primary);
    font-weight: 700;
    font-size: 1.715rem;
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-large);
}

/* Less-strong emphasis used for small highlights */
.soft-strong {
    font-weight: 600;
    /* slightly lighter than strong */
    font-size: 1.15rem;
    /* closer to normal paragraph size */
    color: var(--text-large);
}

p {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0rem;
    text-transform: none;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border: none;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
}

.primary-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.secondary-btn {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.center-button {
    text-align: center;
    margin-top: 32px;
}

/* Orange buttons for booking appointments */
a[href*="termin"].btn,
.cta-btn {
    background: var(--orange) !important;
    color: var(--white) !important;
}

a[href*="termin"].btn:hover,
.cta-btn:hover {
    background: var(--orange-dark) !important;
    color: var(--white) !important;
}

/* Header */
body>header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu,
.nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li {
    margin-left: 24px;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a.primary-btn {
    color: var(--white);
}

.nav-menu a:not(.shop-btn):not(.green-login-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-menu a:not(.shop-btn):not(.green-login-btn):hover::after,
.nav-menu a.active:not(.shop-btn):not(.green-login-btn)::after {
    width: 100%;
}

.shop-btn,
.green-login-btn,
.login-btn,
a.green-login-btn,
a.login-btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 0 20px !important;
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    transition: background-color 0.3s ease !important;
}

.shop-btn:hover,
.green-login-btn:hover,
.login-btn:hover,
a.green-login-btn:hover,
a.login-btn:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    text-decoration: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    padding-bottom: 120px;
    background: var(--white);
    overflow: hidden;
    position: relative;
}

/* Wave transition from hero to expert */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,60 C150,100 350,120 600,100 C850,80 1050,60 1200,80 L1200,120 L0,120 Z' fill='%23F5F5F5'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    background-position: bottom;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    margin-bottom: 10px;
}

.hero-content h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-caption {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Page Header (for termin.html) */
.page-header {
    padding: 60px 0 40px;
    background: var(--light-gray);
    text-align: center;
}

.page-header h2 {
    margin-bottom: 20px;
}

.page-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Info Boxes */
.info-boxes {
    margin-top: -40px;
    padding-bottom: 40px;
}

.info-boxes .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box.highlight {
    background: var(--primary);
    color: var(--white);
}

.info-box.highlight .info-link {
    color: var(--white);
    border-color: var(--white);
}

.info-box.highlight h3 {
    color: var(--white);
}

.info-box i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.info-box.highlight i {
    color: var(--white);
}

.info-box h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.info-box p {
    margin-bottom: 16px;
    font-size: 14px;
}

.info-link {
    display: inline-block;
    padding: 5px 0;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

/* Expert Section */
.expert {
    padding: 80px 0;
    background: var(--secondary);
    position: relative;
}

/* Wave transition from expert to videos */
.expert::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,60 C150,100 350,120 600,100 C850,80 1050,60 1200,80 L1200,120 L0,120 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    background-position: bottom;
}

/* Inner wrapper gets animation so background of section stays solid */
.expert-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .expert-inner {
        flex-direction: column;
    }
}

/* Slide-up animation */
/* Generic slide-up utility (animation starts when .in-view is added) */
/* Scroll-triggered slide-up: hidden until .in-view (JS adds) */
/* Vereinfachte Slide-Up Animation ohne leichtes Zurückfedern */
.animate-slide-up {
    opacity: 0;
    transform: translateY(32px);
    /* identisch mit 0%-Frame, verhindert Mikrosprung */
    will-change: transform, opacity;
}

.animate-slide-up.in-view {
    animation: slideUpExpert 0.6s ease-out forwards;
}

/* Delay utilities for staggered hero animation */
.delay-1.in-view {
    animation-delay: 0.12s;
}

.delay-2.in-view {
    animation-delay: 0.24s;
}

.delay-3.in-view {
    animation-delay: 0.36s;
}

@keyframes slideUpExpert {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.expert .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.expert-image {
    flex: 1;
}

.expert-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
}

.expert-content {
    flex: 2;
}

.expert-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
}

.expert-content p {
    margin-bottom: 16px;
}

.qualifications {
    margin: 30px 0;
}

.qualifications h4 {
    margin-bottom: 15px;
}

.qualifications ul {
    list-style: none;
    padding-left: 0;
}

.qualifications li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.qualifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.expert-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* Videos Section */
.videos {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

/* Wave transition from videos to social media - removed for cleaner transition */

.videos h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--primary);
}

.videos-intro {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}



.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-slide {
    min-width: 400px;
    flex: 0 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-slide iframe {
    width: 100%;
    height: 225px;
    border: none;
}

.video-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.video-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.video-nav button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Social Media Section */
.social-media {
    padding: 60px 0;
    background: url('../images/blurry.png') no-repeat top center;
    background-size: cover;
    color: var(--white);
    text-align: center;
    background-position: top 10%;
    position: relative;
}

/* Wave transition from social media to reviews */
.social-media::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,60 C150,100 350,120 600,100 C850,80 1050,60 1200,80 L1200,120 L0,120 Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    background-position: bottom;
}

.social-media h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--white);
}

.social-media p {
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 24px;
    color: var(--white);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--white);
    transform: translateY(-5px);
}

.social-icon.youtube:hover {
    color: #FF0000;
}

.social-icon.facebook:hover {
    color: #1877F2;
}

.social-icon.instagram:hover {
    color: #E4405F;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    position: relative;
}

/* Wave transition from reviews to call-to-action */
.reviews::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L0,60 C150,100 350,120 600,100 C850,80 1050,60 1200,80 L1200,120 L0,120 Z' fill='%23ECF2FB'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    background-position: bottom;
}

.reviews h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--primary);
}

.review-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
}

.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text);
}

.stars {
    color: #FFD700;
    font-size: 24px;
    margin: 8px 0;
}

.rating-count {
    color: var(--text-light);
}

.rating-count-link {
    color: var(--text-light);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.rating-count-link:hover {
    color: var(--primary);
}

.review-source {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.review-source a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.review-source a:hover {
    transform: scale(1.05);
}

.review-logo {
    height: 40px;
    cursor: pointer;
}

.review-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
}

.review-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 310px;
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer h4 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-stars {
    color: #FFD700;
    font-size: 14px;
    margin-top: 4px;
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-text {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.review-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.review-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.review-nav button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Appointment Section (termin.html) */
.appointment-section {
    padding: 60px 0 0 0;
    min-height: 100vh;
    background: var(--light-gray);
}

/* Course Announcement Styles */
.course-announcement {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

.course-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.course-text {
    position: relative;
}

.preview-text {
    display: block;
    position: relative;
    max-height: 120px;
    overflow: hidden;
}

.preview-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
}

.preview-text.hidden {
    display: none;
}

.preview-text.hidden::after {
    display: none;
}

.full-text {
    display: none;
}

.full-text.expanded {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expand-btn {
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    text-decoration: underline;
}

.expand-btn:hover {
    color: var(--secondary);
}

.expand-btn i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Mobile Styles for Course Announcement */
@media (max-width: 767px) {
    .course-announcement {
        margin: 0 15px 20px 15px;
        padding: 20px;
    }

    .preview-text {
        max-height: 100px;
    }

    .preview-text::after {
        height: 50px;
    }
}

.calendly-header {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.calendly-header h3 {
    margin-bottom: 15px;
    text-align: center;
}

.calendly-header p {
    text-align: center;
    margin-bottom: 0;
    color: var(--text-light);
}

.calendly-container {
    background: var(--white);
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100vw;
    width: 100%;
    margin: 0;
}

.calendly-inline-widget {
    width: 100% !important;
    height: 800px !important;
    min-height: 700px !important;
    min-width: 320px !important;
}

/* Additional Info Section */
.additional-info {
    padding: 60px 0;
    background: var(--light-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-item {
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.info-item h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Call to Action Section */
.call-to-action {
    padding: 80px 0 120px;
    background: #ECF2FB;
    text-align: center;
    color: var(--text);
    margin-bottom: 40px;
}

.cta-inner {
    max-width: 900px;
    margin: 0 auto;
}

.call-to-action h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2.8rem;
}

.call-to-action p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text);
    opacity: 0.8;
}

.call-to-action .cta-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 60px 0 20px;
    background: var(--primary-dark);
    color: var(--white);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column p {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--white);
}

.footer-column a {
    color: var(--white);
}

.footer-column a:hover {
    color: #ccc;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .info-boxes .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-slide {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    h2 {
        font-size: 2.5rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    .hero .container,
    .expert .container {
        flex-direction: column;
        text-align: left;
    }

    /* Weniger vertikaler Abstand Hero oben & unten */
    .hero {
        padding: 35px 0 70px;
    }

    .hero-image {
        margin-bottom: 0px !important;
    }

    .hero-image .image-caption {
        margin-bottom: 0px;
    }

    /* Weniger Abstand unter Expert-Bild */
    .expert {
        padding: 55px 0;
    }

    .expert-image {
        margin-bottom: 0px !important;
    }

    .expert-content p {
        margin-bottom: 14px;
    }

    /* Reviews Abschnitt kompakter */
    .reviews {
        padding: 55px 0;
    }

    .reviews h2 {
        margin-bottom: 26px;
    }

    .review-summary {
        margin-bottom: 26px;
        padding: 18px;
    }

    .hero-content,
    .expert-content {
        order: 2;
        text-align: left;
    }

    .hero-content p,
    .expert-content p,
    .hero-content ul,
    .expert-content ul {
        text-align: left;
    }

    .hero-image,
    .expert-image {
        order: 1;
        margin-bottom: 24px;
        text-align: center;
    }

    .hero-buttons,
    .expert-buttons {
        justify-content: center;
        /* zentriert statt linksbündig */
        flex-wrap: wrap;
        width: 100%;
    }

    .expert-image img {
        max-width: 350px;
    }

    .review-summary {
        flex-direction: column;
        gap: 24px;
    }

    /* Wave transitions on mobile */
    .hero::after,
    .expert::after,
    .videos::after,
    .social-media::after,
    .reviews::after {
        height: 40px;
    }

    /* Call to action on mobile */
    .call-to-action {
        text-align: left;
        padding: 60px 0 100px;
    }

    .call-to-action h2,
    .call-to-action p {
        text-align: left;
    }

    .info-boxes .container {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .video-slide {
        min-width: 300px;
    }

    .video-slide iframe {
        height: 169px;
    }

    .expert-card {
        flex-direction: column;
        text-align: center;
    }

    .expert-card img {
        margin-bottom: 15px;
    }

    .expert-social {
        justify-content: center;
    }

    .calendly-header {
        padding: 25px 20px;
    }

    .calendly-container {
        padding: 0;
        max-width: 100vw;
        width: 100%;
        margin: 0;
    }

    .calendly-inline-widget {
        height: 900px !important;
        min-height: 800px !important;
        min-width: 320px !important;
    }
}

@media (max-width: 825px) {
    .header-right-group {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .header-right-group nav {
        order: 2;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
    }

    .logo h1 {
        font-size: 15px;
        line-height: 1.2;
        display: inline-block;
        white-space: normal;
        word-break: break-word;
    }

    .logo img {
        max-height: 36px;
        height: 36px;
        width: auto;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    .green-login-btn,
    .login-btn,
    a.green-login-btn,
    a.login-btn {
        order: 1;
        background: var(--primary) !important;
        color: var(--white) !important;
        height: 32px !important;
        line-height: 32px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        font-weight: 600 !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        padding-bottom: 30px;
        transition: left 0.3s;
        z-index: 999;
        overflow-y: auto;
        margin: 0;
    }

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

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: inline-block;
        padding: 15px 0;
        width: auto;
        font-size: 16px;
    }

    .nav-menu .shop-btn {
        margin: 10px auto;
        width: auto;
        min-width: 120px;
        max-width: 200px;
        padding: 10px 20px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }


    /* Datenschutz Seite: Überschriften in Schwarz erzwingen */
    .datenschutz-page h1,
    .datenschutz-page h2,
    .datenschutz-page h3,
    .datenschutz-page h4,
    .datenschutz-page h5,
    .datenschutz-page h6 {
        color: #000 !important;
    }

    h2 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    /* Smaller wave transitions on very small screens */
    .hero::after,
    .expert::after,
    .videos::after,
    .social-media::after,
    .reviews::after {
        height: 30px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-buttons,
    .expert-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .video-slide {
        min-width: 280px;
    }

    .video-slide iframe {
        height: 158px;
    }

    .social-icons {
        gap: 16px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    body>header {
        padding: 8px 0;
    }

    .logo img {
        max-height: 30px;
        height: 30px;
    }

    .logo h1 {
        font-size: 13px;
        line-height: 1.2;
    }

    .green-login-btn,
    .login-btn {
        height: 28px !important;
        line-height: 28px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
    }

    .calendly-header {
        padding: 20px 15px;
    }

    .calendly-container {
        padding: 0;
        margin: 0;
        max-width: 100vw;
        width: 100%;
    }

    .calendly-inline-widget {
        height: 1000px !important;
        min-height: 900px !important;
        min-width: 320px !important;
    }
}

/* Extra height for very small mobile devices */
@media (max-width: 360px) {
    .calendly-inline-widget {
        height: 1100px !important;
        min-height: 1000px !important;
        min-width: 320px !important;
    }

    .appointment-section {
        min-height: 120vh;
    }
}

/* Additional styles for wavy transition */
.videos {
    position: relative;
}

.videos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C150,60 350,90 600,60 C850,30 1050,0 1200,30 L1200,120 L0,120 Z' fill='%23FFF'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    transform: translateY(-1px);
}

/* Ensure proper text colors */
.hero-content h4,
.expert-content h2,
.videos h2,
.reviews h2,
.page-header h2 {
    color: var(--primary);
}

.footer-column h3 {
    color: var(--white);
}

/* Improve mobile touch targets */
@media (max-width: 767px) {
    .btn {
        padding: 12px 24px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu a {
        padding: 15px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Datenschutz Page Styles */
.datenschutz {
    padding: 120px 0 80px;
    background: #fff;
}

.datenschutz .container {
    max-width: 900px;
}

.datenschutz h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.datenschutz h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.datenschutz h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.datenschutz h4 {
    color: #000000;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.datenschutz h5 {
    color: #000000;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.datenschutz h6 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.datenschutz h7 {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.datenschutz p {
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.datenschutz ul,
.datenschutz ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.datenschutz li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.datenschutz a {
    color: var(--primary);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .datenschutz {
        padding: 100px 0 60px;
    }

    .datenschutz h1 {
        font-size: 2rem;
    }

    .datenschutz h2 {
        font-size: 1.5rem;
    }

    .datenschutz h3 {
        font-size: 1.3rem;
    }

    .datenschutz h4 {
        font-size: 1.2rem;
    }

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

/* Impressum Page Styles */
.impressum {
    padding: 120px 0 80px;
    background: #fff;
}

.impressum .container {
    max-width: 900px;
}

.impressum h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.impressum-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.impressum-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.impressum-section p {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.impressum-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.impressum-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.impressum a {
    color: var(--primary);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .impressum {
        padding: 100px 0 60px;
    }

    .impressum h1 {
        font-size: 2rem;
    }

    .impressum-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .impressum-section h2 {
        font-size: 1.3rem;
    }
}

/* =====================================================
   VIDEO EMBED CENTERING (Vimeo, YouTube)
   ===================================================== */

.wp-block-embed,
.wp-block-embed-vimeo,
.wp-block-embed-youtube {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-embed.aligncenter,
.wp-block-embed-vimeo.aligncenter,
.wp-block-embed-youtube.aligncenter,
.wp-block-embed.alignwide,
.wp-block-embed.alignfull {
    display: block;
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wp-block-embed.alignwide {
    max-width: 1100px !important;
}

.wp-block-embed.alignfull {
    max-width: 100% !important;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =====================================================
   DEFAULT PAGE CONTENT STYLING
   ===================================================== */

.site-main {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-content,
.entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* WordPress block alignment support */
.entry-content>* {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content>.alignwide {
    max-width: 1100px;
}

.entry-content>.alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Gutenberg block spacing */
.entry-content>*+* {
    margin-top: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
}

/* =====================================================
   Programm Page (page-programm.php)
   ===================================================== */

.programm-section {
    padding: 60px 0 80px;
}

.programm-content h2 {
    margin-bottom: 1.5rem;
}

.programm-greeting {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.programm-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Team Kunz notice box */
.programm-notice {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.programm-notice h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.programm-notice p {
    margin-bottom: 0.75rem;
}

.programm-notice p:last-child {
    margin-bottom: 0;
}

/* Newsletter signup section */
.programm-newsletter {
    background: linear-gradient(135deg, rgba(51, 108, 0, 0.06) 0%, rgba(4, 60, 22, 0.06) 100%);
    border: 1px solid rgba(51, 108, 0, 0.15);
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-top: 1rem;
    max-width: 600px;
}

.programm-newsletter h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.programm-newsletter > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Brevo form overrides to match theme */
.programm-newsletter .sib-form {
    padding: 0 !important;
    background: transparent !important;
}

.programm-newsletter .sib-form .entry__field input[type="email"],
.programm-newsletter .sib-form .entry__field input[type="text"] {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    transition: border-color 0.3s !important;
}

.programm-newsletter .sib-form .entry__field input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(51, 108, 0, 0.12) !important;
}

.programm-newsletter .sib-form .sib-form-block__button {
    background-color: var(--primary) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 12px 28px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}

.programm-newsletter .sib-form .sib-form-block__button:hover {
    background-color: var(--primary-dark) !important;
}

/* Fallback message when Brevo plugin is not yet installed */
.programm-newsletter-fallback {
    background-color: var(--light-gray);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
}

.programm-newsletter-fallback p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .programm-section {
        padding: 40px 0 60px;
    }

    .programm-notice {
        padding: 20px 20px;
    }

    .programm-newsletter {
        padding: 28px 20px;
        max-width: 100%;
    }
}

/* Brevo iframe newsletter form on /termin/ */
.brevo-iframe-wrapper {
    width: 100%;
    max-width: 580px;
    margin: 35px auto 60px auto;
    padding-bottom: 25px;
}

.brevo-iframe-wrapper iframe {
    display: block;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    border: none;
    overflow: hidden;
    height: 840px;
    min-height: 840px;
}

@media (max-width: 600px) {
    .brevo-iframe-wrapper iframe {
        height: 960px;
        min-height: 960px;
    }
}

/* Hide footer in PWA standalone webapp */
@media (display-mode: standalone) {
    footer, .site-footer {
        display: none !important;
    }
}
.pwa-standalone footer, .pwa-standalone .site-footer {
    display: none !important;
}