/* Locations Section */
.locations-section {
    background: var(--main-bg);
    padding: 4rem 0 2rem 0;
}

.locations-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.locations-header h2 {
    margin: 0;
}

.locations-header::after { display: none; }
.locations-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 0.5rem auto 0 auto;
}

.locations-intro {
	color: #FFF8EB !important;
}

.locations-badge {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    background: var(--header-bg);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    align-items: center;
    column-gap: 1rem;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.location-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.location-card-media img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reveal on scroll */
.locations-grid .location-card {
    /* visible by default on all viewports; no scroll-in animation */
    opacity: 1;
    transform: none;
}
.locations-grid .location-card.revealed {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .location-card {
        grid-template-columns: 64px 1fr;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
        padding: 1rem 0.9rem;
    }
    .location-card-media img {
        width: 56px;
        height: 56px;
        margin: 0;
    }
    .location-card h3 { margin-bottom: 0.25rem; }
    .loc-address-inline { margin: 0; line-height: 1.35; }
}

/* Tablet & Mobile full-screen menu (iPad and phones) */
@media (max-width: 1024px) {
    .site-header .header-content { position: relative; }
    .main-navigation {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    .main-navigation.mobile-menu-open {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: var(--header-bg);
        z-index: 2000;
        padding: 5rem 1.25rem 2rem 1.25rem;
        overflow-y: auto;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .main-navigation a {
        color: var(--accent-color);
        padding: 1rem 0.25rem;
        text-align: left;
        font-size: 1.1rem;
    }
    .main-navigation a:hover {
        color: var(--header-bg);
    }
    /* Submenus: collapsed by default; open via arrow */
    .main-navigation.mobile-menu-open ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0.25rem;
        padding: 0 0 0.35rem 0;
        display: none !important;
        overflow: hidden;
    }
    .main-navigation.mobile-menu-open li.open > ul {
        display: block !important;
    }
    .main-navigation.mobile-menu-open ul > li.menu-item-has-children > a {
        position: relative;
        padding-right: 2.25rem;
    }
    .main-navigation.mobile-menu-open ul > li.menu-item-has-children {
        position: relative; /* anchor toggle to the parent item row */
    }
    .main-navigation.mobile-menu-open .submenu-toggle {
        position: absolute;
        right: 0.25rem;
        top: 0.9rem; /* keep at top row even when submenu expands */
        transform: none;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: 0;
        color: var(--main-bg);
        z-index: 5;
        cursor: pointer;
    }
    .main-navigation.mobile-menu-open .submenu-toggle::before {
        content: '▸';
        display: inline-block;
        transition: transform 0.2s ease;
        color: var(--main-bg);
        font-size: 22px;
        line-height: 1;
    }
    .main-navigation.mobile-menu-open li.open > a + .submenu-toggle::before {
        transform: rotate(90deg);
    }
    .main-navigation.mobile-menu-open ul ul a {
        padding: 0.55rem 0.25rem 0.55rem 1.25rem;
        color: var(--main-bg);
        font-size: 0.96rem;
        line-height: 1.35;
        opacity: 0.95;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        background: transparent;
        transition: none !important;
        position: relative;
    }
    .main-navigation.mobile-menu-open ul ul a:hover {
        background: transparent !important;
        color: var(--main-bg) !important;
        padding-left: 1.25rem !important;
    }
    .main-navigation.mobile-menu-open ul ul a::before {
        display: none !important;
    }
    /* Underline grow animation like top-level items */
    .main-navigation.mobile-menu-open ul ul a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--main-bg);
        transition: width 0.3s ease;
    }
    .main-navigation.mobile-menu-open ul ul a:hover::after,
    .main-navigation.mobile-menu-open ul ul a:focus::after {
        width: 100%;
    }
    /* Disable hover/active auto-open in overlay */
    .main-navigation.mobile-menu-open ul li:hover > ul,
    .main-navigation.mobile-menu-open ul li.active > ul {
        display: none !important;
    }
    /* Explicitly show submenu when parent has .open in overlay */
    .main-navigation.mobile-menu-open li.open > ul,
    .main-navigation.mobile-menu-open li.open > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 9999px !important;
        height: auto !important;
        transform: none !important;
        overflow: visible !important;
        padding: 0 0 0.35rem 0;
    }
}

.location-card p {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.location-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    position: relative;
}

