/* === Google Fonts Import - MUST BE FIRST === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Dancing+Script:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ========================================
   AYGÜN ERCAN - ERGOTHERAPIE & HEILPRAKTIK
   Rustikales & Esoterisches Design
   ======================================== */

/* === CSS Custom Properties === */
:root {
    /* Farbpalette vom Logo */
    --gold: #C4A574;
    --gold-light: #D4BB8E;
    --gold-dark: #A68B5B;
    --lavender: #B8A5C7;
    --lavender-light: #D4C8E0;
    --lavender-dark: #7B6B8D;
    --purple-deep: #6B5A7D;
    --sand: #F5F0E8;
    --sand-light: #FAF8F4;
    --sand-dark: #E8E0D4;
    --brown-dark: #3D3028;
    --brown-light: #5C4D3D;
    --cream: #FDF9F3;
    --white: #FFFFFF;

    /* Typografie */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, serif;
    --font-accent: 'Dancing Script', cursive;

    /* Abstände */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-xxl: 5rem;

    /* Schatten */
    --shadow-soft: 0 4px 20px rgba(61, 48, 40, 0.08);
    --shadow-medium: 0 8px 30px rgba(61, 48, 40, 0.12);
    --shadow-rustic: 0 10px 40px rgba(61, 48, 40, 0.15);

    /* Rundungen */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-organic: 30% 70% 70% 30% / 30% 30% 70% 70%;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-body);
    background-color: var(--sand);
    color: var(--brown-dark);
    line-height: 1.8;
    overflow-x: hidden;
    background-image: url('assets/sand texture bg1.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Typography follows below */

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--brown-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gold-dark);
}

p {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.accent-text {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--lavender-dark);
}

/* === Links & Buttons === */
a {
    color: var(--lavender-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--gold);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lavender-dark) 0%, var(--purple-deep) 100%);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(196, 165, 116, 0.4),
        0 0 20px rgba(196, 165, 116, 0.2);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--brown-dark);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 5px 15px rgba(196, 165, 116, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--lavender-dark);
    border: 2px solid var(--lavender);
}

.btn-secondary:hover {
    background: var(--lavender-light);
    border-color: var(--lavender-dark);
}

/* === Header & Navigation === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: var(--space-xs) var(--space-lg);
    background: rgba(245, 240, 232, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 50px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--brown-dark);
    font-weight: 600;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--lavender-dark);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--brown-dark);
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lavender), var(--gold));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--brown-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-lg) var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Decorative corner elements */
.hero::before,
.hero::after {
    content: '✿';
    position: absolute;
    font-size: 8rem;
    color: var(--lavender);
    opacity: 0.08;
    pointer-events: none;
}

.hero::before {
    top: 100px;
    left: -20px;
    transform: rotate(-15deg);
}

.hero::after {
    bottom: 50px;
    right: -20px;
    transform: rotate(15deg);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: left;
    order: 1;
}

.hero-portrait {
    order: 2;
}

/* Elegant title with shimmer effect */
.hero h1 {
    margin-bottom: var(--space-sm);
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg,
            var(--brown-dark) 0%,
            var(--gold) 25%,
            var(--brown-dark) 50%,
            var(--gold-dark) 75%,
            var(--brown-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    position: relative;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero .subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--lavender-dark);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

/* Decorative line under subtitle */
.hero .subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero .hero-text {
    font-size: 1.15rem;
    max-width: 550px;
    margin-bottom: var(--space-lg);
    color: var(--brown-light);
    line-height: 1.8;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(196, 165, 116, 0.35));
    opacity: 0.85;
    transition: var(--transition-smooth);
    animation: float 4s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hero Portrait - Enhanced styling */
.hero-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Decorative ring behind portrait */
.hero-portrait::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 520px;
    border-radius: var(--radius-organic);
    background: linear-gradient(135deg, var(--lavender-light) 0%, transparent 50%, var(--gold-light) 100%);
    opacity: 0.4;
    animation: rotate-slow 20s linear infinite;
    z-index: -1;
}

