/* TYPO3 14 adapters. Original GIFR layout rules live in gifr.css/responsive.css. */
/* Keep the page width stable when the mobile menu locks document scrolling. */
html { scrollbar-gutter: stable; }
body { background: var(--gifr-white); }
/* Contain the legacy centered gallery offsets within the full-width content canvas. */
#content { overflow-x: clip; }
:focus-visible { outline: 2px solid var(--gifr-orange); outline-offset: 3px; }
.gifr-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mob_button { display: none; border: 0; padding: 0; }
.submenu-toggle { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#menue .ifsub.submenu-open > .hnavisub { display: block; }
#menue .hnavisub { box-shadow: 0 5px 14px rgba(0, 0, 0, .12); }
#menue li.act > .submenu-toggle { color: var(--gifr-orange); }
#header.slider { position: relative; height: var(--gifr-header-height); }
#header .ce-gallery:has(img) { width: 100%; height: var(--gifr-header-height); margin-bottom: 0; overflow: hidden; background: var(--gifr-white); }
#header .ce-gallery:has(img) :is(.ce-outer, .ce-inner, .ce-row, .ce-column, figure, a) { height: 100%; }
#header .ce-gallery:has(img) :is(.ce-row, .ce-column, figure) { width: 100%; }
#header .ce-gallery:has(img) :is(.ce-outer, .ce-inner) { position: static; float: none; }
/* FSC figures use display: table; a concrete image height avoids percentage sizing cycles. */
#header .ce-gallery img { display: block; width: 100%; height: var(--gifr-header-height); object-fit: cover; object-position: center; }
/* Keep very wide group photos complete within the same reserved image area. */
#header .ce-gallery img.is-panorama { object-fit: contain; }
#header.slider > .frame { display: none; }
#header.slider > .frame.is-current { display: block; }
#header.slider .ce-gallery, #header.slider .ce-row, #header.slider .ce-column, #header.slider figure { width: 100%; }
#header.slider .ce-outer, #header.slider .ce-inner { position: static; float: none; }
#header.slider .owl-nav { display: block; }
#header.slider .owl-nav button {
    box-sizing: border-box;
    position: absolute;
    z-index: 2;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #D1801F;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#header.slider .owl-nav button {
    top: 50%;
    width: 44px;
    padding: 0;
    transform: translateY(-50%);
}
#header.slider .owl-prev { left: 20px; right: auto; }
#header.slider .owl-next { right: 20px; left: auto; }
#header.slider .owl-nav button::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border: solid currentColor;
    border-width: 4px 4px 0 0;
    transform: translate(-65%, -50%) rotate(45deg);
}
#header.slider .owl-nav button.owl-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
#header.slider .owl-nav button:hover,
#header.slider .owl-nav button:active {
    color: #9b4300;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .2);
}
@media (max-width: 800px) {
    #header.slider .owl-nav button {
        top: auto;
        bottom: 12px;
        transform: none;
    }
}
.bgbild .ce-column, .fixedheader .ce-gallery { display: none; }
body .tx_cn-columns .row + .row { margin-top: 0; }
.fixedheader { opacity: 1; }
.dunkelgrauerbg button.ui-accordion-header { color: var(--gifr-white); font-size: 24px; text-align: left; }
.ui-accordion button.ui-accordion-header { box-sizing: border-box; text-align: left; }
#content .frame-style-accordion { box-sizing: border-box; padding: 48px 0; }
#content .frame-style-accordion > header { box-sizing: border-box; width: calc(100% - 40px); max-width: 1300px; margin: 0 auto 24px; padding: 0 16px; }
#content .frame-style-accordion > header :is(h1, h2) { margin: 0; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.3; text-align: left; }
#content .frame-style-accordion > .cnmc-accordion { display: flow-root; box-sizing: border-box; width: calc(100% - 40px); margin: 0 auto; }
#content .frame-style-accordion .ui-accordion-header { min-height: 64px; padding: 18px 56px 18px 16px; color: var(--gifr-text); font-size: clamp(18px, 1.5vw, 20px); font-weight: 600; line-height: 1.5; border-bottom: 1px solid var(--gifr-gray-light); }
#content .frame-style-accordion .ui-accordion-header-icon { width: 10px; height: 10px; top: 50%; right: 22px; left: auto; margin: 0; background: none; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-50%) rotate(-45deg); pointer-events: none; }
#content .frame-style-accordion .ui-accordion-header-active .ui-accordion-header-icon { transform: translateY(-70%) rotate(45deg); }
#content .frame-style-accordion .ui-accordion-header:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
#content .frame-style-accordion .ui-accordion-content { box-sizing: border-box; padding: 20px 16px 28px; margin-bottom: 16px; border-bottom: 2px solid var(--gifr-text); }
#content .frame-style-accordion.dunkelgrauerbg .ui-accordion-header { color: var(--gifr-white); border-bottom-color: rgba(255, 255, 255, .5); }
#content .frame-style-accordion.dunkelgrauerbg .ui-accordion-content { border-bottom-color: var(--gifr-white); }
#content .frame-style-accordion.dunkelgrauerbg .ui-accordion-header:is(.ui-state-hover, .ui-state-focus) { background: rgba(255, 255, 255, .1); }
#content .frame-style-accordion .ui-accordion-header.ui-state-active,
#content .frame-style-accordion.dunkelgrauerbg .ui-accordion-header.ui-state-active { background: var(--gifr-orange); color: var(--gifr-contrast-ink); }
.mediaconsent.loadok > .blockedcontentbox { display: none; }
.mediaconsent.loadok { min-height: 0 !important; }
.mediaconsent iframe { max-width: 100%; }
.cookie_einstellungen { font: inherit; cursor: pointer; }
.cookie_einstellungen::before { content: '\2699' ' '; }
#footer .mapsoverlay div[data-type] { display: block; }
#footer > .rahmen > .dunkelgrauerbg a { text-decoration: none; }
/* Text links retain a non-color cue on every content surface. */
#content a:not(.btn), #footer .ce-bodytext a:not(.btn), #cookieman-modal a {
    font-weight: 700;
    text-decoration: none;
}
#content a u, #content u:has(a),
#footer .ce-bodytext a u, #footer .ce-bodytext u:has(a) {
    text-decoration: none;
}
#content .ce-bodytext a:not(.btn) { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
#content .ce-bodytext a:not(.btn):is(:hover, :focus-visible) { text-decoration-thickness: 2px; }
#content :is(h1, h2, h3) { overflow-wrap: anywhere; hyphens: auto; }
/* Preserve the profile subtitle typography when the primary heading becomes H1. */
#content.aerzte .grauerbg > .rahmen > header > h2 { font-size: 24px; font-weight: 700; margin: 1em 0; }
@media (max-width: 1000px) {
    #content.aerzte .grauerbg > .rahmen > header > h2 { font-size: 20px; }
}
/* Footer information has its own grid; legacy equalize heights must not fix its rows. */
#footer .frame-style-3column > .tx_cn-columns { margin-bottom: 56px; } /* Reserve space for the existing membership logo. */
#footer .frame-style-3column > .tx_cn-columns > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 32px;
    height: auto !important;
}
#footer .frame-style-3column > .tx_cn-columns > .row::after { display: none; }
#footer .frame-style-3column > .tx_cn-columns > .row > :is(.col-25, .col-50) {
    float: none;
    clear: none;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
