/* ============================================================
   Lokale Fonts
   ============================================================ */
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Caveat-Regular.woff2') format('woff2');
    unicode-range: U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   CSS-Variablen: Zentrale Farbdefinitionen
   ============================================================ */
:root {
    --color-primary: #1a5276;
    --color-secondary: #2980b9;
    --color-accent: #3498db;
    --color-cta: #1e88e5;
    --color-cta-dark: #0d47a1;
    --color-danger: #c0392b;
    --color-alert: #A80000;

    --color-text: #000000;
    --color-text-muted: #666;
    --color-text-light: #888;

    --color-bg: #f2f2f2;
    --color-bg-white: #ffffff;
    --color-bg-light: #f0f4f8;
    --color-bg-card: #fafafa;

    --color-border: #ddd;
    --color-border-light: #eee;
}

html {
    height: 100%;
    scrollbar-gutter: stable;
}
body {
    height: 100%;
    margin: 0;
    font-family: 'arial';
    font-size: 14px;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding: 0;
    overflow-x: hidden;
}

/* ============================================================
   Site Wrapper: zentrierter Content-Bereich
   ============================================================ */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--color-bg-white);
}

/* ============================================================
   Header: Logo + Titel + Spacer (Flexbox 3-spaltig)
   ============================================================ */
.site-header {
    display: flex;
    align-items: stretch;
    height: 130px;
    background-color: var(--color-primary);
    background-repeat: no-repeat;
    background-position: right top;
    position: relative;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='130'%3E%3Ccircle cx='320' cy='20' r='250' fill='%23fff' opacity='.04'/%3E%3Ccircle cx='320' cy='20' r='155' fill='%23fff' opacity='.05'/%3E%3Ccircle cx='320' cy='20' r='100' fill='%23fff' opacity='.06'/%3E%3Ccircle cx='60' cy='120' r='70' fill='%23fff' opacity='.06'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}
.site-header > * {
    position: relative;
    z-index: 1;
}

.header-logo {
    width: 180px;
    min-width: 180px;
    height: 130px;
    background-image: url(../images/logo_praxis_v4_130.webp);
    background-repeat: no-repeat;
    background-size: 130px;
    background-position: center;
}

.header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}
.header-title-main {
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.header-title-sub {
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    text-align: right;
}

.header-spacer {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   Navigation: horizontale Menüleiste (Flexbox)
   ============================================================ */
.site-nav {
    border-top: solid var(--color-secondary) thin;
    border-bottom: solid var(--color-secondary) thin;
    background-color: var(--color-bg-light);
    position: sticky;
    top: 0;
    z-index: 9998;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: var(--color-bg-light);
}

.nav-item {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    padding: 3px 10px;
    flex: 1;
    text-align: center;
}

.nav-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.nav-item.selected {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    box-shadow: inset 0 -3px 0 var(--color-primary);
}

.nav-item:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    cursor: pointer;
}

/* ============================================================
   Main Content
   ============================================================ */
main#content {
    flex: 1;
    padding: 0;
    background-color: var(--color-bg-white);
    padding-bottom: 40px; /* Platz für fixierten Footer */
}

/* ============================================================
   Footer: fixiert am unteren Bildschirmrand
   ============================================================ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    z-index: 9998;
    background-color: var(--color-primary);
    border-top: solid var(--color-secondary) thin;
    padding: 3px 10px;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    color: #fff;
}
.site-footer a {
    color: rgba(255,255,255,0.9);
}

.footer-admin-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================================
   SubSite 2-Spalten Layout (bereits Flexbox)
   ============================================================ */
/* ============================================================
   SubSite: Horizontale Tabs + Content
   ============================================================ */
.subsite-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    text-align: left;
}

.subsite-tabs {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem 0;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.3rem;
    background: var(--color-bg-light);
    border-radius: 12px;
}

