/* Staff workspace. Guest skins stay independently scoped in .tf-guest. */
.tf-workspace { display: flex; min-height: 100dvh; font-family: var(--tf-font); color: var(--tf-text); background: var(--tf-bg); }
.tf-workspace .sidebar { width: 248px; flex-shrink: 0; position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: var(--tf-nav-bg); color: var(--tf-nav-text); }
.tf-workspace main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tf-workspace .content { padding: 32px clamp(20px,3vw,48px) 48px; flex: 1; min-width: 0; }
.tf-workspace-topbar { height: 76px; padding: 0 clamp(20px,3vw,48px); border-bottom: 1px solid var(--tf-border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tf-workspace-topbar>span { color: var(--tf-text-muted); font-size: 10px; letter-spacing: .19em; }
.tf-user { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.tf-user a,.tf-user .tf-link-button { color: var(--tf-text-muted); margin-left: 10px; padding: 10px 0; text-underline-offset: 4px; }
.tf-logout-form { display: inline-flex; margin: 0; }
.tf-user-avatar { display: grid; place-items: center; width: 34px; height: 34px; background: var(--tf-surface-sunken); border-radius: 50%; font-weight: 650; }
.tf-nav-brand { padding: 28px 28px 30px; }
.tf-nav-brand>a { color: var(--tf-nav-text); text-decoration: none; font: 500 35px/1 Georgia,serif; letter-spacing: -.055em; }
.tf-nav-brand>a>span { color: var(--tf-nav-muted); }
.tf-nav-brand small { display: block; color: var(--tf-nav-muted); font-size: 8px; letter-spacing: .17em; margin-top: 12px; }
.tf-nav { padding: 0 16px; }
.tf-nav>a { display: flex; gap: 13px; align-items: center; min-height: 47px; padding: 10px 14px; color: var(--tf-nav-muted); text-decoration: none; border-radius: 10px; margin-bottom: 4px; font-size: 13px; border: 1px solid transparent; }
.tf-nav>a>span[aria-hidden] { width: 21px; flex-shrink: 0; font-size: 11px; font-weight: 650; text-align: center; opacity: .9; }
.tf-nav>a.active { background: var(--tf-nav-active); color: var(--tf-nav-text); border-color: color-mix(in srgb,var(--tf-nav-text) 15%,transparent); }
.tf-nav>a:hover { background: var(--tf-nav-active); color: var(--tf-nav-text); }
.tf-nav-system { margin-top: 18px; border-top: 1px solid color-mix(in srgb,var(--tf-nav-text) 15%,transparent); padding-top: 12px; }
.tf-nav-system summary { display: flex; gap: 13px; align-items: center; min-height: 47px; padding: 10px 14px; color: var(--tf-nav-muted); border: 1px solid transparent; border-radius: 10px; font-size: 13px; cursor: pointer; list-style: none; user-select: none; }
.tf-nav-system summary::-webkit-details-marker { display: none; }
.tf-nav-system summary:hover,.tf-nav-system[open]>summary { background: var(--tf-nav-active); color: var(--tf-nav-text); }
.tf-nav-system-icon { width: 21px; flex-shrink: 0; text-align: center; font-size: 15px; }
.tf-nav-system-chevron { margin-left: auto; font-size: 15px; transition: transform .16s ease; }
.tf-nav-system[open] .tf-nav-system-chevron { transform: rotate(180deg); }
.tf-nav-system-links { margin: 5px 0 8px 20px; padding-left: 11px; border-left: 1px solid color-mix(in srgb,var(--tf-nav-text) 18%,transparent); }
.tf-nav-system-links>a { display: flex; gap: 10px; align-items: center; min-height: 42px; padding: 8px 12px; color: var(--tf-nav-muted); text-decoration: none; border: 1px solid transparent; border-radius: 9px; margin-bottom: 3px; font-size: 12px; }
.tf-nav-system-links>a>span[aria-hidden] { width: 18px; flex-shrink: 0; text-align: center; font-size: 10px; font-weight: 650; }
.tf-nav-system-links>a:hover,.tf-nav-system-links>a.active { background: var(--tf-nav-active); color: var(--tf-nav-text); border-color: color-mix(in srgb,var(--tf-nav-text) 12%,transparent); }
.tf-nav-section { margin: 24px 14px 9px; color: var(--tf-nav-muted); text-transform: uppercase; font-size: 9px; letter-spacing: .18em; }
.tf-nav-footer { padding: 28px 14px; color: var(--tf-nav-muted); border-top: 1px solid color-mix(in srgb,var(--tf-nav-text) 15%,transparent); margin-top: 28px; font-size: 12px; }
.tf-nav-footer small { display: block; margin-top: 6px; font-size: 10px; }
.tf-menu-toggle,.tf-menu-label { display: none; }
.tf-workspace-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px clamp(20px,3vw,48px); border-top: 1px solid var(--tf-border); font-size: 12px; color: var(--tf-text-muted); }
.tf-skip-link { position: fixed; left: 12px; top: -100px; z-index: 2000; padding: 12px; background: var(--tf-surface); color: var(--tf-text); }
.tf-skip-link:focus { top: 12px; }
.tf-workspace :is(a,button,input,select):focus-visible { outline: 3px solid var(--tf-brand); outline-offset: 3px; }
.tf-workspace .sidebar a:focus-visible { outline-color: var(--tf-nav-text); }

/* Einklappbare Seitenleiste (Zustand je Gerät, siehe js/nav.js). Eingeklappt bleibt eine
   schmale Leiste mit den Kürzeln – auf Küchen- und Barbildschirmen eine Kartenspalte mehr. */
.tf-topbar-start { display: flex; align-items: center; gap: 14px; }
.tf-topbar-start>span { color: var(--tf-text-muted); font-size: 10px; letter-spacing: .19em; }
/* Ohne Admin-Skin (Küche, Bar, Service) bleiben Marken- und Kopfzeile in Großbuchstaben wie bisher. */
.tf-workspace:not([data-skin="violet"]) :is(.tf-nav-brand small,.tf-topbar-start>span) { text-transform: uppercase; }
.tf-nav-collapse { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--tf-border); border-radius: 10px; background: var(--tf-surface); color: var(--tf-text); font-size: 16px; cursor: pointer; }
.tf-nav-collapse:hover { background: var(--tf-surface-sunken); }
.tf-nav-collapse:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 2px; }
.tf-nav-collapse>span[aria-hidden] { transition: transform .2s ease; }
.tf-workspace .sidebar { transition: width .2s ease; }
@media (min-width: 761px) {
    html.tf-nav-collapsed .tf-workspace .sidebar { width: 72px; overflow-x: hidden; }
    html.tf-nav-collapsed .tf-nav-collapse>span[aria-hidden] { transform: rotate(180deg); }
    html.tf-nav-collapsed .tf-nav-brand { padding: 28px 0 30px; text-align: center; }
    html.tf-nav-collapsed .tf-nav-brand>a { font-size: 0; }
    html.tf-nav-collapsed .tf-nav-brand>a::before { content: 't'; font-size: 35px; }
    html.tf-nav-collapsed .tf-nav-brand>a>span { font-size: 35px; }
    html.tf-nav-collapsed .tf-nav-brand small,
    html.tf-nav-collapsed .tf-nav-section,
    html.tf-nav-collapsed .tf-nav-footer { display: none; }
    html.tf-nav-collapsed .tf-nav { padding: 0 12px; }
    html.tf-nav-collapsed .tf-nav>a { justify-content: center; gap: 0; padding: 10px 0; }
    html.tf-nav-collapsed .tf-nav>a>span[aria-hidden] { font-size: 13px; }
    html.tf-nav-collapsed .tf-nav-system summary { justify-content: center; gap: 0; padding: 10px 0; }
    html.tf-nav-collapsed .tf-nav-system-chevron,
    html.tf-nav-collapsed .tf-nav-system-links { display: none; }
    /* Nur optisch ausblenden – Screenreader lesen den Namen weiter vor */
    html.tf-nav-collapsed .tf-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.tf-workspace :is(h1,h2):not(.tf-guest *) { font-weight: 600; letter-spacing: -.04em; }
.tf-workspace .content>h1,.tf-workspace .content>h2,.tf-workspace .content>div>h2 { font-size: clamp(25px,3vw,34px); }
.tf-workspace .text-muted { color: var(--tf-text-muted) !important; }
.tf-workspace .text-primary { color: var(--tf-brand) !important; }
.tf-workspace .bg-light { background: var(--tf-surface-sunken) !important; }
.tf-workspace .bg-white { background: var(--tf-surface) !important; }
.tf-workspace .card { border: 1px solid var(--tf-border) !important; border-radius: 16px; box-shadow: var(--tf-shadow-sm) !important; overflow: hidden; }
.tf-workspace .card-header { padding: 16px 20px; border-color: var(--tf-border); background: var(--tf-surface); }
.tf-workspace .card-body { padding: 20px; }
.tf-workspace .card-footer { border-color: var(--tf-border); }
.tf-workspace .btn { border-radius: 9px; min-height: 40px; padding: 9px 14px; font-size: 13px; font-weight: 550; white-space: normal; }
.tf-workspace .btn-sm { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.tf-workspace .btn-primary { --bs-btn-bg: var(--tf-brand); --bs-btn-border-color: var(--tf-brand); --bs-btn-color: var(--tf-brand-contrast); --bs-btn-hover-bg: var(--tf-brand); --bs-btn-hover-border-color: var(--tf-brand); --bs-btn-active-bg: var(--tf-brand); background: var(--tf-brand); color: var(--tf-brand-contrast); border-color: var(--tf-brand); }
.tf-workspace .btn-outline-primary { --bs-btn-color: var(--tf-brand); --bs-btn-border-color: var(--tf-brand); --bs-btn-hover-bg: var(--tf-brand); --bs-btn-hover-border-color: var(--tf-brand); --bs-btn-active-bg: var(--tf-brand); }
.tf-workspace .btn-outline-secondary,.tf-workspace .btn-outline-dark { --bs-btn-color: var(--tf-text); --bs-btn-border-color: var(--tf-border); --bs-btn-hover-bg: var(--tf-surface-sunken); --bs-btn-hover-color: var(--tf-text); --bs-btn-hover-border-color: var(--tf-text-muted); }
.tf-workspace .btn-link { color: var(--tf-brand); }
.tf-workspace .btn-outline-primary { --bs-btn-disabled-color: var(--tf-brand); --bs-btn-disabled-border-color: var(--tf-brand); }
.tf-workspace .list-group-item.active { background: var(--tf-surface-sunken); color: var(--tf-text); border-color: var(--tf-brand); box-shadow: inset 3px 0 var(--tf-brand); }
.tf-workspace .btn-success { --bs-btn-bg: var(--tf-status-ready); --bs-btn-border-color: var(--tf-status-ready); }
.tf-workspace .btn-danger { --bs-btn-bg: var(--tf-status-cancelled); --bs-btn-border-color: var(--tf-status-cancelled); }
.tf-workspace .form-control,.tf-workspace .form-select { border-color: var(--tf-border); border-radius: 9px; min-height: 42px; font-size: 14px; background-color: var(--tf-surface); color: var(--tf-text); }
.tf-workspace .form-control:focus,.tf-workspace .form-select:focus { border-color: var(--tf-brand); box-shadow: 0 0 0 3px color-mix(in srgb,var(--tf-brand) 14%,transparent); }
.tf-workspace .table { --bs-table-bg: var(--tf-surface); --bs-table-color: var(--tf-text); --bs-table-border-color: var(--tf-border); --bs-table-hover-bg: var(--tf-surface-sunken); width: 100%; margin-bottom: 0; }
.tf-workspace .table>:not(caption)>*>* { padding: 15px 18px; }
.tf-workspace .table thead th { background: var(--tf-surface-sunken); font-size: 11px; font-weight: 650; color: var(--tf-text-muted); text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.tf-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--tf-border); border-radius: 13px; background: var(--tf-surface); }
/* Artikelliste (Speisekarte): Karten-Zeilen statt <table>, damit auf schmalen
   Bildschirmen alle Spalten inkl. Aktionen sichtbar bleiben statt seitlich
   wegzuscrollen (siehe .tf-item-row Media Query unten). */
.tf-item-list { border: 1px solid var(--tf-border); border-radius: 13px; background: var(--tf-surface); overflow: hidden; }
.tf-item-list__head { display: flex; align-items: center; gap: 16px; padding: 11px 18px; background: var(--tf-surface-sunken); font-size: 11px; font-weight: 650; color: var(--tf-text-muted); text-transform: uppercase; letter-spacing: .045em; }
.tf-item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid var(--tf-border); }
.tf-item-row.text-muted { opacity: .6; }
.tf-item-row__photo { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; }
.tf-item-row__main { flex: 1 1 auto; min-width: 140px; }
.tf-item-row__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-item-row__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tf-text-muted); font-size: var(--tf-text-sm); margin-top: 2px; cursor: help; }
.tf-item-row__price { flex: 0 0 auto; width: 150px; }
.tf-item-row__available { flex: 0 0 auto; width: 84px; }
.tf-item-row__actions { flex: 0 0 auto; display: flex; gap: 8px; }
.tf-item-edit { padding: 16px 18px; border-top: 1px solid var(--tf-border); background: var(--tf-surface-sunken); }
@media(max-width:760px) {
    .tf-item-list__head { display: none; }
    .tf-item-row { flex-wrap: wrap; }
    .tf-item-row__photo { width: 44px; height: 44px; }
    .tf-item-row__main { flex: 1 1 100%; order: 1; }
    .tf-item-row__price { order: 2; width: auto; }
    .tf-item-row__available { order: 3; width: auto; margin-left: auto; }
    .tf-item-row__actions { order: 4; flex: 1 1 100%; flex-wrap: wrap; }
}
.tf-workspace .badge { border-radius: 100px; padding: 6px 10px; font-size: 11px; font-weight: 600; }
.tf-workspace .badge.bg-success { background: var(--tf-status-ready-soft) !important; color: var(--tf-status-ready); }
.tf-workspace .badge.bg-warning { background: var(--tf-status-preparing-soft) !important; color: var(--tf-status-preparing) !important; }
.tf-workspace .badge.bg-danger { background: var(--tf-status-cancelled-soft) !important; color: var(--tf-status-cancelled); }
.tf-workspace .badge.bg-secondary { background: var(--tf-status-open-soft) !important; color: var(--tf-status-open); }
.tf-workspace .modal { background: var(--tf-overlay) !important; }
.tf-workspace .modal-content { border: 1px solid var(--tf-border); border-radius: 18px; box-shadow: var(--tf-shadow-lg); }
.tf-workspace .modal-header,.tf-workspace .modal-body,.tf-workspace .modal-footer { padding: 20px 24px; border-color: var(--tf-border); }
.tf-workspace .alert { border-radius: 12px; line-height: 1.6; }
.tf-workspace .tf-station .tf-btn { white-space: normal; }
.tf-workspace .tf-order-card__header { padding: 10px 12px; align-items: flex-start; }
.tf-workspace .tf-order-card__item { padding: 10px 12px; gap: 8px; }
.tf-workspace .tf-order-card__line,.tf-workspace .tf-order-card__actions { flex-wrap: wrap; }
.tf-workspace .tf-card { border-radius: 16px; }
.tf-workspace .tf-empty { background: var(--tf-surface); border: 1px dashed var(--tf-border); border-radius: 18px; margin-top: 18px; }
.tf-page-heading { margin-bottom: 28px; }
.tf-page-heading h1 { font-size: 34px; margin: 0 0 8px; }
.tf-page-heading p { color: var(--tf-text-muted); margin: 0; }
/* Service: auf 25+ Tische ausgelegt – Meldungen, Ausgabe und Tische als Raster */
.tf-service-grid { display: flex; flex-direction: column; gap: 28px; }
.tf-service-grid .btn { min-height: 40px; }
.tf-service-grid .card-header { background: var(--tf-station-service); color: var(--tf-text-inverted); padding: 8px 12px; }
/* Bondrucker */
.tf-printer-address { display: flex; align-items: center; gap: 6px; }
.tf-printer-address .form-control { max-width: 260px; }
.tf-printer-address .tf-printer-port { max-width: 96px; }
.tf-printer-alert { font-size: 15px; }

