/*
 * Printshop Bloder - Stylesheet für das neue Design.
 * Keine externen Abhängigkeiten. Farben und Abstände als Variablen.
 */

:root {
    --brand: #1a4fa8;
    --brand-dark: #123a7d;
    --brand-tint: #e7eefa;
    --ink: #1f1f23;
    --ink-muted: #5c5c66;
    --bg: #f6f5f3;
    --surface: #ffffff;
    --line: #e4e2de;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .06), 0 12px 28px rgba(0, 0, 0, .1);
    --link: var(--brand);
    --link-hover: var(--brand-dark);
    --tint-ink: var(--brand-dark);
    --media-bg: #eef5fc;
    --chrome: #1f1f23;
    --chrome-text: #c9c9cf;
    color-scheme: light;
    --wrap: 1120px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/*
 * Darkmode: folgt der Geräteeinstellung, außer der Besucher hat über den
 * Umschalter (data-theme auf <html>, siehe layout.js) etwas anderes gewählt.
 * Beide Blöcke müssen gleich bleiben.
 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand-tint: #1a2740;
        --ink: #e6e7eb;
        --ink-muted: #a2a6b1;
        --bg: #111317;
        --surface: #1a1d23;
        --line: #2c3039;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
        --shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .5);
        --link: #8db4ff;
        --link-hover: #b5ceff;
        --tint-ink: #b9cdf5;
        --media-bg: #eef5fc;
        --chrome: #0a0b0e;
        --chrome-text: #a2a6b1;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --brand-tint: #1a2740;
    --ink: #e6e7eb;
    --ink-muted: #a2a6b1;
    --bg: #111317;
    --surface: #1a1d23;
    --line: #2c3039;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .5);
    --link: #8db4ff;
    --link-hover: #b5ceff;
    --tint-ink: #b9cdf5;
    --media-bg: #eef5fc;
    --chrome: #0a0b0e;
    --chrome-text: #a2a6b1;
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

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

a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 .5em;
    /* lange Wörter (z. B. "Stempelkugelschreiber") am Handy umbrechen statt überstehen */
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
    letter-spacing: -.01em;
}

h2 {
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
}

h3 {
    font-size: 1.125rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 8px;
    z-index: 100;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px;
}

:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 2px;
}

/* ---------- Kopfzeile ---------- */

/* site-header als "contents", damit .header an der ganzen Seite kleben bleibt (sticky) */
site-header {
    display: contents;
}

site-footer {
    display: block;
}

.topbar {
    background: var(--chrome);
    color: var(--chrome-text);
    font-size: .8125rem;
}

.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 24px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

.topbar__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
}

/* Sprachauswahl (Flaggen) neben dem Darkmode-Knopf */
.lang-menu {
    position: relative;
    flex: none;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.lang-toggle:hover, .lang-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .16);
}

.flag {
    display: block;
    flex: none;
    border-radius: 2px;
}

.lang-toggle .flag {
    width: 22px;
    height: auto;
}

.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 190px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.lang-list[hidden] {
    display: none;
}

.lang-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.lang-list a:hover {
    background: var(--brand-tint);
    color: var(--ink);
}

.lang-list a[aria-current] {
    font-weight: 600;
    background: var(--brand-tint);
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
}

.logo img {
    width: 195px;
}

/* schmale Handys: kleineres Logo, damit Logo und die drei Knöpfe in eine Zeile passen */
@media (max-width: 400px) {
    .logo img {
        width: 150px;
    }

    .header.is-compact .header__inner {
        gap: 6px;
    }
}

.nav {
    margin-left: auto;
}

.nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    display: block;
    padding: 8px 10px;
    white-space: nowrap;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.nav a:hover, .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.theme-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, .16);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    position: relative;
    transition: transform .2s;
}

.nav-toggle__bar::before, .nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bar::before {
    top: -7px;
}

.nav-toggle__bar::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
    transform: translateY(-7px) rotate(-45deg);
}

/*
 * Kompakte Kopfzeile mit Menü-Knopf. layout.js setzt .is-compact, sobald die
 * Menüpunkte nicht in eine Zeile passen (abhängig von Bildschirm und Sprache).
 */
.header.is-compact .header__inner {
    flex-wrap: wrap;
    gap: 8px;
}