.location-link::after {
    content: '→';
    margin-left: 0.4rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.location-card:hover .location-card-media img {
    transform: scale(1.08);
}

.location-card:hover .location-link {
    color: var(--accent-color);
}

.location-card:hover .location-link::after {
    transform: translateX(4px);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}
/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--header-bg); /* #FFF8EB */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid rgba(25,91,110,0.15);
    border-top-color: var(--secondary-color);
    animation: spin 0.9s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-label {
	margin-top: 0.75rem;
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1rem;
	color: var(--secondary-color);
}
/*
Theme Name: Ergotherapie Barkaoui
Description: Ein modernes WordPress-Theme für Ergotherapie-Praxen mit professionellem Design und benutzerfreundlicher Navigation.
Author: Custom Theme
Version: 1.1
Text Domain: ergotherapie-barkaoui
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #195B6E;
    --secondary-color: #195B6E;
    --accent-color: #E4C58A;
    --header-bg: #FFF8EB;
    --header-text: #195B6E;
    --main-bg: #195B6E;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --background-light: #f7fafc;
    --background-white: #ffffff;
    --white: #ffffff;
    --success-color: #38a169;
    --warning-color: #ed8936;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #195B6E 0%, #195B6E 100%);
    --gradient-light: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--white);
    background-color: var(--main-bg);
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 400;
    line-height: 1.1;
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 400;
}
h3 { 
    font-size: 1.875rem; 
    font-weight: 400;
}
h4 { 
    font-size: 1.5rem; 
    font-weight: 400;
}
h5 { 
    font-size: 1.25rem; 
    font-weight: 400;
}
h6 { 
    font-size: 1.125rem; 
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    color: #FFF8EB;
    font-size: 1.125rem;
    line-height: 1.7;
}

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

a:hover {
    color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    gap: 3rem;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .header-content {
    padding: 0.75rem 0;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo-link:hover {
    opacity: 0.8;
}

.site-logo-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .site-logo-image {
    width: 45px;
    height: 45px;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--header-text);
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .site-title {
    font-size: 1.2rem;
}

.site-description {
    font-size: 0.875rem;
    color: var(--header-text);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.8;
    max-height: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .site-description {
    max-height: 0;
    opacity: 0;
    margin: 0;
}
/* Allow tagline to wrap into two lines on small screens and move the second part to next line */
@media (max-width: 700px) {
    .site-description {
        max-height: none;
        overflow: visible;
        line-height: 1.25;
        white-space: normal;
    }
    .site-description .tagline-second {
        display: block;
    }
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    padding: 0;
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--header-text);
    padding: 0.75rem 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    display: block;
}

.site-header.scrolled .main-navigation a {
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                visibility 0s linear 0.3s,
                max-height 0.4s ease;
    z-index: 1000;
    display: block;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-top: 0.5rem;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    transform: scaleY(1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                visibility 0s linear 0s,
                max-height 0.4s ease;
    padding: 1rem;
}

.main-navigation ul ul li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation ul ul li {
    opacity: 0;
    transform: translateY(-10px);
    animation: slideInDown 0.3s ease forwards;
}

.main-navigation ul ul li:nth-child(1) { animation-delay: 0.05s; }
.main-navigation ul ul li:nth-child(2) { animation-delay: 0.1s; }
.main-navigation ul ul li:nth-child(3) { animation-delay: 0.15s; }
.main-navigation ul ul li:nth-child(4) { animation-delay: 0.2s; }
.main-navigation ul ul li:nth-child(5) { animation-delay: 0.25s; }

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

.main-navigation ul ul a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--header-text);
    border-bottom: none;
    position: relative;
    border-radius: 10px;
    margin: 0.15rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation ul ul a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-color);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.main-navigation ul ul a:hover {
    background: rgba(228, 197, 138, 0.15);
    color: var(--accent-color);
    padding-left: 1.5rem;
}

.main-navigation ul ul a:hover::before {
    height: 70%;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Dropdown Arrow - Removed */

/* Sub-dropdown (Third level) */
.main-navigation ul ul ul {
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
}

.main-navigation ul ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Remove default list styling */
.main-navigation ul li {
    list-style: none;
}

.main-navigation ul li::before {
    display: none;
}

/* Hero Section */
.hero-section {
    background: var(--main-bg);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e2e8f0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    z-index: 2;
}

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--accent-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.slider-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.slider-dot:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.slider-dot.active {
    background: var(--accent-color);
    opacity: 0.7;
    transform: scale(1.3);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--header-bg) !important;
    font-weight: 400;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--main-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(228, 197, 138, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(228, 197, 138, 0.5);
    background: var(--white);
    color: var(--main-bg);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--main-bg);
    position: relative;
}


.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 1.5rem;
}

/* Global page/post headings to match homepage style */
.entry-header {
    text-align: center;
    margin-bottom: 3rem;
}
.entry-header .entry-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}
.entry-header .entry-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}
@media (max-width: 900px) {
    .entry-header .entry-title { font-size: 2.25rem; }
}

/* Match top spacing to Team page sections */
.page .entry-header,
.single .entry-header {
    padding-top: 4rem;
}
@media (max-width: 900px) {
    .page .entry-header,
    .single .entry-header {
        padding-top: 3rem;
    }
}

