/* ==========================================================================
   Einheitliche Farb- und Typografie-Variablen (1:1 abgestimmt)
   ========================================================================== */
:root {
    --font-main: "Roboto", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --top-stripe-blue: #27406b;   /* Dunkelblauer Streifen ganz oben */
    --brand-blue: #3b5988;        /* Praxis-Blau aus dem Logo */
    --heading-black: #444444;     /* Klare schwarze Überschriften */
    --text-gray: #757575;         /* Einheitliches Mittelgrau für den gesamten Fließtext */
    --text-highlight: #666666;    /* Dunkle Hervorhebung für Schlüsselwörter im Text */
    --nav-gray: #a8a8a8;          /* Hellgraue Menüschrift */
    --nav-active: #4a4a4a;        /* Dunkelgraue Schrift für aktiven Menüpunkt */
    --section-gray: #f5f5f5;      /* Durchgehendes Hellgrau für den gesamten Mittelteil & Karten */
    --quote-coral: #e57368;       /* Lachs-/Korallenrot der Anführungszeichen */
    --footer-bg: #cccccc;         /* Mittelgrauer Hintergrund des Footers */
    --footer-text: #707070;       /* Graue Schrift im Footer */
    --border-color: #e8e8e8;      /* Feine Trennlinie */
    --container-width: 1140px;
}

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

body {
    font-family: var(--font-main);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-gray);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Einheitliche Überschriften über die gesamte Seite */
h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--heading-black);
    line-height: 1.3;
}

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

a:hover {
    color: var(--brand-blue);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-stripe {
    height: 6px;
    background-color: var(--top-stripe-blue);
    width: 100%;
}

.site-header {
    background-color: #ffffff;
    padding-top: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
}

.logo-link {
    display: inline-block;
    text-decoration: none !important;
}

.logo-img {
    max-height: 145px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.main-nav {
    text-align: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 38px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--nav-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
}

.nav-list > li.active > a,
.nav-list > li:hover > a {
    color: var(--nav-active);
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 0;
    z-index: 1000;
    text-align: left;
}

.has-sub:hover .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 9px 18px;
    color: var(--nav-gray);
    font-size: 13.5px;
    text-transform: uppercase;
}

.sub-menu li a:hover {
    color: var(--nav-active);
    background-color: #f9f9f9;
}

.mobile-menu-btn {
    display: none;
    margin: 0 auto 10px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--nav-active);
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
}

/* ==========================================================================
   Full-Width Slideshow-Bereich
   ========================================================================== */
.slideshow-section {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 520px;
    background-color: #eeeeee;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.65);
    color: #444444;
    border: none;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.25s, background-color 0.2s;
    z-index: 10;
}

.slideshow-container:hover .slide-prev,
.slideshow-container:hover .slide-next {
    opacity: 1;
}

.slide-prev:hover,
.slide-next:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.slide-prev { left: 25px; }
.slide-next { right: 25px; }

/* ==========================================================================
   Durchgehend hellgrauer Mittelbereich (inkl. "Aktuelles", Foto & Leistungen)
   ========================================================================== */
.main-gray-section {
    background-color: var(--section-gray);
    padding: 55px 0 65px;
}

/* ==========================================================================
   Startseite: Porträt + Aktuelles nebeneinander (vertikal angeglichen)
   ========================================================================== */
.home-intro-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 128px;
    align-items: stretch;
    margin: 26px 0 34px 0;
}

.home-portrait-col {
    display: flex;
}

.home-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 3px;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.news-box {
    background-color: #ffffff;
    border-left: 4px solid var(--brand-blue);
    border-radius: 3px;
    padding: 24px 28px;
    margin: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-box .news-heading {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 21px;
    color: var(--heading-black);
}

.news-item + .news-item {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ececec;
}

.news-date {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--brand-blue);
    margin-bottom: 4px;
}

.news-title {
    margin: 0 0 8px 0;
    font-size: 16.5px;
    font-weight: 500;
    color: var(--heading-black);
}

.news-box p:last-child {
    margin-bottom: 0;
}

/* Typografie im grauen Mittelbereich (1:1 wie im neuen Screenshot) */
.main-gray-section h1 {
    font-size: 36px;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.main-gray-section h2 {
    font-size: 32px;
    margin-top: 42px;
    margin-bottom: 22px;
    letter-spacing: -0.2px;
}

.subtitle-p {
    margin-bottom: 22px;
}

.main-gray-section p {
    margin-bottom: 22px;
    color: var(--text-gray);
}

/* Reine Texthervorhebung (nicht anklickbar) */
span.text-highlight {
    color: var(--text-highlight);
    font-weight: 500;
}

/* Echte Links mit der Klasse text-highlight bleiben blau und anklickbar */
a.text-highlight {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

a.text-highlight:hover {
    text-decoration: underline;
}

/* Porträtbild Dr. Althaus */
.portrait-wrapper {
    margin: 28px 0 36px;
}

.portrait-img {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
}

.classic-list {
    margin-left: 20px;
    color: var(--text-gray);
}

.classic-list li {
    margin-bottom: 6px;
}

/* ==========================================================================
   Testimonials-Sektion (Weißer Bereich unter dem grauen Hauptteil)
   ========================================================================== */
.testimonials-section {
    padding: 65px 0 75px;
    background-color: #ffffff;
}

.testimonials-heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.testimonials-subheading {
    text-align: center;
    font-size: 14.5px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background-color: var(--section-gray);
    border-radius: 4px;
    padding: 34px 28px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    min-height: 195px;
}

.testimonial-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.testimonial-quote-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.quote-mark {
    color: var(--quote-coral);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    font-weight: bold;
    line-height: 0.75;
    flex-shrink: 0;
    user-select: none;
}

.testimonial-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-highlight);
}