/* Netzwerk- und QR-Freigabe */
.tf-network-summary { display: flex; align-items: flex-start; gap: 18px; padding: clamp(24px,4vw,38px); border: 1px solid var(--tf-border); border-radius: 18px; background: var(--tf-surface); }
.tf-network-summary.is-ready { border-color: var(--tf-status-ready); box-shadow: inset 4px 0 var(--tf-status-ready); }
.tf-network-summary.is-blocked { border-color: var(--tf-status-cancelled); box-shadow: inset 4px 0 var(--tf-status-cancelled); }
.tf-network-summary__icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; background: var(--tf-surface-sunken); font-size: 24px; font-weight: 700; }
.tf-network-summary.is-ready .tf-network-summary__icon { color: var(--tf-status-ready); }
.tf-network-summary.is-blocked .tf-network-summary__icon { color: var(--tf-status-cancelled); }
.tf-network-summary h2 { margin: 5px 0 8px; font-size: clamp(22px,3vw,30px); }
.tf-network-summary p { margin: 0 0 10px; color: var(--tf-text-muted); }
.tf-network-summary code { word-break: break-all; }
.tf-network-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 12px; }
.tf-network-check { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--tf-border); border-radius: 13px; background: var(--tf-surface); }
.tf-network-check__state { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; font-weight: 700; background: var(--tf-surface-sunken); }
.tf-network-check h3 { margin: 2px 0 6px; font-size: 15px; }
.tf-network-check p { margin: 0; color: var(--tf-text-muted); font-size: 13px; line-height: 1.55; }
.tf-network-check.is-passed { border-color: color-mix(in srgb,var(--tf-status-ready) 45%,var(--tf-border)); }
.tf-network-check.is-passed .tf-network-check__state { color: var(--tf-status-ready); background: var(--tf-status-ready-soft); }
.tf-network-check.is-warning { border-color: color-mix(in srgb,var(--tf-status-preparing) 55%,var(--tf-border)); }
.tf-network-check.is-warning .tf-network-check__state { color: var(--tf-status-preparing); background: var(--tf-status-preparing-soft); }
.tf-network-check.is-failed { border-color: color-mix(in srgb,var(--tf-status-cancelled) 50%,var(--tf-border)); }
.tf-network-check.is-failed .tf-network-check__state { color: var(--tf-status-cancelled); background: var(--tf-status-cancelled-soft); }
.tf-network-confirm { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tf-border); cursor: pointer; }
.tf-network-confirm:last-of-type { border-bottom: 0; }
.tf-network-confirm input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tf-brand); }
.tf-network-confirm span { display: flex; flex-direction: column; gap: 3px; }
.tf-network-confirm small { color: var(--tf-text-muted); line-height: 1.45; }
.tf-network-addresses { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-network-addresses code { padding: 6px 9px; border-radius: 7px; background: var(--tf-surface-sunken); }

/* Service: Mein Bereich / Alle Tische */
.tf-scope-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.tf-scope-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--tf-surface-sunken); border: 1px solid var(--tf-border); }
.tf-scope-switch button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--tf-text-muted); font-weight: 600; font-size: 14px; }
.tf-scope-switch button span { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--tf-surface); font-size: 12px; }
.tf-scope-switch button.is-active { background: var(--tf-brand); color: var(--tf-brand-contrast); }
.tf-scope-switch button.is-active span { background: color-mix(in srgb, var(--tf-brand-contrast) 20%, transparent); color: inherit; }
.tf-scope-switch button:focus-visible { outline: 2px solid var(--tf-brand); outline-offset: 2px; }
.tf-scope-hint { min-height: 40px; padding: 0 14px; border: 1px solid var(--tf-status-preparing); border-radius: 10px; background: var(--tf-status-preparing-soft); color: var(--tf-status-preparing); font-weight: 600; font-size: 14px; }
.tf-table-tile__area { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--tf-text-muted); }
.tf-chip { padding: 1px 8px; border-radius: 999px; background: var(--tf-surface-sunken); border: 1px solid var(--tf-border); color: var(--tf-text); }
.tf-workspace .tf-table-tile--taken { box-shadow: 0 0 0 2px var(--tf-brand) !important; }
.tf-takeover { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tf-takeover .btn { min-height: 34px !important; }

/* Service-Bereiche (Admin) */
.tf-areas { display: grid; gap: 20px; max-width: 1100px; }
.tf-area-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--tf-border); }
.tf-area-row:last-of-type { border-bottom: 0; }
.tf-area-row .form-control { max-width: 320px; }
.tf-area-select { max-width: 240px; }
.tf-area-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 10px; }
.tf-area-table { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--tf-border); border-radius: 10px; }