.tab-item a {
    display: block;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.3;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab-item.active a {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tab-item:not(.active):hover a {
    background: rgba(52, 152, 219, 0.12);
    color: var(--color-primary);
}

/* Dropdown-Variante für viele Einträge */
.tab-dropdown-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.tab-dropdown {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    max-width: 520px;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    border: 2px solid var(--color-border, #ddd);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tab-dropdown:hover {
    border-color: var(--color-accent);
}

.tab-dropdown:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
}

.subsite-content {
    flex: 1;
    text-align: left;
    padding: 0.5rem 0 0;
}

/* ============================================================
   Sticky Navigation beim Scrollen (via CSS sticky)
   ============================================================ */

/* ============================================================
   Textfarben & Links
   ============================================================ */
.text_over {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 16px;
}

.text_out {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 16px;
}

.text2_over {
    color: var(--color-danger);
    text-decoration: none;
    font-size: 16px;
}

.text2_out {
    color: var(--color-danger);
    text-decoration: none;
    font-size: 16px;
}

A {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 16px;
}

A.norm1 {
    color: var(--color-danger);
    text-decoration: none;
    font-size: 16px;
}

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

/* ============================================================
   Sonstige bestehende Styles
   ============================================================ */
.object-fit {
    position: absolute;
    z-index: 99;
    background-image: url(images/billionphotos-994127.webp);
    background-repeat: no-repeat;
    width: 500px;
    height: 500px;
    left: 50%;
    overflow: scroll;
    padding: 5px;
    top: 60px;
    transform: translate(-50%, 0);
    font: larger bold Arial, Helvetica, sans-serif;
}

#box {
    position: absolute;
    z-index: 0;
    background-image: url(images/2-NEU.webp);
    background-repeat: no-repeat;
    background-position: right;
    height: 125px;
    width: 229px;
    top: 0px;
    right: 0px;
    padding: 0px;
    margin: 0px;
}

#cookie-popup {
    text-align: center;
    background: #e8f4fd;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 9999;
    font-size: 14px;
    line-height: 20px;
    padding: 20px;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
}

#cookie-popup.hidden {
    display: none;
}

/* DivTableMenü (aktuellTable für Content-Seiten) */
div.aktuellTable {
    border: 0px solid #1C6EA4;
    width: 100%;
    min-height: 900px;
    text-align: left;
    border-collapse: collapse;
}

/* Floating contact button (a.floating-button für höhere Spezifität) */
a.floating-button {
    position: fixed;
    bottom: 50px;
    right: max(20px, calc(50% - 580px));
    padding: 12px 18px;
    border-radius: 9999px;
    background: var(--color-cta);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
a.floating-button:hover, a.floating-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
    a.floating-button { transition: none; }
}

a.floating-button img {
    width: 28px;
    height: 28px;
    display: block;
}

a.floating-button:link,
a.floating-button:visited,
a.floating-button:active {
    color: #ffffff;
    text-decoration: none;
}

/* Medflex leave-site modal */
#leave-site-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 10000; }
#leave-site-overlay.is-open { display: flex; }
#leave-site-modal { background: var(--color-bg-white); width: min(520px, calc(100% - 2rem)); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.25); padding: 20px; }
#leave-site-modal h3 { margin: 0 0 10px; font-size: 1.1rem; }
#leave-site-modal p { margin: 0 0 16px; line-height: 1.4; }
#leave-site-modal .actions { display: flex; gap: 10px; justify-content: flex-end; }
#leave-site-cancel, #leave-site-continue { appearance: none; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
#leave-site-cancel { background: #e0e0e0; color: #111; }
#leave-site-continue { background: var(--color-cta); color: #fff; font-weight: bold; }
@media (prefers-reduced-motion: reduce) { #leave-site-overlay, #leave-site-modal { transition: none; } }

/* ============================================================
   Hamburger Menu Button (hidden on desktop)
   ============================================================ */
.menu-toggle {
    display: none;
    background: var(--color-bg-light);
    border: none;
    border-top: solid var(--color-secondary) thin;
    border-bottom: solid var(--color-secondary) thin;
    padding: 10px 16px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    text-align: left;
    align-items: center;
    gap: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.menu-toggle .hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
}
.menu-toggle .hamburger-icon span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.2s;
}
.menu-toggle .menu-label {
    font-weight: bold;
}

