/* Physio Fuchs – Design nach Vorlage 2011, responsiv neu umgesetzt */

:root {
    --yellow: #f9ba00;
    --grey: #71787e;
    --line: #ccc;
    --white: #fff;
    --width: 824px;
    --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--grey);
    color: var(--grey);
    font: 13px/1.55 var(--font);
}

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

a { color: #000; text-decoration: none; }

h1, h2, h3 { color: var(--yellow); font-weight: normal; margin: 0; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 18px; }
h1.title { margin: 0; }
.subtitle { color: var(--grey); font-size: 24px; line-height: 1.25; margin: 0 0 18px; }
h2 { font-size: 13px; font-weight: bold; }
h3 { font-size: 13px; }
p { margin: 0 0 12px; }

.smalltext { font-size: 11px; }
.visually-hidden, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 12px; left: 12px; z-index: 10; background: var(--white); padding: 8px 12px; }

/* layout */

.bar {
    background: var(--yellow);
    height: 8px;
    width: 100%;
    max-width: var(--width);
    margin: 0 auto;
}

.page {
    background: var(--white);
    width: 100%;
    max-width: var(--width);
    margin: 40px auto 0;
    padding-bottom: 6px;
}

.header-logo {
    height: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.header-image { position: relative; aspect-ratio: 824 / 214; background: #f4f4f4; overflow: hidden; }
.header-image img { width: 100%; height: 100%; object-fit: cover; }

.header-bio {
    position: absolute;
    top: 27px;
    left: 77%;
    width: 20%;
    color: var(--white);
    line-height: 1.4;
}

.main {
    display: flex;
    gap: 32px;
    padding: 30px 32px 40px;
}

.navigation { flex: 0 0 204px; }
.content { flex: 1 1 auto; min-width: 0; max-width: 524px; }

.footer {
    width: 100%;
    max-width: var(--width);
    margin: 2px auto 0;
    padding: 0 0 6px;
    color: var(--white);
    font-size: 12px;
    flex: 1 0 auto;
}
.footer p { margin: 0; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--yellow); }

/* navigation */

.navigation ul { list-style: none; margin: 0; padding: 0; }

.navigation a {
    display: block;
    margin-left: 18px;
    padding: 6px 0 4px;
    border-bottom: 1px dotted var(--line);
    color: var(--grey);
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
}

.navigation li li a { padding-left: 18px; }

.navigation a span { border-bottom: 2px solid transparent; }
.navigation a:hover span,
.navigation li.active > a span { border-bottom-color: var(--grey); }
.navigation li.active > a span { font-weight: bold; }
.navigation li li.active > a span,
.navigation li li a:hover span { font-weight: normal; border-bottom-color: var(--yellow); }

.navigation li > a { position: relative; }
.navigation li.active > a::before,
.navigation li > a:hover::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0; bottom: 0;
    width: 18px;
    background: url(/theme/navi-arrow.png) no-repeat 0 10px;
}
.navigation li li.active > a::before,
.navigation li li > a:hover::before { left: 0; }

.nav-toggle { display: none; }

/* content */

.content a { color: var(--grey); text-decoration: underline; }
.content a:hover { color: var(--yellow); text-decoration: none; }

.prose ul, .prose ol { margin: 0 0 12px 14px; padding: 0; }
.prose ul { list-style-image: url(/theme/list-image.png); }
.prose li p { margin: 0; }
.prose strong { color: var(--yellow); font-weight: normal; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose hr, .prices tbody {
    border: 0;
    background: url(/theme/bg-hr.png) repeat-x left bottom;
}
.prose hr { height: 1px; margin: 0 0 10px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.prose td, .prose th { padding: 4px 8px 4px 0; text-align: left; vertical-align: top; }
.prose img { margin: 0 0 6px; }

/* prices */

.prices { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: 6px 8px 6px 0; font-weight: normal; }
.prices thead th { padding-top: 0; background: url(/theme/bg-hr.png) repeat-x left bottom; }
.prices tbody th { width: 34%; }
.prices tbody td:nth-child(2), .prices tbody td:nth-child(3),
.prices thead th:nth-child(2), .prices thead th:nth-child(3) { width: 18%; }
.prices tr.note td { padding-top: 0; }
.prices h2 { display: inline; }

/* mobile */

@media (max-width: 864px) {
    .page { margin-top: 0; }
    .footer { padding: 6px 16px; }
}

@media (max-width: 700px) {
    body { font-size: 15px; }

    .header-logo {
        height: auto;
        padding: 12px 16px;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
    }
    .header-logo img { width: 140px; }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: var(--white);
        color: var(--grey);
        font: inherit;
        text-transform: uppercase;
        letter-spacing: .03em;
        cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block; width: 18px; height: 2px; background: var(--grey); position: relative;
    }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }

    .header-image { overflow: visible; }
    .header-image:has(.header-bio) { margin-bottom: 44px; }
    .header-bio { top: 100%; left: 0; width: 100%; padding: 8px 16px; background: var(--yellow); font-size: 13px; }
    .header-bio br { display: none; }
    .header-bio strong::after { content: " · "; font-weight: normal; }

    .main { flex-direction: column; gap: 0; padding: 0 16px 32px; }

    .navigation { display: none; flex-basis: auto; margin: 0 -16px 24px; padding: 0 16px; background: #fafafa; }
    .navigation.open { display: block; }
    .navigation a { font-size: 14px; padding: 12px 0 10px; margin-left: 18px; }

    .content { max-width: none; padding-top: 24px; }
    .navigation.open + .content { padding-top: 0; }

    .prices thead { display: none; }
    .prices, .prices tbody, .prices tr, .prices th, .prices td { display: block; width: auto !important; }
    .prices tbody { padding: 8px 0; }
    .prices tbody th { padding: 0 0 4px; }
    .prices tbody td { padding: 0; }
    .prices tbody td:empty { display: none; }
    .prices tbody td[data-label]::before { content: attr(data-label) ": "; font-weight: bold; }
    .prices tr.note td { padding-top: 4px; font-style: italic; }
}
