/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    color: var(--color-text-light);
    /* Default heading color based on original */
}

h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, #FF7720 0%, #FF4500 100%);
    color: var(--color-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 85, 23, 0.35);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

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

/* Main Nav */
.main-nav {
    display: flex;
    align-items: stretch;
}

.main-nav ul {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: flex;
    align-items: stretch;
}

.main-nav a {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    padding: 0 1.3rem;
    position: relative;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

/* Animated underline on hover */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: #7F7F7F;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover {
    color: #7F7F7F;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active page indicator */
.main-nav a.active {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
}

.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
    background-color: #fff;
    height: 3px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.75rem;
    align-self: center;
}

.menu-toggle .bar {
    width: 26px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Homepage Auto Slider --- */
.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-white);
    padding: var(--spacing-md) 0;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: stretch;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2.5rem 0;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.slider-nav .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav .dot:hover {
    background-color: #bbb;
}

.slider-nav .dot.active {
    background-color: #0077B6;
    transform: scale(1.2);
}

.slide .hero-content {
    margin: 0 auto;
    width: 100%;
}

.slide .hero-image img {
    max-height: 450px;
    object-fit: contain;
}

.slide-mund .text-right {
    text-align: right;
}

.slide-mund .underline.right {
    margin-left: auto;
    margin-right: 0;
}

.slide-mund h2 {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: normal;
}

.hero-image.collage {
    position: relative;
    height: 400px;
    width: 100%;
}

.hero-image.collage img {
    position: absolute;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    max-height: 100%;
}

.hero-image.collage img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.hero-image.collage .img-1 {
    width: 55%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-image.collage .img-2 {
    width: 45%;
    bottom: 20%;
    left: 5%;
    z-index: 1;
}

.hero-image.collage .img-3 {
    width: 45%;
    bottom: 5%;
    right: 5%;
    z-index: 3;
}

.slide-anmeldung .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.slide-anmeldung .hero-image.tilted img {
    transform: rotate(-10deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-height: 400px;
}

@media (max-width: 992px) {
    .slider-container {
        min-height: auto;
    }

    .slide .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .slide-mund .hero-content {
        flex-direction: column-reverse;
    }

    .slide-mund .text-right {
        text-align: center;
    }

    .slide-mund .underline.right {
        margin: 1rem auto;
    }

    .hero-image.collage {
        height: 300px;
        margin-top: 2rem;
    }

    .slide-anmeldung .hero-content {
        flex-direction: column;
    }

    .slide-anmeldung .hero-text {
        align-items: center;
    }

    .slide-anmeldung .hero-image.tilted img {
        transform: rotate(0);
        margin-top: 2rem;
        max-height: 300px;
    }
}

/* --- Homepage Auto Slider --- */
.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-white);
    padding: var(--spacing-md) 0;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.slider-nav .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav .dot:hover {
    background-color: #bbb;
}

.slider-nav .dot.active {
    background-color: #0077B6;
    transform: scale(1.2);
}

.slide .hero-content {
    margin: 0 auto;
    width: 100%;
}

.slide .hero-image img {
    max-height: 450px;
    object-fit: contain;
}

/* Slider Typography and Styles (Matching original design) */
.grey-styled h2 {
    color: #888;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.grey-styled .subtitle {
    font-size: 1.2rem;
    font-weight: 700;
}

.slide-divider {
    border: none;
    height: 1.5px;
    background-color: var(--color-primary);
    /* Orange line */
    margin: 10px 0 1.5rem 0;
    width: 60%;
}

.grey-styled.text-right .slide-divider.right {
    margin-left: auto;
    margin-right: 0;
    width: 100%;
}

.grey-styled p {
    font-size: 1.1rem;
    color: #777;
    font-weight: 600;
}

.grey-styled.text-left header,
.grey-styled.text-left p,
.grey-styled.text-left h2 {
    text-align: left;
}

.grey-styled.text-right p,
.grey-styled.text-right h2 {
    text-align: right;
}

/* Image adjustments */
.slide .tree-img {
    position: relative;
    padding-bottom: 2rem;
}

.img-credit {
    position: absolute;
    bottom: 5px;
    left: 20px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 700;
}

.mehr-link {
    display: inline-block;
    color: #888;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 10px;
}

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

.slide-anmeldung .hero-image.tilted img {
    transform: rotate(-10deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-height: 400px;
}

@media (max-width: 992px) {
    .slider-container {
        min-height: auto;
    }

    .slide .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .slide-mund .hero-content {
        flex-direction: column-reverse;
    }

    .slide-mund .text-right {
        text-align: center;
    }

    .slide-mund .underline.right {
        margin: 1rem auto;
    }

    .hero-image.collage {
        height: 300px;
        margin-top: 2rem;
    }

    .slide-anmeldung .hero-content {
        flex-direction: column;
    }

    .slide-anmeldung .hero-text {
        align-items: center;
    }

    .slide-anmeldung .hero-image.tilted img {
        transform: rotate(0);
        margin-top: 2rem;
        max-height: 300px;
    }
}

/* Welcome Slide: centered layout without image */
.hero-content.hero-centered {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1.5rem;
}

.welcome-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    opacity: 0.85;
    animation: welcome-pulse 3s ease-in-out infinite;
}

@keyframes welcome-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}