/* Ergotherapie Definition Section */
.ergotherapie-definition-section {
    padding: 6rem 0;
    background: var(--main-bg);
    overflow: hidden;
}

.definition-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.definition-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
    overflow: hidden;
}

.definition-text {
    background: #FFF8EB;
    padding: 4rem 3rem;
    border-radius: 18px;
    position: relative;
}

.definition-text h2 {
    color: var(--main-bg);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.definition-text p {
    color: var(--main-bg);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.definition-text cite {
    color: var(--main-bg);
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.8;
    display: block;
    text-align: right;
}

.definition-image {
    border-radius: 18px;
    overflow: hidden; /* ensure image fully clips the frame */
    background: transparent;
}

.definition-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover; /* fills the frame without borders */
    border-radius: 0; /* handled by parent to avoid halo borders */
    box-shadow: none; /* remove edge shadow against background */
    opacity: 1 !important;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--header-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(25, 91, 110, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.service-card.service-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(25, 91, 110, 0.2);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card {
    background: var(--header-bg);
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(228, 197, 138, 0.25);
}

.service-card-image {
    height: 200px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card-icon {
    background: transparent;
    width: 140px;
    height: 140px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    width: 84px;
    height: 84px;
    color: var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--white);
}

.service-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon-img {
    transform: scale(1.08);
}

.service-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(228, 197, 138, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-card-image::after {
    opacity: 1;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.08);
}

.service-card-content {
    padding: 2rem;
}

/* Horizontal card layout on desktop */
.service-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .service-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .service-card-icon {
        width: 120px;
        height: 120px !important;
        margin: 1rem auto 0 auto;
    }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--main-bg);
    font-weight: 600;
}

.service-card p {
    color: var(--main-bg) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400 !important;
    text-transform: none !important;
}

.service-card-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-card-link:hover {
    color: var(--accent-color);
    gap: 0.75rem;
}

.service-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card-link:hover::after {
    transform: translateX(4px);
}

.service-card-link-text {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-card-link:hover .service-card-link-text {
    color: var(--accent-color);
    gap: 0.75rem;
}

.service-card-link-text::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card-link:hover .service-card-link-text::after {
    transform: translateX(4px);
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: var(--main-bg);
}

/* Tighter vertical spacing on mobile (homepage sections) */
@media (max-width: 768px) {
    .hero-section { padding: 4rem 0 2.5rem; }
    .locations-section { padding: 3rem 0 1.25rem; }
    .services-section { padding: 3rem 0; }
    .ergotherapie-definition-section { padding: 3rem 0; }
    .testimonials-section { padding: 3rem 0; }
    .section-title { margin-bottom: 1.75rem; }
    .services-grid { gap: 1.25rem; margin-top: 2rem; }
    /* Ensure consistent card widths on the homepage */
    .home .location-card,
    .home .service-card,
    .home .testimonial-card {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    .home .locations-grid,
    .home .services-grid {
        margin-left: auto;
        margin-right: auto;
    }
    /* Make "Was ist Ergotherapie?" card as wide as other cards */
    .ergotherapie-definition-section .definition-container {
        padding: 0 1rem;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
    .ergotherapie-definition-section .definition-content {
        gap: 1.25rem;
        grid-template-columns: 1fr;
    }
    .ergotherapie-definition-section .definition-text {
        padding: 1.25rem;
    }
}
@media (max-width: 600px) {
    .slider-track { height: 320px; }
}
@media (max-width: 420px) {
    .slider-track { height: 260px; }
}

/* Disable only scroll/reveal animations (keep sliders, buttons, preloader) */
/* Location cards reveal */
.locations-grid .location-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
/* Feature and service cards entrance animations */
.feature-card,
.service-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}
/* Definition block scroll-in */
.definition-text,
/* definition elements will be revealed via .animate-in */
.definition-text,
.definition-image { opacity: 0; transform: translateY(12px); }

/* Testimonials Slider */
.t-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0 auto;
}

.t-slider-track {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 180px;
}
@media (max-width: 768px) {
    .t-slider-track {
        overflow: visible; /* avoid clipping long text on small screens */
    }
}

.t-slide {
    position: absolute;
    inset: 0;
    padding: 0;
    opacity: 0;
    transform: translateX(120px);
    transition: transform 0.55s ease, opacity 0.55s ease;
    pointer-events: none;
}

.t-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Animation helpers */
.t-enter-right {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2;
}

.t-leave-left {
    opacity: 0 !important;
    transform: translateX(-120px) !important;
    z-index: 1;
}

.testimonial-card {
    background: var(--header-bg);
    color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
}
@media (max-width: 600px) {
    .testimonial-card { padding: 1.25rem; }
}

.t-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--accent-color);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.t-slider-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.t-slider-nav.prev { left: -4px; }
.t-slider-nav.next { right: -4px; }

.t-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-color);
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.t-dot.active {
    background: var(--accent-color);
    opacity: 0.8;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Contact Hero Section */
.contact-hero-section {
    padding: 8rem 0 4rem 0;
    background: var(--main-bg);
    text-align: center;
}

.contact-hero-section .section-title h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-hero-section .section-title p {
    color: var(--white);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--main-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* make the form column even wider on desktop */
    gap: 2rem;
}

.contact-info h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(25, 91, 110, 0.1);
}