.hero-portrait img {
    width: 100%;
    max-width: 380px;
    height: 450px;
    border-radius: var(--radius-organic);
    border: 5px solid var(--white);
    box-shadow:
        0 0 0 3px var(--lavender),
        0 0 30px rgba(184, 165, 199, 0.3),
        0 25px 60px rgba(61, 48, 40, 0.25),
        0 10px 30px rgba(138, 114, 181, 0.2);
    object-fit: cover;
    object-position: top;
    transition: var(--transition-smooth);
}

.hero-portrait:hover img {
    transform: scale(1.02);
    box-shadow:
        0 0 0 3px var(--gold),
        0 0 40px rgba(196, 165, 116, 0.4),
        0 30px 70px rgba(61, 48, 40, 0.3),
        0 15px 40px rgba(138, 114, 181, 0.25);
}

/* Responsive Hero */
@media (max-width: 992px) {

    .hero::before,
    .hero::after {
        font-size: 5rem;
        opacity: 0.05;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero .subtitle::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
    }

    .hero-portrait {
        order: 2;
        margin-top: var(--space-md);
    }

    .hero-portrait::before {
        width: 320px;
        height: 400px;
    }

    .hero .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-portrait img {
        max-width: 220px;
        height: 280px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column-reverse;
        gap: var(--space-md);
    }

    .hero-logo {
        display: none;
    }
}

/* Decorative Elements */
.decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.decoration-1 {
    top: 20%;
    left: 5%;
    width: 150px;
    animation: rotate-slow 30s linear infinite;
}

.decoration-2 {
    bottom: 30%;
    right: 10%;
    width: 120px;
    animation: rotate-slow 25s linear infinite reverse;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === Section Styles === */
section {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.section-header h2::before,
.section-header h2::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1rem;
}

.section-header h2::before {
    left: -40px;
}

.section-header h2::after {
    right: -40px;
}

.section-subtitle {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--lavender-dark);
    margin-top: 0.4rem;
}

/* Alternating Background */
section:nth-child(even) {
    background: linear-gradient(180deg, var(--sand-dark) 0%, var(--sand) 100%);
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 80px;
    background-image: url('images/lavender_border.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    opacity: 0.8;
}

/* Lavender Decoration - Full Width Loop */
.lavender-decoration {
    width: 100%;
    height: 100px;
    background-image: url('images/lavender_border.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    opacity: 0.85;
    margin: var(--space-md) 0;
}

/* === Therapy Grid (2x2 Layout) === */
.therapy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.therapy-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(196, 165, 116, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.therapy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-rustic);
}

.therapy-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.therapy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.therapy-card:hover .therapy-image img {
    transform: scale(1.05);
}

.therapy-content {
    padding: var(--space-md);
    text-align: center;
}

.therapy-content h3 {
    color: var(--brown-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.therapy-content p {
    color: var(--brown-light);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-designed-by {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--sand-dark);
    opacity: 0.8;
}

.footer-designed-by img {
    height: 24px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-designed-by img:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* === Content Cards === */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.content-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(196, 165, 116, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lavender), var(--gold));
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-rustic);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.content-card .card-image {
    margin-bottom: var(--space-md);
}

.content-card .card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0;
}

.content-card h3 {
    margin-bottom: var(--space-sm);
}

/* === Image & Text Layout === */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse>* {
    direction: ltr;
}

.split-image {
    position: relative;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-rustic);
}

.split-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--lavender);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.split-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.split-content h2 {
    margin-bottom: var(--space-md);
}

.split-content p {
    margin-bottom: var(--space-md);
}

/* === Feature List === */
.feature-list {
    list-style: none;
    margin: var(--space-md) 0;
}

.feature-list li {
    padding: var(--space-xs) 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '❧';
    position: absolute;
    left: 0;
    color: var(--lavender-dark);
    font-size: 1.2rem;
}

/* Alternate symbol */
.feature-list.alt li::before {
    content: '✿';
    color: var(--gold);
}

/* === Profile Section === */
.profile-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand-light) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    box-shadow: var(--shadow-medium);
}

.profile-image {
    flex-shrink: 0;
    width: 300px;
    height: 400px;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-organic);
    box-shadow: var(--shadow-rustic);
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px dashed var(--lavender);
    border-radius: var(--radius-organic);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.profile-content {
    flex: 1;
}

.profile-content h2 {
    color: var(--gold-dark);
}