.header.is-compact .logo {
    margin-right: auto;
}

.header.is-compact .nav-toggle {
    display: block;
    order: 5;
}

.header.is-compact .nav {
    display: none;
    /* als Ebene unter der Kopfzeile, damit sich der Seiteninhalt beim Aufklappen nicht verschiebt */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    margin-left: 0;
    padding: 0 16px 12px;
    background: var(--brand);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
}

.header.is-compact .nav.is-open {
    display: block;
}

.header.is-compact .nav ul {
    flex-direction: column;
}

.header.is-compact .nav a {
    padding: 12px;
}

.nav__extra {
    display: none;
}

.header.is-compact .nav__extra {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.header.is-compact .nav__extra + .nav__extra {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* ---------- Hauptbereich ---------- */

main,
main.wrap {
    display: block;
    margin-bottom: 64px;
}

.section {
    padding-top: 48px;
}

.section--first {
    padding-top: 24px;
}

.section__intro {
    max-width: 640px;
    color: var(--ink-muted);
}

.breadcrumb {
    padding-top: 20px;
    font-size: .875rem;
    color: var(--ink-muted);
}

.breadcrumb a {
    color: var(--ink-muted);
}

/* Startseite: Hero */

.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
}

.hero__inner {
    display: grid;
    gap: 32px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
}

.hero p {
    font-size: 1.125rem;
    max-width: 36em;
    color: rgba(255, 255, 255, .9);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero__facts {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero__facts li {
    padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    font-weight: 500;
}

.hero__facts strong {
    display: block;
    font-size: 1.25rem;
}

@media (min-width: 860px) {
    .hero__inner {
        grid-template-columns: 1.6fr 1fr;
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
}

.btn--primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn--light {
    background: #fff;
    color: var(--brand);
}

.btn--light:hover {
    background: #e7eefa;
    color: var(--brand-dark);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.btn--outline {
    border-color: var(--link);
    color: var(--link);
    background: transparent;
}

.btn--outline:hover {
    background: var(--brand-tint);
    color: var(--link-hover);
}

/* Kategorie-Karten */

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin-top: 24px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--ink);
}

.card__media {
    aspect-ratio: 261 / 140;
    background: var(--media-bg);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    padding: 16px 18px 20px;
}

.card__body p {
    margin: 0;
    font-size: .9375rem;
    color: var(--ink-muted);
}

.card__more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--link);
}

/* Standort-Block */

.location {
    display: grid;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (min-width: 760px) {
    .location {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.legal {
    max-width: 760px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.legal h2 {
    margin: 28px 0 8px;
    font-size: 1.25rem;
}

.legal > :first-child {
    margin-top: 0;
}

.legal address {
    font-style: normal;
}

.legal ul {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal li {
    margin-bottom: 6px;
}

.map-title {
    margin-top: 32px;
}

.map {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-height: 440px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.map__placeholder {
    max-width: 520px;
    padding: 24px;
    text-align: center;
}

.map__placeholder p {
    margin: 0 0 16px;
    color: var(--ink-muted);
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.contact-card {
    margin-bottom: 12px;
    font-style: normal;
}

.contact-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Wechsel zwischen den Unterseiten einer Kategorie: Reiter (groß) / Karussell (Handy) */

sub-nav {
    display: block;
    margin-top: 16px;
}

.subnav__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.subnav__chips a {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.subnav__chips a:hover {
    border-color: var(--link);
    color: var(--link);
}

.subnav__chips a[aria-current="page"] {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

.subnav__carousel {
    display: none;
}

/* Handy: Karussell mit Pfeilen links und rechts, in der Mitte die aktuelle Seite */
@media (max-width: 600px) {
    .subnav__chips {
        display: none;
    }

    .subnav__carousel {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .subnav__arrow {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--brand);
        color: #fff;
    }

    .subnav__arrow:hover,
    .subnav__arrow:active {
        background: var(--brand-dark);
        color: #fff;
    }

    .subnav__current {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .subnav__name {
        display: block;
        font-weight: 600;
        line-height: 1.25;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .subnav__dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 6px;
    }

    .subnav__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--line);
    }

    .subnav__dot--active {
        background: var(--link);
    }
}

/* Produktseite: Kopf */

.product-intro {
    display: grid;
    gap: 24px;
    align-items: start;
    padding-top: 24px;
}

.product-intro > * {
    min-width: 0;
}

.product-intro__lead {
    font-size: 1.125rem;
    color: var(--ink-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--tint-ink);
    font-weight: 600;
    font-size: .9375rem;
}

.checklist {
    display: grid;
    gap: 8px 24px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 0;
    padding: 20px 24px;
    list-style: none;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.checklist li {
    position: relative;
    padding-left: 28px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (min-width: 860px) {
    .product-intro {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* Produktliste */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.toolbar label {
    font-size: .875rem;
    color: var(--ink-muted);
}

.toolbar select {
    min-height: 40px;
    margin-left: 8px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: var(--surface);
}

.product-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    margin-top: 20px;
}

.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    background: var(--media-bg);
}

.product__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product__note {
    font-size: .9375rem;
    color: var(--ink-muted);
}

.product__price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.product__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.product__specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 16px;
    margin: 0 0 16px;
    font-size: .9375rem;
}

.product__specs dt {
    color: var(--ink-muted);
}

.product__specs dd {
    margin: 0;
}

.product__price {
    margin: auto 0 4px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
}

.product__extras {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: .875rem;
    color: var(--ink-muted);
}

.product .btn {
    align-self: flex-start;
}

.note {
    margin-top: 32px;
    margin-bottom: 24px;
    font-size: .875rem;
    color: var(--ink-muted);
}

/* Preistabellen (Staffelpreise) */

.price-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    align-items: start;
    margin-top: 20px;
}

.price-box {
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.price-box h3 {
    margin-bottom: 12px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.price-table caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: 8px;
}

.price-table th, .price-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.price-table th:first-child, .price-table td:first-child {
    min-width: 7.5em;
    text-align: left;
    white-space: normal;
}

/* Breite Tabellen (ab 3 Preisspalten) über die ganze Zeile */
.price-box:has(thead th:nth-child(4)) {
    grid-column: 1 / -1;
}

.price-table thead th {
    white-space: normal;
    hyphens: auto;
    overflow-wrap: break-word;
    vertical-align: bottom;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-muted);
    border-bottom: 2px solid var(--line);
}

.price-table tbody tr:last-child td, .price-table tbody tr:last-child th {
    border-bottom: 0;
}

.price-table tbody tr:hover {
    background: var(--bg);
}

@media (max-width: 600px) {
    .price-box {
        padding: 16px 10px;
    }

    .price-table {
        font-size: .875rem;
    }

    .price-table th, .price-table td {
        padding: 7px 6px;
    }

    .price-table thead th {
        font-size: .6875rem;
        letter-spacing: 0;
    }
}

/* Hinweise (Mindestauftrag, Mengenrabatt, ...) */

.info-list {
    margin: 24px 0;
    padding: 16px 20px 16px 40px;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--brand-tint);
}

.info-list li + li {
    margin-top: 4px;
}

/* Seitenkopf mit Bild (Kategorie- und Produktseiten) */

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.page-head img {
    flex: none;
    width: 124px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page-head > div {
    flex: 1 1 280px;
    min-width: 0;
}

/* Unterkategorien als Liste mit Bild */

.sub-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    margin-top: 24px;
}

.sub-item {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.sub-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--ink);
}

.sub-item img {
    flex: none;
    width: 124px;
    border-radius: 8px;
}

.sub-item > div {
    min-width: 0;
}

.sub-item h3 {
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

.sub-item p {
    margin: 0;
    font-size: .9375rem;
    color: var(--ink-muted);
}

/* ---------- Fußzeile ---------- */

.footer {
    background: var(--chrome);
    color: var(--chrome-text);
    font-size: .9375rem;
}

.footer a {
    color: #fff;
}

.footer__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding-top: 40px;
    padding-bottom: 24px;
}

.footer__title {
    font-size: 1rem;
    color: #fff;
}

.footer__note {
    padding-top: 16px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .8125rem;
}

/* Handy: ohne Standort, E-Mail vor Telefon, zentriert */
@media (max-width: 600px) {
    .topbar__inner > span:first-child {
        display: none;
    }

    .topbar__inner,
    .topbar__contact {
        justify-content: center;
        width: 100%;
    }

    .topbar__email {
        order: -1;
    }
}
