/* ============================================================
   index.css – ausschließlich von index.php geladen.
   Gemeinsame Navigation/Grundlayout/Footer-Regeln sind hier
   bewusst enthalten, damit jede Seite unabhängig bleibt.
   Reihenfolge der ursprünglichen CSS-Regeln bleibt erhalten.
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #24332f;
    background: #ffffff;
}

header {
    background: #ffffff;
    border-bottom: 1px solid #e4e9e7;
}

nav {
    max-width: 1250px;
    margin: 0 auto;
    min-height: 90px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 12px;
}

nav a.active {
    color: #ffffff;

    background: rgba(45, 98, 88, 0.82);
    border-color: rgba(45, 98, 88, 0.90);
}

nav a.active:hover {
    color: #ffffff;
    background: rgba(36, 94, 83, 0.92);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
}

.hero {
    min-height: 520px;

    display: flex;
    align-items: center;

    background: linear-gradient(
        135deg,
        #f4f9f7 0%,
        #ffffff 70%
    );

    border-bottom: 1px solid #e7eeeb;
}

.hero-content {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 80px 24px;
}

.hero-small {
    margin: 0 0 14px;

    color: #4f7e74;
    font-size: 17px;
    font-weight: 600;
}

.hero h1 {
    max-width: 750px;
    margin: 0 0 20px;

    color: #245e53;
    font-size: 48px;
    line-height: 1.15;
}

.hero-text {
    max-width: 650px;
    margin: 0 0 32px;

    color: #52635f;
    font-size: 20px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-button {
    display: inline-block;

    padding: 13px 20px;

    color: #ffffff;
    background: #356f64;

    border: 1px solid #356f64;
    border-radius: 8px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    transition: 0.2s ease;
}

.hero-button:hover {
    background: #285b52;
    border-color: #285b52;
}

.hero-button-light {
    color: #2d6258;
    background: rgba(53, 117, 104, 0.08);
    border-color: rgba(53, 117, 104, 0.22);
}

.hero-button-light:hover {
    color: #245e53;
    background: rgba(53, 117, 104, 0.15);
    border-color: rgba(53, 117, 104, 0.32);
}

.quick-info {
    padding: 70px 24px 90px;
    background: #ffffff;
}

.quick-info-container {
    max-width: 1150px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    padding: 30px;

    background: #f7faf9;
    border: 1px solid #e0e9e6;
    border-radius: 10px;
}

.info-card h2 {
    margin: 0 0 15px;

    color: #245e53;
    font-size: 21px;
}

.info-card p {
    margin: 0 0 20px;

    color: #586965;
    font-size: 15px;
    line-height: 1.7;
}

.info-card a {
    color: #2d6258;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.info-card a:visited {
    color: #2d6258;
}

.info-card a:hover {
    text-decoration: underline;
}

.site-footer {
    position: relative;
    margin-top: 0;

    background: #245e53;
    color: #ffffff;
}

.back-to-top {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #245e53;
    background: #ffffff;
    border: 1px solid rgba(36, 94, 83, 0.22);
    border-radius: 50%;

    text-decoration: none;
    transform: translate(-50%, -50%);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

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

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-top:hover {
    background: #f4f8f7;
    transform: translate(-50%, -54%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.footer-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 45px 24px 35px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand strong {
    display: block;

    margin-bottom: 10px;

    font-size: 20px;
    color: #ffffff;
}

.footer-brand p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 14px;

    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 7px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.social-link:visited {
    color: #ffffff;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.social-link svg {
    flex-shrink: 0;
}

.footer-bottom {
    padding: 18px 24px;

    text-align: center;

    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media  (max-width: 900px)  {
nav {
        padding: 18px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
.nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }
.quick-info-container {
        grid-template-columns: 1fr;
    }
}

@media  (max-width: 700px)  {
nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 0;
        padding: 18px 20px 20px;
        gap: 10px;
    }
.nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #2d6258;
        background: rgba(53, 117, 104, 0.09);
        border: 1px solid rgba(53, 117, 104, 0.18);
        border-radius: 8px;
        font: inherit;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }
.nav-toggle:hover,
.nav-toggle:focus-visible {
        color: #245e53;
        background: rgba(53, 117, 104, 0.17);
        border-color: rgba(53, 117, 104, 0.32);
    }
.nav-links {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-top: 8px;
    }
.nav-links.is-open {
        display: grid;
    }
.hero {
        min-height: 430px;
    }
.hero-content {
        min-width: 0;
        padding: 52px 20px;
    }
.hero h1 {
        font-size: 34px;
    }
.hero-text {
        font-size: 18px;
    }
.hero-button {
        max-width: 100%;
    }
.quick-info {
        padding: 45px 20px 60px;
    }
.quick-info-container,
.info-card {
        min-width: 0;
    }
.info-card {
        padding: 24px;
    }
.footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 20px 30px;
    }
.footer-brand,
.social-links {
        width: 100%;
        min-width: 0;
    }
.footer-brand strong,
.footer-brand p,
.footer-bottom {
        overflow-wrap: anywhere;
    }
.social-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.social-link {
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
    }
}

@media  (max-width: 380px)  {
nav {
        padding-right: 16px;
        padding-left: 16px;
    }
.hero-content,
.quick-info {
        padding-right: 16px;
        padding-left: 16px;
    }
.hero h1 {
        font-size: 30px;
    }
.hero-text {
        font-size: 17px;
    }
.info-card {
        padding: 18px;
    }
.footer-container,
.footer-bottom {
        padding-right: 16px;
        padding-left: 16px;
    }
.social-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-layout {
    width: min(1160px, calc(100% - 80px));
    min-height: inherit;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 54px;
}

.hero-layout .hero-content {
    
    width: auto;
    max-width: 650px;
    margin: 0;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

@media  (max-width: 700px)  {
.hero-layout {
        width: 100%;
        min-height: auto;
        display: block;
        margin: 0;
    }
.hero-layout .hero-content {
        width: auto;
        max-width: none;
    }
.hero-logo {
        margin-top: 30px;
        padding: 0 10px;
    }
.hero-logo img {
        width: min(100%, 390px);
        max-width: 390px;
        margin: 0 auto;
    }
}

@media  (min-width: 701px)  {
.hero {
        min-height: calc(520px - 60px);
    }
.hero-layout {
        min-height: calc(520px - 60px);
    }
}

@media  (min-width: 701px)  {
header {
        background: #ffffff;
        border-bottom: 1px solid #e4e9e7;
    }
header nav {
        width: min(100% - 48px, 1100px);
        max-width: 1100px;
        min-height: 78px;
        height: 78px;
        margin: 0 auto;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }
header .nav-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin: 0;
        padding: 0;
    }
}


/* =========================================================
   REPARATUR: Originale gemeinsame Navigation, Footer und
   Kontakt-Schaltflaeche aus style.css (unveraendert).
   ========================================================= */
