/*
 * Institut Jäger inner-page design system
 * Extends the visual language of index.html. Selectors are scoped to body.inner-page,
 * so the stylesheet can also be preloaded by index.html for seamless category morphs.
 */

/*
 * The legacy global stylesheet locks both html and body to overflow:hidden.
 * index.html marks its root with .home-root; once a category is revealed that class
 * is removed and normal document scrolling is restored.
 */
html:not(.home-root) {
    min-height: 100%;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.inner-page {
    --page-hero: url('/assets/img/background.webp');
    --surface: rgba(10, 10, 10, 0.78);
    --surface-strong: rgba(8, 8, 8, 0.92);
    --surface-hover: rgba(255, 255, 255, 0.13);
    --line: rgba(255, 255, 255, 0.18);
    --line-strong: rgba(255, 255, 255, 0.34);
    --muted: rgba(255, 255, 255, 0.70);
    --page-width: 1180px;

    min-height: 100vh;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #000 !important;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    backdrop-filter: none;
}

body.inner-page.category-kosmetik {
    --page-hero: url('/assets/img/hot-stone-massage-1.jpeg');
}

body.inner-page.category-natur {
    --page-hero: url('/assets/img/microneedling-1.jpg');
}

body.inner-page.category-offers {
    --page-hero: url('/assets/img/kraeuterstempel-massage-1.jpeg');
}

body.inner-page.category-contact,
body.inner-page.legal-page {
    --page-hero: url('/assets/img/hero-bg-4-k-2.jpg');
}

body.inner-page.error-page {
    --page-hero: url('/assets/img/background.webp');
}

/* Keep the header visually identical to the homepage while tightening stacking. */
body.inner-page header {
    flex: 0 0 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.inner-page #loading-screen {
    background: #000;
}

body.inner-page #wrapper-container {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 0 24px 72px;
    overflow: hidden;
    background: #000 !important;
    box-shadow: inset 0 14px 15px -12px #000;
    backdrop-filter: none !important;
}

body.inner-page #wrapper-container::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0 0 auto;
    height: min(520px, 56vh);
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 52%, #000 100%),
        var(--page-hero);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.015);
}

body.inner-page #wrapper-container::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.10), transparent 25%, transparent 75%, rgba(0,0,0,.10));
}

body.inner-page .cards-container,
body.inner-page .intro-container {
    width: min(100%, var(--page-width));
    margin: 0 auto;
}

body.inner-page .cards-container.contact {
    display: block;
    width: min(100%, var(--page-width));
}