#footer .frame-style-3column .row > :is(.col-25, .col-50) > .frame {
    display: flow-root;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
}
#footer .frame-style-3column .rahmen { font-size: 16px; line-height: 1.5; }
#footer .frame-style-3column .footerkontakt > .rahmen { font-size: 16px; }
@media (min-width: 801px) {
    #footer .frame-style-3column .rahmen,
    #footer .frame-style-3column .footerkontakt > .rahmen { font-size: 18px; }
}
#footer .frame-style-3column h3 { font-size: 24px; line-height: 1.3; margin-bottom: 20px; }
#footer .footerkontakt .ce-bodytext { box-sizing: border-box; padding-left: 48px; }
/* Keep the section names accessible; the icons alone identify them visually. */
#footer .footerkontakt h4 { position: relative; height: 0; margin: 24px 0 8px; font-size: 0; line-height: 0; text-align: left; }
#footer .footerkontakt h4:first-child { margin-top: 0; }
#footer .footerkontakt h4::before { content: ''; position: absolute; left: -48px; top: 0; width: 36px; height: 36px; background: center / contain no-repeat url('../Images/hours.svg'); }
#footer .footerkontakt h4:nth-of-type(2)::before { background-image: url('../Images/phone.svg'); }
#footer .footerkontakt h4:nth-of-type(3)::before { background-image: url('../Images/email.svg'); }
#footer .footeradresse .ce-bodytext { box-sizing: border-box; padding-left: 48px; }
#footer .footeradresse .ce-bodytext > p { position: relative; min-height: 36px; margin: 0 0 24px; }
#footer .footeradresse .ce-bodytext > p::before { content: ''; position: absolute; left: -48px; top: 0; width: 36px; height: 36px; background: center / contain no-repeat url('../Images/practice.svg'); }
#footer .footeradresse .ce-bodytext > p:nth-child(2)::before { background-image: url('../Images/location.svg'); }
#footer .footerkontakt p { margin: 0 0 8px; }
#footer .footerkontakt strong { font-size: 18px; font-weight: 600; }
#footer .footerkontakt strong a { font-weight: inherit; text-decoration: none; }
#footer .footerkontakt a:focus-visible { outline-color: var(--gifr-white); }
#footer .footerkontakt table { width: 100%; max-width: 360px; border-collapse: collapse; table-layout: fixed; margin: 0 0 4px; }
#footer .footerkontakt :is(th, td) { display: table-cell; float: none; clear: none; vertical-align: top; border: 0; padding: 0 0 4px; text-align: left; font-weight: 300; }
#footer .footerkontakt th { width: 3.6em; padding-right: 10px; }
#footer .footerkontakt td { width: auto; white-space: nowrap; }
#footer .footerkontakt table[aria-label="Telefonzeiten"] { width: auto; table-layout: auto; font-variant-numeric: tabular-nums; }
#footer .footerkontakt table[aria-label="Telefonzeiten"] th { width: 2.5em; padding-right: 8px; }
#footer .footerkontakt table[aria-label="Telefonzeiten"] td:nth-child(3) { width: auto; padding-inline: 8px; text-align: center; }
@media (max-width: 360px) {
    #footer .footerkontakt table[aria-label="Telefonzeiten"] { font-size: 14px; }
}
@media (max-width: 1100px) {
    #footer .frame-style-3column > .tx_cn-columns > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    #footer .frame-style-3column > .tx_cn-columns > .row > .col-50 { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    #footer .frame-style-3column > .tx_cn-columns > .row { grid-template-columns: minmax(0, 1fr); }
    #footer .frame-style-3column > .tx_cn-columns > .row > .col-25:first-child { padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
}
#content .ce-bodytext table { max-width: 100%; }
/* FSC centers intrinsic-width galleries with relative offsets; keep their paint inside the gallery. */
#content .ce-gallery { max-width: 100%; overflow: hidden; }
/* Legacy right-aligned inline images may extend left of a narrow text column. */
#content .ce-intext.ce-right .ce-gallery { max-width: none; overflow: visible; }
@media (max-width: 800px) {
    /* Keep the membership link in flow and reserve the reception's actual footprint. */
    #footer > .rahmen { display: flex; flex-direction: column; }
    #footer > .rahmen > .frame-type-textmedia { position: static; inset: auto; box-sizing: border-box; width: 100%; padding: 0 20px 24px; background: var(--gifr-orange); }
    #footer .frame-style-3column > .tx_cn-columns {
        box-sizing: border-box;
        width: 100%;
        margin: 30px 0 24px;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: max(20px, env(safe-area-inset-right, 0px));
    }
    #footer .frame-style-3column .maps iframe { display: block; width: 100%; max-width: 100%; }
    #footer > .rahmen > .dunkelgrauerbg { padding-bottom: var(--gifr-reception-clearance, 24px); }
    #footer > .rahmen > .dunkelgrauerbg ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0 12px;
        box-sizing: border-box;
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding-left: max(20px, env(safe-area-inset-left, 0px));
        padding-right: 20px;
    }
    #footer > .rahmen > .dunkelgrauerbg li { float: none; margin: 0; padding: 10px 0; }
    /* Keep the existing inline layout while fitting oversized images to the content column. */
    #content .ce-intext:not(.ce-nowrap) > .ce-gallery[data-ce-images="1"] {
        width: min(100%, var(--gifr-gallery-width, 100%));
        max-width: 100%;
    }
    .team #content .ce-gallery[data-ce-images="1"] { width: min(100%, var(--gifr-gallery-width, 100%)); }
    .team #content .ce-gallery[data-ce-images="1"] :is(.ce-outer, .ce-inner, .ce-row) { position: static; float: none; width: 100%; }
    #content .ce-intext:not(.ce-nowrap) > .ce-gallery[data-ce-images="1"] :is(.ce-row, .ce-column, figure) { display: block; float: none; width: auto; max-width: 100%; }
    #content .ce-intext:not(.ce-nowrap) > .ce-gallery[data-ce-images="1"] figure > a { display: block; max-width: 100%; }
    #content .ce-intext:not(.ce-nowrap) > .ce-gallery[data-ce-images="1"] .image-embed-item { max-width: 100%; height: auto; }
}
/* Portrait galleries use one wrapping layout across TYPO3's editorial rows. */
#content .portraits { --gifr-portrait-width: 280px; --gifr-portrait-columns: 4; }
#content .portraits.default { --gifr-portrait-width: 200px; --gifr-portrait-columns: 5; }
#content .portraits > .rahmen {
    box-sizing: border-box;
    width: 100%;
    max-width: 1340px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