header {
    background: #ffffff;
    border-bottom: 1px solid #e4e9e7;
}

nav {
    max-width: 1250px;
    margin: 0 auto;
    min-height: 90px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 12px;
}

nav a:not(.praxis-name) {
    color: #2d6258;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    padding: 12px 16px;

    background: rgba(53, 117, 104, 0.09);
    border: 1px solid rgba(53, 117, 104, 0.18);
    border-radius: 8px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

nav a:not(.praxis-name):hover {
    color: #245e53;

    background: rgba(53, 117, 104, 0.17);
    border-color: rgba(53, 117, 104, 0.32);

    transform: translateY(-1px);
}

nav a.active {
    color: #ffffff;

    background: rgba(45, 98, 88, 0.82);
    border-color: rgba(45, 98, 88, 0.90);
}

nav a.active:hover {
    color: #ffffff;
    background: rgba(36, 94, 83, 0.92);
}

.praxis-name {
    margin-right: auto;

    color: #245e53;
    text-decoration: none;

    font-size: 21px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
}

.site-footer {
    position: relative;
    margin-top: 0;

    background: #245e53;
    color: #ffffff;
}

.back-to-top {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #245e53;
    background: #ffffff;
    border: 1px solid rgba(36, 94, 83, 0.22);
    border-radius: 50%;

    text-decoration: none;
    transform: translate(-50%, -50%);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

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

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-top:hover {
    background: #f4f8f7;
    transform: translate(-50%, -54%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

@media  (max-width: 900px)  {
nav {
        padding: 18px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

.praxis-name {
        width: 100%;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 8px;
    }

nav a:not(.praxis-name) {
        font-size: 14px;
        padding: 11px 14px;
    }

.nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media  (max-width: 700px)  {
nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 0;
        padding: 18px 20px 20px;
        gap: 10px;
    }

.praxis-name {
        width: auto;
        min-width: 0;
        margin: 0;
        line-height: 1.25;
    }

.nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #2d6258;
        background: rgba(53, 117, 104, 0.09);
        border: 1px solid rgba(53, 117, 104, 0.18);
        border-radius: 8px;
        font: inherit;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

.nav-toggle:hover,
    .nav-toggle:focus-visible {
        color: #245e53;
        background: rgba(53, 117, 104, 0.17);
        border-color: rgba(53, 117, 104, 0.32);
    }

.nav-links {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-top: 8px;
    }

.nav-links.is-open {
        display: grid;
    }

nav a:not(.praxis-name) {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
        line-height: 1.25;
        text-align: center;
    }
}

@media  (max-width: 380px)  {
nav {
        padding-right: 16px;
        padding-left: 16px;
    }

.praxis-name {
        font-size: 19px;
    }
}

.emergency-info-text {
    margin-bottom: 0;
    line-height: 1.7;
}

.emergency-info-column {
    min-width: 0;
}

.emergency-info-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.emergency-contact-button,
.emergency-contact-button:link,
.emergency-contact-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 17px;
    color: #ffffff;
    background: #356f64;
    border: 1px solid #356f64;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.emergency-contact-button:hover,
.emergency-contact-button:focus-visible {
    color: #ffffff;
    background: #285b52;
    border-color: #285b52;
}

@media  (hover: hover)  {
.emergency-contact-button:hover {
        transform: translateY(-1px);
    }
}

@media  (max-width: 700px)  {
.emergency-info-actions {
        margin-top: 20px;
    }

.emergency-contact-button {
        min-height: 44px;
        max-width: 100%;
    }
}

@media  (min-width: 701px)  {
.emergency-info-actions {
        margin-top: 60px;
    }
}

.nav-links a.emergency-link {
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
    margin: 0;

    
    background: #fff4f2;
    border-color: #efc2bc;
    color: #a64337;
}

.nav-links a.emergency-link:hover {
    background: #fbe8e5;
    border-color: #e4aaa3;
    color: #8f3930;
}

.nav-links a.emergency-link.active,
.nav-links a.emergency-link.active:hover {
    background: #4f7f74;
    border-color: #4f7f74;
    color: #fff;
}

@media  (min-width: 701px)  {
header {
        background: #ffffff;
        border-bottom: 1px solid #e4e9e7;
    }

header nav {
        width: min(100% - 48px, 1100px);
        max-width: 1100px;
        min-height: 78px;
        height: 78px;
        margin: 0 auto;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

header .praxis-name {
        margin-right: auto;
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        color: #245e53;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

header .nav-links {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

header nav a:not(.praxis-name) {
        min-height: 40px;
        height: 40px;
        padding: 0 15px;
        margin: 0;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        color: #2d6258;
        background: rgba(53, 117, 104, 0.09);
        border: 1px solid rgba(53, 117, 104, 0.18);
        border-radius: 8px;

        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

header nav a:not(.praxis-name):hover {
        color: #245e53;
        background: rgba(53, 117, 104, 0.16);
        border-color: rgba(53, 117, 104, 0.28);
        transform: none;
    }

header nav a.active:not(.praxis-name),
    header nav a.active:not(.praxis-name):hover {
        color: #ffffff;
        background: #4f7f74;
        border-color: #4f7f74;
        transform: none;
    }

header .nav-links a.emergency-link:not(.active) {
        color: #a64337;
        background: #fff4f2;
        border-color: #efc2bc;
    }

header .nav-links a.emergency-link:not(.active):hover {
        color: #8f3930;
        background: #fbe8e5;
        border-color: #e4aaa3;
    }

header .nav-links a.emergency-link.active,
    header .nav-links a.emergency-link.active:hover {
        height: 40px;
        min-height: 40px;
        padding: 0 15px;
        margin: 0;
        color: #ffffff;
        background: #4f7f74;
        border-color: #4f7f74;
    }
}
