/* ═════════════════════════════════════════════════════════════════════════
   Öffentlicher Webshop

   Das Layout ist für alle Mandanten gleich. Mandantenabhängig sind nur die
   Akzentfarben, die als Variablen am Wurzelelement gesetzt werden
   (--shop-accent …, siehe WebshopAccents). Alles andere kommt aus den
   vorhandenen Theme-Variablen und gilt damit in beiden Erscheinungsbildern.

   Mobile-first: Die Werte darunter gelten für das Handy, die Abfrage am Ende
   verbreitert sie für größere Anzeigen.
   ═════════════════════════════════════════════════════════════════════════ */

.shop-shell {
    min-height: 100vh;
    background: var(--jt-bg-page, #f0f2f5);
    color: var(--jt-fg-default, #222222);
}

/* Überschriften und Fließtext: app.css färbt sie global mit --tertiary-color, das im
   Darkskin zu blass ist. Im Shop gilt durchgehend die Textfarbe des Erscheinungsbilds. */
.shop-root,
.shop-root h1,
.shop-root h2,
.shop-root h3,
.shop-root h4 {
    color: var(--jt-fg-default);
}

.shop-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Kopf ──
   Zweizeilig: oben Marke und Aktionen, darunter der gewählte Zeitraum. Beides bleibt beim
   Scrollen stehen, damit der Besucher immer sieht, wofür er gerade sucht. */

.shop-header {
    background: var(--jt-surface-card, #ffffff);
    border-bottom: 1px solid var(--jt-border-default, #e6e6e6);
    box-shadow: var(--jt-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 10;
}

.shop-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shop-logo {
    max-height: 36px;
    max-width: 160px;
    object-fit: contain;
}

.shop-title {
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--jt-border-default, #e6e6e6);
    background: transparent;
    color: var(--jt-fg-secondary, #555555);
    cursor: pointer;
}

    .shop-theme-toggle:hover {
        background: var(--shop-accent-soft);
        color: var(--shop-accent);
    }

/* ── Inhalt ── */

.shop-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-hero {
    padding: 8px 0 0;
}

.shop-hero-title {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
}

.shop-hero-text {
    margin: 0;
    color: var(--jt-fg-secondary, #555555);
}

.shop-card {
    background: var(--jt-surface-card, #ffffff);
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--jt-shadow-sm);
}

.shop-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.shop-muted {
    color: var(--jt-fg-muted, #999999);
    margin: 0;
}

.shop-placeholder {
    text-align: center;
    padding: 32px 16px;
}

.shop-placeholder-icon {
    font-size: 44px;
    color: var(--shop-accent);
}

/* ── Kontakt ── */

.shop-contact {
    margin: 0;
    display: grid;
    grid-template-columns: auto;
    gap: 2px 16px;
}

    .shop-contact dt {
        font-size: 13px;
        font-weight: 600;
        color: var(--jt-fg-muted, #999999);
    }

    .shop-contact dd {
        margin: 0 0 8px;
    }

    .shop-contact a {
        color: var(--shop-accent);
        text-decoration: none;
    }

        .shop-contact a:hover {
            color: var(--shop-accent-hover);
            text-decoration: underline;
        }

/* ── Fuß ── */

.shop-footer {
    border-top: 1px solid var(--jt-border-default, #e6e6e6);
    padding: 14px 16px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

    .shop-footer a {
        color: var(--jt-fg-secondary, #555555);
        font-size: 13px;
        text-decoration: none;
    }

        .shop-footer a:hover {
            color: var(--shop-accent);
            text-decoration: underline;
        }

/* ── Laden und unbekannter Webshop ── */

.shop-center {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

.shop-notfound-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

/* ── Größere Anzeigen ── */

@media (min-width: 768px) {

    .shop-header-inner,
    .shop-main {
        padding-left: 24px;
        padding-right: 24px;
    }

    .shop-hero-title {
        font-size: 32px;
    }

    .shop-logo {
        max-height: 44px;
        max-width: 220px;
    }

    .shop-contact {
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: baseline;
    }

        .shop-contact dd {
            margin-bottom: 4px;
        }
}

/* ── Formulare, Schaltflaechen und Kundenbereich ─────────────────────────────
   Ergaenzt fuer Registrierung, Anmeldung und den geschlossenen Bereich.
   Weiterhin gilt: nur Theme-Variablen und die Akzentfarbe aus der Palette. */

.shop-brand {
    text-decoration: none;
    color: inherit;
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--jt-fg-default, #222222);
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.shop-header-link:hover {
    background: var(--jt-bg-surface-active);
}

/* Auf dem Handy wuerde die Beschriftung den Kopf sprengen - dort genuegt das Sinnbild. */
.shop-header-link-text {
    display: none;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--shop-accent, #1b5faa);
    color: var(--shop-accent-contrast, #ffffff);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--jt-transition), box-shadow var(--jt-transition), transform var(--jt-transition);
}

.shop-button:hover {
    background: var(--shop-accent-hover);
    color: var(--shop-accent-contrast, #ffffff);
    box-shadow: var(--jt-shadow-md);
}

.shop-button:active {
    transform: translateY(1px);
}

.shop-button:disabled {
    opacity: .6;
    cursor: default;
}

.shop-button--ghost {
    background: transparent;
    border-color: var(--shop-accent, #1b5faa);
    color: var(--shop-accent, #1b5faa);
}

.shop-button--ghost:hover {
    background: var(--shop-accent-soft, rgba(27, 95, 170, .1));
    color: var(--shop-accent, #1b5faa);
    box-shadow: none;
}

.shop-button--wide {
    width: 100%;
    margin-top: 6px;
}

.shop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.shop-hero--compact {
    padding-bottom: 8px;
}

.shop-form-card {
    background: var(--jt-surface-card, #ffffff);
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: 12px;
    padding: 22px 18px;
    max-width: 640px;
    margin: 0 auto 20px auto;
}

.shop-form-card--centered {
    text-align: center;
}

.shop-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 180px;
}

.shop-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--jt-fg-muted, #666666);
}

.shop-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
}

.shop-field--narrow {
    flex: 0 1 120px;
}

.shop-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--jt-border-default, #d8d8d8);
    border-radius: 8px;
    background: var(--jt-input-bg);
    color: var(--jt-fg-default, #222222);
    font: inherit;
    font-size: 15px;
}

.shop-input::placeholder {
    color: var(--jt-fg-placeholder);
}

/* Datumsfelder und Auswahllisten zeichnet der Browser sonst hell – wie in JaaS. */
[data-theme="dark"] .shop-input {
    color-scheme: dark;
    border-color: var(--jt-input-border);
}

[data-theme="dark"] .shop-input::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
    cursor: pointer;
}

.shop-input:focus {
    outline: none;
    border-color: var(--shop-accent, #1b5faa);
    box-shadow: 0 0 0 3px var(--shop-accent-soft, rgba(27, 95, 170, .18));
}

.shop-textarea {
    resize: vertical;
    min-height: 72px;
}

.shop-field-hint {
    display: block;
    font-size: 12px;
    color: var(--jt-fg-muted, #777777);
    margin-top: 5px;
}

/* Hinweis unter einem Feld, der auf einen Fehler zeigt - etwa zwei
   nicht übereinstimmende Kennwörter oder ein zu schwaches Kennwort.

   Bewusst auffälliger als ein normaler Hinweis: Ein Fehler, den man für
   Beiwerk hält, wird nicht gelesen. Farbe allein reicht nicht, deshalb
   zusätzlich Schriftstärke und ein Symbol davor. */
.shop-field-hint--error {
    color: var(--jt-status-danger-fg, #a4262c);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.shop-field-hint--error::before {
    content: "\26A0";
    font-weight: 700;
    line-height: 1.35;
}

.shop-field-hint a {
    color: var(--shop-accent, #1b5faa);    margin-right: 10px;
}

.shop-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 6px 0 14px 0;
    font-size: 14px;
    line-height: 1.5;
}

.shop-notice {
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.55;
}

/* Fehlermeldung über dem Formular. Deutlich abgesetzt: Rahmen und Farbbalken
   sorgen dafür, dass die Meldung auch in einem gefüllten Formular auffällt. */
.shop-notice--error {
    background: var(--jt-status-danger-bg, #fdecec);
    color: var(--jt-status-danger-fg, #a4262c);
    border: 1px solid var(--jt-status-danger-fg, #a4262c);
    border-left-width: 4px;
    font-weight: 600;
}

/* Laufender Ring in einer Schaltfläche, solange etwas unterwegs ist.

   Ein Knopf, der nur seine Beschriftung wechselt, sieht aus wie ein Knopf, der nichts tut.
   Der Ring zeigt, dass gearbeitet wird - dieselbe Gestalt wie der Ladering der Anwendung,
   nur in Schriftgröße und in der Farbe der Schaltfläche. */
.shop-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 8px;
    vertical-align: -0.125em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: shop-spinner-turn 0.75s linear infinite;
}

@keyframes shop-spinner-turn {
    to {
        transform: rotate( 360deg );
    }
}

/* Wer die Bewegung nicht möchte, bekommt sie nicht - der Ring bleibt trotzdem sichtbar. */
@media ( prefers-reduced-motion: reduce ) {
    .shop-spinner {
        animation-duration: 3s;
    }
}

.shop-notice--info {
    background: var(--jt-status-info-bg, #eef4fb);
    color: var(--jt-status-info-fg, #1b5faa);
}

.shop-notice--success {
    background: var(--jt-status-ok-bg, #eaf6ed);
    color: var(--jt-status-ok-fg, #1e7b34);
}

.shop-form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 18px;
    font-size: 14px;
}

.shop-form-links a {
    color: var(--shop-accent, #1b5faa);
}

.shop-success-icon,
.shop-error-icon {
    font-size: 46px;
    display: block;
    margin: 4px auto 10px auto;
}

.shop-success-icon {
    color: var(--jt-status-ok-fg, #1e7b34);
}

.shop-error-icon {
    color: var(--jt-status-danger-fg, #a4262c);
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.shop-empty {
    text-align: center;
    padding: 22px 10px;
}

.shop-contact--readonly {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--jt-border-default, #e6e6e6);
}

@media (min-width: 700px) {

    .shop-header-link-text {
        display: inline;
    }

    .shop-form-card {
        padding: 28px 30px;
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Die Belege brauchen die ganze Breite - sie werden spaeter eine Liste. */
    .shop-grid > section:first-child {
        grid-column: 1 / -1;
    }
}

/* ── Belegliste im Kundenbereich ───────────────────────────────────────────── */

.shop-group-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--jt-fg-muted, #6b7280);
    margin: 18px 0 8px 0;
}

.shop-group-title:first-of-type {
    margin-top: 4px;
}

.shop-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ein Beleg oder eine Anfrage in der Übersicht.

   Als abgesetzte Fläche statt als nackte Zeile: In der Liste stehen Nummer, Art, Datum,
   Summe und Schaltflächen nebeneinander - ohne Rahmen verschwimmt das zu einer grauen
   Masse, in der sich nichts wiederfinden lässt. */
.shop-doc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: 10px;
    background: var(--jt-bg-surface-2);
}

.shop-doc:last-child {
    margin-bottom: 0;
}

.shop-doc-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 200px;
}

.shop-doc-number {
    font-weight: 600;
    font-size: 16px;
}

.shop-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--jt-fg-muted, #6b7280);
}

.shop-doc-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--jt-fg-default);
    margin-top: 4px;
}

.shop-doc-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-doc-total {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 15px;
}

.shop-button--small {
    padding: 7px 14px;
    font-size: 14px;
}

.shop-button--small .material-symbols-outlined {
    font-size: 18px;
}

/* ── Angebotsannahme ───────────────────────────────────────────────────────── */

/* Volle Breite innerhalb der Belegzeile: Der Block ist ein eigener Abschnitt und
   steht links bündig mit Nummer und Summe, nicht eingerückt in der linken Spalte. */
.shop-offer {
    margin-top: 12px;
    flex: 1 1 100%;
    width: 100%;
}

.shop-offer-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--shop-accent-soft, rgba(27, 95, 170, .08));
}

.shop-offer-question {
    font-weight: 600;
    font-size: 14px;
}

.shop-offer-validity {
    font-size: 13px;
    color: var(--jt-fg-muted, #6b7280);
}

.shop-offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.shop-offer-confirm {
    padding: 16px;
    border: 1px solid var(--shop-accent, #1b5faa);
    border-radius: 9px;
    background: var(--jt-surface-card, #ffffff);
}

.shop-offer-confirm h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
}

.shop-offer-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    margin: 0 0 14px 0;
    font-size: 14px;
}

.shop-offer-summary dt {
    color: var(--jt-fg-muted, #6b7280);
}

.shop-offer-summary dd {
    margin: 0;
    font-weight: 600;
}

.shop-offer-done {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 8px;
    background: var(--jt-status-info-bg, #eef4fb);
    color: var(--jt-status-info-fg, #1b5faa);
    font-size: 14px;
}

.shop-offer-done--accepted {
    background: var(--jt-status-ok-bg, #eaf6ed);
    color: var(--jt-status-ok-fg, #1e7b34);
}

.shop-offer-proof {
    font-size: 12px;
    margin-top: 3px;
    opacity: .85;
}

.shop-offer-hash {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    word-break: break-all;
}

.shop-offer-blocked {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    background: var(--jt-status-warn-bg, #fdf4e3);
    color: var(--jt-status-warn-fg, #8a6116);
}

/* ───────────────────────────────────────────────────────────────────────────
   Artikelkatalog

   Zweispaltig: links die Kategorien, rechts Suche und Kacheln. Unter 900 Pixel
   rutschen die Kategorien über die Liste, damit auf dem Telefon nichts
   abgeschnitten wird.

   Farben kommen durchweg aus den Jobtura-Variablen mit Rückfallwert, damit
   Hell- und Dunkeldarstellung ohne eigene Regeln funktionieren.
   ─────────────────────────────────────────────────────────────────────────── */

.shop-catalog-head {
    margin-bottom: 0;
}

.shop-catalog {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .shop-catalog {
        grid-template-columns: 1fr;
    }
}

.shop-catalog-groups {
    position: sticky;
    top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--jt-surface-card);
    border: 1px solid var(--jt-border-default);
}

@media (max-width: 900px) {
    .shop-catalog-groups {
        position: static;
    }
}

.shop-catalog-groups-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--jt-fg-tertiary);
}

.shop-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Untergruppen rücken ein – die Verschachtelung ergibt sich aus der Struktur. */
.shop-group-list .shop-group-list {
    padding-left: 12px;
    border-left: 1px solid var(--jt-border-default);
    margin-left: 6px;
}

.shop-group-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    margin: 1px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.shop-group-button:hover {
    background: var(--jt-bg-surface-active);
}

.shop-group-button--active {
    background: var(--shop-accent-soft, #e8f0fa);
    color: var(--shop-accent, #1b5faa);
    font-weight: 600;
}

.shop-catalog-main {
    min-width: 0;
}

.shop-search {
    margin-bottom: 18px;
}

.shop-search-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jt-fg-tertiary);
}

.shop-search-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-search-row .shop-input {
    flex: 1 1 220px;
    min-width: 0;
}

.shop-catalog-count {
    margin: 0 0 12px 0;
    font-size: 13px;
}

.shop-article-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.shop-article {
    border-radius: 12px;
    overflow: hidden;
    background: var(--jt-surface-card);
    border: 1px solid var(--jt-border-default);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.shop-article:hover {
    border-color: var(--shop-accent, #1b5faa);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.shop-article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Feste Bildhöhe, damit die Kacheln eine Zeile bilden und nicht springen. */
.shop-article-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    background: var(--jt-bg-surface-2);
    overflow: hidden;
}

.shop-article-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-article-noimage {
    font-size: 48px;
    opacity: .3;
}

.shop-article-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 14px 14px;
    flex: 1;
}

.shop-article-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.shop-article-maker {
    margin: 0;
    font-size: 12px;
    color: var(--jt-fg-tertiary);
}

.shop-article-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--jt-fg-tertiary);
}

/* Der Preis sitzt immer unten, auch wenn die Beschreibung kürzer ist. */
.shop-article-price {
    margin: auto 0 0 0;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-accent, #1b5faa);
}

.shop-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.shop-catalog-teaser {
    text-align: center;
}

/* ─── Artikeldetail ─────────────────────────────────────────────────────── */

.shop-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--jt-fg-tertiary);
}

.shop-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 6px;
    border-radius: var(--jt-radius-pill);
    background: var(--shop-accent-soft);
    color: var(--shop-accent, #1b5faa);
    font-weight: 600;
    text-decoration: none;
}

.shop-breadcrumb a .material-symbols-outlined {
    font-size: 18px;
}

.shop-breadcrumb a:hover {
    color: var(--shop-accent-hover);
}

.shop-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-article-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (max-width: 820px) {
    .shop-article-detail {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.shop-article-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 16px;
    border-radius: 16px;
    background: var(--jt-bg-surface-2);
    border: 1px solid var(--jt-border-default);
    box-shadow: var(--jt-shadow-sm);
}

.shop-article-main-image img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 8px;
}

.shop-article-main-image--empty .shop-article-noimage {
    font-size: 72px;
}

.shop-article-thumbs {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-article-thumb {
    width: 64px;
    height: 64px;
    padding: 3px;
    border-radius: 8px;
    border: 2px solid var(--jt-border-default);
    background: var(--jt-surface-card);
    cursor: pointer;
    transition: border-color .15s ease;
}

.shop-article-thumb:hover {
    border-color: var(--shop-accent-hover, #17508f);
}

.shop-article-thumb--active {
    border-color: var(--shop-accent, #1b5faa);
}

.shop-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-article-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.shop-article-detail-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.shop-article-detail-price {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--shop-accent, #1b5faa);
    font-variant-numeric: tabular-nums;
}

.shop-article-pricehint {
    margin: 0;
    font-size: 14px;
    color: var(--jt-fg-secondary);
}

.shop-article-text p {
    margin: 0 0 12px 0;
    max-width: 72ch;
    font-size: 16px;
    line-height: 1.7;
    color: var(--jt-fg-default);
    white-space: pre-line;
}

.shop-article-text p:last-child {
    margin-bottom: 0;
}

.shop-article-contact {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-left: 4px solid var(--shop-accent);
}

.shop-article-contact-icon {
    flex: 0 0 auto;
    font-size: 36px;
    color: var(--shop-accent);
}

.shop-article-contact-body {
    min-width: 0;
}

.shop-article-contact .shop-hero-actions {
    margin-top: 12px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Warenkorb und Anfrage
   ─────────────────────────────────────────────────────────────────────────── */

.shop-header-cart {
    position: relative;
}

/* Die Zahl sitzt am Symbol, nicht daneben – auf dem Telefon ist der Text ausgeblendet. */
.shop-cart-badge {
    position: absolute;
    top: 2px;
    left: 20px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--shop-accent, #1b5faa);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.shop-article-action {
    padding: 0 14px 14px 14px;
}

.shop-cart-add {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.shop-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-cart-line {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--jt-border-default);
}

.shop-cart-line:last-child {
    border-bottom: 0;
}

@media (max-width: 620px) {
    .shop-cart-line {
        grid-template-columns: 56px 1fr;
    }

    .shop-cart-side {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.shop-cart-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 78px;
    border-radius: 8px;
    background: var(--jt-bg-surface-2);
    overflow: hidden;
}

.shop-cart-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-cart-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.shop-cart-name {
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.shop-cart-name:hover {
    color: var(--shop-accent, #1b5faa);
    text-decoration: underline;
}

/* Menge und Art stehen nebeneinander. Oben ausrichten und beide Eingaben gleich hoch:
   Eine Auswahlliste ist von sich aus höher als ein Zahlenfeld - an der Unterkante
   ausgerichtet standen die Beschriftungen darüber auf verschiedenen Höhen. */
.shop-cart-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.shop-cart-control {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-cart-control .shop-input {
    height: 40px;
    line-height: 1.2;
}

.shop-input--tiny {
    width: 76px;
}

.shop-input--small {
    width: 170px;
}

.shop-cart-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.shop-cart-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-accent, #1b5faa);
    white-space: nowrap;
}

.shop-cart-remove {
    border: 0;
    background: transparent;
    padding: 2px 0;
    font: inherit;
    font-size: 13px;
    color: var(--jt-fg-tertiary);
    cursor: pointer;
    text-decoration: underline;
}

.shop-cart-remove:hover {
    color: var(--jt-status-danger-fg);
}

.shop-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--jt-border-default);
    font-size: 17px;
}

.shop-cart-total strong {
    font-size: 20px;
    color: var(--shop-accent, #1b5faa);
}

.shop-cart-add-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.shop-cart-add-row .shop-cart-add {
    flex: 1;
}

.shop-cart-add-qty {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-article-availability {
    padding: 14px;
    border-radius: 12px;
    background: var(--jt-bg-surface-2);
    border: 1px solid var(--jt-border-default);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-article-availability .shop-field-hint {
    margin: 0;
}

.shop-availability-free {
    margin: 8px 0;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    background: var(--jt-status-ok-bg, #e8f5ec);
    color: var(--jt-status-ok-fg, #1e7a3c);
}

/* ── Angebotspositionen ───────────────────────────────────────────────────────
   Der Kunde muss sehen, was er annimmt. Auf dem Telefon ist dafür wenig Platz,
   deshalb: Bezeichnung links und umbrechend, Menge und Preis schmal und rechts. */

.shop-offer-group {
    margin: 18px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-accent, #2563eb);
}

.shop-offer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shop-offer-table td {
    padding: 8px 4px;
    vertical-align: top;
    border-bottom: 1px solid var(--jt-border-default);
}

.shop-offer-cell-name {
    width: 100%;
}

.shop-offer-cell-amount {
    white-space: nowrap;
    text-align: right;
    padding-right: 10px !important;
    color: var(--jt-fg-tertiary);
}

.shop-offer-cell-price {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Optionale Posten zählen nicht in die Summe - das muss man sehen, nicht raten. */
.shop-offer-row--optional .shop-offer-cell-name,
.shop-offer-row--optional .shop-offer-cell-price {
    color: var(--jt-fg-tertiary);
}

.shop-offer-optional {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    background: var(--jt-bg-surface-2);
    color: var(--jt-fg-tertiary);
}

.shop-offer-info {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--jt-fg-tertiary);
}

.shop-offer-subtotal td {
    padding-top: 10px;
    font-weight: 600;
    border-bottom: none;
}

.shop-offer-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid var(--jt-border-default);
    font-size: 17px;
}

.shop-offer-total strong {
    font-variant-numeric: tabular-nums;
}


/* ───────────────────────────────────────────────────────────────────────────
   Runde 2 (2026-10): Zeitraumleiste, Willkommensblock, Kaufkasten

   Nur Theme-Token und die Akzentfarbe des Händlers – damit gilt alles in
   beiden Erscheinungsbildern, ohne eigene Dark-Regeln.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Zeitraum im Kopf ── */

.shop-periodbar {
    border-top: 1px solid var(--jt-border-default);
    background: var(--shop-accent-soft);
}

.shop-periodbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px 16px;
}

.shop-periodbar-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--jt-fg-default);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.shop-periodbar-icon {
    color: var(--shop-accent);
}

.shop-periodbar-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.shop-periodbar-action {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: var(--jt-radius-pill);
    border: 1px solid var(--shop-accent);
    color: var(--shop-accent);
    font-size: 13px;
}

.shop-periodbar-button:hover .shop-periodbar-action {
    background: var(--shop-accent);
    color: var(--shop-accent-contrast, #ffffff);
}

/* Die Uhrzeiten des Einsatztages: nachrangig neben dem Zeitraum, aber lesbar.
   Auf schmalen Geräten entfallen sie – dort zählt das Datum. */
.shop-periodbar-times {
    flex: 0 0 auto;
    font-size: 13px;
    opacity: .75;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .shop-periodbar-times {
        display: none;
    }
}

/* Zeitraum und Netto/Brutto teilen sich die Leiste: links der Zeitraum, rechts der Umschalter.
   Gibt es keinen Zeitraum, hält ein Platzhalter den Umschalter rechts. */
.shop-periodbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-periodbar-button,
.shop-periodbar-spacer {
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Netto / Brutto ── */

.shop-pricemode {
    flex: 0 0 auto;
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--shop-accent);
    border-radius: var(--jt-radius-pill);
    background: var(--jt-bg-page, transparent);
}

.shop-pricemode-option {
    padding: 4px 12px;
    border: 0;
    border-radius: var(--jt-radius-pill);
    background: transparent;
    color: var(--shop-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.shop-pricemode-option.is-active {
    background: var(--shop-accent);
    color: var(--shop-accent-contrast, #ffffff);
}

.shop-pricemode-option:focus-visible {
    outline: 2px solid var(--shop-accent);
    outline-offset: 2px;
}

/* ── Preis: hervorgehobene Preisart, darunter die andere ── */

.shop-price {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}

.shop-price--end {
    align-items: flex-end;
    text-align: right;
}

.shop-price-main {
    white-space: nowrap;
}

.shop-price-kind {
    margin-left: 4px;
    font-size: .75em;
    font-weight: 500;
    color: var(--jt-fg-secondary);
}

.shop-price-alt {
    font-size: 12px;
    font-weight: 400;
    color: var(--jt-fg-secondary);
    white-space: nowrap;
}

/* In einer Hinweiszeile (Einzelpreis im Warenkorb) stehen beide nebeneinander. */
.shop-price--inline {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

/* ── Summe: Netto, Steuer je Satz, Brutto ── */

.shop-price-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--jt-border-default);
    font-variant-numeric: tabular-nums;
}

.shop-price-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--jt-fg-secondary);
    font-size: 14px;
}

.shop-price-summary-row dt,
.shop-price-summary-row dd {
    margin: 0;
}

.shop-price-summary-row dd {
    white-space: nowrap;
}

/* Hervorgehoben wird die gewählte Summe – die andere bleibt vollständig lesbar. */
.shop-price-summary.is-net .shop-price-summary-row--net,
.shop-price-summary.is-gross .shop-price-summary-row--gross {
    color: var(--jt-fg-default);
    font-size: 17px;
    font-weight: 700;
}

/* ── Zeitraumwahl (Inline-Dialog nach dem Muster jt-takeover) ── */

.shop-period-modal {
    max-width: 520px;
}

.shop-period-modal .jt-takeover-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-period-text {
    margin: 0 0 16px 0;
    color: var(--jt-fg-secondary);
    line-height: 1.55;
}

.shop-period-modal .shop-field {
    margin-bottom: 4px;
}

.shop-period-modal .jt-takeover-actions {
    justify-content: flex-end;
}

.shop-period-modal .shop-notice {
    margin: 10px 0 0 0;
}

/* Knopf mit Zeitraum, z. B. im Warenkorb – führt zur Wahl in der Kopfleiste. */
.shop-period-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--jt-border-default);
    background: var(--jt-bg-surface-2);
    color: var(--jt-fg-default);
    font: inherit;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.shop-period-chip .material-symbols-outlined {
    color: var(--shop-accent);
}

.shop-period-chip:hover {
    border-color: var(--shop-accent);
}

.shop-period-chip-action {
    color: var(--shop-accent);
    font-size: 13px;
    font-weight: 600;
}

/* ── Kundenleiste des Webshop-Super-Admins ──
   Bewusst anders eingefaerbt als die Zeitraumleiste: Wer im Namen eines fremden Kunden arbeitet,
   soll das nicht uebersehen koennen. Sie sitzt unter der Zeitraumleiste und damit an derselben
   Stelle auf jeder Seite. */

.shop-wsabar {
    border-top: 1px solid var(--jt-border-default);
    background: var(--jt-bg-surface-2);
}

.shop-wsabar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    font-size: 14px;
}

.shop-wsabar-icon {
    color: var(--shop-accent);
}

.shop-wsabar-label {
    color: var(--jt-fg-secondary);
}

/* Die Anmeldung des Mitarbeiters: zurückhaltend, aber jederzeit ablesbar. Auf schmalen Geräten
   entfällt sie – dort zählt, für wen gearbeitet wird. */
.shop-wsabar-user {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    flex: 0 1 auto;
    min-width: 0;
}

.shop-wsabar-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.shop-wsabar-sep {
    flex: 0 0 auto;
    color: var(--jt-border-default);
}

@media (max-width: 760px) {
    .shop-wsabar-user,
    .shop-wsabar-sep {
        display: none;
    }
}

.shop-wsabar-customer {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* Kein Kunde gewaehlt: zurueckhaltend, aber als Luecke erkennbar. */
.shop-wsabar-customer--empty {
    font-weight: 400;
    font-style: italic;
    color: var(--jt-fg-secondary);
}

.shop-wsabar-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: var(--jt-radius-pill);
    background: var(--jt-bg-warning, rgba(255, 171, 0, .16));
    color: var(--jt-fg-warning, #a06a00);
    font-size: 12px;
}

.shop-wsabar-warning .material-symbols-outlined {
    font-size: 16px;
}

.shop-wsabar-action {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: var(--jt-radius-pill);
    border: 1px solid var(--shop-accent);
    background: transparent;
    color: var(--shop-accent);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.shop-wsabar-action:hover {
    background: var(--shop-accent);
    color: var(--shop-accent-contrast, #ffffff);
}

/* ── Kundenwahl (Inline-Dialog nach dem Muster jt-takeover) ── */

.shop-wsa-modal {
    max-width: 620px;
}

.shop-wsa-modal .jt-takeover-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-wsa-modal .jt-takeover-actions {
    justify-content: flex-end;
}

.shop-wsa-text {
    margin: 0 0 16px 0;
    color: var(--jt-fg-secondary);
    line-height: 1.55;
}

/* Feste Hoehe statt wachsender Liste: Der Dialog soll beim Tippen nicht springen. */
.shop-wsa-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    min-height: 160px;
    overflow-y: auto;
    margin-top: 12px;
}

/* ENTSCHEIDEND: In einem Flex-Container mit begrenzter Hoehe schrumpfen die
   Kinder, statt dass gescrollt wird - flex-shrink steht standardmaessig auf 1.
   Bei fuenfzig Treffern wurde jede Zeile auf wenige Pixel zusammengedrueckt;
   die Namen waren nur noch als Schnipsel zu erkennen und ueberlappten sich.
   overflow-y hilft dagegen nicht, weil die Stauchung vorher geschieht. */
.shop-wsa-result,
.shop-wsa-hint {
    flex: 0 0 auto;
}

.shop-wsa-hint {
    margin: 12px 0 0 0;
    color: var(--jt-fg-secondary);
}

.shop-wsa-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    /* Ohne Mindesthoehe und gesetzte Zeilenhoehe erbt die Zeile die des
       Dialogkoerpers - sie wird dann je nach Inhalt unterschiedlich hoch. */
    min-height: 44px;
    line-height: 1.35;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--jt-fg-default);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.shop-wsa-result:hover {
    border-color: var(--shop-accent);
    background: var(--shop-accent-soft);
}

.shop-wsa-result--current {
    border-color: var(--shop-accent);
}

.shop-wsa-result-name {
    font-weight: 600;
}

.shop-wsa-result-meta {
    font-size: 13px;
    color: var(--jt-fg-secondary);
}

.shop-wsa-result-flag {
    align-self: flex-start;
    margin-top: 2px;
    padding: 1px 8px;
    border-radius: var(--jt-radius-pill);
    background: var(--jt-bg-warning, rgba(255, 171, 0, .16));
    color: var(--jt-fg-warning, #a06a00);
    font-size: 12px;
}

/* ── Willkommensblock der Startseite ── */

.shop-welcome {
    position: relative;
    overflow: hidden;
    padding: 26px 22px;
    border-radius: 20px;
    border: 1px solid var(--jt-border-default);
    background:
        linear-gradient(135deg, var(--shop-accent-soft) 0%, transparent 70%),
        var(--jt-surface-card);
    box-shadow: var(--jt-shadow-sm);
}

/* Schmaler Akzentstreifen links – ein klares Erkennungszeichen, ohne laut zu werden. */
.shop-welcome::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--shop-accent);
}

.shop-welcome-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.shop-welcome-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--jt-fg-secondary);
    white-space: pre-line;
    text-wrap: pretty;
}

/* Kurzbeschreibung als Einleitung unter dem Artikelnamen. */
.shop-article-lead {
    margin: -4px 0 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--jt-fg-secondary);
    white-space: pre-line;
}

.shop-welcome .shop-hero-actions {
    margin-top: 20px;
}

/* Zwischenüberschrift eines Abschnitts mit Akzentstrich darunter. */
.shop-section-title {
    position: relative;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.shop-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--shop-accent);
}

/* ── Katalogkacheln und Kategorien: gleiche Tiefe wie die übrigen Karten ── */

.shop-article,
.shop-catalog-groups {
    box-shadow: var(--jt-shadow-sm);
}

.shop-article:hover {
    box-shadow: var(--jt-shadow-lg);
}

.shop-article-title {
    color: var(--jt-fg-default);
}

/* ── Kaufkasten der Artikelseite ── */

.shop-article-buybox {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--jt-border-default);
    border-top: 4px solid var(--shop-accent);
    background: var(--jt-surface-card);
    box-shadow: var(--jt-shadow-md);
}

.shop-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shop-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--jt-radius-pill);
    background: var(--jt-bg-surface-2);
    border: 1px solid var(--jt-border-default);
    color: var(--jt-fg-secondary);
    font-size: 13px;
    font-weight: 600;
}

.shop-tag--accent {
    background: var(--shop-accent-soft);
    border-color: transparent;
    color: var(--shop-accent);
}

.shop-article-pricebox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--shop-accent-soft);
}

.shop-article-pricebox .shop-article-pricehint {
    flex: 1 1 100%;
}

.shop-article-availability-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
}

.shop-article-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.shop-link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--jt-radius-pill);
    border: 1px solid var(--shop-accent);
    background: transparent;
    color: var(--shop-accent);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.shop-link-button .material-symbols-outlined {
    font-size: 18px;
}

.shop-link-button:hover {
    background: var(--shop-accent-soft);
}

/* Zustandsmeldung mit Sinnbild – farbig nach Lage, in beiden Erscheinungsbildern lesbar. */
.shop-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    background: var(--jt-status-info-bg);
    color: var(--jt-status-info-fg);
}

.shop-status .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 20px;
}

.shop-status--ok {
    background: var(--jt-status-ok-bg);
    color: var(--jt-status-ok-fg);
}

.shop-status--warn {
    background: var(--jt-status-warn-bg);
    color: var(--jt-status-warn-fg);
}

.shop-article-note {
    margin: 0;
    font-size: 14px;
    color: var(--jt-fg-secondary);
}

.shop-article-buy .shop-cart-add-row {
    align-items: stretch;
}

.shop-article-buy .shop-button--wide {
    margin-top: 0;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 16px;
}

@media (min-width: 768px) {

    .shop-periodbar-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .shop-welcome {
        padding: 36px 36px;
    }

    .shop-welcome-title {
        font-size: 36px;
    }

    .shop-article-detail-title {
        font-size: 32px;
    }

    .shop-article-detail-price {
        font-size: 32px;
    }
}
/* Tages- und Gesamtpreis in der Artikelansicht.

   Der große Betrag bleibt der Tagespreis - damit vergleicht der Besucher. Die Summe für
   den Zeitraum steht darunter, ruhiger gesetzt, aber als Einziges fett: Sie ist das, was
   tatsaechlich anfaellt. */
.shop-article-priceunit {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--jt-fg-muted, #6b7280);
}

.shop-article-pricetotal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin: 8px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--jt-border-default);
    font-size: 14px;
}

.shop-article-pricetotal strong {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

/* Rechenweg unter den Feldern einer Warenkorbzeile. */
.shop-cart-calc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* Ueberschrift einer Subgruppe im Warenkorb - dieselbe Gliederung wie im Angebot. */
.shop-cart-list + .shop-group-title {
    margin-top: 18px;
}
/* ── Ladeanzeige des Shops ─────────────────────────────────────────────────

   Eigener Ring statt `jt-root-loader__ring`: Jene Klasse steht in einer
   isolierten Komponentendatei (JaasRootComponent.razor.css) und gilt nur
   innerhalb jener Komponente. In den Shop-Seiten griff sie deshalb nicht -
   sichtbar blieb allein der Text "Die Anwendung wird geladen" auf leerer
   Flaeche. Die Farbe kommt aus der Akzentfarbe des Haendlers, damit auch
   der Ladezustand nach seinem Haus aussieht. */
.shop-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 60vh;
    padding: 40px 20px;
}

.shop-splash__ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid var(--jt-border-default, #d8d8d8);
    border-top-color: var(--shop-accent, #1b5faa);
    border-right-color: var(--shop-accent, #1b5faa);
    animation: shop-splash-spin 0.85s linear infinite;
    box-sizing: border-box;
    will-change: transform;
}

.shop-splash__text {
    margin: 0;
    font-size: 15px;
    color: var(--jt-fg-muted, #6b7280);
}

@keyframes shop-splash-spin {
    to {
        transform: rotate( 360deg );
    }
}

@media ( prefers-reduced-motion: reduce ) {
    .shop-splash__ring {
        animation-duration: 3s;
    }
}
/* ── Diagnose der Katalogaufrufe (nur mit ?diagnose=1) ──
   Bewusst nüchtern und ohne Rücksicht auf das Erscheinungsbild des Händlers: Der Block ist ein
   Werkzeug zur Fehlersuche und soll sich deutlich vom Shop abheben. */

.shop-diag {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid var(--jt-border, #555);
    border-radius: var(--jt-radius-m, 8px);
    background: var(--jt-surface-2, rgba(128, 128, 128, .12));
    font-size: 12px;
    line-height: 1.5;
}

.shop-diag-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.shop-diag-state {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--jt-border, #555);
}

.shop-diag-empty {
    margin: 0;
    opacity: .7;
}

.shop-diag-list {
    margin: 0;
    padding-left: 18px;
}

.shop-diag-entry {
    margin-bottom: 10px;
}

.shop-diag-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 600;
}

.shop-diag-ok {
    color: var(--jt-success, #0c923e);
}

.shop-diag-fail {
    color: var(--jt-error, #f94839);
}

.shop-diag-row {
    opacity: .85;
}

/* Die Adresse umbricht an beliebiger Stelle - sie ist lang und soll vollständig lesbar sein. */
.shop-diag-url {
    margin-top: 2px;
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
    opacity: .9;
}

.shop-diag-error {
    margin-top: 4px;
    color: var(--jt-error, #f94839);
    word-break: break-word;
}

/* ── Abhol- und Rückgabezeit im Anfrageblock ──
   Dieselbe Angabe wie in der Kopfleiste, bewusst doppelt: Oben wird sie leicht überlesen, und
   auf schmalen Geräten entfällt sie dort ganz. Beim Absenden muss sie stehen. */

.shop-period-times {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    opacity: .8;
}

/* ── Revisionshistorie eines Belegs ──
   Fruehere Fassungen bleiben vollstaendig abrufbar, treten aber zurueck: Der Kunde soll auf einen
   Blick sehen, welche Fassung gilt, und die aelteren trotzdem finden. */

.shop-doc-history {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--jt-border, rgba(128, 128, 128, .3));
}

.shop-doc-history-title {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
}

.shop-doc-history-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-doc-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
}

.shop-doc-history-date,
.shop-doc-history-total {
    opacity: .75;
}

.shop-doc-history-total {
    margin-left: auto;
}

/* Die Fassungsnummer: als Plakette, damit sie sich vom uebrigen Kleingedruckten abhebt. */
.shop-doc-revision {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--jt-radius-pill, 999px);
    border: 1px solid var(--jt-border, rgba(128, 128, 128, .4));
    font-size: 12px;
    white-space: nowrap;
}

.shop-doc-revision--current {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
}

/* Ein Knopf, der wie ein Verweis aussieht - fuer nachrangige Aktionen in Listen. */
.shop-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-accent);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.shop-link-button:disabled {
    opacity: .6;
    cursor: default;
}

/* ── Netto- und Bruttosumme nebeneinander ──
   Beide Betraege werden gebraucht: Der Gewerbekunde rechnet mit dem Netto, der Privatkunde zahlt
   das Brutto. Das Brutto tritt dabei hervor - es ist der Betrag, der tatsaechlich faellig wird. */

/* Raster statt Flex-Spalte: Die Betraege stehen in einer eigenen Spalte und fluchten dadurch
   untereinander. Mit einer rechtsbuendigen Spalte aus ganzen Zeilen richteten sich die Zeilen
   aus, nicht die Zahlen - und weil "BRUTTO" breiter ist als "NETTO", sass der Nettobetrag
   sichtbar eingerueckt. Auf schmalen Geraeten fiel das sofort auf. */
.shop-doc-totals {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 4px;
    row-gap: 1px;
    align-items: baseline;
    justify-content: end;
}

/* Der Betrag steht rechtsbuendig in der ersten Spalte, die Beschriftung linksbuendig in der
   zweiten. Dadurch fluchten die Zahlen, egal wie breit die Beschriftung ist. */
.shop-doc-amount {
    justify-self: end;
    white-space: nowrap;
}

.shop-doc-amount--gross {
    font-weight: 700;
}

.shop-doc-total-label {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}


/* Bezeichnung des Vorhabens: stellt den Bezug zur urspruenglichen Anfrage her. */
.shop-doc-event {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    opacity: .85;
}

/* ── Fortschritt und Prozessanalyse (Anfrage, Angebotserstellung) ──
   Der Balken rückt nur vor, wenn der Webdienst einen Schritt abgeschlossen meldet. Farben
   ausschließlich aus Theme- und Akzentvariablen – gilt damit in beiden Erscheinungsbildern. */

.shop-progress {
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--jt-surface-card, #ffffff);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
}

.shop-progress-label {
    font-weight: 600;
    color: var(--jt-fg-default, #222222);
}

.shop-progress-time {
    color: var(--jt-fg-muted, #999999);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.shop-progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--shop-accent-soft, rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.shop-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--shop-accent, #1f6feb);
    transition: width 0.3s ease;
}

/* Ein leiser Schimmer zeigt, dass gearbeitet wird – der Stand selbst kommt aus der Breite. */
.shop-progress-fill--running {
    background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shop-progress-shimmer 1.4s linear infinite;
}

@keyframes shop-progress-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.shop-progress--failed .shop-progress-fill {
    background: var(--jt-error, #c0392b);
}

.shop-progress--failed .shop-progress-label {
    color: var(--jt-error, #c0392b);
}

.shop-progress-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 2px 0;
    font-size: 13px;
    color: var(--jt-fg-secondary, #555555);
    cursor: pointer;
}

    .shop-progress-toggle:hover {
        color: var(--shop-accent, #1f6feb);
    }

    .shop-progress-toggle .material-symbols-outlined {
        font-size: 18px;
    }

.shop-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    border-top: 1px solid var(--jt-border-default, #e6e6e6);
    padding-top: 8px;
}

.shop-progress-step,
.shop-progress-part {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 80px 70px;
    align-items: center;
    gap: 8px;
}

.shop-progress-part {
    color: var(--jt-fg-muted, #999999);
    font-size: 12px;
}

    .shop-progress-part .shop-progress-part-label {
        grid-column: 2 / 4;
        padding-left: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.shop-progress-step-icon {
    font-size: 18px;
    color: var(--jt-fg-muted, #999999);
}

.shop-progress-step--done .shop-progress-step-icon {
    color: var(--jt-success, #2e7d32);
}

.shop-progress-step--running .shop-progress-step-icon {
    color: var(--shop-accent, #1f6feb);
    animation: shop-progress-spin 1s linear infinite;
}

.shop-progress-step--failed .shop-progress-step-icon,
.shop-progress-step--failed .shop-progress-step-label {
    color: var(--jt-error, #c0392b);
}

.shop-progress-step--waiting .shop-progress-step-label {
    color: var(--jt-fg-muted, #999999);
}

@keyframes shop-progress-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.shop-progress-step-label {
    color: var(--jt-fg-default, #222222);
    min-width: 0;
}

.shop-progress-step-detail {
    margin-left: 6px;
    color: var(--jt-fg-muted, #999999);
    font-size: 12px;
}

.shop-progress-step-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--shop-accent-soft, rgba(0, 0, 0, 0.08));
    overflow: hidden;
}

.shop-progress-step-fill {
    display: block;
    height: 100%;
    background: var(--shop-accent, #1f6feb);
}

.shop-progress-step-time {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--jt-fg-secondary, #555555);
    white-space: nowrap;
}

.shop-progress-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--jt-border-default, #e6e6e6);
    padding-top: 6px;
    margin-top: 2px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Auf schmalen Anzeigen entfällt der Balken je Schritt – Bezeichnung und Dauer zählen. */
@media (max-width: 520px) {
    .shop-progress-step,
    .shop-progress-part {
        grid-template-columns: 22px minmax(0, 1fr) 70px;
    }

    .shop-progress-step-bar {
        display: none;
    }

    .shop-progress-part .shop-progress-part-label {
        grid-column: 2 / 3;
    }
}
/* ── Bestätigung der E-Mail-Adresse (Kundenbereich, Angebot) ──
   Bewusst kräftig: Ohne Bestätigung lässt sich kein Angebot annehmen. */
.shop-emailstatus {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid;
    border-left-width: 5px;
    font-size: 15px;
    line-height: 1.5;
}

.shop-emailstatus > .material-symbols-outlined {
    font-size: 28px;
}

.shop-emailstatus--ok {
    background: var(--jt-status-ok-bg, #eaf6ed);
    color: var(--jt-status-ok-fg, #1e7b34);
    border-color: var(--jt-status-ok-fg, #1e7b34);
}

.shop-emailstatus--open {
    background: var(--jt-status-warn-bg, #fff4e0);
    color: var(--jt-status-warn-fg, #8a5300);
    border-color: var(--jt-status-warn-fg, #8a5300);
}

.shop-emailstatus-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 240px;
    min-width: 0;
}

.shop-emailstatus-body strong {
    font-size: 16px;
    font-weight: 700;
}

.shop-emailstatus-ok {
    color: var(--jt-status-ok-fg, #1e7b34);
    font-weight: 600;
}

.shop-emailstatus-error {
    color: var(--jt-status-danger-fg, #a4262c);
    font-weight: 600;
}

/* ── Akzentfarbe im dunklen Skin ──
   Das Inline-Style an .shop-root setzt die Farbe für den hellen Skin. Für sehr dunkle Akzente
   (ANKR-Schwarz, SD5-Grau) gibt es eine helle Fassung (--shop-accent-*-on-dark); bei allen anderen
   ist sie identisch. Gesetzt wird sie an den Kindern – das Inline-Style selbst lässt sich nicht
   überschreiben, eine Variable an einem Kind schon. */
[data-theme="dark"] .shop-root > * {
    --shop-accent: var(--shop-accent-on-dark);
    --shop-accent-hover: var(--shop-accent-hover-on-dark);
    --shop-accent-contrast: var(--shop-accent-contrast-on-dark);
    --shop-accent-soft: var(--shop-accent-soft-on-dark);
}

/* ── Anfrage ohne Konto ── */
.shop-guest-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    margin: 4px 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--shop-accent-soft);
    color: var(--jt-fg-default);
    font-size: 14px;
}

.shop-guest-choice a {
    color: var(--shop-accent);
    font-weight: 600;
}

.shop-guest-title {
    margin: 8px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--jt-fg-default);
}

/* Pflichtfeld der Anfrage ohne Konto */
.shop-required {
    margin-left: .2em;
    color: var(--shop-accent);
    font-weight: 700;
}