#content .portraits .ce-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px 10px;
    float: none;
    width: min(100%, calc((var(--gifr-portrait-width) + 10px) * var(--gifr-portrait-columns) - 10px));
    max-width: none;
    overflow: visible;
    margin-left: auto;
    margin-right: auto;
}
#content .portraits .ce-gallery :is(.ce-outer, .ce-inner, .ce-row) {
    display: contents;
    position: static;
    float: none;
    margin: 0;
}
#content .portraits .ce-gallery::after,
#content .portraits .ce-row::after { display: none; }
#content .portraits .ce-column {
    flex: 0 0 auto;
    float: none;
    clear: none;
    width: min(var(--gifr-portrait-width), calc((100% + 10px) / var(--gifr-portrait-columns) - 10px));
    max-width: 100%;
    min-width: 0;
    margin: 0;
}
#content .portraits figure { display: block; float: none; width: 100%; margin: 0; }
#content .portraits .image-embed-item { display: block; width: 100%; height: auto; }
#content .portraits figcaption { overflow-wrap: anywhere; }
#content .portraits:not(.default) .image-caption {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: var(--gifr-caption-height, 0px);
    padding: 14px;
}
@media (max-width: 1200px) {
    #content .portraits:not(.default) { --gifr-portrait-columns: 3; }
}
@media (max-width: 1100px) {
    #content .portraits.default { --gifr-portrait-columns: 3; }
}
@media (max-width: 900px) {
    #content .portraits:not(.default) { --gifr-portrait-columns: 2; }
}
@media (max-width: 800px) {
    #content .portraits:not(.default) .image-caption {
        box-sizing: border-box;
        position: static;
        width: 100%;
        height: auto;
        min-height: var(--gifr-caption-height, 0px);
        padding: 12px 10px;
        line-height: 1.5;
    }
}
@media (max-width: 700px) {
    #content .portraits.default { --gifr-portrait-columns: 2; }
}
/* Editorial news galleries: complete previews instead of page-sized photographs. */
#content .frame.aktuelles { display: flow-root; clear: both; width: 100%; }
#content .aktuelles .ce-gallery { float: none; width: 100%; max-width: 1000px; margin: 0 auto; overflow: visible; }
#content .aktuelles :is(.ce-outer, .ce-inner) { position: static; float: none; width: 100%; }
#content .aktuelles .ce-row { display: flex; justify-content: center; align-items: center; gap: 24px; }
#content .aktuelles .ce-row::after { display: none; }
#content .aktuelles .ce-column { flex: 0 1 auto; float: none; width: auto; min-width: 0; margin: 0; }
#content .aktuelles figure { display: block; width: auto; margin: 0; }
#content .aktuelles figure > a { display: block; padding: 0; background: transparent; cursor: pointer; }
#content .aktuelles .image-embed-item { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; }
#content .aktuelles .ce-bodytext { clear: both; padding-top: 20px; text-align: center; }
#content .aktuelles figcaption { margin-top: 16px; font-size: 16px; line-height: 1.6; }
/* Single poster previews retain their original file for the lightbox. */
#content .frame.bildvorschau { clear: both; width: 100%; }
#content .bildvorschau > .rahmen { max-width: 520px; margin-top: 0; }
#content .bildvorschau .ce-gallery { width: 100%; margin: 0; overflow: visible; }
#content .bildvorschau :is(.ce-outer, .ce-inner) { position: static; float: none; width: 100%; }
#content .bildvorschau :is(.ce-row, .ce-column, figure) { display: block; float: none; width: 100%; margin: 0; }
#content .bildvorschau figure > a { display: block; padding: 16px; background: var(--gifr-gray-light); border-radius: 4px; cursor: zoom-in; }
#content .bildvorschau figure > a:hover { outline: 2px solid var(--gifr-text); outline-offset: 2px; }
#content .bildvorschau .image-embed-item { display: block; width: 100%; height: 420px; object-fit: contain; }
@media (max-width: 600px) {
    #content .aktuelles .ce-row { flex-direction: column; gap: 24px; }
    #content .aktuelles .image-embed-item { max-height: 340px; }
    #content .bildvorschau .image-embed-item { height: 340px; }
}
.mediaconsent.vimeo:not(.loadok), .mediaconsent.youtube:not(.loadok) { height: auto; min-height: 0 !important; }
/* Editorial split teaser: the right-hand poster spans the orange panel. */
#content .frame.bildtextorange { clear: both; float: left; width: 100%; background: var(--gifr-orange); color: var(--gifr-white); }
#content .bildtextorange > .rahmen { max-width: none; margin: 0; padding: 0; }
#content .bildtextorange .ce-textpic { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--gifr-teaser-height, 396px) * 280 / 396); height: var(--gifr-teaser-height, 396px); }
#content .bildtextorange .ce-textpic::after { display: none; }
#content .bildtextorange .ce-bodytext {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 40px max(24px, calc((100vw - 1300px) / 2));
}
#content .bildtextorange h2 { color: inherit; font-size: clamp(24px, 2.5vw, 36px); font-weight: 400; text-align: left; }
#content .bildtextorange a { color: inherit; text-decoration: none; }
#content .bildtextorange .ce-bodytext > :last-child { margin-bottom: 0; }
#content .bildtextorange .ce-gallery { grid-column: 2; grid-row: 1; position: relative; float: none; width: 100%; max-width: none; height: auto; margin: 0; overflow: hidden; }
#content .bildtextorange .ce-gallery :is(.ce-row, .ce-column, figure, figure > a) { display: block; position: absolute; inset: 0; float: none; width: 100%; height: 100%; margin: 0; }
#content .bildtextorange .image-embed-item { display: block; width: 100%; height: 100%; object-fit: contain; }
#content .bildtextorange figure > a:focus-visible { outline: 3px solid var(--gifr-white); outline-offset: -5px; }
@media (max-width: 700px) {
    #content .bildtextorange .ce-textpic { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    #content .bildtextorange .ce-bodytext { padding: 24px 20px; }
    #content .bildtextorange .ce-gallery { grid-column: 1; grid-row: 2; }
    #content .bildtextorange:not(.bildtextorange-links) .ce-textpic { height: auto; grid-template-rows: auto auto; }
    #content .bildtextorange:not(.bildtextorange-links) .ce-gallery {
        width: min(100%, 420px);
        aspect-ratio: 280 / 396;
        justify-self: center;
    }
}
/* Mirrored podcast variant: preserve the complete square artwork. */
#content .bildtextorange-links .ce-textpic { grid-template-columns: min(40%, 520px) minmax(0, 1fr); height: auto; min-height: clamp(280px, 40vw, 520px); }
#content .bildtextorange-links .ce-gallery { grid-column: 1; grid-row: 1; aspect-ratio: 1; }
#content .bildtextorange-links .ce-bodytext { grid-column: 2; grid-row: 1; }
@media (max-width: 800px) {
    #content .bildtextorange-links .ce-textpic { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; min-height: 0; }
    #content .bildtextorange-links .ce-gallery { grid-column: 1; grid-row: 1; width: min(100%, 420px); justify-self: center; }
    #content .bildtextorange-links .ce-bodytext { grid-column: 1; grid-row: 2; padding: 24px 20px; }
}
.mediaconsent.vimeo .blockedcontentbox, .mediaconsent.youtube .blockedcontentbox { height: auto !important; aspect-ratio: 16 / 9; }
/* Recruitment poster: complete artwork, full panel height on wide screens. */
#content .frame.bildtextdunkelgrau { clear: both; float: left; width: 100%; background: var(--gifr-gray-dark); color: var(--gifr-white); }
#content .bildtextdunkelgrau > .rahmen { max-width: none; margin: 0; padding: 0; }
#content .bildtextdunkelgrau .ce-textpic { display: grid; grid-template-columns: minmax(0, 1fr) min(44%, 520px); }
#content .bildtextdunkelgrau .ce-textpic::after { display: none; }
#content .bildtextdunkelgrau .ce-bodytext {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 40px max(24px, calc((100vw - 1300px) / 2));
}
#content .bildtextdunkelgrau :is(h2, h3, a) { color: inherit; text-align: left; }
#content .bildtextdunkelgrau h2 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 400; }
#content .bildtextdunkelgrau h3 { font-size: 22px; line-height: 1.4; }
#content .bildtextdunkelgrau .ce-bodytext > :last-child { margin-bottom: 0; }
#content .bildtextdunkelgrau .ce-gallery { grid-column: 2; grid-row: 1; position: relative; float: none; width: 100%; margin: 0; aspect-ratio: 560 / 791; overflow: hidden; }
#content .bildtextdunkelgrau .ce-gallery :is(.ce-row, .ce-column, figure, figure > a) { display: block; position: absolute; inset: 0; float: none; width: 100%; height: 100%; margin: 0; }
#content .bildtextdunkelgrau .image-embed-item { display: block; width: 100%; height: 100%; object-fit: contain; }
#content .bildtextdunkelgrau figure > a { cursor: pointer; }
#content .bildtextdunkelgrau figure > a:focus-visible { outline: 3px solid var(--gifr-white); outline-offset: -5px; }
@media (max-width: 1100px) {
    #content .bildtextdunkelgrau .ce-textpic { grid-template-columns: minmax(0, 1fr); }
    #content .bildtextdunkelgrau .ce-bodytext { padding: 24px 20px; }
    #content .bildtextdunkelgrau .ce-gallery { grid-column: 1; grid-row: 2; width: min(100%, 420px); justify-self: center; }
}
@media (max-width: 440px) {
    #content .bildtextorange:not(.bildtextorange-links) .ce-gallery,
    #content .bildtextorange-links .ce-gallery,
    #content .bildtextdunkelgrau .ce-gallery {
        width: 100%;
    }
}
.nachoben {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    bottom: var(--gifr-top-bottom, 100px);
    right: var(--gifr-top-right, 20px);
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: var(--gifr-white);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .2);
    transition: background-color .15s ease;
}
.nachoben::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 5px solid #D1801F;
    border-left: 5px solid #D1801F;
    transform: translate(-50%, -25%) rotate(45deg);
}
.nachoben:hover { background-color: var(--gifr-white); box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
.nachoben:focus-visible { outline: 3px solid var(--gifr-white); outline-offset: 3px; box-shadow: 0 0 0 7px var(--gifr-text); }
@media (max-width: 800px) {
    /* Replace legacy percentage insets after the content columns stack. */
    #content .tx_cn-columns .row > .col-50 > .frame {
        box-sizing: border-box;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #content :is(.grauerbg, .dunkelgrauerbg, .orangerbg, .col-50 > .frame) > .rahmen {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    #content .tx_cn-multicontent:is(.grauerbg, .dunkelgrauerbg, .orangerbg) {
        box-sizing: border-box;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
    #content .tx_cn-multicontent > header {
        box-sizing: border-box;
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        padding-left: 0;
        padding-right: 0;
    }
    #content .bildtextorange .ce-bodytext { padding-left: 20px; padding-right: 20px; }
    .nachoben { left: max(20px, env(safe-area-inset-left, 0px)); right: auto; bottom: var(--gifr-top-bottom, 20px); }
}
:root { --gifr-head-height: 150px; }
#content .frame[id] { scroll-margin-top: calc(var(--gifr-head-offset, var(--gifr-head-height)) + 24px); }
.leistungen #content .frame[id] { scroll-margin-top: calc(var(--gifr-head-offset, var(--gifr-head-height)) + var(--gifr-anchor-height, 100px) + 24px); }
#content.aerzte { margin-top: var(--gifr-head-height); }
@media (max-width: 1200px) {
    .mob_button { display: block; }
    #menue > ul.gifr-menu-open { display: block; }
    #menue li.ifsub.act ul.hnavisub { display: none !important; }
    #menue li.ifsub.submenu-open > ul.hnavisub { display: block !important; }
    #menue .submenu-toggle { display: block; margin: auto; padding: 5px 0; }
    :root { --gifr-head-height: 92px; }
    #head { box-sizing: border-box; position: fixed; inset: 0 0 auto; width: 100%; height: var(--gifr-head-height); padding: 12px 20px; margin-top: 0 !important; z-index: 1000; }
    html.gifr-menu-visible #head { z-index: 2147483100; }
    #quicklinks { display: none; }
    #menue { width: auto; float: none; }
    .mob_button { top: 21px; left: 20px; }
    #logo { position: absolute; top: 50%; right: 20px; float: none; width: clamp(140px, 28vw, 180px) !important; margin-top: 0 !important; transform: translateY(-50%); }
    #logo :is(.ce-gallery, .ce-column, figure) { width: 100%; margin: 0; }
    #logo .ce-gallery img { display: block; width: 100%; height: auto; }
    #menue > ul { box-sizing: border-box; top: 100%; padding: 8px 20px 16px; max-height: calc(100dvh - var(--gifr-head-height)); overflow-y: auto; overscroll-behavior: contain; }
    #menue > ul > li { box-sizing: border-box; }
    #menue ul li .hnavisub li { white-space: normal; }
    #header, #content.aerzte { margin-top: var(--gifr-head-height); }
    html.gifr-menu-visible { overflow: hidden; }
}
/* Physician biographies: compact portraits and a separate, readable timeline. */
#content.aerzte > .frame > .rahmen {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1300px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#content.aerzte > .frame > .rahmen > .ce-intext:has(> .ce-gallery[data-ce-images="1"]) {
    display: grid;
    grid-template-columns: clamp(200px, 26vw, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}