.welcome-text-block {
    max-width: 640px;
}

.greeting-line {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-primary, #FF5517);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.slide-divider.center {
    margin-left: auto;
    margin-right: auto;
}

.grey-styled.text-center h2,
.grey-styled.text-center p {
    text-align: center;
}

/* Hero Section */

.hero {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
    border-bottom: 5px solid var(--color-primary);
    /* Style element from original */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-intro {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

/* Services Section */
.services {
    padding: var(--spacing-lg) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 6px solid var(--color-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card .card-title {
    color: var(--color-text-light);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.underline {
    width: 50px;
    height: 4px;
    background-color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* Content Highlights */
.highlights {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.highlight-box {
    background: #fff;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

/* Footer */
.site-footer {
    background-color: #333;
    /* Dark footer */
    color: #fff;
    padding: var(--spacing-md) 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

/* Page Content */
.page-content {
    padding: var(--spacing-sm) 0 var(--spacing-lg) 0;
    /* Reduced top padding */
    flex: 1;
    /* Ensures footer stays at bottom if content is short */
}

.page-content h1 {
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.page-content h2 {
    margin-top: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #FF5517 0%, #e03d00 100%);
        padding: 0.5rem 0 1rem;
        text-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        display: block;
    }

    .main-nav a {
        padding: 0.85rem 1.5rem;
        justify-content: center;
        border-radius: 0;
    }

    .main-nav a::after {
        bottom: 0;
        width: 40px;
        height: 2px;
    }

    .main-nav a.active {
        background: rgba(255,255,255,0.15);
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item {
    background: var(--color-white);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
}

.gallery-caption {
    text-align: center;
    padding: 0.5rem 0;
    color: var(--color-text-light);
    font-weight: bold;
}

/* Accordion Redesign */
details {
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

details:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 85, 23, 0.2);
}

summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    background: transparent;
    font-weight: 600;
    color: var(--color-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    /* Increased font size */
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FF5517' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15' /%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

details[open] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 119, 182, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

details[open] summary {
    background-color: #f0f8ff;
    color: #0077B6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

details[open] summary::after {
    transform: rotate(135deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230077B6' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15' /%3E%3C/svg%3E");
}

.accordion-content {
    padding: 1.5rem;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.accordion-content p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

.accordion-content li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.accordion-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    opacity: 0.7;
}

/* --- New Therapie Layout (Stacked) --- */

.therapie-layout-stacked {
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
}

.therapie-layout-stacked .therapie-content {
    width: 100%;
}

.therapie-layout-stacked .therapie-section {
    display: block;
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
    /* Account for sticky header */
}

/* Base sections always open/visible */
#section-ziele,
#section-interdisziplinaer {
    margin-bottom: 2rem;
}

.therapie-layout-stacked .intro-text {
    margin-bottom: 1rem;
}

/* Jump Navigation */
.therapie-jump-nav {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-category {
    margin-bottom: 1.5rem;
}

.nav-category:last-child {
    margin-bottom: 0;
}

.nav-category h3 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.nav-category h3.logopaedie {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.nav-category h3.ergotherapie {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.nav-category h3.gruppentherapie {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.jump-list li a {
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text);
    padding: 5px 0;
    font-weight: 500;
}

.jump-list li a::before {
    content: "•";
    color: var(--color-primary);
    margin-right: 8px;
    font-weight: bold;
}

.nav-category .ergotherapie+.jump-list li a::before {
    color: var(--color-accent);
}

.nav-category .gruppentherapie+.jump-list li a::before {
    color: var(--color-primary);
}

.jump-list li a:hover {
    color: var(--color-primary-dark);
}

html {
    scroll-behavior: smooth;
}

.therapie-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--color-primary);
    /* Use primary color for main headers matching design */
}


/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.team-member {
    background: var(--color-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 150px;
    height: 150px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.team-role {
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

.team-separator {
    grid-column: 1 / -1;
    text-align: center;
    margin: 2rem 0 1rem;
    position: relative;
    width: 100%;
}

.team-separator h2 {
    display: inline-block;
    background: var(--color-bg);
    padding: 0 1.5rem;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.5rem;
}

.team-separator hr {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border: none;
    border-top: 2px solid var(--color-primary);
    margin: 0;
    transform: translateY(-50%);
    z-index: 0;
}

/* --- Contact Card Layout --- */

.page-content h1 {
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-card-wrapper {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 350px;
}

/* Left Side: Orange Background Text */
.contact-card-info {
    flex: 1;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 2rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card-info h2 {
    color: var(--color-white);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.contact-details-styled p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.1rem;
}

.contact-details-styled .contact-name {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.contact-details-styled strong {
    font-weight: 700;
}


.contact-details-styled p + br + p {
    margin-top: 1rem;
}



.contact-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95rem;
}

.contact-table td {
    padding: 0.2rem 0;
    vertical-align: top;
}

.contact-table td:first-child {
    font-weight: 500;
    width: 90px;
    opacity: 0.9;
}

.contact-table td:last-child {
    font-weight: 700;
}

.contact-table a {
    color: var(--color-white);
    text-decoration: none;
}

.contact-table a:hover {
    text-decoration: underline;
}

/* Right Side: White Background Graphic */
.contact-card-graphic {
    flex: 1;
    background-color: #FAFAFA;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: url('../images/map-placeholder.svg');
    /* You might need to add or generate this if a real map silhouette is wanted, else it's a subtle pattern */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
}

.card-logo {
    position: relative;
    z-index: 2;
    max-width: 80%;
    height: auto;
}

/* The Center QR Code */
.contact-qr-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 5;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Action Container (Button Below) */
.contact-action-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    width: 100%;
}

.connecting-line {
    width: 2px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.05);
    /* Subtle connection line */
}


.btn-action {
    background: linear-gradient(to bottom, #FF8833, #FF5517);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 85, 23, 0.3);
    border: 2px solid white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 85, 23, 0.4);
    background: linear-gradient(to bottom, #FFAA55, #FF6622);
}


/* Responsive Contact Card */
@media (max-width: 800px) {
    .contact-card {
        flex-direction: column;
    }

    .contact-card-info {
        padding: 2rem;
        padding-bottom: 4rem;
        /* Room for QR code */
    }

    .contact-card-graphic {
        padding: 4rem 2rem 2rem 2rem;
        min-height: 250px;
    }

    .contact-qr-code {
        /* Keep it centered but adjust position for stacked layout */
        top: auto;
        bottom: 50%;
        transform: translate(-50%, 50%);
    }
}

/* --- Interactive Map Section --- */
.map-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.map-graphic {
    flex: 1;
    min-width: 350px;
    max-width: 60%;
}

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

.map-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3rem;
}

/* Photo Bubbles Layout */
.map-bubbles {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    position: relative;
    right: 20%;
}

.bubble-link {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    border: 4px solid var(--color-text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.bubble-link:nth-child(2) {
    transform: translateX(30px);
}

.bubble-link:nth-child(3) {
    transform: translateX(10px);
}

.bubble-link:hover {
    transform: scale(1.1) translateX(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
    z-index: 10;
}

@media (max-width: 992px) {
    .map-container {
        flex-direction: column;
        align-items: center;
    }

    .map-graphic {
        max-width: 100%;
    }

    .map-info {
        align-items: center;
        width: 100%;
        gap: 2rem;
    }

    .map-text.grey-styled.text-right {
        text-align: center;
    }

    .map-text.grey-styled.text-right .slide-divider.right {
        margin: 10px auto;
        width: 50%;
    }

    .map-bubbles {
        flex-direction: row;
        justify-content: center;
        right: 0;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .bubble-link {
        width: 100px;
        height: 100px;
    }

    .bubble-link:nth-child(2),
    .bubble-link:nth-child(3) {
        transform: none;
    }

    .bubble-link:hover {
        transform: scale(1.1) !important;
    }
}

/* =========================================================================
   STANDORTE PAGE
   ========================================================================= */

.standorte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (min-width: 900px) {
    .standorte-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.standort-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--color-primary);
    text-align: center;
}

.standort-card h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.standort-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.standort-card .address-details {
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.standort-card .map-container {
    width: 100%;
    margin-top: 2rem;
}

.standort-card h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* =========================================================================
   BACK TO TOP BUTTON
   ========================================================================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem 0;
    border-top: 4px solid var(--color-primary);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content p {
    font-size: 0.95rem;
    margin: 0;
    flex: 1;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}