/* ============================================================
   Datenschutzerklärung (DSE)
   ============================================================ */
.dse {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.dse h1 {
    font-size: 28px;
    color: var(--color-primary);
    margin: 0 0 4px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary);
}
.dse-updated {
    color: #777;
    font-size: 13px;
    margin: 0 0 28px;
}
/* Inhaltsverzeichnis */
.dse-toc {
    background: var(--color-bg-light);
    border: 1px solid #c8d6e5;
    border-radius: 8px;
    padding: 20px 24px 20px 24px;
    margin-bottom: 36px;
}
.dse-toc h2 {
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 10px;
    border: none;
    padding: 0;
}
.dse-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 32px;
}
.dse-toc li {
    margin-bottom: 4px;
    break-inside: avoid;
}
.dse-toc a {
    color: var(--color-secondary);
    text-decoration: none;
}
.dse-toc a:hover {
    text-decoration: underline;
}
/* Sections */
.dse section {
    margin-bottom: 32px;
    scroll-margin-top: 80px;
}
.dse h2 {
    font-size: 20px;
    color: var(--color-primary);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
}
.dse h3 {
    font-size: 16px;
    color: #444;
    margin: 18px 0 8px;
}
.dse p {
    margin: 0 0 12px;
}
.dse ul, .dse ol {
    margin: 0 0 12px;
    padding-left: 22px;
}
.dse li {
    margin-bottom: 4px;
}
.dse a {
    color: var(--color-secondary);
    text-decoration: underline;
}
.dse .medflex-btn {
    color: #fff;
    text-decoration: none;
}
.dse a:hover {
    color: var(--color-primary);
}
/* Karten (Verantwortlicher, Hosting, Aufsichtsbehörde) */
.dse-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 12px 0 16px;
    line-height: 1.6;
}
/* Cookie-Tabelle */
.dse-table-wrap {
    overflow-x: auto;
    margin: 12px 0 16px;
}
.dse-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dse-cookie-table th,
.dse-cookie-table td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--color-border);
    vertical-align: top;
}
.dse-cookie-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.dse-cookie-table tbody tr:nth-child(even) {
    background: #f7f7f7;
}
.dse-cookie-table code {
    background: #eef2f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: var(--color-primary);
}
/* Rechte-Grid */
.dse-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}
.dse-right-item {
    background: var(--color-bg-card);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}
.dse-right-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--color-primary);
}
.dse-right-item p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.dse-article {
    font-weight: normal;
    font-size: 12px;
    color: var(--color-text-light);
}
/* Info-Tabelle (Impressum: Kontakt, Qualifikation, Stellen) */
.dse-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 15px;
}
.dse-info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: top;
}
.dse-info-table tr:last-child td {
    border-bottom: none;
}
.dse-info-table td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    width: 200px;
    padding-left: 0;
}

/* ============================================================
   Notfall-Seite: Notruf-Karten & 5-W-Schritte
   ============================================================ */
.notfall-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.75rem 0 2rem;
}