.contact-item strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-intro-text p {
    color: #FFF8EB;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* Contact Form */
.contact-form {
    background: var(--header-bg);
    padding: 3rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(25, 91, 110, 0.1);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Ensure readability on header-bg panels */
.contact-form p {
    color: var(--secondary-color);
}

.contact-form h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.ergotherapie-appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--secondary-color);
    font-family: 'Lato', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(228, 197, 138, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(25, 91, 110, 0.5);
    font-family: 'Lato', sans-serif;
}

.form-group select option {
    background: var(--white);
    color: var(--secondary-color);
    font-family: 'Lato', sans-serif;
    padding: 0.5rem;
}

.weekdays-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.time-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.weekday-checkbox,
.time-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.weekday-checkbox:hover,
.time-checkbox:hover {
    background: rgba(228, 197, 138, 0.1);
}

.weekday-checkbox input,
.time-checkbox input {
    margin: 0;
    width: auto;
}

.weekday-checkbox span,
.time-checkbox span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

.time-slot-group {
    margin-bottom: 1.5rem;
}

.time-slot-group label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    font-family: 'Inter', sans-serif;
}

.appointment-submit-btn {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.appointment-submit-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 91, 110, 0.3);
}

.form-messages {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.form-messages.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-messages.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* Footer */
.site-footer {
    background: var(--main-bg);
    color: #FFF8EB;
    padding: 3rem 0 2rem 0;
    text-align: center;
    border-top: none;
}

/* Service detail (Handtherapie & Orthopädie) */
.service-detail-section .section-title { text-align: center; }
.service-detail-section .section-title h2 { margin-left: auto; margin-right: auto; }
.service-detail-section .section-title p { margin-left: auto; margin-right: auto; }

.service-detail-section .service-detail-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.service-detail-section .service-detail-content li {
    position: relative;
    padding-left: 1.75rem;
    margin: 0.35rem 0;
}

.service-detail-section .service-detail-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9em;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4C58A'><path d='M9 18l6-6-6-6'/></svg>");
}

/* Ensure beige text color within the service detail section */
.service-detail-section .section-title p,
.service-detail-section .service-detail-content p,
.service-detail-section .service-detail-content li {
    color: var(--header-bg) !important;
}

/* Match homepage: section subtitle uses accent color */
.service-detail-section .section-title p {
    color: var(--accent-color) !important;
}

/* Consistent spacing before subsections in long-form content (e.g., Datenschutzerklärung) */
.service-detail-section .service-detail-content h3 {
    margin-top: 2rem;
}
.service-detail-section .service-detail-content h3:first-child {
    margin-top: 1rem;
}

/* Override for Standorte intro text color */
.service-detail-section .section-title .locations-intro {
	color: #FFF8EB !important;
}

/* Two-column layout for categories */
.service-detail-section .service-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}
.service-detail-section .service-columns.one-col { grid-template-columns: 1fr; }
.service-detail-section .service-col {
    background: var(--header-bg);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.service-detail-section .service-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}
.service-detail-section .service-col h3 {
    color: var(--main-bg);
    margin-bottom: 0.5rem;
    text-align: left;
}
.service-detail-section .service-col ul { margin: 0; }
.service-detail-section .service-col li { color: var(--secondary-color) !important; }
.service-detail-section .service-col li::before { filter: none; opacity: 0.9; }
@media (max-width: 900px) {
    .service-detail-section .service-columns { grid-template-columns: 1fr; }
}

/* Jobs page - two cards layout */
.jobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.job-card {
    background: var(--header-bg);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    color: var(--secondary-color);
}
.job-card h3 {
    color: var(--main-bg);
    margin: 0 0 0.25rem 0;
}
.job-card h4 {
    color: var(--main-bg);
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}
.job-card a { color: var(--main-bg); font-weight: 400; }
.job-card a:hover { color: var(--accent-color); }
.job-card p { color: var(--main-bg); }
/* Jobs intro styling */
.section-title .jobs-intro { /* initial default */
    color: var(--header-bg) !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* Increase specificity to override service-detail accent rule */
.service-detail-section .section-title .jobs-intro {
    color: var(--header-bg) !important;
    text-align: center;
}
@media (max-width: 900px) {
    .jobs-grid { grid-template-columns: 1fr; }
}

/* Location sliders */
.location-heading {
    color: var(--accent-color);
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}
.loc-slider-container {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.loc-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* keep ~16:9 proportion */
    height: auto;
    background: var(--header-bg);
}
.loc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.loc-slide.active { opacity: 1; }
.loc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.loc-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--accent-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
}
.loc-slider-nav:hover { opacity: 1; transform: translateY(-50%) scale(1.15); }
.loc-slider-nav.prev { left: 1rem; }
.loc-slider-nav.next { right: 1rem; }
.loc-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.loc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.loc-dot.active { background: var(--accent-color); opacity: 0.7; transform: scale(1.15); }
.loc-dot:hover { opacity: 0.8; transform: scale(1.1); }