.tf-service-alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 10px; margin-bottom: 24px; }
.tf-pickup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 12px; align-items: start; }
.tf-pickup-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--tf-border); }
.tf-pickup-item:last-child { border-bottom: 0; }
/* Rahmenfarbe wie in Küche und Bar. !important nötig, weil .tf-workspace .card den Schatten erzwingt */
.tf-workspace .tf-pickup-grid .card.tf-order-card--ok { box-shadow: 0 0 0 2px var(--tf-status-ready) !important; }
.tf-workspace .tf-pickup-grid .card.tf-order-card--warn { box-shadow: 0 0 0 3px var(--tf-status-preparing) !important; }
.tf-workspace .tf-pickup-grid .card.tf-order-card--late { box-shadow: 0 0 0 4px var(--tf-status-cancelled) !important; }
.tf-pickup-age { color: var(--tf-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tf-pickup-age--warn { color: var(--tf-status-preparing); font-weight: 600; }
.tf-pickup-age--late { color: var(--tf-status-cancelled); font-weight: 700; }
.tf-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 10px; }
.tf-table-tile { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.tf-table-tile__head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tf-table-tile__facts { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; color: var(--tf-text-muted); }
.tf-table-tile__facts strong { color: var(--tf-brand); font-size: 15px; }
.tf-service-order-modal { z-index: 1060; }
.tf-service-order-backdrop { z-index: 1055; }
.tf-service-order-cart { position: sticky; top: 0; }
.tf-held-courses { display: grid; gap: 5px; padding: 7px; border-radius: 8px; background: #fff3cd; font-size: 12px; }
.tf-service-order-tools { display: grid; grid-template-columns: minmax(12rem,1fr) auto; gap: 12px; margin-bottom: 14px; }
.tf-service-variant-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tf-course-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-allergen-inline { color: #9f2637; font-size: 12px; font-weight: 600; }
.tf-workspace .tf-service-notification { flex-wrap: wrap; gap: 12px; }
.tf-queue-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--tf-border); }
.tf-queue-item:last-of-type { border-bottom: 0; }
.tf-output-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.tf-output-mode { position: relative; display: flex; flex-direction: column; gap: 7px; min-height: 154px; padding: 18px; border: 1px solid var(--tf-border); border-radius: 14px; cursor: pointer; background: var(--tf-surface); }
.tf-output-mode:hover,.tf-output-mode.is-selected { border-color: var(--tf-brand); box-shadow: inset 0 0 0 1px var(--tf-brand); }
.tf-output-mode input { position: absolute; top: 16px; right: 16px; accent-color: var(--tf-brand); }
.tf-output-mode__icon { font-size: 24px; color: var(--tf-brand); }
.tf-output-mode small { color: var(--tf-text-muted); line-height: 1.5; }
.tf-output-paper { max-width: 520px; padding: 18px; border-radius: 13px; background: var(--tf-surface-sunken); }
.tf-output-active { display: flex; align-items: flex-start; gap: 20px; padding: clamp(24px,4vw,42px); border: 1px solid var(--tf-border); border-radius: 18px; background: var(--tf-surface); }
.tf-output-active__icon { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 14px; background: var(--tf-surface-sunken); color: var(--tf-brand); font-size: 28px; }
.tf-output-active h2 { margin: 0 0 8px; font-size: 24px; }
.tf-output-active p { max-width: 680px; color: var(--tf-text-muted); line-height: 1.65; }
.tf-dashboard-welcome { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: 22px; overflow: hidden; }
.tf-dashboard-welcome>div { padding: clamp(28px,4vw,54px); }
.tf-dashboard-welcome h1 { font: 400 clamp(38px,4vw,58px)/1.08 Georgia,serif; letter-spacing: -.045em; margin: 18px 0; }
.tf-dashboard-welcome p:not(.tf-overline) { max-width: 440px; font-size: 15px; line-height: 1.8; color: var(--tf-text-muted); margin-bottom: 26px; }
.tf-dashboard-welcome img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: 70%; }
.tf-overline { color: var(--tf-brand); font-size: 10px; letter-spacing: .17em; }
.tf-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 34px 0 18px; }
.tf-section-heading h2 { font-size: 22px; margin: 0; }
.tf-section-heading>span { font-size: 12px; color: var(--tf-text-muted); }
.tf-dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tf-dashboard-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--tf-border); border-radius: 16px; text-decoration: none; color: var(--tf-text); background: var(--tf-surface); transition: border-color .15s; }
.tf-dashboard-card:hover { border-color: var(--tf-brand); color: var(--tf-text); }
.tf-dashboard-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tf-surface-sunken); color: var(--tf-brand); font-size: 17px; margin-bottom: 24px; }
.tf-dashboard-card h3 { font-size: 20px; }
.tf-dashboard-card p { color: var(--tf-text-muted); font-size: 13px; line-height: 1.7; flex: 1; }
.tf-dashboard-action { font-size: 12px; font-weight: 650; margin-top: 14px; color: var(--tf-brand); }
.tf-dashboard-management { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf-dashboard-management a { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--tf-border); border-radius: 12px; color: var(--tf-text); text-decoration: none; background: var(--tf-surface); }
.tf-dashboard-management a:hover { border-color: var(--tf-brand); }
.tf-dashboard-management small { display: block; color: var(--tf-text-muted); font-size: 12px; margin-top: 6px; }
.tf-auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; font-family: var(--tf-font); background: var(--tf-bg); color: var(--tf-text); }
.tf-auth-visual { position: relative; background: var(--tf-nav-bg); color: var(--tf-nav-text); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.tf-auth-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,var(--tf-overlay),var(--tf-nav-bg)),url('/images/guest/ember-hero.webp') 70% center/cover; }
.tf-auth-brand { font: 42px Georgia,serif; letter-spacing: -.05em; }
.tf-auth-visual h1 { font: 400 clamp(40px,5vw,70px)/1.06 Georgia,serif; max-width: 480px; margin-top: 80px; }
.tf-auth-visual p { color: var(--tf-nav-muted); max-width: 360px; }
.tf-auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.tf-auth-form>div { width: 100%; max-width: 390px; }
.tf-auth-form h2 { font-size: 30px; letter-spacing: -.04em; margin: 16px 0 10px; }
.tf-auth-form p { color: var(--tf-text-muted); margin-bottom: 32px; }
.tf-auth .form-control { min-height: 50px; border-color: var(--tf-border); border-radius: 10px; font-size: 16px; }
.tf-auth .btn-primary { background: var(--tf-brand); border-color: var(--tf-brand); min-height: 50px; border-radius: 10px; }
.tf-auth .form-label { font-size: 13px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; padding: 16px 48px 16px 20px; z-index: 2000; background: var(--tf-status-preparing-soft); color: var(--tf-text); box-shadow: var(--tf-shadow); }
#blazor-error-ui a { color: var(--tf-brand); }
#blazor-error-ui .dismiss { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; color: var(--tf-text); font-size: 24px; }
/* Tablets (10–11", quer ca. 1180×820): Höhe ist knapp – Kopfleiste und Seitentitel kompakter,
   damit mehr Bestellungen ohne Scrollen sichtbar sind. Die Unterzeile unter dem Titel entfällt. */
