:root {
    --primary-color: #0d8289; /* Teal */
    --secondary-color: #4CAF50; /* Green Accent */
    --text-color: #34495e; /* Dark Blue-Grey */
    --text-color-light: #ecf0f1; /* Light Grey */
    --background-color: #f8f9fa; /* Off-White */
    --surface-color: #ffffff; /* White */
    --dark-surface-color: #2c3e50; /* Dark Slate Blue */
    --border-color: #dee2e6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--background-color);
    color: var(--text-color);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--secondary-color);
    color: var(--text-color-light);
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-surface-color);
}

.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--dark-surface-color);
    border-bottom: 1px solid #4a627a;
}

header {
    background: var(--dark-surface-color);
    color: var(--text-color-light);
    padding: 1.2rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-color-light);
    font-weight: 700;
}

header p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color-light);
    opacity: 0.9;
}

nav {
    background: var(--dark-surface-color);
    padding: 0.8rem;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 0;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
}

main {
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 800px;
}

main a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

main a:hover {
    color: var(--dark-surface-color);
    text-decoration: underline;
}

section {
    margin-bottom: 40px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

section[id] {
    scroll-margin-top: 140px;
}

.header-brand-link {
    text-decoration: none;
    color: inherit;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.4;
}

main nav.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    font-weight: normal;
}

main nav.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.1);
    border-color: var(--primary-color);
}

.related-services {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.related-services a {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s;
}

.related-services a:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.indications-list {
    padding-left: 1.2em;
    line-height: 1.75;
    margin: 0 0 15px;
}

.service-cta-box {
    background: #edf7f5;
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    border-radius: 6px;
    margin: 30px 0;
}

.service-cta-box h3 {
    margin-top: 0;
}

.service-cta-box p {
    margin-bottom: 18px;
}

.service-cta-box .cta-button {
    margin: 0 10px 10px 0;
}

.hero {
    position: relative;
    background-color: var(--dark-surface-color);
    background-image: url('background_center.png');
    background-image: -webkit-image-set(
        url('background_center.webp') type('image/webp') 1x,
        url('background_center.png') type('image/png') 1x
    );
    background-image: image-set(
        url('background_center.webp') type('image/webp') 1x,
        url('background_center.png') type('image/png') 1x
    );
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--text-color-light);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #45a049;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.cta-button-primary {
    background-color: var(--secondary-color);
    font-size: 1.1rem;
    padding: 14px 28px;
}

.cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--text-color-light);
    padding: 12px 26px;
}

.cta-button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Call Picker (CTA "Jetzt anrufen" mit Praxis-Auswahl) */
.hero-call-picker {
    position: relative;
    display: inline-block;
}

.hero-call-trigger {
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
}

.hero-call-options {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 260px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
    text-align: left;
    overflow: hidden;
}

.hero-call-picker.is-open .hero-call-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hero-call-options::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--surface-color);
}

.hero-call-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
    background: var(--surface-color);
}

.hero-call-option:last-child {
    border-bottom: none;
}

.hero-call-option:hover,
.hero-call-option:focus-visible {
    background: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
}

.hero-call-option-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--text-color-light);
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.hero-call-option-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hero-call-option-name {
    font-weight: 600;
    color: var(--primary-color);
}

.hero-call-option-num {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-top: 2px;
}

/* Mobile Call Speed-Dial (Floating Action Button mit Praxis-Auswahl) */
.call-fab-wrapper {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    flex-direction: column;
    align-items: flex-end;
}

.call-fab-trigger {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--text-color-light);
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.25s ease;
    padding: 0;
}

.call-fab-trigger:hover,
.call-fab-trigger:focus-visible {
    background: #45a049;
}

.call-fab-wrapper.is-open .call-fab-trigger {
    transform: rotate(45deg);
}

.call-fab-wrapper.is-open .call-fab-trigger-icon::before {
    content: "×";
    font-size: 2rem;
}

.call-fab-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.call-fab-wrapper.is-open .call-fab-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.call-fab-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    padding: 10px 14px 10px 18px;
    border-radius: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.call-fab-option:hover,