@media (max-width: 900px) {
    .loc-slider-track { aspect-ratio: 16 / 9; }
}

/* Pair the two location sliders side-by-side on desktop */
.locations-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.loc-address-inline {
    color: var(--header-bg);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .locations-pair {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Map embed match slider size */
.map-embed {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin: 0.75rem 0 2.5rem 0;
    background: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.map-embed iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}
@media (max-width: 900px) {
    .map-embed iframe { height: 300px; }
}

/* Location contacts */
/* (Old card styles removed) */

/* Mini gallery under section title */
.service-detail-section .mini-gallery {
    max-width: 900px;
    margin: 0.75rem auto 1.75rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.service-detail-section .mini-gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--header-bg);
}
.service-detail-section .mini-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.service-detail-section .mini-gallery-item:hover img {
    transform: scale(1.06);
}

/* Mobile slider visibility and sizing for detail pages */
.detail-mobile-slider { display: none; }
@media (max-width: 768px) {
    .service-detail-section .mini-gallery.has-mobile-slider { display: none; }
    .detail-mobile-slider { display: block; }
    .detail-mobile-slider .loc-slider-track { aspect-ratio: 4 / 3; }
}

/* Therapy accordion */
.therapy-forms .therapy-title { text-align: center; }
.therapy-accordion { display: grid; gap: 0.75rem; }
.therapy-item { background: var(--header-bg); border-radius: 14px; overflow: hidden; }
.therapy-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.9rem 1rem;
    border: none;
    cursor: pointer;
    position: relative;
}
.therapy-toggle::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 16px; height: 16px;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.25s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23195B6E'><path d='M12 15.5l-6-6 1.4-1.4L12 12.7l4.6-4.6L18 9.5z'/></svg>");
    background-size: 16px 16px; background-repeat: no-repeat;
}
.therapy-toggle[aria-expanded="true"]::after { transform: translateY(-50%) rotate(180deg) scale(1.1); }
.therapy-content { padding: 0 1rem 1rem 1rem; color: var(--secondary-color); }

/* Therapy single card */
.therapy-card {
    background: var(--header-bg);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.therapy-card-title {
    color: var(--main-bg);
    text-align: left;
    margin: 0 0 0.75rem 0;
}
.therapy-list { list-style: none; margin: 0; padding: 0; }
.therapy-li { border-top: 1px solid rgba(25,91,110,0.08); }
.therapy-li:first-child { border-top: none; }
.therapy-li .therapy-toggle { padding: 0.9rem 2.5rem 0.9rem 0.75rem; }
.therapy-explain { padding: 0 0.75rem 0.9rem 0.75rem; color: var(--secondary-color); }

/* Ensure therapy card text uses secondary (blue) for readability */
.therapy-card p,
.therapy-card li,
.therapy-card .therapy-explain p {
    color: var(--secondary-color) !important;
}

/* Team section - match homepage style */
.team-section { background: var(--main-bg); }
.team-location { margin-bottom: 3rem; text-align: center; }
.team-location > h2 {
    color: var(--accent-color);
    position: relative;
    display: block;
    margin-bottom: 1rem;
    font-size: 2rem;
    margin-left: auto;
    margin-right: auto;
}
.team-location > h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}
.team-location .team-grid {
    background: var(--header-bg);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    color: var(--secondary-color);
    text-align: left; /* ensure card content (including bullet-like lines) is left-aligned */
}
.team-bio { text-align: left; }
.team-timeline { text-align: left; }
.team-photo { height: 360px; }
.team-photo img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}
@media (max-width: 900px) {
    .team-photo { height: 300px; }
}
.team-bio h1 {
    color: var(--main-bg);
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
}
.team-bio { padding-top: 0.75rem; }
@media (max-width: 900px) {
    .team-bio { padding-top: 0.5rem; }
}
.team-bio h3 {
    color: var(--main-bg);
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    font-size: 1.35rem;
}
.team-bio p { color: var(--secondary-color); }
.team-toggle {
    background: transparent;
    color: var(--main-bg);
    border: none;
    padding: 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}