#content.aerzte > .frame > .rahmen > .ce-intext::after { display: none; }
#content.aerzte .ce-intext > .ce-gallery[data-ce-images="1"] { float: none; width: 100%; max-width: 320px; margin: 0; }
#content.aerzte .ce-intext > .ce-gallery :is(.ce-row, .ce-column, figure) { display: block; float: none; width: 100%; margin: 0; }
#content.aerzte .ce-intext > .ce-gallery :is(.ce-outer, .ce-inner) { position: static; float: none; width: 100%; }
#content.aerzte .ce-intext > .ce-gallery img { display: block; width: 100%; height: auto; }
#content.aerzte .ce-intext > .ce-bodytext { float: none; clear: none; min-width: 0; width: 100%; margin: 0; }
#content.aerzte > .frame > .rahmen .ce-bodytext > table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}
#content.aerzte > .frame > .rahmen .ce-bodytext > table td {
    box-sizing: border-box;
    float: none;
    clear: none;
    vertical-align: top;
    padding: 0 0 20px;
    overflow-wrap: anywhere;
}
#content.aerzte > .frame > .rahmen .ce-bodytext > table td:first-child { width: 9em; padding-right: 24px; }
#content.aerzte > .frame > .rahmen .ce-bodytext > table td p { margin: 0 0 12px; }
#content.aerzte > .frame > .rahmen .ce-bodytext > table td > :last-child { margin-bottom: 0; }
@media (max-width: 800px) {
    #content.aerzte > .frame > .rahmen > .ce-intext:has(> .ce-gallery[data-ce-images="1"]) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    #content.aerzte .ce-intext > .ce-gallery[data-ce-images="1"] { width: min(100%, 280px); max-width: 100%; justify-self: start; }
    #content.aerzte > .frame > .rahmen .ce-bodytext > table,
    #content.aerzte > .frame > .rahmen .ce-bodytext > table > tbody { display: block; }
    #content.aerzte > .frame > .rahmen .ce-bodytext > table tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-bottom: 24px; }
    #content.aerzte > .frame > .rahmen .ce-bodytext > table td { display: block; width: 100%; padding: 0; }
    #content.aerzte > .frame > .rahmen .ce-bodytext > table td:first-child { width: 100%; padding-right: 0; }
}
/* The section menu follows the header photograph and wraps without overlap. */
.leistungen #header ul,
.leistungen #header ul.fixed { box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; width: 100%; margin: 0; padding: 20px; left: 0; bottom: auto; }
.leistungen #header ul { position: static; }
.leistungen #header .ce-bodytext { min-height: var(--gifr-anchor-height, 100px); }
.leistungen #header ul.fixed { position: fixed; top: var(--gifr-head-offset, var(--gifr-head-height)); z-index: 9; }
.leistungen #header ul li,
.leistungen #header ul li:is(:first-child, :last-child, :hover) { box-sizing: border-box; display: flex; float: none; width: auto; min-width: 0; margin: 0; padding: 0; font-size: 14px; }
.leistungen #header ul li a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 52px; padding: 10px 12px; overflow-wrap: anywhere; text-decoration: none; }
@media (max-width: 800px) {
    .leistungen #content .frame[id] { scroll-margin-top: calc(var(--gifr-head-offset, var(--gifr-head-height)) + 24px); }
}
/* Fixed cover backgrounds are unreliable in WebKit; keep their reserved height. */
@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
    .fixedheader, .bgbild { background-attachment: scroll !important; background-size: cover; background-repeat: no-repeat; background-position: center; }
}
@supports (-webkit-touch-callout: none) {
    .fixedheader, .bgbild { background-attachment: scroll !important; background-size: cover; background-repeat: no-repeat; background-position: center; }
}
@media (max-width: 359px) {
    /* The legacy footer list is 300px plus 40px padding; fit narrow phones. */
    #footer .dunkelgrauerbg ul { max-width: 100%; box-sizing: border-box; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
