:root {
    --saarschleife-photo: url("../gfx/nachtblau-saarschleife.jpg");
    --surface: #fff;
    --canvas: #f0f5fd;
    --ink: #142b4d;
    --muted: #465f7d;
    --line: #ccdbef;
    --soft: #eaf2ff;
    --primary: #1454b4;
    --primary-hover: #103e86;
    --accent: #ff9d42;
    --focus: #aa4314;
    --radius: 16px;
    --shadow: 0 10px 28px #19334e12;
}

body {
    margin: 0;
    padding: clamp(8px, 2.5vw, 28px);
    background: var(--canvas);
    color: var(--ink);
    font: 1rem/1.5 system-ui, sans-serif;
}

body :is(.einsa, .einsb, .cont, .datum, .small, .smallgrey, .hsmall, .menuber, .alert, .alert2) {
    font-family: system-ui, sans-serif;
    line-height: 1.45;
}

body :is(.einsa, .einsb, .cont, .menuber) { font-size: .9rem; }
body :is(.einsa, .einsb, .cont) { color: var(--ink); }
body :is(.datum, .small, .smallgrey, .hsmall) { color: var(--muted); }
body :is(a.menu, a.menu2, a.content, a.content2, a.grey1, a.footerx) {
    font-family: system-ui, sans-serif;
    font-size: .85rem;
}
body a:any-link { color: var(--primary); }
body a:hover { text-decoration: underline; }
body :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body p { margin-block: .35em .8em; }
body :is(h1, h2, h3) { line-height: 1.2; }

body :is(input:not([type]), input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="url"], input[type="number"], select, textarea) {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.15rem;
    padding: .35rem .5rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid #8ca8c2;
    border-radius: 7px;
    font-size: .9rem;
}
body :is(input[type="submit"], input[type="button"], input[type="reset"], button) {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.15rem;
    height: auto;
    padding: .36rem .7rem;
    color: #fff;
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: 7px;
    font: 650 .82rem/1.3 system-ui, sans-serif;
}
body :is(input[type="submit"], input[type="button"], input[type="reset"], button):enabled { cursor: pointer; }
body :is(input[type="submit"], input[type="button"], input[type="reset"], button):enabled:hover { background: var(--primary-hover); }
body :is(input, textarea, select, button):disabled { opacity: .65; cursor: default; }
body hr.line { background: var(--line); }

body :is(.center, .center2, .menu_links, .menu_rechts, .back_4, .back_5, .admin, .antipp, .fehlermelden) {
    border-radius: var(--radius);
    border-color: var(--line);
}
body :is(.center, .center2, .menu_links, .menu_rechts, .admin) { background: var(--surface); }
body .back_4 { background: var(--soft); padding: .6rem; }
body .back_5 { background: #fff0de; padding: .6rem; }
body .antipp { background: #eff8ee; }
body .fehlermelden { background: #fff0ec; border-color: #e6aaa0; }

:root:has(link[data-layout="catalog"]) .back_x {
    margin-inline: auto;
    width: 100%;
    max-width: 1210px;
    border: 0;
    background: transparent;
}
:root:has(link[data-layout="catalog"]) :is(
    table.back_x,
    table.back_x > tbody,
    table.back_x > tbody > tr,
    table.back_x > tbody > tr > td,
    table.back_x > tbody > tr > td > table,
    table.back_x > tbody > tr > td > table > tbody,
    table.back_x > tbody > tr > td > table > tbody > tr,
    table.back_x > tbody > tr > td > table > tbody > tr > td
) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
}
:root:has(link[data-layout="catalog"]) table.back_x { text-align: start; }
:root:has(link[data-layout="catalog"]) .back_x table { max-width: 100%; }
:root:has(link[data-layout="catalog"]) .back_x img { max-width: 100%; }
:root:has(link[data-layout="catalog"]) .back_x td:empty { height: auto; }
:root:has(link[data-layout="catalog"]) .header3 {
    border-radius: 16px 16px 0 0;
    background-color: #133c79;
    background-image:
        linear-gradient(90deg, #102651ef 0%, #102651a8 35%, #10265126 80%),
        var(--saarschleife-photo);
    background-size: cover;
    background-position: center, center 62%;
    color: white;
    overflow: hidden;
}
:root:has(link[data-layout="catalog"]) .header3 > table { width: 100%; min-height: clamp(125px, 14vw, 200px); }
:root:has(link[data-layout="catalog"]) :is(.header1, .header2) { width: 100%; }
:root:has(link[data-layout="catalog"]) .header1 {
    background: var(--surface);
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-bottom: 0;
}
:root:has(link[data-layout="catalog"]) .header1 input[type="submit"] {
    color: var(--ink);
    background: var(--accent);
}
:root:has(link[data-layout="catalog"]) .header1 input[type="submit"]:hover { background: #ffb26c; }
:root:has(link[data-layout="catalog"]) .header2 {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    margin-bottom: .9rem;
    overflow-wrap: anywhere;
}
:root:has(link[data-layout="catalog"]) table:is(.menu_links_top, .menu_rechts_top) {
    background: var(--soft);
    color: var(--ink);
    border: 0;
    border-radius: 10px;
    min-height: 1.75rem;
}
:root:has(link[data-layout="catalog"]) :is(.menu_links_top, .menu_rechts_top) :is(.menuber, .einsa, .einsb, a) { color: var(--ink); }

:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}
:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) > td {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: auto;
    overflow-x: auto;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] {
    padding: clamp(6px, 1.35vw, 16px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] > table,
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] > table > tbody > tr > td > table,
:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]) > td[width="190"] > table {
    width: 100%;
    height: auto;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] > table > tbody > tr > td > table {
    table-layout: fixed;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] > table > tbody > tr > td > table > tbody > tr > td[width="573"] {
    width: auto;
    height: auto;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] table:is([width="573"], [width="572"], [width="571"], [width="563"], [width="562"]) {
    width: 100%;
}
@media (min-width: 950px) {
    :root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) {
        grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr) minmax(180px, .32fr);
    }
}
@media (max-width: 949px) {
    :root:has(link[data-layout="catalog"]) .back_x > tbody > tr > td > table > tbody > tr > td { max-width: 100%; overflow-x: auto; }
}