.team-toggle::after {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4C58A'><path d='M12 15.5l-6-6 1.4-1.4L12 12.7l4.6-4.6L18 9.5z'/></svg>");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
.team-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.team-toggle:hover { text-decoration: underline; }
.team-more { margin-top: 1rem; }
.team-timeline p {
    position: relative;
    padding-left: 1.25rem;
    margin: 0.25rem 0;
    color: var(--secondary-color);
}
.team-timeline p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}
@media (max-width: 900px) {
    .team-location .team-grid {
        grid-template-columns: 1fr !important;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer .footer-section { position: relative; }
.site-footer .footer-section > h3 { margin: 0 0 0.5rem 0; }
.site-footer .footer-body {
    overflow: visible;
    transition: none;
    max-height: none;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-align: left;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}
.footer-section h3 a { color: var(--accent-color); }
.footer-section h3 a:hover { text-decoration: underline; }

.footer-section p,
.footer-section a {
    color: #FFF8EB;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-section p { text-align: left; }

/* Footer menus: no bullets, tighter spacing */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu li { margin: 0.3rem 0; }
.footer-menu a { color: #FFF8EB; opacity: 0.9; }
.footer-menu a:hover { color: var(--accent-color); opacity: 1; }

.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    border-top: none;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.footer-bottom p {
    color: var(--header-bg) !important;
    opacity: 0.6;
}
@media (max-width: 768px) {
    .footer-bottom p { font-size: 0.9rem; }
}

/* Sleek divider above footer */
.site-footer::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 0 auto 1.75rem auto;
    background: var(--accent-color);
    border-radius: 2px;
    opacity: 1;
}

/* Left-align all footer sections on wide screens */
@media (min-width: 900px) {
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-section { text-align: left; }
    .site-footer .footer-section > h3 { cursor: default; padding: 0; }
    .site-footer .footer-section { border-bottom: none; padding-bottom: 0; }
    .site-footer .footer-body { max-height: none; }
    .site-footer .footer-section.open > .footer-body { max-height: none; }
}

/* Footer layout/alignment for tablets (769–899px): 2 Spalten, linksbündig */
@media (min-width: 769px) and (max-width: 899px) {
    .footer-content { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .site-footer .footer-section { text-align: left; }
    .site-footer .footer-menu { text-align: left; }
    .site-footer .footer-menu li,
    .site-footer .footer-menu a { text-align: left; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Header hamburger button: icon only, no white box */
.site-header .mobile-menu-toggle.icon-button {
    background: transparent;
    border: none;
    padding: 0.25rem;
    gap: 0;
    box-shadow: none;
}
.site-header .mobile-menu-toggle .sr-only {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .slider-track {
        height: 350px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .site-logo-link {
        justify-content: flex-start;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-light);
        box-shadow: var(--shadow-hover);
        z-index: 999;
    }
    
    .main-navigation.mobile-menu-open {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 300px;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }
    
    .main-navigation a {
        padding: 1rem;
        text-align: left;
    }
    
    /* Mobile Dropdown Styles */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--background-light);
        margin-top: 0;
        padding: 0;
        display: none;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    /* Disable hover-open in mobile base block as well;
       rely on explicit .open class in overlay */
    .main-navigation ul li:hover > ul,
    .main-navigation ul li.active > ul { display: none; }
    /* But keep explicit .open visible in overlay */
    .main-navigation.mobile-menu-open li.open > ul { display: block !important; }
    
    .main-navigation ul ul a {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation ul ul a:hover {
        background: var(--white);
        padding-left: 2.5rem;
    }
    
    /* Mobile Dropdown Arrow - Removed */
    
    .site-logo-image {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .definition-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .definition-text {
        padding: 3rem 2rem;
    }
    
    .definition-text h2 {
        font-size: 2rem;
    }
    
    .definition-image img {
        height: 300px;
    }
    
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile: services cards single column */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 0;
    }
    
    
    .site-logo-link {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .main-navigation ul {
        max-width: 100%;
    }
    
    .main-navigation a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .main-navigation ul ul a {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .site-logo-image {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    
    .site-title {
        font-size: 1.125rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
}

/* Prevent horizontal scrolling on very small widths */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
.site-footer, .site-footer .container, .site-footer .footer-content { max-width: 100%; }

/* Appointment Form Styles */
.ergotherapie-appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Weekdays Container */
.weekdays-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.weekday-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.weekday-checkbox:hover {
    background: rgba(228, 197, 138, 0.12);
}

.weekday-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.weekday-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.weekday-checkbox:has(input[type="checkbox"]:checked) {
    background: rgba(228, 197, 138, 0.18);
}

/* Time Slots Container */
.time-slots-container {
    margin-top: 0.5rem;
}

.time-slot-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #FFF8EB;
    border-radius: 8px;
    border: none;
}

.time-slot-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
}

.time-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.time-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.time-checkbox:hover {
    background: rgba(228, 197, 138, 0.12);
}

.time-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

.time-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.time-checkbox:has(input[type="checkbox"]:checked) {
    background: rgba(228, 197, 138, 0.18);
}

/* Submit Button */
.appointment-submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    min-height: 56px;
}

.appointment-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.appointment-submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
}

.appointment-submit-btn.loading .btn-text {
    display: none;
}

.appointment-submit-btn.loading .btn-loading {
    display: inline;
}

/* Form Messages */
.form-messages {
    margin-top: 1rem;
}

.form-messages .success {
    background: #c6f6d5;
    color: #22543d;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #9ae6b4;
    font-weight: 500;
}

.form-messages .error {
    background: #fed7d7;
    color: #742a2a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    font-weight: 500;
}

/* Contact form inputs styled like schedule table */
#ergotherapie-appointment-form .form-group label {
    color: var(--secondary-color);
    font-weight: 700;
}
#ergotherapie-appointment-form input[type="text"],
#ergotherapie-appointment-form input[type="email"],
#ergotherapie-appointment-form input[type="tel"],
#ergotherapie-appointment-form select,
#ergotherapie-appointment-form textarea {
    background: var(--header-bg);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--secondary-color);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    box-shadow: none;
    outline: none;
    transition: border-color 120ms ease, background-color 120ms ease;
}
#ergotherapie-appointment-form input[type="text"]::placeholder,
#ergotherapie-appointment-form input[type="email"]::placeholder,
#ergotherapie-appointment-form input[type="tel"]::placeholder,
#ergotherapie-appointment-form textarea::placeholder {
    color: rgba(0,0,0,0.45);
}
#ergotherapie-appointment-form textarea {
    min-height: 120px;
}
#ergotherapie-appointment-form input:focus,
#ergotherapie-appointment-form select:focus,
#ergotherapie-appointment-form textarea:focus {
    border-color: var(--accent-color);
}
#ergotherapie-appointment-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