/* Page hero */
body.inner-page .cards-container > .intro-content:first-child,
body.inner-page .error-page .intro-content:first-child {
    min-height: 300px;
    margin: 0;
    padding: 70px 16px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.inner-page .cards-container > .intro-content:first-child::before,
body.inner-page .imprint > h1::before {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

body.inner-page.category-kosmetik .cards-container > .intro-content:first-child::before {
    content: 'Kosmetik & Medical Kosmetik';
}

body.inner-page.category-natur .cards-container > .intro-content:first-child::before {
    content: 'Naturheilkunde';
}

body.inner-page.category-offers .cards-container > .intro-content:first-child::before {
    content: 'Institut Jäger';
}

body.inner-page.category-contact .cards-container > .intro-content:first-child::before,
body.inner-page.legal-page .imprint > h1::before {
    content: 'Institut Jäger · Darmstadt';
}

body.inner-page.error-page .cards-container > .intro-content:first-child::before {
    content: 'Institut Jäger';
}

body.inner-page .intro-content h1,
body.inner-page .imprint > h1 {
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

body.inner-page.detail-page .intro-content h1 {
    max-width: 920px;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
}

/* Overview navigation cards */
body.inner-page.overview-page .content-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: -12px auto 36px;
    padding: 0;
}

body.inner-page.overview-page .menu-card {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.64);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.inner-page.overview-page .menu-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(20, 20, 20, 0.82);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

body.inner-page.overview-page .menu-card:active {
    transform: translateY(-1px);
}

body.inner-page.overview-page .menu-card.is-selected {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.14);
}

body.inner-page.overview-page .menu-card .card-footer {
    min-height: 68px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.inner-page.overview-page .menu-link {
    width: 100%;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

body.inner-page.overview-page .menu-link::after {
    content: '  →';
    color: rgba(255, 255, 255, 0.60);
}

/* Tables use the same black/translucent overlay language as the homepage CTAs. */
body.inner-page #tables {
    width: min(100%, 1040px);
    margin: 0 auto;
}

body.inner-page table {
    width: 100%;
    margin: 0 auto 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    color: #fff;
}

body.inner-page th,
body.inner-page td {
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.45;
}

body.inner-page th {
    background: rgba(255, 255, 255, 0.07);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body.inner-page tr:last-child td {
    border-bottom: 0;
}

body.inner-page tr:hover,
body.inner-page .table-link:hover {
    background: rgba(255, 255, 255, 0.075) !important;
}

body.inner-page td:last-child {
    font-weight: 600;
    white-space: nowrap;
}

body.inner-page .table-hide {
    display: none;
}

body.inner-page .table-show {
    display: table;
    animation: innerTableIn .22s ease-out;
}

@keyframes innerTableIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Treatment detail pages */
body.inner-page.detail-page .cards-container > .mx-auto {
    width: min(100%, 1040px);
    justify-content: flex-start;
    margin: -18px auto 18px;
}

body.inner-page.detail-page .menu-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.inner-page.detail-page .menu-card:hover {
    transform: none;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: none;
}

body.inner-page .menu-link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

body.inner-page.detail-page .menu-card .card-footer {
    padding: 8px 14px;
}

body.inner-page.detail-page .content-text {
    width: min(100%, 1040px);
    margin: 0 auto 12px;
    padding: clamp(24px, 4vw, 42px);
    display: flex;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.inner-page.detail-page .content-left {
    width: 62%;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.8;
}

body.inner-page.detail-page .content-left p + p {
    margin-top: 1em;
}

body.inner-page.detail-page .content-right {
    width: 38%;
    align-self: flex-start;
}

body.inner-page.detail-page .content-right:empty {
    display: none;
}

body.inner-page.detail-page .content-text:has(.content-right:empty) .content-left {
    width: 100%;
}

body.inner-page.detail-page .content-right img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

body.inner-page.detail-page .content-left table {
    margin-top: 26px;
    margin-bottom: 0;
    box-shadow: none;
}

/* Contact */
body.inner-page.contact-page .cards-container > .intro-content:nth-child(2) {
    width: min(100%, 760px);
    margin: -12px auto 24px;
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.inner-page.contact-page .cards-container > .intro-content:nth-child(2) p {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.65;
}

body.inner-page.contact-page .cards-container > .intro-content:nth-child(2) p:first-child {
    margin-bottom: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

body.inner-page.contact-page .cards-container > .intro-content:nth-child(2) a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.28);
    text-underline-offset: 4px;
}

body.inner-page.contact-page .cards-container > .intro-content:nth-child(3) {
    width: min(100%, 980px);
    margin: 0 auto;
}

body.inner-page.contact-page .contact-iframe {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

body.inner-page.contact-page iframe {
    display: block;
    width: 100% !important;
    max-width: none;
    height: 460px;
    border: 0 !important;
}

/* Monthly offers */
body.inner-page.offers-page .img-description {
    width: min(100%, 760px);
    margin: -12px auto 40px;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.inner-page.offers-page #myImage {
    width: min(100%, 720px);
    margin: -12px auto 24px;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

/* Legal */
body.inner-page.legal-page .intro-container {
    padding-top: 86px;
}

body.inner-page.legal-page .imprint {
    width: min(100%, 920px);
    height: auto;
    min-height: 640px;
    margin: 0 auto;
    padding: 56px clamp(24px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.70);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.inner-page.legal-page .imprint > h1 {
    margin-bottom: 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(2.4rem, 5vw, 4rem);
}

body.inner-page.legal-page .imprint h2,
body.inner-page.legal-page .imprint h3,
body.inner-page.legal-page .imprint strong {
    color: #fff;
}

body.inner-page.legal-page .imprint a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.30);
    text-underline-offset: 3px;
}

/* 404/500 */
body.inner-page.error-page .cards-container {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.inner-page.error-page .cards-container > .intro-content:first-child {
    max-width: 900px;
    min-height: 520px;
}

body.inner-page.error-page .fs5 {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(3rem, 8vw, 6rem);
}

body.inner-page.error-page .errBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: #000;
    box-shadow: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: padding .12s ease, background-color .18s ease;
}

body.inner-page.error-page .errBtn:hover {
    padding: 14px 22px;
    background: rgba(0, 0, 0, 0.58);
    box-shadow: none;
}

/* Footer is allowed to flow after long pages instead of covering content. */
body.inner-page .footer {
    position: relative;
    z-index: 20;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.inner-page .footer-container {
    width: min(100% - 36px, 1180px);
}

body.inner-page .footer-column {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.6;
}

body.inner-page .footer-column a {
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1100px) {
    body.inner-page.overview-page .content-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.inner-page #wrapper-container {
        padding-inline: 16px;
        padding-bottom: 48px;
    }

    body.inner-page #wrapper-container::before {
        height: 410px;
    }

    body.inner-page .cards-container > .intro-content:first-child {
        min-height: 245px;
        padding-top: 52px;
    }

    body.inner-page.overview-page .content-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 0;
    }

    body.inner-page.overview-page .menu-card {
        width: 100%;
        margin: 0;
    }

    body.inner-page.overview-page .menu-link {
        font-size: 0.78rem;
    }

    body.inner-page table {
        width: 100%;
        margin-left: 0;
        font-size: inherit;
    }

    body.inner-page th,
    body.inner-page td {
        padding: 12px 11px;
        font-size: 0.80rem;
    }

    body.inner-page tr td:nth-child(2) {
        font-size: 0.74rem;
    }

    body.inner-page.detail-page .cards-container > .mx-auto {
        width: 100%;
        margin-top: 0;
    }

    body.inner-page.detail-page .content-text {
        width: 100%;
        flex-direction: column;
        padding: 24px 20px;
        border-radius: 20px;
    }

    body.inner-page.detail-page .content-left,
    body.inner-page.detail-page .content-right {
        width: 100%;
    }

    body.inner-page.contact-page iframe {
        height: 390px;
    }

    body.inner-page.legal-page .intro-container {
        padding-top: 54px;
    }

    body.inner-page.legal-page .imprint {
        width: 100%;
        padding: 34px 22px;
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    body.inner-page #wrapper-container {
        padding-inline: 12px;
    }

    body.inner-page .cards-container > .intro-content:first-child {
        min-height: 225px;
        padding-inline: 4px;
    }

    body.inner-page .intro-content h1,
    body.inner-page .imprint > h1 {
        letter-spacing: -0.035em;
    }

    body.inner-page.overview-page .content-cards {
        grid-template-columns: 1fr 1fr;
    }

    body.inner-page.overview-page .menu-card .card-footer {
        min-height: 62px;
        padding-inline: 9px;
    }

    body.inner-page th,
    body.inner-page td {
        padding: 10px 8px;
        font-size: 0.73rem;
    }

    body.inner-page tr td:nth-child(2) {
        font-size: 0.68rem;
    }

    body.inner-page.detail-page .content-left {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    body.inner-page.contact-page .cards-container > .intro-content:nth-child(2),
    body.inner-page.offers-page .img-description {
        padding: 22px 18px;
    }

    body.inner-page.contact-page iframe {
        height: 330px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.inner-page *,
    body.inner-page *::before,
    body.inner-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Premium category browser
   The original menu-card/table markup remains in the HTML as a no-JS fallback.
   script.js progressively enhances it into this quieter editorial layout.
   -------------------------------------------------------------------------- */
body.inner-page.overview-page .cards-container > .intro-content:first-child {
    position: relative;
}

body.inner-page .category-back-home {
    position: absolute;
    z-index: 3;
    top: 28px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.42);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
}

body.inner-page .category-back-home i {
    font-size: 1rem;
}

body.inner-page .category-back-home:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(20, 20, 20, 0.72);
    transform: translateX(-2px);
}

body.inner-page .service-browser {
    width: min(100%, 1080px);
    margin: -8px auto 30px;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
}

body.inner-page .service-browser-nav {
    position: sticky;
    top: 22px;
    min-width: 0;
    padding: 8px 0 10px;
}

body.inner-page .service-browser-nav-label,
body.inner-page .service-browser-eyebrow {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

body.inner-page .service-browser-nav-items {
    display: flex;
    flex-direction: column;
}

body.inner-page .service-browser-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 44px;
    padding: 10px 3px 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

body.inner-page .service-browser-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    border-radius: 999px;
    background: #fff;
    transform: translateY(-50%);
    transition: height .22s ease, opacity .22s ease;
    opacity: 0;
}

body.inner-page .service-browser-tab:hover {
    color: rgba(255, 255, 255, 0.90);
    padding-left: 21px;
}

body.inner-page .service-browser-tab.is-active {
    color: #fff;
    padding-left: 21px;
}

body.inner-page .service-browser-tab.is-active::before {
    height: 20px;
    opacity: 1;
}

body.inner-page .service-browser-tab-count {
    flex: 0 0 auto;
    min-width: 20px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

body.inner-page .service-browser-panel {
    min-width: 0;
    padding: clamp(24px, 3.2vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.84), rgba(7, 7, 7, 0.90));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.inner-page .service-browser-section[hidden] {
    display: none !important;
}

body.inner-page .service-browser-section:not([hidden]) {
    animation: serviceSectionIn .28s cubic-bezier(.22,.75,.3,1);
}

body.inner-page .service-browser-section-header {
    padding: 2px 2px clamp(20px, 3vw, 30px);
}

body.inner-page .service-browser-section-header h2 {
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

body.inner-page .service-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

body.inner-page .service-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    min-height: 78px;
    padding: 17px 4px 17px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    text-decoration: none;
    transition: padding .24s ease, background-color .24s ease;
}

body.inner-page .service-item::before {
    content: '';
    position: absolute;
    inset: 7px -14px;
    z-index: -1;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0);
    transition: background-color .24s ease;
}

body.inner-page .service-item:hover {
    padding-left: 8px;
    padding-right: 8px;
}

body.inner-page .service-item:hover::before {
    background: rgba(255, 255, 255, 0.055);
}

body.inner-page .service-item-copy,
body.inner-page .service-item-trailing {
    display: flex;
    align-items: center;
    min-width: 0;
}

body.inner-page .service-item-copy {
    gap: 16px;
}

body.inner-page .service-item-name {
    min-width: 0;
    color: rgba(255, 255, 255, 0.94);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.98rem, 1.7vw, 1.12rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

body.inner-page .service-item-meta {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.76rem;
    line-height: 1.35;
}

body.inner-page .service-item-trailing {
    gap: 15px;
    justify-content: flex-end;
}

body.inner-page .service-item-price {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.inner-page .service-item-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    transition: color .22s ease, border-color .22s ease, transform .22s ease, background-color .22s ease;
}

body.inner-page .service-item:hover .service-item-arrow {
    color: #000;
    border-color: #fff;
    background: #fff;
    transform: translateX(3px);
}

body.inner-page .service-list-empty {
    margin: 0;
    padding: 24px 2px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.9rem;
}

body.inner-page.offers-page .img-description {
    width: min(100%, 760px);
    min-height: 170px;
    margin: -8px auto 32px;
    padding: 42px clamp(24px, 5vw, 58px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.80), rgba(7, 7, 7, 0.88));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.94rem, 1.8vw, 1.08rem);
    line-height: 1.7;
    text-align: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@keyframes serviceSectionIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
    body.inner-page .category-back-home {
        top: 20px;
        left: 2px;
    }

    body.inner-page .service-browser {
        width: 100%;
        margin-top: 0;
        display: block;
    }

    body.inner-page .service-browser-nav {
        position: relative;
        top: auto;
        margin: 0 0 17px;
        padding: 0;
    }

    body.inner-page .service-browser-nav-label {
        margin: 0 0 10px 2px;
    }

    body.inner-page .service-browser-nav-items {
        margin: 0 -16px;
        padding: 0 16px 7px;
        flex-direction: row;
        gap: 22px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.inner-page .service-browser-nav-items::-webkit-scrollbar {
        display: none;
    }

    body.inner-page .service-browser-tab {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 7px 0 10px;
        border-bottom-color: transparent;
        white-space: nowrap;
    }

    body.inner-page .service-browser-tab::before {
        inset: auto 0 0;
        width: auto;
        height: 2px;
        transform: none;
        border-radius: 2px;
    }

    body.inner-page .service-browser-tab:hover,
    body.inner-page .service-browser-tab.is-active {
        padding-left: 0;
    }

    body.inner-page .service-browser-tab.is-active::before {
        height: 2px;
    }

    body.inner-page .service-browser-tab-count {
        display: none;
    }

    body.inner-page .service-browser-panel {
        padding: 24px 20px;
        border-radius: 22px;
    }

    body.inner-page .service-item {
        gap: 16px;
    }

    body.inner-page .service-item-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 520px) {
    body.inner-page .category-back-home {
        left: 0;
        padding-right: 11px;
    }

    body.inner-page .service-browser-nav-items {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    body.inner-page .service-browser-panel {
        padding: 22px 16px;
        border-radius: 19px;
    }

    body.inner-page .service-browser-section-header {
        padding-bottom: 17px;
    }

    body.inner-page .service-item {
        min-height: 72px;
        padding-block: 15px;
    }

    body.inner-page .service-item-trailing {
        gap: 9px;
    }

    body.inner-page .service-item-price {
        font-size: 0.80rem;
    }

    body.inner-page .service-item-arrow {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
}

body.inner-page.overview-page .content-cards[hidden],
body.inner-page.overview-page #tables[hidden] {
    display: none !important;
}

/* ==========================================================================\n   Refinement pass: connected category navigation + editorial treatment pages\n   ========================================================================== */

/* The category navigation is one connected rail: home/back context, label, tabs. */
body.inner-page.overview-page .cards-container > .intro-content:first-child .category-back-home {
    display: none;
}

body.inner-page.overview-page .service-browser-nav {
    position: sticky;
    top: 22px;
    padding: 0;
}

body.inner-page.overview-page .service-browser-nav-head {
    margin: 0 0 12px;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

body.inner-page.overview-page .service-browser-nav-head .category-back-home {
    position: static !important;
    display: flex !important;
    width: 100%;
    min-height: 44px;
    margin: 0 0 22px;
    padding: 10px 3px 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.inner-page.overview-page .service-browser-nav-head .category-back-home:hover {
    color: #fff;
    background: transparent;
    border-color: transparent;
    transform: translateX(-3px);
}

body.inner-page.overview-page .service-browser-nav-head .category-back-home i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    margin-right: 2px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    transition: border-color .2s ease, background-color .2s ease;
}

body.inner-page.overview-page .service-browser-nav-head .category-back-home:hover i {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.055);
}

body.inner-page.overview-page .service-browser-nav-label {
    margin: 0;
    padding: 0 3px;
    color: rgba(255, 255, 255, 0.42);
}

body.inner-page.overview-page .service-browser-nav-items {
    padding-top: 2px;
}

/* Treatment details now use the same editorial rail + panel composition as categories. */
body.inner-page.detail-page .cards-container.contact {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
    width: min(100%, 1080px);
}

body.inner-page.detail-page .cards-container > .intro-content:first-child {
    grid-column: 1 / -1;
    width: calc(100vw - 48px);
    max-width: var(--page-width);
    justify-self: center;
}

body.inner-page.detail-page .cards-container > .mx-auto {
    position: sticky;
    top: 22px;
    grid-column: 1;
    width: 100%;
    margin: 0;
    padding: 0 0 18px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

body.inner-page.detail-page .cards-container > .mx-auto::before {
    content: 'Behandlung';
    display: block;
    margin: 0 0 13px;
    padding: 0 3px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

body.inner-page.detail-page .menu-card,
body.inner-page.detail-page .menu-card:hover {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

body.inner-page.detail-page .menu-card .card-footer {
    padding: 0;
}

body.inner-page.detail-page .menu-link-back {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 3px 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color .2s ease, padding-left .2s ease;
}

body.inner-page.detail-page .menu-link-back::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-50%);
}

body.inner-page.detail-page .menu-link-back:hover {
    color: #fff;
    padding-left: 21px;
}

body.inner-page.detail-page .menu-link-back i {
    order: -1;
    margin-left: auto;
    font-size: 1rem;
    transform: rotate(180deg);
    opacity: .55;
}

body.inner-page.detail-page .content-text {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin: 0 0 30px;
    padding: clamp(28px, 4vw, 44px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.84), rgba(7, 7, 7, 0.90));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.inner-page.detail-page .content-text:has(.content-right img) {
    grid-template-columns: minmax(0, 1.18fr) minmax(230px, .72fr);
    align-items: start;
}

body.inner-page.detail-page .content-left,
body.inner-page.detail-page .content-right,
body.inner-page.detail-page .content-text:has(.content-right:empty) .content-left {
    width: 100%;
    min-width: 0;
}

body.inner-page.detail-page .content-left {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
    line-height: 1.82;
}

body.inner-page.detail-page .content-left > p:first-child:not(:empty) {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.94);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.08rem, 1.9vw, 1.27rem);
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: -0.015em;
}

body.inner-page.detail-page .content-left p + p {
    margin-top: 1.15em;
}

body.inner-page.detail-page .content-left b,
body.inner-page.detail-page .content-left strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

body.inner-page.detail-page .content-right {
    align-self: start;
}

body.inner-page.detail-page .content-right:empty {
    display: none;
}

body.inner-page.detail-page .content-right img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

body.inner-page.detail-page .content-left table {
    width: 100%;
    margin: 34px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-collapse: collapse;
    background: transparent !important;
    box-shadow: none;
    color: inherit;
}


body.inner-page.detail-page .content-left table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: transparent !important;
}

body.inner-page.detail-page .content-left table td,
body.inner-page.detail-page .content-left table th {
    padding: 15px 12px;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: right;
    vertical-align: middle;
}

body.inner-page.detail-page .content-left table td:first-child,
body.inner-page.detail-page .content-left table th:first-child {
    padding-left: 2px;
    color: rgba(255, 255, 255, 0.90);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
}

body.inner-page.detail-page .content-left table td:last-child,
body.inner-page.detail-page .content-left table th:last-child {
    padding-right: 2px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    white-space: nowrap;
}

/* Match the inner-page footer typography/width on the homepage without changing its layout. */
html.home-root body.home-page .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.home-root body.home-page .footer-container {
    width: min(100% - 36px, 1180px);
}

html.home-root body.home-page .footer-column {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.6;
}

html.home-root body.home-page .footer-column a {
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 820px) {
    body.inner-page.overview-page .service-browser-nav-head {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 16px;
        padding-bottom: 13px;
    }

    body.inner-page.overview-page .service-browser-nav-head .category-back-home {
        width: auto;
        min-height: 38px;
        margin: 0;
        padding: 5px 0;
    }

    body.inner-page.overview-page .service-browser-nav-label {
        margin: 0;
        text-align: right;
    }

    body.inner-page.detail-page .cards-container.contact {
        display: block;
        width: 100%;
    }

    body.inner-page.detail-page .cards-container > .intro-content:first-child {
        width: 100%;
    }

    body.inner-page.detail-page .cards-container > .mx-auto {
        position: static;
        width: 100%;
        margin: -4px 0 18px;
        padding-bottom: 14px;
    }

    body.inner-page.detail-page .content-text,
    body.inner-page.detail-page .content-text:has(.content-right img) {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 24px 20px;
        border-radius: 22px;
    }

    body.inner-page.detail-page .content-left table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.inner-page.detail-page .content-left table tbody {
        min-width: 460px;
    }
}

body.inner-page.detail-page .content-left .treatment-price-caption {
    padding: 0 2px 12px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.69rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.17em;
    text-align: left;
    text-transform: uppercase;
    caption-side: top;
}

body.inner-page.detail-page .content-right:not(:has(img)) {
    display: none;
}

body.inner-page.detail-page .content-left > .treatment-lead {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.94);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.08rem, 1.9vw, 1.27rem);
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: -0.015em;
}

body.inner-page.detail-page {
    scroll-snap-type: none !important;
}

/* Mobile containment fix for the Behandlungsbereiche selector. */
@media (max-width: 820px) {
    body.inner-page.overview-page .service-browser,
    body.inner-page.overview-page .service-browser-nav,
    body.inner-page.overview-page .service-browser-nav-head,
    body.inner-page.overview-page .service-browser-nav-items {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.inner-page.overview-page .service-browser-nav {
        width: 100%;
        overflow: hidden;
    }

    body.inner-page.overview-page .service-browser-nav-items {
        width: 100%;
        margin-inline: 0;
        padding: 0 18px 8px 2px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        touch-action: pan-x;
    }
}

@media (max-width: 520px) {
    body.inner-page.overview-page .service-browser-nav-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.inner-page.overview-page .service-browser-nav-label {
        padding-inline: 2px;
        text-align: left;
    }

    body.inner-page.overview-page .service-browser-nav-items {
        margin-inline: 0;
        padding-inline: 2px 18px;
    }
}

/* Header brand typography: index.html is the source of truth. */
body.inner-page .nav-header h1 {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
}

/* ==========================================================================\n   Mobile Behandlungsbereiche: show every option at once\n   ========================================================================== */
@media (max-width: 820px) {
    body.inner-page.overview-page .service-browser-nav {
        width: 100%;
        overflow: visible;
        margin-bottom: 18px;
    }

    body.inner-page.overview-page .service-browser-nav-head {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
        margin: 0;
        padding: 0 0 13px;
        border-bottom: 0;
    }

    body.inner-page.overview-page .service-browser-nav-head .category-back-home {
        width: auto;
        min-height: 36px;
        margin: 0;
        padding: 4px 0;
    }

    body.inner-page.overview-page .service-browser-nav-label {
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    body.inner-page.overview-page .service-browser-nav-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow: visible;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        touch-action: auto;
    }

    body.inner-page.overview-page .service-browser-tab {
        position: relative;
        display: flex;
        flex: none;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        padding: 11px 4px 11px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        color: rgba(255, 255, 255, 0.60);
        font-size: 0.78rem;
        line-height: 1.28;
        white-space: normal;
        text-align: left;
    }

    body.inner-page.overview-page .service-browser-tab > span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.inner-page.overview-page .service-browser-tab::before {
        left: 0;
        top: 50%;
        right: auto;
        bottom: auto;
        width: 2px;
        height: 0;
        border-radius: 999px;
        transform: translateY(-50%);
    }

    body.inner-page.overview-page .service-browser-tab:hover,
    body.inner-page.overview-page .service-browser-tab.is-active {
        padding-left: 12px;
        color: #fff;
    }

    body.inner-page.overview-page .service-browser-tab.is-active::before {
        width: 2px;
        height: 20px;
    }

    body.inner-page.overview-page .service-browser-tab-count {
        display: block;
        flex: 0 0 auto;
        min-width: 18px;
        color: rgba(255, 255, 255, 0.33);
        font-size: 0.62rem;
        text-align: right;
    }

    body.inner-page.overview-page .service-browser-tab.is-active .service-browser-tab-count {
        color: rgba(255, 255, 255, 0.58);
    }
}

@media (max-width: 390px) {
    body.inner-page.overview-page .service-browser-nav-items {
        column-gap: 12px;
    }

    body.inner-page.overview-page .service-browser-tab {
        min-height: 50px;
        padding-right: 2px;
        padding-left: 10px;
        font-size: 0.74rem;
    }

    body.inner-page.overview-page .service-browser-tab:hover,
    body.inner-page.overview-page .service-browser-tab.is-active {
        padding-left: 10px;
    }
}

/* ==========================================================================\n   Hero navigation hierarchy: page action under title, browser heading above menu\n   ========================================================================== */

/* Category pages: the home action belongs to the centered hero, below the title. */
body.inner-page.overview-page .cards-container > .intro-content:first-child .category-back-home {
    position: static !important;
    z-index: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 38px;
    margin: 22px auto 0;
    padding: 7px 12px 7px 8px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.28);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: none;
}

body.inner-page.overview-page .cards-container > .intro-content:first-child .category-back-home i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 0.92rem;
}