.profile-content .quote {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    color: var(--lavender-dark);
    font-style: italic;
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
    border-left: 3px solid var(--gold);
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Single column on small screens */
        gap: var(--space-md);
    }
}

.service-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(184, 165, 199, 0.2);
}

.service-card:hover {
    background: var(--white);
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-sm);
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    box-shadow: var(--shadow-soft);
    border: 3px solid var(--white);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h4 {
    color: var(--brown-dark);
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--brown-light);
}

/* === Treatment List === */
.treatment-section {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-lg);
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 992px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .treatment-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .treatment-category h4 {
        white-space: normal;
        /* Allow text wrap on mobile */
    }
}

.treatment-category h4 {
    color: var(--lavender-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--gold-light);
    white-space: nowrap;
}

.treatment-category ul {
    list-style: none;
}

.treatment-category li {
    padding: var(--space-xs) 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.treatment-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* === Quote Block === */
.quote-block {
    background:
        linear-gradient(135deg, rgba(212, 200, 224, 0.85) 0%, rgba(245, 240, 232, 0.85) 100%),
        url('assets/sand texture bg12.png');
    background-size: cover, cover;
    background-position: center, center;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin: var(--space-xl) 0;
    position: relative;
}

.quote-block::before,
.quote-block::after {
    content: '"';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
}

.quote-block::before {
    top: 10px;
    left: 30px;
}

.quote-block::after {
    bottom: -30px;
    right: 30px;
}

.quote-block p {
    font-family: var(--font-accent);
    font-size: 1.6rem;
    color: var(--brown-dark);
    max-width: 800px;
    margin: 0 auto;
}

/* === Moon Phases Decoration === */
.moon-decoration {
    width: 100%;
    max-width: 600px;
    margin: var(--space-lg) auto;
    display: block;
    opacity: 0.9;
}

/* === Patient Groups === */
.patient-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto;
}

.patient-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border: 1px solid rgba(184, 165, 199, 0.2);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.patient-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gold-light);
}

.patient-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--space-sm);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--lavender-light);
    box-shadow: 0 4px 15px rgba(184, 165, 199, 0.2);
    transition: var(--transition-smooth);
}

.patient-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.patient-card:hover .patient-icon {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(196, 165, 116, 0.3);
}

.patient-card:hover .patient-icon img {
    transform: scale(1.1);
}

.patient-card p {
    font-size: 0.95rem;
    color: var(--brown-dark);
    line-height: 1.5;
    margin: 0;
}

/* Responsive patient grid */
@media (max-width: 992px) {
    .patient-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .patient-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .patient-icon {
        width: 70px;
        height: 70px;
    }

    .patient-card {
        padding: var(--space-md) var(--space-sm);
    }
}

@media (max-width: 480px) {
    .patient-grid {
        grid-template-columns: 1fr;
    }

    .patient-card {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        text-align: left;
    }

    .patient-icon {
        flex-shrink: 0;
        margin: 0;
        width: 60px;
        height: 60px;
    }
}

/* === Contact Section === */
.contact-section {
    background: var(--sand);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: stretch;
}

/* Contact Info */
.contact-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.contact-info h3 {
    font-size: 1.4rem;
    color: var(--brown-dark);
    margin-bottom: var(--space-sm);
}