/* Schedule grid (appointment form) */
.schedule-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule-grid .schedule-hint {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin: 0 0 0.35rem 0;
    display: none;
}
@media (max-width: 768px) {
    .schedule-grid .schedule-hint { display: block; }
}
.schedule-grid .schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--header-bg);
    border-radius: 12px;
    overflow: hidden;
    min-width: 560px; /* slightly smaller overall width on desktop */
    font-size: 0.95rem; /* compact text size inside the grid */
}
.schedule-grid th,
.schedule-grid td {
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.3rem; /* tighter cell padding */
    text-align: center;
    min-width: 72px; /* narrower columns */
}
.schedule-grid thead th {
    background: rgba(0,0,0,0.04);
    color: var(--secondary-color);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}
.schedule-grid .time-col {
    background: rgba(0,0,0,0.04);
    color: var(--secondary-color);
    white-space: nowrap;
    text-align: left;
    padding-left: 0.6rem;
    position: sticky;
    left: 0;
    z-index: 3;
}
.slot-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px; /* reduce slot height */
    cursor: pointer;
}
.slot-label input[type="checkbox"] { display: none; }
.slot-label span {
    display: inline-block;
    width: 100%;
    height: 26px; /* reduce inner bar height */
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    background: transparent;
}
.slot-label input[type="checkbox"]:checked + span {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
/* Disabled slots before Standort selection */
.slot-label input[type="checkbox"][disabled] + span {
    opacity: 0.5;
    border-style: dashed;
    cursor: not-allowed;
}
/* Keyboard focus */
.slot-label input[type="checkbox"]:focus-visible + span {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}
@media (max-width: 600px) {
    .schedule-grid th, .schedule-grid td { padding: 0.25rem; }
    .slot-label { height: 36px; }
    .slot-label span { height: 28px; }
}

/* Visibility: desktop grid on desktop; compact inline grid on mobile */
.schedule-desktop { display: block; }
.schedule-inline-mobile { display: none; }
.schedule-mobile { display: none; } /* legacy trigger hidden */
@media (max-width: 768px) {
    .schedule-desktop { display: none; }
    .schedule-inline-mobile { display: block; }
    .schedule-mobile { display: none; }
}

/* Schedule modal */
.schedule-modal { 
    position: fixed; inset: 0; z-index: 3000; display: none;
}
.schedule-modal[aria-hidden="false"], .schedule-modal.open { display: block; }
.schedule-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
}
.schedule-modal__dialog {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: calc(100vw - 2rem);
    max-width: 680px;
    max-height: 90vh;
    background: var(--header-bg);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.schedule-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; background: rgba(0,0,0,0.04);
}
.schedule-modal__close {
    background: transparent; border: none; color: var(--secondary-color);
    font-size: 24px; line-height: 1; cursor: pointer;
}
.schedule-modal__body {
    padding: 0.75rem; overflow: auto; text-align: center;
}
.schedule-modal__actions {
    padding: 0.75rem 1rem; display: flex; justify-content: flex-end; gap: 0.5rem;
}
.schedule-modal__apply {
    background: var(--accent-color); color: #fff; border: none; border-radius: 10px;
    padding: 0.5rem 0.9rem; font-weight: 600; cursor: pointer;
}