.call-fab-option:focus-visible {
    background: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
}

.call-fab-option .call-fab-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--text-color-light);
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.call-fab-label {
    line-height: 1.2;
}

.call-fab-label small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
    margin-top: 2px;
}

/* Fallback: ohne JS bleibt der FAB als einfacher Anruf-Button nutzbar */
.no-js .call-fab-options {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.process-list {
    padding-left: 1.2em;
    line-height: 1.8;
}

.process-list li {
    margin-bottom: 8px;
}

.form-notice {
    background: #fff7e6;
    border-left: 4px solid #e08e0b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.form-notice p {
    margin: 0;
}

.form-consent label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: normal;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 3px;
}

.message-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--border-color);
}

.success-icon {
    color: #2e7d32;
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-icon {
    color: #d32f2f;
    font-size: 3rem;
    margin-bottom: 15px;
}

.team-container {
    margin-top: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.team-member-card {
    text-align: center;
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--border-color);
}

.team-member-title {
    font-style: italic;
    color: var(--primary-color);
    margin-top: -10px;
}

.team-member-qualification {
    font-size: 0.9rem;
}

.service-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.service-card p {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--text-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border: none;
    cursor: pointer;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.1);
}

/* Locations Page */
.locations-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.location-card {
    /* Styling for individual cards can be added here if needed */
}

.map-container {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#map-elster {
    background-image: url('map_elster.png');
    background-image: -webkit-image-set(
        url('map_elster.webp') type('image/webp') 1x,
        url('map_elster.png') type('image/png') 1x
    );
    background-image: image-set(
        url('map_elster.webp') type('image/webp') 1x,
        url('map_elster.png') type('image/png') 1x
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#map-marschner {
    background-image: url('map_marschner.png');
    background-image: -webkit-image-set(
        url('map_marschner.webp') type('image/webp') 1x,
        url('map_marschner.png') type('image/png') 1x
    );
    background-image: image-set(
        url('map_marschner.webp') type('image/webp') 1x,
        url('map_marschner.png') type('image/png') 1x
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.map-overlay {
    position: relative;
    z-index: 2;
    background: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 80%;
}

.map-overlay p {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Nav CTA Button */
.nav-cta a {
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 8px 15px;
    transition: background-color 0.3s ease;
    color: var(--text-color-light);
}

.nav-cta a:hover,
.nav-cta a.active {
    background-color: #45a049; /* Darker green */
    color: var(--text-color-light);
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    background: var(--dark-surface-color);
    color: var(--text-color-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 15px; /* Row and column gap */
}

.footer-links a {
    color: var(--text-color-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links span {
    color: var(--text-color-light);
    opacity: 0.5;
}

.footer-copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.opening-hours-line {
    display: flex;
    margin-bottom: 5px;
}

.opening-hours-line .day {
    width: 120px;
    flex-shrink: 0;
    font-weight: bold;
}

.opening-hours-line .time {
    /* No specific styling needed */
}

@media (max-width: 600px) {
    header {
        padding: 0.6rem 0;
    }

    header h1 {
        font-size: 1.2rem;
    }

    header p {
        display: none; /* Spart Platz auf kleinen Bildschirmen */
    }

    nav {
        padding: 0.5rem;
    }

    nav ul {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        display: inline;
        margin: 0;
    }

    nav a {
        font-size: 0.9rem;
        padding: 3px 0;
    }

    .nav-cta a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    main {
        padding: 20px 15px;
    }
    
    section {
        padding: 20px;
    }

    section[id] {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .locations-container {
        grid-template-columns: 1fr;
    }

    .call-fab-wrapper {
        display: flex;
    }

    /* Auf Mobile: CTAs in der Service-CTA-Box jeweils eigene Zeile mit Luft dazwischen */
    .service-cta-box .cta-button {
        display: block;
        margin: 12px 0 0;
        text-align: center;
    }

    .service-cta-box .cta-button:first-of-type {
        margin-top: 0;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-cta-group .cta-button {
        text-align: center;
    }
}