.contact-info>p {
    color: var(--brown-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--sand-dark);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: var(--brown-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--brown-light);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.contact-form h3 {
    font-size: 1.4rem;
    color: var(--brown-dark);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brown-dark);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--sand-light);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lavender);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(184, 165, 199, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: var(--space-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* === Footer === */
footer {
    background: linear-gradient(180deg, var(--brown-dark) 0%, #2A231D 100%);
    color: var(--sand-light);
    padding: var(--space-xl) var(--space-lg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand img {
    width: 100px;
    filter: brightness(1.2);
}

.footer-brand p {
    color: var(--sand-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links a,
.footer-legal a {
    color: var(--sand-dark);
    display: block;
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.footer-contact p {
    color: var(--sand-dark);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.footer-contact strong {
    color: var(--gold);
    font-weight: 600;
}

.footer-contact a {
    color: var(--sand-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    text-align: center;
}

.footer-bottom p {
    color: var(--sand-dark);
    font-size: 0.85rem;
}

.footer-moon {
    max-width: 400px;
    margin: var(--space-md) auto 0;
    opacity: 0.6;
}

/* === Esoteric Decorations === */
.crystal-decoration {
    position: absolute;
    width: 150px;
    opacity: 0.2;
    pointer-events: none;
}



/* === Responsive Design === */
@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .split-section.reverse {
        direction: ltr;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 250px;
        height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .footer-brand {
        align-items: center;
        order: 1;
    }

    .footer-brand img {
        width: 100px;
        margin-bottom: var(--space-sm);
    }

    .footer-brand p {
        max-width: 300px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-links {
        order: 2;
    }

    .footer-links h4,
    .footer-legal h4,
    .footer-contact h4 {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
        color: var(--gold);
    }

    /* Vertical stacked links - much cleaner */
    .footer-links ul,
    .footer-legal ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
        list-style: none;
    }

    .footer-links a,
    .footer-legal a {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.9rem;
        display: inline-block;
    }

    .footer-legal {
        order: 3;
    }

    .footer-contact {
        order: 4;
        text-align: center;
    }

    .footer-contact p {
        font-size: 0.9rem;
        justify-content: center;
        display: block;
        text-align: center;
        margin-bottom: var(--space-sm);
    }

    .footer-contact strong {
        color: var(--gold);
        margin-right: 0.3rem;
    }

    .footer-contact a {
        color: var(--sand-light);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-contact a:hover {
        color: var(--gold);
    }

    .footer-bottom {
        margin-top: var(--space-md);
        padding-top: var(--space-sm);
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Fix for mobile background fixed attachment issue - STATIC for mobile */
@media (max-width: 768px) {
    body {
        background-attachment: scroll !important;
        /* Beautiful lavender/sand gradients for mobile */
        background-image:
            radial-gradient(ellipse at 100% 0%, rgba(184, 165, 199, 0.25) 0%, transparent 50%),
            radial-gradient(ellipse at 0% 100%, rgba(184, 165, 199, 0.2) 0%, transparent 45%),
            radial-gradient(ellipse at 50% 50%, rgba(212, 200, 224, 0.15) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 80%, rgba(196, 165, 116, 0.1) 0%, transparent 40%),
            linear-gradient(170deg, #FAF8F4 0%, #F5F0E8 30%, #E8E0D4 70%, #D4C8E0 100%);
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Remove decorative elements that cause layout issues on mobile */
    .hero::before,
    .hero::after {
        display: none;
    }

    /* Sand texture background only for hero on mobile */
    .hero {
        background-image: url('assets/sand texture bg1 - Kopie_.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-portrait::before {
        display: none;
        /* Remove rotating ring animation */
    }

    .split-image::before,
    .split-image::after {
        display: none;
        /* Remove decorative frames */
    }

    .profile-image::before {
        display: none;
        /* Remove pulsing border animation */
    }

    /* Smaller quote block on mobile */
    .quote-block {
        padding: var(--space-lg);
        margin: var(--space-lg) 0;
    }

    .quote-block::before,
    .quote-block::after {
        font-size: 3rem;
    }

    .quote-block p {
        font-size: 1.3rem;
    }

    /* Smaller lavender decoration on mobile */
    .lavender-decoration {
        height: 60px;
        margin: var(--space-sm) 0;
    }

    .section-divider {
        height: 50px;
    }
}

/* Additional iOS/Android fix for parallax/fixed backgrounds */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll !important;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-xxl: 5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-lg) var(--space-md);
        gap: 0;
        box-shadow:
            0 10px 30px rgba(61, 48, 40, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border-bottom: 3px solid var(--lavender);

        /* Smooth open/close animation */
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
        pointer-events: none;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(184, 165, 199, 0.2);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--space-md) var(--space-sm);
        text-align: center;
        font-size: 1.1rem;
        color: var(--brown-dark);
        transition: var(--transition-smooth);
        position: relative;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: linear-gradient(90deg, transparent, rgba(184, 165, 199, 0.15), transparent);
        color: var(--lavender-dark);
    }

    .nav-links a:active {
        background: rgba(184, 165, 199, 0.25);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-image {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2::before,
    .section-header h2::after {
        display: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-logo {
        width: 150px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-lavender {
    color: var(--lavender-dark);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

/* === Scroll Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Loading Animation === */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--sand-dark);
    border-top-color: var(--lavender);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Legal Pages (Impressum, Datenschutz, AGB) === */
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.legal-container h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brown-dark);
    margin-bottom: var(--space-md);
    text-align: center;
}

.legal-intro {
    text-align: center;
    color: var(--lavender-dark);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.legal-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--brown-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--lavender-light);
}

.legal-section h3 {
    font-size: 1.1rem;
    color: var(--lavender-dark);
    margin: var(--space-md) 0 var(--space-sm);
}

.legal-section p {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.legal-section ul {
    margin: var(--space-sm) 0 var(--space-md) var(--space-lg);
}

.legal-section ul li {
    margin-bottom: var(--space-xs);
    position: relative;
}

.legal-section ul li::before {
    content: '✦';
    color: var(--lavender);
    position: absolute;
    left: -1.5rem;
}

.legal-section a {
    color: var(--lavender-dark);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--gold);
}

.legal-date {
    text-align: center;
    color: var(--brown-medium);
    font-style: italic;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--lavender-light);
}

.legal-nav a {
    padding: var(--space-sm) var(--space-lg);
    background: var(--lavender-light);
    color: var(--lavender-dark);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.legal-nav a:hover {
    background: var(--lavender);
    color: var(--white);
}

/* === Cookie Consent Banner (DSGVO/TDDDG-konform) === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--brown-dark) 0%, #2A231D 100%);
    color: var(--sand-light);
    padding: var(--space-lg);
    z-index: 10000;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: center;
}

.cookie-text h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Gleichwertige Buttons - DSGVO-Anforderung */
.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 140px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-dark) 100%);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--brown-dark);
    transform: translateY(-2px);
}

/* Ablehnen-Button gleichwertig gestaltet */
.cookie-btn-reject {
    background: transparent;
    color: var(--sand-light);
    border: 2px solid var(--sand-light);
}

.cookie-btn-reject:hover {
    background: var(--sand-light);
    color: var(--brown-dark);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--sand-dark);
    border: 1px solid var(--sand-dark);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

.cookie-btn-settings:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.cookie-settings-modal.visible {
    display: flex;
}

.cookie-settings-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-xl);
}

.cookie-settings-content h3 {
    font-family: var(--font-heading);
    color: var(--brown-dark);
    margin-bottom: var(--space-lg);
}

.cookie-category {
    border-bottom: 1px solid var(--lavender-light);
    padding: var(--space-md) 0;
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.cookie-category h4 {
    font-size: 1rem;
    color: var(--brown-dark);
}

.cookie-category p {
    font-size: 0.9rem;
    color: var(--brown-medium);
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand-dark);
    border-radius: 26px;
    transition: var(--transition-smooth);
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background: var(--lavender);
}

.cookie-toggle input:checked+.cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    background: var(--lavender-dark);
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: flex-end;
}

/* Reject button in modal needs different colors (white background) */
.cookie-settings-actions .cookie-btn-reject {
    background: transparent;
    color: var(--brown-dark);
    border: 2px solid var(--brown-dark);
}

.cookie-settings-actions .cookie-btn-reject:hover {
    background: var(--brown-dark);
    color: var(--white);
}

/* Cookie Icon für Widerruf (permanent sichtbar) */
.cookie-settings-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 9999;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
}

.cookie-settings-icon.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-icon:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.cookie-settings-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

/* Cookie Banner Mobile */
@media (max-width: 768px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1 1 100%;
    }

    .cookie-settings-icon {
        width: 44px;
        height: 44px;
        bottom: 15px;
        left: 15px;
    }

    .legal-section {
        padding: var(--space-md);
    }

    .legal-nav {
        flex-direction: column;
    }

    .legal-nav a {
        text-align: center;
    }
}

/* ===========================
   WhatsApp Button
=========================== */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }

    /* Move cookie icon to left side on mobile to avoid overlap */
    .cookie-settings-icon {
        right: auto;
        left: 20px;
    }

    /* Therapy grid - SINGLE COLUMN on mobile */
    .therapy-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }

    .therapy-card {
        display: flex;
        flex-direction: column;
    }

    /* Patient grid - SINGLE COLUMN on mobile */
    .patient-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }

    .patient-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-sm);
        text-align: left;
    }

    .patient-card .patient-icon {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
    }

    .patient-card p {
        margin: 0;
        font-size: 0.9rem;
    }
}