:root:has(head > link[data-layout="admin"]) body > center > table:is([width="981"], [width="980"], [width="983"]),
:root:has(head > link[data-layout="admin"]) body > table:is([width="981"], [width="980"], [width="983"]) {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
:root:has(head > link[data-layout="admin"]) body > center { max-width: 100%; overflow-x: auto; }
:root:has(head > link[data-layout="admin"]) :is(td, table)[bgcolor="#DEE3E7"] { background: var(--soft); }
:root:has(head > link[data-layout="admin"]) :is(td, table)[bgcolor="#F4FAFF"] { background: #f8fbfe; }
:root:has(head > link[data-layout="admin"]) a.menu { color: inherit; }
:root:has(head > link[data-layout="admin"]) :is(td, table)[bgcolor="#DEE3E7"] :is(.einsb, .einsa) { color: var(--ink); }

:root:has(head > link[data-layout="compact"]) body > center > table,
:root:has(head > link[data-layout="compact"]) body > table {
    max-width: 100%;
    margin-inline: auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
:root:has(head > link[data-layout="compact"]) body > center { max-width: 100%; overflow-x: auto; }

/* The same selectors style the cached and freshly generated catalog lists. */
:root:has(link[data-layout="catalog"]) table[width="571"] td:has(> a.content[href^="rubriken.php?"]) {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .55rem .6rem;
}
:root:has(link[data-layout="catalog"]) table[width="571"] td > a.content[href^="rubriken.php?"] {
    display: inline-block;
    font-size: .95rem;
    margin-bottom: .22rem;
}
:root:has(link[data-layout="catalog"]) .back_x .vier {
    font-family: system-ui, sans-serif;
    line-height: 1.4;
}
:root:has(link[data-layout="catalog"]) .back_x td > .einsb { font-weight: 720; }

@media (max-width: 570px) {
    :root:has(link[data-layout="catalog"]) table[width="571"]:has(td > a.content[href^="rubriken.php?"]) {
        display: block;
        margin-block: .35rem;
    }
    :root:has(link[data-layout="catalog"]) table[width="571"]:has(td > a.content[href^="rubriken.php?"]) :is(tbody, tr) { display: block; }
    :root:has(link[data-layout="catalog"]) table[width="571"]:has(td > a.content[href^="rubriken.php?"]) td { display: none; }
    :root:has(link[data-layout="catalog"]) table[width="571"] td:has(> a.content[href^="rubriken.php?"]) {
        display: block;
        width: auto;
        margin-block: .45rem;
    }
}

/* The original homepage link carries the configured project name. */
.header3 a:has(> .redesign-brand) {
    display: inline-flex;
    align-items: center;
    gap: clamp(.5rem, 2vw, .85rem);
    padding: .9rem clamp(.75rem, 3vw, 1.8rem);
    color: #fff;
    text-decoration: none;
}
.header3 a:has(> .redesign-brand) img { display: none; }
.redesign-brand {
    display: inline-block;
    padding-inline-start: .55em;
    border-inline-start: .15em solid var(--accent);
    font: 750 clamp(1.35rem, 4vw, 2.7rem)/1.1 system-ui, sans-serif;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.header3 td:first-child { width: auto; }
.header3 a:focus-visible { outline-color: var(--accent); }
:root:has(link[data-layout="catalog"]) .header1 .menuber { color: var(--ink); }
:root:has(link[data-layout="catalog"]) .header2 { box-shadow: var(--shadow); }
:root:has(link[data-layout="catalog"]) .back_x td[width="596"][colspan="3"] > table .back_4 {
    padding: clamp(.65rem, 1.5vw, 1.1rem);
    border-left: 4px solid var(--accent);
}
:root:has(link[data-layout="catalog"]) table[width="571"] td:has(> a.content[href^="rubriken.php?"]):hover {
    border-color: #86a9c6;
    background: #e9f3ff;
}

/* Keep the two catalog cards in each row compact on wider screens. */
:root:has(link[data-layout="catalog"]) .back_x table[width="571"]:has(td > a.content[href^="rubriken.php?"]) {
    width: min(100%, 35rem);
    margin-inline: auto;
}

:root:has(link[data-layout="catalog"]) table:is(.menu_links_top, .menu_rechts_top) {
    background: #dbeaff;
}
:root:has(link[data-layout="catalog"]) table[width="571"] td:has(> a.content[href^="rubriken.php?"]) {
    background: var(--surface);
    box-shadow: inset 0 3px 0 #dbeaff;
}
:root:has(link[data-layout="catalog"]) table[width="571"] td > a.content[href^="rubriken.php?"] { color: var(--primary); }
:root:has(link[data-layout="catalog"]) table[width="571"] td:has(> a.content[href^="rubriken.php?"]):focus-within,
:root:has(link[data-layout="catalog"]) table[width="571"] td:has(> a.content[href^="rubriken.php?"]):hover {
    box-shadow: inset 0 3px 0 var(--accent);
    border-color: #b1c9eb;
    background: var(--soft);
}

/* Public header combines the existing brand and search with a compact navigation. */
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) {
    background: #f7fbff;
    border: 1px solid #bbd4ed;
    border-radius: 18px;
    box-shadow: 0 17px 44px #173f6d22;
    overflow: hidden;
}
:root:has(link[data-layout="catalog"]) .reference-utility {
    background: #082c53;
    color: #c9def4;
    padding: .24rem .8rem;
}
.reference-utility p { margin: 0; }
.reference-utility a:any-link { color: white; font-size: .75rem; }
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) .header3 {
    border-radius: 0;
    background: linear-gradient(142deg, #ff9638 0%, #ff7c15 5.4%, #ffac58 5.6%, #f4faff 13%, #e2effc 100%);
    color: #082c53;
}
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) .header3 > table {
    min-height: 0;
}
.back_x:has(.reference-nav) .header3 a:has(> .redesign-brand) { color: #082c53; }
.back_x:has(.reference-nav) .redesign-brand { font-style: italic; }
.reference-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    padding: .45rem clamp(.5rem, 2.5vw, 1.4rem);
    background: #092f59;
    box-shadow: inset 0 -2px #ffffff19;
}
.reference-nav a:any-link {
    color: white;
    font-size: .84rem;
    font-weight: 680;
    text-decoration: none;
    border-radius: 6px;
    padding: .44rem .64rem;
}
.reference-nav a:hover, .reference-nav a:focus-visible { background: #174e83; text-decoration: underline; }
.reference-nav .reference-cta:any-link { margin-inline-start: auto; background: #ff941e; color: #092f59; }
.reference-hero {
    padding: clamp(.75rem, 2.8vw, 1.6rem) clamp(.85rem, 4vw, 2.4rem);
    background-color: #123465;
    background-image: linear-gradient(90deg, #071c36f2, #0a234ca8 42%, #0e315222 83%), var(--saarschleife-photo);
    background-size: cover;
    background-position: center, center 60%;
    color: white;
    min-height: 5.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.reference-hero-home { min-height: clamp(150px, 21vw, 270px); }
.reference-hero p { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; }
.reference-hero-title { font-size: clamp(1.55rem, 4vw, 2.8rem); font-weight: 780; line-height: 1.1; letter-spacing: -.035em; }
.reference-hero-home .reference-hero-title { max-width: 23ch; font-size: clamp(2rem, 5vw, 3.9rem); }
.reference-hero strong { color: #ffad54; }
.back_x:has(.reference-nav) .header2 { margin-bottom: 0; border-radius: 0; box-shadow: none; }
.back_x:has(.reference-nav) tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) { padding: .75rem; }
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) :is(.menu_links_top, .menu_rechts_top) {
    background: #0d3c6e;
}
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) :is(.menu_links_top, .menu_rechts_top) :is(.menuber, .einsa, .einsb, a) {
    color: white;
}
.back_x:has(.reference-nav) #rubriken { scroll-margin-top: .8rem; }
@media (max-width: 480px) {
    .reference-nav .reference-cta:any-link { margin-inline-start: 0; }
}

.reference-nav { gap: .3rem .45rem; padding-block: .5rem; }
.reference-nav a:any-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .45rem .75rem;
}
.reference-nav a:focus-visible { outline-color: #ffd19d; outline-offset: 1px; }
.reference-hero-home { min-height: clamp(150px, 19vw, 235px); }
.reference-hero-home .reference-hero-title { font-size: clamp(2rem, 4.5vw, 3.6rem); }

:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) .header1 {
    padding: .5rem clamp(.65rem, 3vw, 1.75rem);
    background: #eaf3ff;
}
.reference-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .45rem .55rem;
    max-width: 820px;
    margin-block: .3rem;
    margin-inline: auto;
}
.reference-search-label {
    grid-column: 1 / -1;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 740;
}
body .reference-search #reference-query {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: .75rem;
    font-size: 1rem;
}
body .reference-search :is(button, input[type="submit"]) {
    min-height: 44px;
    min-width: 5.3rem;
    background: var(--accent);
    color: var(--ink);
}
body .reference-search input[type="submit"]:enabled:hover { background: #ffb26c; }

:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) #rubriken {
    background: #e3effe;
    padding: .4rem .7rem;
}
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) #rubriken .menuber { color: var(--ink); }
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) table[width="571"] td > a.content[href^="rubriken.php?"] {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    gap: .35rem;
}
@media (max-width: 570px) {
    .reference-nav a:any-link { background: #17416d; }
    :root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav)
    tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) {
        gap: .6rem;
        padding: .45rem;
    }
}