/* Compact table inside modal: narrower columns on mobile */
.schedule-table-compact {
    table-layout: fixed;
    min-width: 0;
}
.schedule-modal .schedule-table-compact,
.schedule-inline-mobile .schedule-table-compact {
    /* Make table narrower than viewport and center it */
    width: max-content;
    min-width: unset;
    display: inline-table;
    margin: 0 auto;
}
.schedule-modal .schedule-table-compact th,
.schedule-modal .schedule-table-compact td,
.schedule-inline-mobile .schedule-table-compact th,
.schedule-inline-mobile .schedule-table-compact td {
    padding: 0.15rem;
    font-size: 0.8rem;
}
/* Extremely compact day columns (Mo, Di, Mi, Do, Fr) */
.schedule-modal .schedule-table-compact thead th:not(:first-child),
.schedule-modal .schedule-table-compact tbody td,
.schedule-inline-mobile .schedule-table-compact thead th:not(:first-child),
.schedule-inline-mobile .schedule-table-compact tbody td {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
}
.schedule-modal .schedule-table-compact .time-col,
.schedule-inline-mobile .schedule-table-compact .time-col {
    width: 60px;
    min-width: 60px;
    font-size: 0.8rem;
}
.schedule-modal .slot-label,
.schedule-inline-mobile .slot-label { height: 28px; }
.schedule-modal .slot-label span,
.schedule-inline-mobile .slot-label span { height: 20px; }

/* Inline warning for Standort requirement near schedule */
.schedule-location-warning {
    margin-top: 0.5rem;
    background: var(--header-bg);
    color: var(--secondary-color);
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    font-weight: 500;
    display: none;
}
.schedule-location-warning strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* Responsive Design for Form */
@media (max-width: 768px) {
    .contact-form { padding: 1.25rem; }
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .weekdays-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-checkboxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .weekdays-container {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Unified page section spacing */
.service-detail-section { padding: 4rem 0 !important; }
.service-detail-section .section-title { margin-bottom: 1.75rem; }
@media (max-width: 768px) {
    .service-detail-section { padding: 3rem 0 !important; }
    .service-detail-section .section-title { margin-bottom: 1.25rem; }
}

/* Ensure hamburger is visible on tablet/phone and hidden on desktop */
@media (max-width: 1024px) {
    .site-header .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-60%) !important;
        right: 12px; /* kleiner Abstand zum Bildschirmrand */
        z-index: 2100; /* über dem Overlay-Menü */
        width: 42px;
        height: 42px;
        padding: 0;
    }
    .site-header .mobile-menu-toggle .transform-icon {
        width: 26px;
        height: 26px;
    }
    .site-header .mobile-menu-toggle .transform-icon svg {
        color: var(--main-bg);
        fill: var(--main-bg);
        stroke: var(--main-bg);
    }
    /* Remove hover shift/animation on the hamburger */
    .site-header .mobile-menu-toggle.icon-button:hover,
    .site-header .mobile-menu-toggle.icon-button:focus,
    .site-header .mobile-menu-toggle.icon-button:active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: translateY(-60%) !important;
    }
    /* Ensure opened submenu is visible in overlay */
    .main-navigation.mobile-menu-open li.open > ul { display: block !important; }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 10000;
    background: var(--header-bg);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 1rem 1rem 1rem 1.25rem;
    color: var(--accent-color);
}
.cookie-banner__content p { color: #195B6E; }
.cookie-banner__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
}
.cookie-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn.cookie-decline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.cookie-banner__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--accent-color);
    cursor: pointer;
}

/* Unified scroll-in reveal for key blocks (subtle from bottom) */
.section-title,
.hero-content > *,
.slider-container,
.t-slider-container,
.service-card,
.definition-text,
.definition-image,
.contact-form,
.contact-info,
.loc-address-inline,
.location-card,
.about-content,
.schedule-grid,
.schedule-table,
.mini-gallery,
.mini-gallery .mini-gallery-item,
.site-footer .footer-section,
.site-footer .footer-body > *,
.footer-bottom {
    opacity: 0;
    transform: translateY(12px);
    transition: transform 320ms ease, opacity 320ms ease;
}
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Map placeholder */
.map-placeholder {
    background: var(--header-bg);
    border: 1px dashed var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: var(--accent-color);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.map-placeholder p { color: #195B6E; }
.map-placeholder .consent-accept-maps {
    margin-top: 0.5rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
}
@media (max-width: 900px) {
    .map-placeholder { min-height: 300px; }
}
