/* Shared by the public workplace and its employee services. */
.ip-page.ip-shared-workspace {
    min-height: 100dvh;
    box-sizing: border-box;
    --ip-head-space: 160px;
    --ip-foot-space: 54px;
}

.ip-shared-workspace:has(> .ip-footer) {
    padding-block-end: calc(var(--ip-foot-space) + var(--ip-keyboard-inset, 0px) + 12px);
}
.ip-shared-workspace > .ip-workspace-head {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    overflow-anchor: none;
    background: var(--ip-surface);
}
.ip-shared-workspace .ip-workspace-head :is(.ip-topbar, .ip-home-appbar) { position: static; }
.ip-shared-workspace .ip-home-app-icon [hidden] { display: none; }
.ip-shared-workspace .ip-home-app-icon:has(img:not([hidden])) {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 9%);
}
.ip-shared-workspace .ip-home-app-icon img:not([hidden]) {
    width: 82%;
    height: 82%;
    object-fit: contain;
}
/* Keep the expanded header's place without adding height to the page. The
   following section clears the zero-width start marker in the same layout
   pass in which the sticky header shrinks or grows. */
.ip-shared-workspace > #start:empty {
    float: left; width: 0; height: var(--ip-expanded-head, 0px); pointer-events: none;
}
.ip-shared-workspace > .ip-workspace-head + .ip-mega-disclosure { clear: both; }
.ip-shared-workspace[data-ip-compact] > .ip-workspace-head {
    box-shadow: 0 3px 8px rgb(0 0 0 / 8%);
}
.ip-shared-workspace[data-ip-compact] .ip-topbar-inner { min-height: 52px; }
@media (min-width: 1001px) {
    .ip-shared-workspace[data-ip-compact] .ip-home-appbar { padding-block: 5px; }
    .ip-shared-workspace[data-ip-compact] .ip-home-app-links :is(a,button) { min-height: 48px; }
    .ip-shared-workspace[data-ip-compact] .ip-home-app-icon { width: 29px; height: 29px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
    .ip-shared-workspace[data-ip-compact] .ip-home-appbar { padding-block: 3px; }
    .ip-shared-workspace[data-ip-compact] .ip-home-app-links :is(a,button) { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ip-shared-workspace .ip-topbar-inner { transition: min-height .16s ease-out; }
    .ip-shared-workspace .ip-home-appbar { transition: padding-block .16s ease-out; }
    .ip-shared-workspace .ip-home-app-links :is(a,button) { transition: min-height .16s ease-out, background-color .14s, border-color .14s; }
    .ip-shared-workspace .ip-home-app-icon { transition: width .16s ease-out, height .16s ease-out; }
}
.ip-shared-workspace :where(main,section,details,article,nav)[id],
.ip-shared-workspace #aktuelles, .ip-shared-workspace #anwendungen, .ip-shared-workspace #start {
    scroll-margin-block-start: calc(var(--ip-head-space) + 8px);
}
.ip-shared-workspace :is(main, .ip-mega-disclosure) :is(a,button,input,textarea,select,summary,[tabindex]) {
    scroll-margin-block: calc(var(--ip-head-space) + 8px) calc(var(--ip-foot-space) + 8px);
}

.ip-shared-workspace > .ip-footer.ip-shell {
    position: fixed;
    inset: auto 0 var(--ip-keyboard-inset, 0px);
    z-index: 35;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 2px max(4%, calc((100% - 2360px) / 2), env(safe-area-inset-right)) max(2px, env(safe-area-inset-bottom)) max(4%, calc((100% - 2360px) / 2), env(safe-area-inset-left));
    border-top: 1px solid var(--ip-line);
    background: var(--ip-surface);
    color: var(--ip-text);
    overflow-anchor: none;
}
.ip-shared-workspace .ip-footer-identity { flex: 1 1 auto; min-width: 0; }
.ip-shared-workspace .ip-footer-links {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center;
    flex: 0 0 auto; padding: 3px;
}
.ip-shared-workspace .ip-footer-links > :is(a,button) {
    flex: 0 0 auto; min-height: 44px; white-space: nowrap;
}
.ip-shared-workspace .ip-footer-links > :focus-visible { outline-offset: -2px; }

/* The generic menu stylesheet also defines a fixed four-column desktop grid. */
.ip-shared-workspace .ip-mega-disclosure .ip-mega-grid {
    grid-template-columns: repeat(var(--ip-menu-columns, 4), minmax(0, 1fr));
}
@media (min-width: 1200px) {
    .ip-shared-workspace .ip-mega-grid:has(> :nth-child(5)) { --ip-menu-columns: 5; }
}
@media (max-width: 1199px) {
    .ip-shared-workspace .ip-mega-grid { --ip-menu-columns: 3; }
}
@media (max-width: 700px) {
    .ip-shared-workspace .ip-mega-grid { --ip-menu-columns: 2; }
    .ip-shared-workspace > .ip-footer.ip-shell { gap: 8px; padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
    .ip-shared-workspace .ip-footer-identity strong { display: block; overflow-wrap: anywhere; }
    .ip-shared-workspace .ip-footer-identity small { white-space: nowrap; font-size: 10px; }
    .ip-shared-workspace[data-ip-compact] .ip-topbar-inner { min-height: 48px; }
    .ip-shared-workspace[data-ip-compact] .ip-home-appbar { padding-block: 3px; }
}
@media (max-width: 420px) {
    .ip-shared-workspace .ip-mega-grid { --ip-menu-columns: 1; }
}

/* Preserve room to read or type with the software keyboard or in landscape. */
.ip-shared-workspace[data-ip-short-view] > .ip-workspace-head {
    max-height: var(--ip-short-head-limit, 32dvh);
    overflow-y: auto;
    scrollbar-width: thin;
}
@media (max-height: 460px) {
    .ip-shared-workspace > .ip-workspace-head {
        max-height: 32dvh; overflow-y: auto; scrollbar-width: thin;
    }
}

.ip-shared-workspace.ip-service-page .ip-service-content {
    --im-bg: var(--ip-bg);
    --im-surface: var(--ip-surface);
    --im-soft: var(--ip-surface-alt);
    --im-text: var(--ip-text);
    --im-muted: var(--ip-muted);
    --im-line: var(--ip-line);
    --im-accent: var(--ip-accent);
    --im-primary: var(--ip-on-action);
    --im-success: #18643c;
    --im-danger: #a12936;
    min-width: 0; background: var(--im-bg); color: var(--im-text);
    font: inherit; color-scheme: inherit;
}
.ip-shared-workspace.ip-service-page.is-dark .ip-service-content {
    --im-success: #99dfb2;
    --im-danger: #ffadb6;
}
.ip-service-page .ip-service-content .im-shell {
    max-width: 100%;
    padding-block: clamp(23px, 3vw, 48px) 24px;
}
.ip-service-page .ip-service-content .im-unavailable { min-height: min(38dvh, 310px); }
.ip-service-page .ip-service-content .im-card {
    border-radius: 14px; box-shadow: 0 3px 16px rgb(0 0 0 / 5%);
}
.ip-service-page .ip-service-content :is(.im-hero h1, .im-directory-head h1) {
    font-size: clamp(34px, 4vw, 59px); line-height: 1.06; letter-spacing: -.045em;
}
.ip-service-page .ip-service-content :is(.im-kicker, .im-contact-table a, .im-department-head a, .im-contact-card a) { color: var(--ip-link); }
.ip-service-page .ip-service-content :is(.im-contact-table, .im-contact-card) a {
    text-decoration: underline; text-underline-offset: 2px;
}
.ip-service-page .ip-service-content :is(.im-contact-table td, .im-department-head a, .im-contact-card a, .im-business-contact a) {
    font-size: 12px; line-height: 1.45;
}
.ip-service-page .ip-service-content .im-unavailable .im-back {
    display: inline-flex; align-items: center; min-height: 44px;
}
.ip-service-page .ip-service-content .im-field > span { font-size: 13px; }
.ip-service-page .ip-service-content :is(input, textarea, button, select) { font-family: inherit; }
.ip-service-page .ip-service-content :is(input, textarea, select) { accent-color: var(--ip-link); }
.ip-service-page .ip-service-content :is(input, textarea)::placeholder { color: var(--ip-muted); }
.ip-service-page .ip-service-content :is(a,button,input,textarea,select,summary):focus-visible {
    outline: 2px solid var(--ip-link); outline-offset: 2px;
}
.ip-service-page .ip-service-content .im-searchbar:focus-within {
    outline: 2px solid var(--ip-link); outline-offset: 2px;
}
@media (max-width: 700px) {
    .ip-service-page .ip-service-content :is(input:not([type=checkbox]),textarea,select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.ip-shared-workspace) { scroll-behavior: auto; }
    .ip-shared-workspace :is(.ip-home-appbar, .ip-workspace-head, .ip-home-app-icon) { transition: none; }
}
@media print {
    .ip-shared-workspace > #start:empty { float: none; height: 0; }
    .ip-page.ip-shared-workspace { min-height: 0; }
    .ip-shared-workspace:has(> .ip-footer) { padding-block-end: 0; }
    .ip-shared-workspace.ip-page > .ip-workspace-head, .ip-shared-workspace > .ip-footer.ip-shell {
        position: static; overflow: visible; max-height: none; margin: 0; box-shadow: none;
    }
    .ip-shared-workspace :is(.ip-home-appbar, .ip-account-tools, .ip-footer-links, .ip-skip) { display: none; }
}

.ip-shared-workspace .ip-menu-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 44px;
    max-width: 100%;
    margin-block-start: 8px;
    padding: 8px 14px;
    border: 1px solid var(--ip-line);
    border-radius: 8px;
    background: var(--ip-surface);
    color: var(--ip-text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.ip-shared-workspace .ip-menu-more::after {
    content: "";
    width: .42em;
    height: .42em;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-.12em) rotate(45deg);
}
.ip-shared-workspace .ip-menu-more[aria-expanded="true"]::after { transform: translateY(.12em) rotate(225deg); }
.ip-shared-workspace .ip-menu-more:is(:hover,:focus-visible) { border-color: currentColor; }