/* Night-blue catalog theme for the original category templates. */
:root {
    --surface: #edf5ff;
    --ink: #101d3c;
    --muted: #465c7a;
    --line: #dce7f5;
    --soft: #eaf3ff;
    --primary: #0758d7;
    --primary-hover: #0747ab;
    --accent: #45ccf7;
    --focus: #fa971a;
}
body { background: linear-gradient(155deg, #051b3d 6%, #123c76 40%, #d5e5f7 90%); }
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) { background: transparent; box-shadow: none; }
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) .header3 {
    background: #061a3a;
    color: #eff8ff;
}
.back_x:has(.reference-nav) .header3 a:has(> .redesign-brand) { color: #eff8ff; }
.back_x:has(.reference-nav) .redesign-brand { font-style: normal; border: 0; padding-inline-start: 0; }
.redesign-brand>span { color: #39d9f5; }
.redesign-brand small { display: block; margin-top: .27rem; font-size: .72rem; letter-spacing: .025em; color: #b8d9f3; }
.redesign-brand small:last-child { color: #66dff6; }
.reference-nav { background: #061a3a; border-block: 1px solid #2a5075; }
.reference-nav .reference-cta:any-link { background: #0758d7; color: white; }
.nacht-crest { display: block; object-fit: contain; max-height: 52px; }
.reference-hero {
    background-image: linear-gradient(90deg,#061832f2,#082544cf 48%,#0d2b4e22 90%),var(--saarschleife-photo);
    background-position: center, center 59%;
    box-shadow: inset 0 -1px #5ea5de;
}
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) .header1 {
    background: #092f59;
    border-color: #2a5075;
}
.reference-search-label { color: #eff8ff; }
.reference-search { justify-content: start; max-width: 550px; margin-inline: 0; }
body .reference-search #reference-query { border-radius: 999px; background: white; }
body .reference-search :is(button,input[type="submit"]) {
    background: linear-gradient(115deg,#03749b,#1355ca 58%,#6141ba);
    color: white; border: 1px solid #74cafa; border-radius: 999px;
}
body .reference-search input[type="submit"]:enabled:hover { background:#124fae; }
.back_x:has(.reference-nav) .header2 { border-radius: 0 0 12px 12px; }
:root:has(link[data-layout="catalog"]) .back_x:has(.reference-nav) :is(.menu_links_top,.menu_rechts_top) { background: #092f59; }
.back_x .datum { color: #eaf5ff; }
.back_x table.center .nopraemium,.back_x table.center .praemium {
    border-radius: 9px; background: white; padding: .55rem; border: 1px solid var(--line);
}
.back_x a.backsite { color: var(--primary); background: var(--soft); border-color: var(--line); border-radius: 6px; }
.back_x .smallgrey a { color: inherit; }
@media (max-width: 620px) {
    .nacht-crest { max-height: 38px; width: 32px; }
    .reference-nav { gap: .25rem; }
}

.back_x .nacht-footer {
    padding: .8rem 1rem;
    background: var(--soft);
    border-radius: 0 0 12px 12px;
}

/* Match the homepage cards on pages that use the public Nachtblau layout. */
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] table:is(.menu_links, .menu_rechts):not(table.menu_links table, table.menu_rechts table) {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #edf5ff;
    box-shadow: 0 3px 8px #11345e18;
    overflow: hidden;
}

:root:has(link[data-layout="catalog"]) .back_x td[width="190"] table:is(.menu_links_top, .menu_rechts_top) {
    width: 100%;
    border-radius: 9px 9px 0 0;
    background: #092f59;
}

:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(.menu_links_top, .menu_rechts_top) .menuber {
    color: #fff;
    font-size: .89rem;
    font-weight: 700;
    text-align: center;
}

:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(table.menu_links, table.menu_rechts),
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(table.menu_links, table.menu_rechts) :is(td, p, span, font, label) {
    font-family: system-ui, sans-serif;
    font-size: .79rem;
    line-height: 1.35;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(table.menu_links, table.menu_rechts) a {
    font-family: system-ui, sans-serif;
    font-size: .79rem;
    line-height: 1.35;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(.menu_links_top, .menu_rechts_top) .menuber {
    font-family: system-ui, sans-serif;
    font-size: .89rem;
}

:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(table.menu_links, table.menu_rechts) table[width="190"] {
    width: 100%;
    height: auto;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(.menu_links_top, .menu_rechts_top) :is(table, td) {
    background: transparent;
    height: auto;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(.menu_links_top, .menu_rechts_top) .menuber {
    margin: 0;
    padding: .2rem .35rem;
    line-height: 1.2;
    letter-spacing: .01em;
}
:root:has(link[data-layout="catalog"]) .back_x td[width="190"] :is(table.menu_links, table.menu_rechts) a.menu2 {
    color: #0758d7;
    padding-block: .14rem;
    overflow-wrap: anywhere;
}

:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) {
    grid-template-columns: minmax(0, 36rem);
    justify-content: center;
    align-items: start;
    column-gap: .65rem;
    margin-inline: auto;
}
:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]) > td[width="190"] {
    width: min(100%, 12rem);
    justify-self: center;
}
:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]) > td[width="190"] > table {
    margin-inline: auto;
}
@media (min-width: 950px) {
    :root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]):has(> td[width="190"]) {
        grid-template-columns: 11rem minmax(0, 36rem) 12rem;
    }
}

.back_x :is(.nacht-side-app, .nacht-side-stats) {
    box-sizing: border-box;
    margin-top: .65rem;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #edf5ff;
    color: var(--ink);
    overflow: hidden;
    font: .79rem/1.35 system-ui, sans-serif;
}

.back_x :is(.nacht-side-app, .nacht-side-stats) > h2 {
    margin: 0;
    padding: .2rem .35rem;
    background: #092f59;
    color: white;
    text-align: center;
    font: 700 .89rem/1.2 system-ui, sans-serif;
    letter-spacing: .01em;
}


.back_x .nacht-side-app > h2 { font-size: .55rem; }
.back_x .nacht-side-stats-body { padding: .42rem; font-size: .74rem; }
.back_x .nacht-side-stats-body p { margin: 0 0 .35rem; }
.back_x .nacht-side-stats dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .16rem .3rem;
    margin: 0;
    color: #0758d7;
}
.back_x .nacht-side-stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }


:root:has(link[data-layout="catalog"]) .back_x tr:has(> td[width="596"][colspan="3"]) > td[width="190"] table[width="190"] {
    width: 100%;
    max-width: 100%;
}