.testimonial-author {
    margin-top: 20px;
    padding-left: 2px;
}

.testimonial-author strong {
    display: block;
    font-size: 15.5px;
    font-weight: 400;
    color: var(--heading-black);
    margin-bottom: 2px;
}

.testimonial-author span {
    display: block;
    font-size: 13.5px;
    color: var(--text-gray);
}

/* ==========================================================================
   Grauer 3-Spalten-Footer
   ========================================================================== */
.site-footer {
    background-color: var(--footer-bg);
    padding: 55px 0 65px;
    color: var(--footer-text);
}

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

.footer-col h3 {
    font-size: 24px;
    color: var(--heading-black);
    margin-bottom: 22px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--footer-text);
}

.footer-hours {
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.85;
    color: var(--footer-text);
}

.footer-hours td {
    padding-right: 16px;
}

.footer-hours td:first-child {
    padding-right: 14px;
}

.footer-mail {
    color: var(--text-highlight);
}

.footer-mail:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Virtueller Praxisrundgang (Google Street View Embed)
   ========================================================================== */
.virtual-tour-wrapper {
    width: 100%;
    margin: 24px 0 42px;
    background-color: #ffffff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.virtual-tour-wrapper iframe {
    width: 100%;
    height: 550px;
    border: 0;
    display: block;
}

/* ==========================================================================
   Leistungen Kachel-Grid mit dunkelblauem Mouseover-Overlay (1:1 wie Original)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-tile {
    position: relative;
    display: block;
    background-color: #ffffff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none !important;
}

.service-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    display: block;
    transition: transform 0.35s ease;
}

.service-tile:hover img {
    transform: scale(1.04);
}

/* Dunkelblaues Overlay bei Mouseover */
.service-overlay {
    position: absolute;
    inset: 0;
    background-color: #163b73; /* Dunkelblauer Ton aus dem Screenshot */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-tile:hover .service-overlay,
.service-tile:focus .service-overlay {
    opacity: 1;
}

.service-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

/* Feine weiße horizontale Linie unter dem Titel */
.service-line {
    width: 75%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.45);
    margin-top: 14px;
}

/* ==========================================================================
   Responsive YouTube-Videos (16:9)
   ========================================================================== */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 780px;
    aspect-ratio: 16 / 9;
    margin: 28px 0;
    background-color: #000000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Aufklappbare Akkordeon-Bereiche (z. B. Prothetik)
   ========================================================================== */
.prothetik-accordion details {
    background-color: #ffffff;
    border-radius: 3px;
    margin-bottom: 12px;
    border: 1px solid #e6e6e6;
}

.prothetik-accordion summary {
    padding: 16px 22px;
    font-size: 18px;
    font-weight: 400;
    color: var(--heading-black);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s, background-color 0.2s;
}

.prothetik-accordion summary::-webkit-details-marker {
    display: none;
}

.prothetik-accordion summary::after {
    content: "+";
    font-size: 22px;
    color: var(--brand-blue);
    font-weight: 400;
}

.prothetik-accordion details[open] summary::after {
    content: "−";
}

.prothetik-accordion summary:hover {
    color: var(--brand-blue);
    background-color: #fafafa;
}

.prothetik-accordion .accordion-body {
    padding: 8px 22px 22px;
    border-top: 1px solid #f0f0f0;
}

.before-after-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 22px 0;
}

/* ==========================================================================
   Kontaktseite (2-Spalten-Layout & Kontaktformular)
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--heading-black);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--heading-black);
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.btn-submit {
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 12px 26px;
    font-size: 14.5px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.contact-hours-table {
    border-collapse: collapse;
    font-size: 14.5px;
    color: var(--text-gray);
    margin-bottom: 22px;
}

.contact-hours-table td {
    padding: 3px 16px 3px 0;
}

/* ==========================================================================
   Responsive Design (Tablet & Smartphone)
   ========================================================================== */
@media (max-width: 980px) {
    .slideshow-container {
        height: 380px;
    }

    .main-gray-section h1 {
        font-size: 30px;
    }

    .main-gray-section h2 {
        font-size: 26px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

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

    .nav-list {
        gap: 20px;
    }

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

@media (max-width: 780px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .home-intro-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-portrait-img {
        max-width: 300px;
        height: auto;
    }
}

@media (max-width: 680px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .slideshow-container {
        height: 250px;
    }
    
    .aktuelles-card {
        padding: 24px 22px;
        margin-bottom: 35px;
    }

    .aktuelles-card h2 {
        font-size: 22px;
    }


    .main-gray-section {
        padding: 35px 0 45px;
    }


    .main-gray-section h1 {
        font-size: 24px;
    }

    .main-gray-section h2 {
        font-size: 22px;
    }

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

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 8px;
        padding-top: 10px;
    }

    .nav-list.show {
        display: flex;
    }

    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        text-align: center;
        background-color: #f9f9f9;
    }

    .testimonials-heading {
        font-size: 22px;
    }

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

    .virtual-tour-wrapper iframe {
        height: 360px;
    }

    /* Auf Touch-Geräten Titel dauerhaft als dezente Leiste unten einblenden */
    .service-overlay {
        top: auto;
        height: auto;
        padding: 14px 18px;
        opacity: 0.94;
    }

    .service-title {
        font-size: 15px;
    }

    .service-line {
        display: none;
    }
}