@media (min-width: 761px) and (max-width: 1280px), (min-width: 761px) and (max-height: 900px) {
    .tf-workspace-topbar { height: 56px; }
    .tf-workspace .content { padding-top: 18px; }
    .tf-page-heading { margin-bottom: 14px; }
    .tf-page-heading h1 { font-size: 26px; margin: 0; }
    .tf-page-heading p { display: none; }
    .tf-page-header { margin-bottom: .75rem; }
    .tf-scope-bar { margin-bottom: 12px; }
    .tf-service-alerts { margin-bottom: 14px; }
    .tf-service-grid { gap: 18px; }
}
@media(max-width:1100px) { .tf-workspace .sidebar { width: 220px; } .tf-dashboard-grid { gap: 12px; } .tf-dashboard-card { padding: 20px; } .tf-dashboard-welcome { grid-template-columns: 1.25fr 1fr; } .tf-appearance-editor { grid-template-columns: 1fr; } .tf-appearance-preview { position: static; max-width: 440px; } }
@media(max-width:760px) {
 .tf-workspace { display: block; }
 .tf-workspace .sidebar { width: 100%; height: auto; position: relative; overflow: visible; }
 .tf-nav-brand { padding: 22px; }
 .tf-nav-brand small { display: none; }
 .tf-menu-toggle { display: block; position: absolute; top: 22px; right: 20px; width: 90px; height: 42px; opacity: 0; z-index: 2; cursor: pointer; }
 .tf-menu-label { display: flex; gap: 12px; align-items: center; position: absolute; right: 20px; top: 22px; height: 42px; padding: 0 12px; border: 1px solid var(--tf-nav-muted); border-radius: 8px; font-size: 13px; }
 .tf-menu-toggle:focus-visible+.tf-menu-label { outline: 2px solid var(--tf-nav-text); outline-offset: 3px; }
 .tf-nav { display: none; padding-bottom: 12px; }
 .tf-menu-toggle:checked~.tf-nav { display: block; }
 .tf-nav-footer { display: none; }
 .tf-workspace-topbar { height: 58px; }
 .tf-workspace-topbar>span { font-size: 8px; letter-spacing: .1em; }
 .tf-nav-collapse { display: none; }
 .tf-topbar-start>span { font-size: 8px; letter-spacing: .1em; }
 .tf-user { gap: 6px; font-size: 12px; }
 .tf-user-avatar { display: none; }
 .tf-workspace .content { padding: 24px 16px 32px; }
 .tf-dashboard-welcome { grid-template-columns: 1fr; }
 .tf-dashboard-welcome img { height: 190px; min-height: 0; }
 .tf-dashboard-grid,.tf-dashboard-management { grid-template-columns: 1fr; }
 .tf-dashboard-card { padding: 24px; }
 .tf-dashboard-icon { margin-bottom: 14px; }
 .tf-workspace .content>.d-flex { flex-wrap: wrap; gap: 14px; }
 .tf-workspace .table>:not(caption)>*>* { padding: 12px; }
 .tf-auth { grid-template-columns: 1fr; }
 .tf-auth-visual { padding: 26px; min-height: 220px; }
 .tf-auth-visual h1 { margin-top: 40px; font-size: 40px; }
 .tf-auth-visual p { display: none; }
 .tf-auth-form { padding: 32px 24px; }
 .tf-workspace .form-control,.tf-workspace .form-select { font-size: 16px; }
 .tf-workspace .modal-dialog { margin: 12px; }
 .tf-service-order-tools { grid-template-columns: 1fr; }
 .tf-service-order-cart { position: static; }
 .tf-queue-item { align-items: flex-start; flex-direction: column; }
 .tf-output-modes { grid-template-columns: 1fr; }
 .tf-output-mode { min-height: 0; }
 .tf-output-active { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { .tf-dashboard-card { transition: none; } }
@media print { .tf-workspace .sidebar,.tf-workspace-topbar,.tf-workspace-footer,.tf-skip-link { display: none !important; } .tf-workspace { display: block; background: var(--tf-surface); } .tf-workspace .content { padding: 0; } }
.tf-held-course-items { margin: 0 0 .5rem; padding-left: 1.1rem; font-size: .78rem; }
.tf-held-course-items li + li { margin-top: .15rem; }

/* Admin-Skins: Auswahl bleibt bewusst tokenbasiert und funktioniert in jedem aktiven Skin. */
.tf-admin-skin-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-top:14px; }
.tf-admin-skin-option { display:grid; grid-template-columns:auto 1fr; gap:4px 10px; align-items:start; padding:14px; border:1px solid var(--tf-border); border-radius:var(--tf-radius-sm); background:var(--tf-surface-sunken); cursor:pointer; }
.tf-admin-skin-option:has(input:focus-visible) { outline:3px solid color-mix(in srgb,var(--tf-brand) 35%,transparent); outline-offset:2px; }
.tf-admin-skin-option.is-selected { border-color:var(--tf-brand); box-shadow:inset 0 0 0 1px var(--tf-brand); }
.tf-admin-skin-option input { margin-top:4px; }
.tf-admin-skin-option strong,.tf-admin-skin-option small,.tf-admin-skin-preview { grid-column:2; }
.tf-admin-skin-option small { color:var(--tf-text-muted); }
.tf-admin-skin-preview { display:flex; align-items:flex-end; gap:5px; height:58px; padding:9px; margin-bottom:5px; border-radius:8px; border:1px solid rgba(127,127,127,.28); }
.tf-admin-skin-preview i { display:block; flex:1; height:18px; border-radius:4px; }
.tf-admin-skin-preview i:first-child { align-self:stretch; max-width:28%; }
.tf-admin-skin-preview--standard { background:#f5f3ef; }
.tf-admin-skin-preview--standard i { background:#d6d0c8; }
.tf-admin-skin-preview--standard i:first-child { background:#2e3338; }
.tf-admin-skin-preview--violet { background:#121016; }
.tf-admin-skin-preview--violet i { background:#39254f; }
.tf-admin-skin-preview--violet i:first-child { background:#1c1725; }