body.inner-page.overview-page .cards-container > .intro-content:first-child .category-back-home:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(15, 15, 15, 0.55);
    transform: translateY(-1px);
}

/* The browser title now sits directly above—and visually belongs to—the menu. */
body.inner-page.overview-page .service-browser-nav-label {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0 3px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.46);
    text-align: left;
}

body.inner-page.overview-page .service-browser-nav-items {
    width: 100%;
    padding-top: 0;
}

/* Treatment pages: move “Zurück zur Übersicht” into the hero under the title. */
body.inner-page.detail-page .cards-container.contact {
    display: block;
    width: min(100%, 1080px);
}

body.inner-page.detail-page .cards-container > .intro-content:first-child {
    width: calc(100vw - 48px);
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
}

body.inner-page.detail-page .intro-content .menu-link-back {
    position: static;
    display: inline-flex;
    width: auto;
    min-height: 38px;
    margin: 22px auto 0;
    padding: 7px 11px 7px 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.28);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body.inner-page.detail-page .intro-content .menu-link-back::before {
    display: none;
}

body.inner-page.detail-page .intro-content .menu-link-back i {
    order: -1;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 0.92rem;
    transform: rotate(180deg);
    opacity: 1;
}

body.inner-page.detail-page .intro-content .menu-link-back:hover {
    padding-left: 12px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.30);
    background: rgba(15, 15, 15, 0.55);
    transform: translateY(-1px);
}