.notfall-card {
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.notfall-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.notfall-card--danger {
    background: linear-gradient(135deg, #b71c1c, #e53935);
}

.notfall-card--info {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.notfall-card__number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.1;
}

.notfall-card__label {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.notfall-card__desc {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-top: 0.3rem;
}

.notfall-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.notfall-steps li {
    counter-increment: step;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border, #ddd);
    font-size: 15px;
    line-height: 1.6;
}

.notfall-steps li:last-child {
    border-bottom: none;
}

.notfall-steps li::before {
    content: counter(step);
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ============================================================
   Utility-Klassen
   ============================================================ */
.text-center { text-align: center; }

/* ============================================================
   Timetable: Sprechzeiten-Tabelle
   ============================================================ */
.timetable {
    width: 100%;
    max-width: 460px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    border-collapse: collapse;
    margin: 0 auto;
}

.timetable-header {
    height: auto;
    vertical-align: top;
    padding-bottom: 0.5rem;
}

.timetable-title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 700;
}

.timetable td {
    text-align: left;
    vertical-align: middle;
    padding: 0.3rem 0.25rem;
}

.timetable tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-border-light, #eee);
}

.timetable-time {
    white-space: nowrap;
}

/* ============================================================
   Index Page: Startseiten-Layout
   ============================================================ */
.index-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.index-main {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.index-aside {
    flex: 0 0 420px;
    max-width: 100%;
    text-align: center;
}

/* Index Cards */
.index-card {
    background: #fff;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.index-card__title {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 700;
}

.index-card--highlight {
    border-left: 4px solid var(--color-accent);
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

.index-card--highlight p {
    margin: 0.4rem 0;
}

.index-card--phone {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border: none;
}

.index-phone-label {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.index-phone-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.index-phone-note {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0.75rem 0 0;
}

.index-alert-link {
    color: var(--color-alert);
}

.index-alert-text {
    font-size: larger;
    white-space: nowrap;
}

/* ============================================================
   Google Maps: DSGVO-konformer Embed mit Consent-Overlay
   ============================================================ */
.map-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: var(--color-bg-light);
}

.map-iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.map-consent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 82, 118, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.map-consent-inner {
    text-align: center;
    color: #fff;
    padding: 2rem 1.5rem;
    max-width: 320px;
}

.map-consent-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.map-consent-inner p {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0.9;
}

.map-consent-inner a {
    color: #93c5fd;
    text-decoration: underline;
}

#map-consent-btn {
    appearance: none;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#map-consent-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

.map-address {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted, #666);
    margin: 0.6rem 0 0;
    padding: 0 0.5rem 0.5rem;
}

/* ============================================================
   Kontakt Page: Medflex Button & Leave-Modal
   ============================================================ */
.medflex-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.2rem;
    border-radius: 9999px;
    font: 600 16px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    color: #fff;
    text-decoration: none;
    background: var(--color-cta);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.medflex-btn:focus {
    outline: 2px solid var(--color-cta-dark);
    outline-offset: 2px;
}
.medflex-btn:hover {
    filter: brightness(1.05);
}
.medflex-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}
.kontakt-phone {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
}
.kontakt-divider {
    text-align: center;
    margin: 20px 0;
}
.kontakt-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ============================================================
   Sprechzeiten-Tabelle (modernisiert)
   ============================================================ */
.sprechzeiten-wrap {
    overflow-x: auto;
    margin: 12px 0 16px;
}
.sprechzeiten-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    font-size: 0.88rem;
}
.sprechzeiten-table th {
    background: linear-gradient(135deg, var(--color-primary, #1a5276) 0%, #2471a3 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    text-align: center;
    border-bottom: 2px solid #15456a;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}
.sprechzeiten-table th.sz-today {
    border-bottom: 3px solid #e67e22;
}
.sprechzeiten-table th.sz-today::after {
    content: "\2022 heute";
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    color: #f9c46b;
    margin-top: 2px;
}
.sprechzeiten-table td {
    padding: 12px 10px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #eef1f5;
    background: #fff;
}
.sprechzeiten-table td:last-child {
    border-right: none;
}
/* Vormittag-Zeile */
.sprechzeiten-table tr.sz-row-vm td {
    background: rgba(39, 174, 96, 0.07);
}
/* Nachmittag-Zeile */
.sprechzeiten-table tr.sz-row-nm td {
    background: rgba(243, 156, 18, 0.07);
    border-top: 1px solid #e4e8ed;
}
/* Geschlossene Zelle (höhere Spezifität als tr.sz-row-* td) */
.sprechzeiten-table tr td.sz-closed {
    background: rgba(0, 0, 0, 0.02);
}
/* Termin-Zelle */
.sprechzeiten-table tr td.sz-termin {
    background: rgba(243, 156, 18, 0.12);
}
/* Heute-Spalte: oranger Rahmen komplett */
.sprechzeiten-table td.sz-today {
    border-left: 2px solid #e67e22;
    border-right: 2px solid #e67e22;
}
.sprechzeiten-table tr.sz-row-nm td.sz-today {
    border-bottom: 3px solid #e67e22;
}
/* Block-Elemente */
.sz-label {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}
.sz-time {
    font-weight: 500;
}
.sz-closed-text {
    color: #bbb;
    font-size: 0.82rem;
}
.sz-termin-hint {
    font-size: 0.72rem;
    color: #e67e22;
    font-weight: 600;
    margin-top: 3px;
    display: block;
}
/* Responsive */
@media (max-width: 600px) {
    .sprechzeiten-table {
        font-size: 0.78rem;
    }
    .sprechzeiten-table th {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    .sprechzeiten-table td {
        padding: 8px 4px;
    }
    .sz-label {
        font-size: 0.58rem;
    }
}

/* Leave-site modal (shared) */
.leave-modal[hidden] { display: none; }
.leave-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.leave-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.leave-panel {
    position: relative;
    margin: 12vh auto 0 auto;
    max-width: 520px;
    background: var(--color-bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    padding: 20px;
}
.leave-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}
.leave-actions button {
    padding: .6rem .9rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
}
#leave-continue {
    background: var(--color-cta);
    color: #fff;
    border-color: var(--color-cta);
}
#leave-continue:hover {
    filter: brightness(1.05);
}

/* ============================================================
   Team Page: Polaroid Gallery
   ============================================================ */
.team-wrapper {
    width: 100%;
    padding: 0 2rem;
    text-align: center;
}
.team-wrapper .polaroid {
    background: var(--color-bg-white);
    padding: 1rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.2);
}
.team-wrapper .polaroid > img,
.team-wrapper .polaroid > picture img {
    max-width: 100%;
    height: auto;
}
.team-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.2em;
    margin-top: 0.5rem;
}
.caption-role {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75em;
    line-height: 1.3em;
}
.team-wrapper .item {
    width: 320px;
    max-width: 100%;
    display: inline-block;
    margin-top: 2rem;
    filter: grayscale(60%);
}
.team-wrapper .item .polaroid:before {
    content: '';
    position: absolute;
    z-index: -1;
    transition: all 0.35s;
}
.team-wrapper .item:nth-of-type(4n+1) {
    transform: scale(0.8, 0.8) rotate(5deg);
    transition: all 0.35s;
}
.team-wrapper .item:nth-of-type(4n+1) .polaroid:before {
    transform: rotate(6deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    right: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}
.team-wrapper .item:nth-of-type(4n+2) {
    transform: scale(0.8, 0.8) rotate(-5deg);
    transition: all 0.35s;
}
.team-wrapper .item:nth-of-type(4n+2) .polaroid:before {
    transform: rotate(-6deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    left: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}
.team-wrapper .item:nth-of-type(4n+3) {
    transform: scale(0.8, 0.8) rotate(-3deg);
    transition: all 0.35s;
}
.team-wrapper .item:nth-of-type(4n+3) .polaroid:before {
    transform: rotate(-4deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    left: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.3);
}
.team-wrapper .item:nth-of-type(4n+4) {
    transform: scale(0.8, 0.8) rotate(3deg);
    transition: all 0.35s;
}
.team-wrapper .item:nth-of-type(4n+4) .polaroid:before {
    transform: rotate(4deg);
    height: 20%;
    width: 47%;
    bottom: 30px;
    right: 12px;
    box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.3);
}
.team-wrapper .item:hover {
    filter: none;
    z-index: 10;
    transform: scale(1.1) rotate(0deg);
    transition: all 0.35s;
}
.team-wrapper .item:hover .polaroid:before {
    content: '';
    position: absolute;
    z-index: -1;
    transform: rotate(0deg);
    height: 90%;
    width: 90%;
    bottom: 0%;
    right: 5%;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    transition: all 0.35s;
}

/* ============================================================
   Praxis-Galerie (praxis.inc.php)
   ============================================================ */
.praxis-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    max-width: 80%;
    margin: 0 auto;
    padding: 1rem 0;
}
.praxis-gallery-side {
    flex: 0 0 auto;
}
.praxis-gallery-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.praxis-gallery-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.praxis-gallery-wide {
    text-align: center;
}
.praxis-gallery img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   Notfall Page: (uses .dse pattern from Datenschutz/Kontakt)
   ============================================================ */

/* ============================================================
   Kassenleistung Page
   ============================================================ */
.kassen-table {
    max-width: 1130px;
    width: 100%;
}
.kassen-content {
    padding: 0 10px;
}
.kassen-list {
    margin-left: 10px;
    text-align: justify;
}

/* ============================================================
   Responsive: Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .header-logo {
        width: 120px;
        min-width: 120px;
    }
    .header-spacer {
        display: none;
    }
}

/* ============================================================
   Responsive: Mobile (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Index Layout: stapeln */
    .index-layout { flex-direction: column; padding: 0.75rem; gap: 1rem; }
    .index-main { min-width: 0; gap: 1rem; }
    .index-aside { flex: 1 1 auto; }
    .index-aside img { width: 100%; height: auto; }
    .index-card { padding: 1rem 1.1rem; }
    .index-phone-number { font-size: 1.6rem; }

    /* Header: kompakter */
    .site-header {
        height: auto;
    }
    .header-logo {
        width: 80px;
        min-width: 80px;
        height: 80px;
        background-size: 70px;
    }
    .header-title {
        height: 80px;
        padding-left: 10px;
    }
    .header-title-main {
        font-size: 18px;
    }
    .header-title-sub {
        font-size: 14px;
        padding-right: 10px;
    }
    .header-spacer {
        display: none;
    }

    /* Navigation: Hamburger-Menü */
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .nav-item {
        padding: 12px 16px;
        border-bottom: 1px solid #d9d9d9;
    }

    /* SubSite Tabs: Mobile */
    .subsite-tabs {
        padding: 0.6rem 0.5rem 0;
    }
    .tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.15) transparent;
        gap: 0.25rem;
        padding: 0.25rem;
        border-radius: 10px;
    }
    .tab-list::-webkit-scrollbar {
        height: 3px;
    }
    .tab-list::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.12);
        border-radius: 3px;
    }
    .tab-item a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .subsite-content {
        width: 100%;
        padding: 0.3rem 0.25rem 0;
    }

    /* Footer */
    .site-footer {
        max-width: 100%;
        left: 0;
        transform: none;
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
        color: rgba(255,255,255,0.8);
        padding: 4px 8px;
    }
    .site-footer .footer-sep {
        display: none;
    }
    .site-footer .footer-item {
        display: inline;
    }
    .site-footer .footer-item::after {
        content: " · ";
    }
    .site-footer .footer-item:last-child::after {
        content: "";
    }

    /* Floating button: kleiner auf Mobile */
    a.floating-button {
        bottom: 12px;
        right: 12px;
        padding: 10px 14px;
        font-size: 14px;
    }
    .floating-button span {
        display: none;
    }
    .floating-button img {
        width: 24px;
        height: 24px;
    }

    /* DSE: responsive */
    .dse {
        padding: 20px 16px 40px;
    }
    .dse h1 {
        font-size: 22px;
    }
    .dse-info-table td:first-child {
        white-space: normal;
        width: auto;
    }
    .dse-toc ol {
        columns: 1;
    }
    .dse-rights-grid {
        grid-template-columns: 1fr;
    }

    /* Praxis-Galerie: stapeln */
    .praxis-gallery {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        padding: 1rem;
    }
    .praxis-gallery-row {
        flex-direction: column;
        align-items: center;
    }

    /* Content tables: kein Overflow */
    table {
        max-width: 100%;
    }

    /* Timetable: kleinere Schrift auf Mobile */
    .index-main table,
    .index-main table td,
    .index-main table th {
        font-size: 14px;
    }

    /* Lange Wörter umbrechen */
    h1, h2, h3, h4 {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* aktuellTable: reduzierte min-height */
    div.aktuellTable {
        min-height: auto;
    }

    /* Bilder responsiv */
    img {
        max-width: 100%;
        height: auto;
    }
}