/* ============================================
   TABLET / IPAD SPECIFIC STYLES
   iPad Mini: 768px | iPad/Air: 820px | iPad Pro: 1024px-1366px
   ============================================ */

/* === iPad Mini & iPad (Portrait) - 768px to 834px === */
@media (min-width: 768px) and (max-width: 834px) {

    /* Global section adjustments - edge to edge */
    section {
        padding: var(--space-lg) var(--space-sm);
    }

    .section-container {
        max-width: 100%;
        padding: 0 var(--space-sm);
    }

    /* Header & Navigation - hamburger on smaller tablets */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-lg) var(--space-md);
        gap: 0;
        box-shadow: 0 10px 30px rgba(61, 48, 40, 0.15);
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero section */
    .hero {
        padding: 100px var(--space-sm) var(--space-lg);
        min-height: auto;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
        width: 100%;
    }

    .hero-content {
        order: 1;
        padding: 0 var(--space-sm);
    }

    .hero-portrait {
        order: 2;
    }

    .hero-portrait img {
        max-width: 240px;
        height: 320px;
    }

    .hero-portrait::before {
        width: 300px;
        height: 390px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Services grid - 2 columns, equal height */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .service-card {
        padding: var(--space-md);
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }

    /* Therapies grid - 2 columns, equal height */
    .therapy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .therapy-card {
        min-height: 320px;
    }

    /* Patient groups - 2 columns for iPad Mini */
    .patient-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .patient-card {
        min-height: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: var(--space-sm);
    }

    .patient-card .patient-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-xs);
    }

    .patient-card p {
        font-size: 0.85rem;
        margin: 0;
    }

    /* Healing grid */
    .healing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .healing-card {
        min-height: 280px;
    }

    /* Profile section */
    .profile-section {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
        padding: 0 var(--space-sm);
    }

    .profile-image {
        width: 260px;
        height: 380px;
        margin: 0 auto;
    }

    .profile-content {
        max-width: 100%;
    }

    /* Contact section - full width stacked */
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        width: 100%;
    }

    .contact-form,
    .contact-info-box {
        padding: var(--space-md);
        min-height: auto;
    }

    /* Footer - 2x2 grid */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    /* Split sections - stack */
    .split-section {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    /* Section headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header .section-subtitle {
        font-size: 1rem;
    }

    /* Cookie banner */
    .cookie-banner-content {
        padding: var(--space-md);
        max-width: 100%;
    }

    .cookie-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === iPad Air & iPad 10th Gen (Portrait) - 820px to 1024px === */
@media (min-width: 835px) and (max-width: 1024px) {

    /* Global section adjustments */
    section {
        padding: var(--space-lg) var(--space-md);
    }

    .section-container {
        max-width: 100%;
        padding: 0 var(--space-md);
    }

    /* Navigation - compact but visible */
    .nav-links {
        gap: var(--space-xs);
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: var(--space-xs) 0.6rem;
    }

    /* Hero section */
    .hero {
        padding: 110px var(--space-md) var(--space-lg);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
        max-width: 100%;
    }

    .hero-content {
        order: 1;
    }

    .hero-portrait {
        order: 2;
    }

    .hero-portrait img {
        max-width: 280px;
        height: 360px;
    }

    .hero-portrait::before {
        width: 340px;
        height: 440px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Services grid - 2 columns, equal height */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .service-card {
        padding: var(--space-md);
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }

    /* Therapies grid - 2 columns, equal height */
    .therapy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .therapy-card {
        min-height: 340px;
    }

    /* Patient groups - 4 columns on wider tablets */
    .patient-groups-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }

    .patient-card {
        min-height: 180px;
    }

    /* Healing grid - 2 columns */
    .healing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .healing-card {
        min-height: 300px;
    }

    /* Profile section */
    .profile-section {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .profile-image {
        width: 280px;
        height: 400px;
        margin: 0 auto;
    }

    .profile-content {
        max-width: 700px;
        margin: 0 auto;
    }

    /* Contact section - side by side */
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .contact-form,
    .contact-info-box {
        padding: var(--space-md);
        min-height: 400px;
    }

    /* Footer - 4 columns but tighter */
    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
        gap: var(--space-md);
    }

    /* Split sections */
    .split-section {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* Section headers */
    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-header .section-subtitle {
        font-size: 1.1rem;
    }

    /* Cookie banner */
    .cookie-banner-content {
        padding: var(--space-lg);
        max-width: 90%;
    }
}

/* === iPad Pro 11" & 12.9" (Portrait & Landscape) - 1024px to 1366px === */
@media (min-width: 1024px) and (max-width: 1366px) {

    /* CRITICAL: Remove all max-width constraints for full-width */
    section {
        padding: var(--space-lg) var(--space-md);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Override any container max-widths */
    .section-container,
    .container,
    .content-wrapper,
    .hero-wrapper,
    .services-wrapper,
    .therapy-wrapper {
        max-width: 100% !important;
        width: 100%;
        padding: 0 var(--space-md);
    }

    /* Hero section full width */
    .hero {
        padding: 100px var(--space-md) var(--space-lg);
        width: 100%;
    }

    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        text-align: left;
    }

    .hero-content {
        padding-right: var(--space-md);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    /* Navigation adjustments */
    nav {
        max-width: 100%;
        padding: 0 var(--space-md);
    }

    .nav-links {
        gap: var(--space-sm);
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Services - 3 columns on large tablets */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .service-card {
        min-height: 280px;
    }

    /* Therapy sections - FIX OVERFLOW */
    .therapy-card,
    .therapy-section,
    .split-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .therapy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        width: 100%;
    }

    .therapy-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
        align-items: start;
    }

    .therapy-card .therapy-image {
        max-width: 100%;
        height: auto;
    }

    .therapy-card .therapy-content {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .therapy-card h3 {
        font-size: 1.8rem;
    }

    .therapy-card p,
    .therapy-card li {
        font-size: 0.95rem;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Patient groups - 4 columns, FIXED selector to match HTML */
    .patient-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
        width: 100%;
    }

    .patient-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 200px;
        padding: var(--space-md) var(--space-sm);
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        border-radius: var(--radius-md);
    }

    .patient-card .patient-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-sm);
    }

    .patient-card .patient-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .patient-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
        hyphens: auto;
        word-wrap: break-word;
    }

    /* Healing - 3 columns */
    .healing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .healing-card {
        min-height: 280px;
    }

    /* Profile section */
    .profile-section {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-lg);
        align-items: center;
    }

    .profile-content {
        max-width: 100%;
    }

    /* Contact - proper 2 column with equal height */
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .contact-form,
    .contact-info-box {
        min-height: 400px;
        padding: var(--space-lg);
    }

    /* Footer - 4 columns, full width */
    footer {
        padding: var(--space-lg) var(--space-md);
    }

    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: var(--space-md);
        max-width: 100%;
    }

    /* Text overflow prevention globally */
    p,
    li,
    span,
    a {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* CRITICAL: Split sections full width fix */
    .split-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: visible;
    }

    .split-section.reverse {
        direction: ltr;
    }

    .split-content {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .split-content p,
    .split-content li {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .split-image {
        width: 100%;
        max-width: 100%;
    }

    .split-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: var(--radius-md);
    }

    /* Feature list fix */
    .feature-list,
    .feature-list.alt {
        width: 100%;
        max-width: 100%;
    }

    .feature-list li {
        max-width: 100%;
        padding-right: 0;
    }

    /* Treatment grid */
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        width: 100%;
    }

    .treatment-category {
        width: 100%;
        max-width: 100%;
    }

    /* Section container override */
    section .section-container {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-md);
    }
}

/* === Tablet orientation fix (landscape mode) === */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

    .hero {
        min-height: auto;
        padding: 100px var(--space-md) var(--space-md);
    }

    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-content {
        order: 1;
    }

    .hero-portrait {
        order: 2;
    }

    .hero-portrait img {
        max-width: 220px;
        height: 280px;
    }

    .hero-portrait::before {
        width: 280px;
        height: 350px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    /* Optimize vertical space in landscape */
    section {
        padding: var(--space-md) var(--space-md);
    }
}