body.inner-page.detail-page .content-text {
    grid-column: auto;
    width: min(100%, 900px);
    margin: 0 auto 30px;
}

@media (max-width: 820px) {
    body.inner-page.overview-page .cards-container > .intro-content:first-child .category-back-home,
    body.inner-page.detail-page .intro-content .menu-link-back {
        margin-top: 18px;
    }

    body.inner-page.overview-page .service-browser-nav-label {
        margin: 0 0 8px;
        padding: 0 0 12px;
        text-align: left;
    }

    body.inner-page.detail-page .cards-container > .intro-content:first-child {
        width: 100%;
    }

    body.inner-page.detail-page .content-text {
        width: 100%;
    }
}


/* ==========================================================================
   Final treatment-browser hierarchy: heading above menu on every breakpoint
   ========================================================================== */
body.inner-page.overview-page .service-browser {
    display: block;
    width: min(100%, 1080px);
    margin: -8px auto 30px;
}

body.inner-page.overview-page .service-browser > .service-browser-nav-label {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.46);
    text-align: left;
}

body.inner-page.overview-page .service-browser-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: start;
    min-width: 0;
}

body.inner-page.overview-page .service-browser-layout > .service-browser-nav {
    position: sticky;
    top: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.inner-page.overview-page .service-browser-layout > .service-browser-panel {
    min-width: 0;
}

@media (max-width: 820px) {
    body.inner-page.overview-page .service-browser > .service-browser-nav-label {
        margin: 0 0 10px;
        padding: 0 0 12px;
    }

    body.inner-page.overview-page .service-browser-layout {
        display: block;
        width: 100%;
    }

    body.inner-page.overview-page .service-browser-layout > .service-browser-nav {
        position: relative;
        top: auto;
        width: 100%;
        margin: 0 0 18px;
        overflow: visible;
    }
}
