:root {
    --bg: #f2f3f3;
    --panel: #ffffff;
    --panel-soft: #f7f7f6;
    --ink: #2d2d2d;
    --muted: #6f7072;
    --line: #d9d9d7;
    --brand: #b41e28;
    --brand-strong: #8f1720;
    --accent: #b8975a;
    --danger: #9f2b30;
    --ok: #26734d;
    --warn: #b77916;
    --shadow: 0 8px 24px rgba(45, 45, 45, .07);
}

/* 1.77.0: three clearly separated public workshop design directions */
body.workshop-industrial-preview {
    --industrial-ink: #eff6ff;
    --industrial-muted: #9db0c6;
    --industrial-blue: #1c92e8;
    background: #080d14;
    color: var(--industrial-ink);
    font-family: Inter, Segoe UI, sans-serif;
}
body.workshop-industrial-preview .ws-preview-bar,
body.workshop-industrial-preview .ws-site-header {
    background: #0b141f;
    color: var(--industrial-ink);
    border-color: #23364a;
}
body.workshop-industrial-preview .ws-site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
body.workshop-industrial-preview .ws-site-hero { min-height: 740px; background: #0a111a; }
body.workshop-industrial-preview .ws-site-hero-shade { background: linear-gradient(90deg, rgba(4,9,15,.96), rgba(4,9,15,.42) 60%, rgba(4,9,15,.05)); }
body.workshop-industrial-preview .ws-site-hero h1 { font-size: clamp(3.5rem, 8vw, 8.2rem); letter-spacing: -.08em; text-transform: uppercase; }
body.workshop-industrial-preview .ws-site-hero h1 em { color: #5fc2ff; font-style: normal; }
body.workshop-industrial-preview .ws-site-kicker { color: #64c4ff; letter-spacing: .22em; }
body.workshop-industrial-preview .ws-site-intro,
body.workshop-industrial-preview .ws-site-workbench,
body.workshop-industrial-preview .ws-site-gallery { background: #0c1622; color: var(--industrial-ink); }
body.workshop-industrial-preview .ws-site-feature { background: #102338; }
body.workshop-industrial-preview .ws-site-pricing { background: #127ac6; }
body.workshop-industrial-preview .ws-site-contact { background: #07101a; }
body.workshop-industrial-preview .ws-site-footer { background: #05090e; border-top: 1px solid #29425d; }

/* Public workshop headings: keep each hierarchy readable on its actual surface. */
body.workshop-industrial-preview .ws-site-intro .ws-site-section-copy h2,
body.workshop-industrial-preview .ws-site-workbench h2,
body.workshop-industrial-preview .ws-site-gallery h2 {
    color: #f4f8ff;
    text-wrap: balance;
}

body.workshop-industrial-preview .ws-site-pricing h2,
body.workshop-industrial-preview .ws-site-benefit-grid h3 {
    color: #fff;
    text-wrap: balance;
}

body.workshop-industrial-preview .ws-site-intro .ws-site-section-copy > p,
body.workshop-industrial-preview .ws-site-workbench-copy > p,
body.workshop-industrial-preview .ws-site-pricing-heading > p {
    color: rgba(234, 245, 255, .84);
}

body.workshop-industrial-preview .ws-site-header {
    z-index: 100;
    -webkit-backdrop-filter: blur(16px);
}

body.workshop-editorial-preview {
    background: #f2f0eb;
    color: #202a2c;
    font-family: Georgia, 'Times New Roman', serif;
}
body.workshop-editorial-preview .ws-preview-bar { background: #dedbd3; color: #293335; border-color: #c8c3b9; }
body.workshop-editorial-preview .wm-header { background: rgba(242,240,235,.94); border-bottom: 1px solid #c9c6bc; position: sticky; top: 0; z-index: 20; }
body.workshop-editorial-preview .wm-brand b,
body.workshop-editorial-preview .wm-header nav a { color: #263c3b; }
body.workshop-editorial-preview .wm-hero { background: #e4e1d9; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); }
body.workshop-editorial-preview .wm-hero-copy { padding: clamp(50px,8vw,130px) clamp(28px,7vw,120px); }
body.workshop-editorial-preview .wm-hero h1 { color: #253b3a; font-size: clamp(4rem,8vw,8.5rem); font-weight: 400; letter-spacing: -.1em; }
body.workshop-editorial-preview .wm-eyebrow,
body.workshop-editorial-preview .wm-section-no { color: #a86642; letter-spacing: .18em; }
body.workshop-editorial-preview .wm-hero-media { min-height: 720px; }
body.workshop-editorial-preview .wm-bento-blue { background: #3d6561; }
body.workshop-editorial-preview .wm-contact { background: #253b3a; }
body.workshop-editorial-preview .wm-footer { background: #dedbd3; color: #263c3b; }

body.workshop-ledger-preview {
    background: #e8d8bc;
    color: #2a2722;
    font-family: Georgia, 'Times New Roman', serif;
}
body.workshop-ledger-preview .ws-preview-bar { background: #252a29; color: #f1dfb8; border-color: #585547; }
body.workshop-ledger-preview .wc-header { background: #f2e7d0; border-bottom: 8px double #8d4d31; }
body.workshop-ledger-preview .wc-header-line { background: #8d4d31; color: #f8ecd4; }
body.workshop-ledger-preview .wc-brand strong { color: #8d4d31; font-size: clamp(2.8rem,5vw,5.5rem); }
body.workshop-ledger-preview .wc-brand em { color: #53635c; }
body.workshop-ledger-preview .wc-hero-caption { background: rgba(34,35,31,.91); border-left: 10px solid #b66b43; }
body.workshop-ledger-preview .wc-hero-caption h1 { color: #f3e2c1; font-size: clamp(3rem,6vw,7rem); }
body.workshop-ledger-preview .wc-welcome,
body.workshop-ledger-preview .wc-services,
body.workshop-ledger-preview .wc-price,
body.workshop-ledger-preview .wc-contact { background: #f2e7d0; }
body.workshop-ledger-preview .wc-hall,
body.workshop-ledger-preview .wc-craft { background: #343b38; color: #f4e5c5; }
body.workshop-ledger-preview .wc-kicker { color: #8d4d31; letter-spacing: .2em; }
body.workshop-ledger-preview .wc-footer { background: #252a29; color: #f0dfbd; }

.workshop-public-price-table { margin: 0 auto; max-width: 1280px; padding: clamp(38px,6vw,84px) clamp(18px,5vw,74px); background: #f7f9fb; color: #122333; }
.workshop-public-price-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.workshop-public-price-head span { font-size: clamp(1.5rem,3vw,2.8rem); font-weight: 800; letter-spacing: -.04em; }
.workshop-public-price-head small { color: #6c7b88; }
.workshop-public-price-table table { width: 100%; border-collapse: collapse; font-family: Inter, Segoe UI, sans-serif; font-size: .94rem; }
.workshop-public-price-table th { text-align: left; background: #173b5d; color: white; padding: 13px 12px; }
.workshop-public-price-table td { padding: 12px; border-bottom: 1px solid #d9e0e5; vertical-align: top; }
.workshop-public-price-table td:first-child { color: #6a7c8a; width: 14%; }
.workshop-public-price-table td:nth-child(3) { color: #b33a3a; white-space: nowrap; }
.workshop-public-price-note { color: #6d7c89; font: .8rem Inter, Segoe UI, sans-serif; margin: 17px 0 0; }
body.workshop-industrial-preview .workshop-public-price-table { background: #0f1c29; color: #e9f3fb; }
body.workshop-industrial-preview .workshop-public-price-table th { background: #1c92e8; }
body.workshop-industrial-preview .workshop-public-price-table td { border-color: #29445e; }
body.workshop-industrial-preview .workshop-public-price-table td:first-child,
body.workshop-industrial-preview .workshop-public-price-note { color: #9db0c6; }
body.workshop-industrial-preview .workshop-public-price-table td:nth-child(3) { color: #64c4ff; }
body.workshop-editorial-preview .workshop-public-price-table { background: #fffdf7; border-top: 3px solid #a86642; }
body.workshop-editorial-preview .workshop-public-price-table th { background: #3d6561; }
body.workshop-editorial-preview .workshop-public-price-table td:nth-child(3) { color: #a86642; }
body.workshop-ledger-preview .workshop-public-price-table { background: #f7ecd8; border: 1px solid #b99b76; box-shadow: 8px 8px 0 #c5aa86; }
body.workshop-ledger-preview .workshop-public-price-table th { background: #8d4d31; }
body.workshop-ledger-preview .workshop-public-price-table td { border-color: #d2b994; }
body.workshop-ledger-preview .workshop-public-price-table td:nth-child(3) { color: #8d4d31; }

.workshop-social-wall { max-width: 1280px; margin: 0 auto; padding: clamp(38px,6vw,84px) clamp(18px,5vw,74px); background: #fff; color: #182735; }
.workshop-social-heading { display: flex; align-items: end; gap: 22px; flex-wrap: wrap; margin-bottom: 25px; }
.workshop-social-heading span { color: #c33b53; font: 700 .8rem Inter, Segoe UI, sans-serif; letter-spacing: .14em; }
.workshop-social-heading h2 { margin: 0; font-size: clamp(1.9rem,4vw,3.7rem); letter-spacing: -.05em; }
.workshop-social-actions { display: grid; gap: 7px; margin-left: auto; }
.workshop-social-actions a { min-width: 190px; display: grid; gap: 2px; padding: 9px 13px; border: 1px solid currentColor; border-radius: 8px; color: #1c70a8; font-family: Inter, Segoe UI, sans-serif; line-height: 1.15; }
.workshop-social-actions a.tiktok { color: #202a32; }
.workshop-social-actions strong { font-size: .85rem; }
.workshop-social-actions small { font-size: .68rem; opacity: .7; }
.workshop-social-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 10px; }
.workshop-social-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: #dbe3e9; }
.workshop-social-grid a:first-child { aspect-ratio: 1.35; }
.workshop-social-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.workshop-social-grid a:hover img { transform: scale(1.05); }
.workshop-tiktok-heading { margin-top: clamp(38px,6vw,72px); padding-top: clamp(30px,4vw,48px); border-top: 1px solid #dbe3e9; }
.workshop-tiktok-heading > span { color: #fe2c55; }
.workshop-tiktok-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.workshop-tiktok-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #101820; }
.workshop-tiktok-grid img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.workshop-tiktok-grid a::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.82)); pointer-events: none; }
.workshop-tiktok-grid a:hover img { transform: scale(1.05); filter: brightness(.78); }
.workshop-tiktok-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 50px; height: 50px; display: grid; place-items: center; padding-left: 3px; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; background: rgba(0,0,0,.58); color: #fff; font-size: 18px; transform: translate(-50%,-50%); transition: transform .25s ease, background .25s ease; }
.workshop-tiktok-grid a:hover .workshop-tiktok-play { background: #fe2c55; transform: translate(-50%,-50%) scale(1.08); }
.workshop-tiktok-grid small { position: absolute; z-index: 2; right: 16px; bottom: 14px; left: 16px; color: #fff; font: 750 .8rem/1.25 Inter, Segoe UI, sans-serif; }
body.workshop-industrial-preview .workshop-social-wall { background: #07101a; color: #eef6ff; }
body.workshop-industrial-preview .workshop-social-heading a { color: #64c4ff; }
body.workshop-industrial-preview .workshop-social-heading a.tiktok { color: #fff; }
body.workshop-industrial-preview .workshop-tiktok-heading { border-color: #29425d; }
body.workshop-editorial-preview .workshop-social-wall { background: #fdfcf8; border-top: 1px solid #c9c6bc; }
body.workshop-ledger-preview .workshop-social-wall { background: #ead8b9; border-top: 6px double #8d4d31; }

.programs-page { display: grid; gap: 22px; }
.programs-hero { display: flex; justify-content: space-between; gap: 24px; align-items: stretch; padding: 30px; border-radius: 18px; background: linear-gradient(120deg,#0a1a31,#12385b); color: #f4f8fd; }
.programs-hero h2 { margin: 6px 0 8px; font-size: clamp(1.8rem,3vw,2.8rem); }
.programs-hero p { max-width: 720px; color: #bfd0e3; margin: 0; }
.eyebrow { font-size: .72rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; }
.programs-live-state { min-width: 230px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 18px; border: 1px solid #2e628e; border-radius: 14px; background: rgba(8,17,31,.45); }
.programs-live-state small { color: #aac2d8; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #49c27d; box-shadow: 0 0 0 5px rgba(73,194,125,.16); }
.programs-notice { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 18px; padding: 18px 22px; background: #edf4fa; border-left: 5px solid #168eea; border-radius: 12px; color: #263d53; }
.program-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.program-card { display: flex; gap: 18px; min-height: 280px; padding: 25px; border: 1px solid #dce5ee; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(24,55,87,.07); }
.program-card-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #0c2442; color: #6ac5ff; font-size: 1.9rem; }
.program-card-android .program-card-icon { background: #145d55; color: #a6f2c9; }
.program-card-body { min-width: 0; flex: 1; }
.program-card-top { display: flex; justify-content: space-between; gap: 15px; }
.program-card h3 { margin: 5px 0 0; }
.program-card p { color: #627486; }
.program-card ul { padding-left: 19px; color: #475d70; line-height: 1.8; }
.program-version { flex: none; padding: 5px 9px; border-radius: 999px; background: #eaf3fb; color: #1a72ab; font-size: .8rem; font-weight: 700; height: fit-content; }
.program-card-actions { margin-top: 22px; }
.programs-legal { padding: 21px 25px; background: #f5f7fa; border-radius: 14px; color: #667789; }
.programs-legal h3 { margin-top: 0; color: #233b55; }

body.native-app .app-shell { min-height: 100vh; }
body.native-app .sidebar { box-shadow: 6px 0 24px rgba(7,20,39,.08); }
body.native-app .main { min-width: 0; }
body.native-app-windows .topbar { background: linear-gradient(90deg,#081426,#123257); color: #fff; border-radius: 0 0 18px 18px; }
body.native-app-windows .panel { border-radius: 14px; box-shadow: 0 10px 25px rgba(14,45,78,.07); }
body.native-app-windows .btn { border-radius: 9px; }
body.native-app-android .sidebar { width: 72px; overflow-x: hidden; }
body.native-app-android .sidebar .brand-subtitle,
body.native-app-android .sidebar .nav-section-label,
body.native-app-android .sidebar .nav-link { white-space: nowrap; }
body.native-app-android .sidebar .nav-link { font-size: 0; text-align: center; padding: 12px 4px; }
body.native-app-android .sidebar .nav-link::first-letter { font-size: 1.15rem; }
body.native-app-android .main { padding: 0 10px 16px; }
body.native-app-android .topbar { position: sticky; top: 0; z-index: 15; padding: 13px 10px; margin: 0 -10px 14px; border-radius: 0 0 15px 15px; }
body.native-app-android .topbar-tools .global-search,
body.native-app-android .topbar-tools .scanner-pill { display: none; }
body.native-app-android .panel { border-radius: 13px; }

@media (max-width: 800px) {
    .workshop-public-price-head { display: block; }
    .workshop-public-price-head small { display: block; margin-top: 5px; }
    .workshop-public-price-table { overflow-x: auto; }
    .workshop-public-price-table table { min-width: 720px; }
    .workshop-social-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .workshop-social-grid a:first-child { grid-column: span 2; }
    .workshop-social-actions { width: 100%; margin-left: 0; }
    .workshop-social-actions a { min-width: 0; width: 100%; }
    .workshop-tiktok-grid { grid-template-columns: minmax(0,1fr); }
    .programs-hero, .programs-notice { display: block; }
    .programs-live-state { margin-top: 18px; }
    .programs-notice strong { display: block; margin-bottom: 8px; }
    .program-cards { grid-template-columns: 1fr; }
    .program-card { min-height: auto; }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background: var(--bg);
    font-family: Lato, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    border-top: 5px solid var(--brand);
    border-right: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.brand {
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.brand-logo-frame {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
}

.brand-logo {
    display: block;
    height: auto;
}

.brand-logo-square {
    width: min(132px, 100%);
}

.brand-logo-wide {
    width: min(210px, 100%);
    padding: 15px;
    border-radius: 6px;
    background: #2d2d2d;
}

.brand-subtitle {
    margin-top: 8px;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 700;
}

.nav {
    display: grid;
    gap: 5px;
}

.nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 7px;
    color: #404040;
    font-weight: 650;
}

.nav a:hover,
.nav a.active {
    background: #f8e9ea;
    color: var(--brand-strong);
}

.nav a.active {
    background: var(--brand);
    color: #fff;
}

.user-box {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.main {
    min-width: 0;
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.area-label {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.topbar-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.global-search {
    display: flex;
    gap: 6px;
    min-width: min(440px, 100%);
}

.global-search input {
    min-width: 230px;
}

.changelog-preview {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid #d9c9a8;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background: #fffdf7;
}

.transient-update {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 30;
    width: min(440px, calc(100vw - 36px));
    max-height: min(70vh, 560px);
    margin: 0;
    overflow: auto;
    box-shadow: 0 18px 42px rgba(42, 36, 28, .18);
    animation: update-toast-in .18s ease-out;
}

.transient-update.is-dismissed {
    display: none;
}

.toast-close {
    min-width: 34px;
    padding-inline: 9px;
}

@keyframes update-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.changelog-preview-head,
.feedback-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.changelog-preview-head h2 {
    margin: 0;
    font-size: 17px;
}

.changelog-preview-list,
.changelog-list,
.feedback-list {
    display: grid;
    gap: 0;
}

.changelog-entry {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.changelog-entry:last-child {
    border-bottom: 0;
}

.changelog-entry h3 {
    margin: 7px 0 5px;
    font-size: 16px;
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.changelog-meta strong {
    color: var(--brand-strong);
}

.changelog-body,
.feedback-description {
    white-space: normal;
    overflow-wrap: anywhere;
}

.changelog-author {
    margin-top: 8px;
    font-size: 12px;
}

.feedback-entry {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.feedback-entry:last-child {
    border-bottom: 0;
}

.feedback-description {
    margin: 12px 0 8px;
}

.feedback-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-left: 3px solid var(--brand);
    background: var(--panel-soft);
}

.feedback-update-form {
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(120px, auto) minmax(160px, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
}

.feedback-update-form input,
.feedback-update-form select {
    width: 100%;
}

.backup-checks {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.backup-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

.backup-details {
    display: grid;
    grid-template-columns: minmax(145px, 190px) 1fr;
    gap: 10px 16px;
    margin: 0 0 18px;
}

.backup-details dt {
    color: var(--muted);
}

.backup-details dd {
    margin: 0;
}

.backup-note {
    margin: 14px 0 0;
}

.scanner-pill,
.user-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.page-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
    font-family: "Droid Serif", Georgia, serif;
    font-weight: 500;
}

.page-note {
    margin: 6px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.panel-title {
    margin: 0;
    font-size: 16px;
    font-family: "Droid Serif", Georgia, serif;
    font-weight: 600;
}

.panel-body {
    padding: 16px;
}

.booking-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.booking-form {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.booking-title {
    grid-column: span 12;
    margin: 0;
    font-size: 18px;
}

.booking-in .booking-title {
    color: var(--ok);
}

.booking-out .booking-title {
    color: var(--danger);
}

.stat {
    display: grid;
    gap: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: #4b4942;
    background: #f2f0ea;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

tr.low-stock td {
    background: #fff8df;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inventory-search select {
    min-width: 150px;
}

.inventory-search input {
    min-width: min(300px, 38vw);
}

.inventory-table .manufacturer-col {
    width: 11%;
    max-width: 12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-location-page .panel-head .actions {
    align-items: center;
}

.location-scan-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.location-scan-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 8px;
    background: var(--panel-soft);
}

.location-scan-step.is-ready {
    border-top-color: #2b8a66;
}

.location-scan-step h3 {
    margin: 0 0 4px;
}

.location-step-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.location-scan-step.is-ready .location-step-number {
    background: #2b8a66;
}

.location-scan-step .scanner-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-top: 12px;
}

.location-scan-step .scanner-form select {
    grid-column: 1 / -1;
}

.location-empty-state {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed var(--line);
    color: var(--muted);
}

.location-item-preview {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.location-item-preview > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}

.location-item-preview span:not(.meta-label) {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 800px) {
    .location-scan-steps,
    .location-item-preview {
        grid-template-columns: 1fr;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: span 3; }
.field.span-4 { grid-column: span 4; }
.field.span-5 { grid-column: span 5; }
.field.span-6 { grid-column: span 6; }
.field.span-8 { grid-column: span 8; }
.field.span-9 { grid-column: span 9; }
.field.span-12 { grid-column: span 12; }

label {
    color: #4f4d45;
    font-size: 13px;
    font-weight: 650;
}

.field-help {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
}

.material-item-suggestion-note {
    display: block;
    min-height: 17px;
    margin-top: 3px;
    color: var(--muted);
}

.material-item-suggestion-note.is-success {
    color: var(--success, #23815d);
    font-weight: 650;
}

.material-request-overview .table-wrap {
    overflow-x: auto;
}

.material-procurement-form {
    display: grid;
    min-width: 260px;
    gap: 6px;
}

.material-procurement-form input,
.material-procurement-form select {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
}

.material-procurement-form .btn {
    justify-self: start;
}

.material-packed-correction-form {
    display: grid;
    min-width: 230px;
    gap: 6px;
    margin-top: 8px;
}

.material-packed-correction-form input {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
}

.material-packed-correction-form .btn {
    justify-self: start;
}

.low-stock-scroll {
    max-height: 520px;
    overflow: auto;
}

.low-stock-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--line);
}

.low-stock-order-cell {
    min-width: 310px;
}

.low-stock-order-form {
    display: grid;
    grid-template-columns: minmax(100px, .75fr) minmax(132px, 1fr) minmax(145px, 1fr) auto;
    align-items: end;
    gap: 6px;
    margin-top: 8px;
}

.low-stock-order-form label {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.low-stock-order-form .low-stock-order-check {
    display: flex;
    align-items: center;
    min-height: 36px;
    color: var(--ink);
    font-size: 12px;
}

.low-stock-order-form input {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
}

.low-stock-order-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.low-stock-order-quantity input {
    width: 96px;
}

.dashboard-designer {
    margin-bottom: 16px;
}

.dashboard-designer-body {
    border-top: 1px solid var(--line);
}

.dashboard-widget-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 14px;
    margin: 14px 0;
}

.dashboard-widget-choices label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface, #fff);
}

.management-dashboard:not(.is-editing) .dashboard-widget-hidden {
    display: none;
}

.management-dashboard.is-editing [data-dashboard-widget] {
    position: relative;
    outline: 2px dashed var(--accent);
    outline-offset: -4px;
    cursor: grab;
}

.management-dashboard.is-editing [data-dashboard-widget]::before {
    content: "Verschieben";
    position: absolute;
    z-index: 4;
    top: 6px;
    right: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    pointer-events: none;
}

.management-dashboard.is-editing .dashboard-widget-hidden {
    display: block;
    opacity: .42;
}

.management-dashboard .dashboard-dragging {
    opacity: .35;
}

@media (max-width: 760px) {
    .low-stock-order-form {
        grid-template-columns: 1fr;
    }

    .low-stock-order-cell {
        min-width: 230px;
    }
}

.help-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.help-flow span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #faf9f5;
}

.help-flow strong {
    color: var(--brand);
}

.help-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--accent, #b8975a);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.help-flow span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.help-flow span b {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.help-quick-card {
    position: relative;
    display: grid;
    min-height: 112px;
    align-content: start;
    gap: 7px;
    padding: 15px 14px 14px 42px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 7px;
    background: var(--panel-soft);
    color: var(--ink);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.help-quick-card:hover,
.help-quick-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgba(27, 37, 47, .1);
}

.help-quick-card strong {
    font-size: 14px;
}

.help-quick-card > span:last-child {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.help-quick-arrow {
    position: absolute;
    top: 15px;
    left: 13px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.help-quick-blue { border-left-color: #3d76c9; }
.help-quick-gold { border-left-color: #b8975a; }
.help-quick-green { border-left-color: #2e8b68; }
.help-quick-red { border-left-color: #b41e28; }

.help-roles-panel .panel-body {
    padding-top: 4px;
}

.help-role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.help-role-card {
    min-height: 170px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
}

.help-role-card h3 {
    margin: 12px 0 7px;
    color: var(--ink);
    font-size: 16px;
}

.help-role-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.help-role-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e7edf7;
    color: #315f9f;
    font-size: 11px;
    font-weight: 800;
}

.help-role-gold { background: #f3ead7; color: #85652b; }
.help-role-green { background: #e4f2eb; color: #287455; }
.help-role-red { background: #f7e4e5; color: #a01f2a; }

.help-steps,
.help-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.help-steps li::marker {
    color: var(--brand);
    font-weight: 800;
}

.help-list {
    padding-left: 18px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid #cac6bb;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
}

textarea {
    min-height: 88px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(180, 30, 40, .18);
    border-color: var(--brand);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    background: var(--brand-strong);
}

.btn.secondary {
    background: #fff;
    color: var(--ink);
    border-color: #c9c5ba;
}

.btn.secondary:hover {
    background: #f2f0ea;
}

.btn.danger {
    background: var(--danger);
}

.btn.warn {
    background: var(--accent);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ece9df;
    color: #4b4942;
    font-size: 12px;
    font-weight: 750;
}

.badge.ok { background: #dff1e5; color: #1f603b; }
.badge.warn { background: #fff1c9; color: #76510c; }
.badge.danger { background: #f8dfdc; color: #862e28; }
.badge.info { background: #dfece9; color: #244f43; }

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.flash.ok {
    border-color: #b9dfc5;
    background: #edf8f0;
}

.flash.error {
    border-color: #e6bbb7;
    background: #fff0ee;
}

.split-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    border-top: 6px solid var(--brand);
    background: var(--bg);
}

.login-stack {
    display: grid;
    justify-items: center;
    width: min(760px, 100%);
}

.login-branding {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    margin-bottom: 18px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-brand-primary,
.login-brand-workshop {
    display: grid;
    justify-items: center;
    text-align: center;
    align-content: center;
    min-height: 220px;
}

.login-brand-primary img,
.login-brand-workshop img {
    width: min(190px, 100%);
    height: 190px;
    object-fit: contain;
}

.login-brand-divider {
    width: 1px;
    height: 126px;
    background: var(--line);
}

.login-brand-workshop {
    gap: 5px;
}

.login-brand-workshop img {
    padding: 8px;
    border-radius: 6px;
    background: #2d2d2d;
}

.login-brand-center {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-top: 2px;
    text-align: center;
}

.login-brand-center strong {
    color: var(--brand-strong);
    font-family: "Droid Serif", Georgia, serif;
    font-size: 24px;
    line-height: 1.2;
}

.login-brand-center small {
    color: var(--muted);
    font-size: 14px;
}

.login-panel {
    width: min(440px, 100%);
}

.lift-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.lift-tile {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.lift-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(40, 39, 35, .12);
}

.lift-tile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.lift-status-frei { border-left-color: var(--ok); }
.lift-status-belegt { border-left-color: var(--danger); }
.lift-status-reserviert { border-left-color: var(--warn); }
.lift-status-wartung,
.lift-status-gesperrt { border-left-color: var(--accent); }

.lift-tile .badge {
    flex: 0 0 auto;
}

.lift-tile strong {
    display: block;
    font-family: "Droid Serif", Georgia, serif;
    font-size: 17px;
}

.lift-assignment {
    min-height: 58px;
    margin: 4px 0 12px;
}

.lift-assignment strong {
    margin-bottom: 3px;
    font-family: inherit;
    font-size: 15px;
}

.lift-details {
    display: grid;
    gap: 7px;
    margin: 0 0 14px;
}

.lift-detail {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.lift-detail dt {
    color: var(--muted);
    font-size: 12px;
}

.lift-detail dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 700;
}

.lift-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.lift-actions form {
    margin: 0;
}

.lift-actions .btn {
    width: 100%;
    height: 100%;
}

.lift-actions .lift-add-button {
    grid-column: 1 / -1;
    min-height: 44px;
}

.lift-add-button span {
    display: inline-block;
    margin-right: 5px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    vertical-align: -1px;
}

.lift-item-dialog {
    width: min(580px, calc(100vw - 28px));
    max-width: none;
    max-height: min(88dvh, 760px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel, #fff);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.lift-item-dialog::backdrop {
    background: rgba(18, 22, 27, .68);
    backdrop-filter: blur(2px);
}

.lift-item-dialog-card {
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lift-item-dialog-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--panel, #fff);
}

.lift-item-dialog-head h3 {
    margin: 3px 0 0;
    font-size: 20px;
}

.lift-dialog-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-soft, #f5f4f0);
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lift-item-form,
.lift-item-dialog-empty {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.lift-item-form-row {
    display: grid;
    grid-template-columns: minmax(110px, .4fr) minmax(0, 1fr);
    gap: 12px;
}

.lift-item-form select,
.lift-item-form input {
    min-height: 48px;
    font-size: 16px;
}

.lift-item-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.lift-item-dialog-actions .btn,
.lift-item-dialog-empty .btn {
    min-height: 48px;
}

.lift-item-dialog-empty p {
    margin: 0;
    color: var(--muted);
}

.lift-item-start-notice {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #e3c66d;
    border-radius: 8px;
    background: #fff8dc;
    color: #58470b;
}

.lift-item-start-notice strong {
    font-family: inherit;
    font-size: 15px;
}

.berlin-clock {
    margin-left: auto;
    border-color: #d6b8bb !important;
    background: #fff !important;
}

.workshop-statusbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.workshop-statusbar span {
    min-width: 104px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
    font-size: 13px;
}

.workshop-statusbar strong {
    display: inline;
    color: var(--brand-strong);
}

.muted {
    color: var(--muted);
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .app-shell {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        overflow-x: hidden;
    }

    .sidebar {
        position: static;
        height: auto;
        min-width: 0;
    }

    .nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main {
        padding: 18px;
    }

    .topbar {
        display: grid;
    }

    .topbar-tools {
        justify-content: flex-start;
    }

    .global-search {
        width: 100%;
        min-width: 0;
    }

    .global-search input {
        min-width: 0;
    }

    .feedback-update-form {
        grid-template-columns: 1fr 1fr;
    }

    .feedback-update-form input {
        grid-column: span 2;
    }

    .login-branding {
        gap: 12px;
    }

    .booking-columns {
        grid-template-columns: 1fr;
    }

    .span-3,
    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8,
    .span-9,
    .span-12,
    .field.span-2,
    .field.span-3,
    .field.span-4,
    .field.span-5,
    .field.span-6,
    .field.span-8,
    .field.span-9,
    .field.span-12 {
        grid-column: span 12;
    }

    .lift-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sidebar {
        gap: 10px;
        padding: 10px 12px;
    }

    .nav {
        display: flex;
        gap: 6px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .nav a {
        flex: 0 0 auto;
        min-height: 38px;
        white-space: nowrap;
    }

    .brand {
        padding-bottom: 8px;
    }

    .brand-subtitle,
    .user-box {
        display: none;
    }

    .main {
        padding: 12px;
    }

    .page-title {
        font-size: 24px;
    }

    .lift-item-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 10px;
    }

    .lift-item-dialog-card {
        max-height: calc(100dvh - 16px);
    }

    .lift-item-dialog-head,
    .lift-item-form,
    .lift-item-dialog-empty {
        padding: 14px;
    }

    .lift-item-form-row,
    .lift-item-dialog-actions {
        grid-template-columns: 1fr;
    }

    .topbar-tools,
    .global-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .global-search input,
    .global-search .btn,
    .scanner-pill,
    .user-pill {
        width: 100%;
    }

    .scanner-pill,
    .user-pill {
        white-space: normal;
    }

    .panel-head,
    .changelog-preview-head,
    .feedback-entry-head {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-update-form {
        grid-template-columns: 1fr;
    }

    .feedback-update-form input {
        grid-column: span 1;
    }

    .login-screen {
        padding: 12px;
    }

    .login-branding {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
        padding: 16px;
    }

    .login-brand-divider {
        display: none;
    }

    .login-brand-primary,
    .login-brand-workshop {
        min-height: 0;
    }

    .login-brand-primary img,
    .login-brand-workshop img {
        width: min(160px, 100%);
        height: 160px;
    }

    .login-brand-center {
        grid-column: 1 / -1;
    }

    .login-brand-center strong {
        font-size: 21px;
    }

    .brand-logo-frame {
        min-height: 68px;
    }

    .brand-logo-square {
        width: min(64px, 100%);
    }

    .brand-logo-wide {
        width: min(180px, 100%);
        padding: 9px;
    }

    .backup-details {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* Die Werkstatt follows the dark-and-blue colors of its own sign. */
body.workshop-area {
    --bg: #edf1f8;
    --panel: #ffffff;
    --panel-soft: #f4f6fb;
    --ink: #252a33;
    --muted: #687180;
    --line: #d6ddea;
    --brand: #3266c1;
    --brand-strong: #1e376c;
    --accent: #7195df;
    --danger: #b9434a;
    --ok: #2f8264;
    --warn: #be8c28;
    --shadow: 0 8px 24px rgba(27, 43, 74, .10);
}

body.workshop-area .sidebar {
    border-top-color: #4d83e2;
    border-right-color: #273449;
    background: #151a23;
    color: #f4f7ff;
}

body.workshop-area .brand {
    border-bottom-color: rgba(210, 225, 255, .18);
}

body.workshop-area .brand-logo-frame {
    background: #151a23;
}

body.workshop-area .brand-logo-wide {
    background: #0b0e14;
    box-shadow: 0 0 0 1px rgba(103, 145, 228, .45);
}

body.workshop-area .brand-subtitle {
    color: #9db9f2;
}

body.workshop-area .nav a {
    color: #d6deef;
}

body.workshop-area .nav a:hover {
    background: rgba(86, 130, 215, .18);
    color: #fff;
}

body.workshop-area .nav a.active {
    background: #3266c1;
    color: #fff;
}

body.workshop-area .user-box {
    border-top-color: rgba(210, 225, 255, .18);
    color: #b7c4dc;
}

body.workshop-area .panel-head {
    background: #f0f4fb;
}

body.workshop-area .panel-title,
body.workshop-area .page-title {
    color: #1e376c;
}

body.workshop-area .btn {
    background: #3266c1;
}

body.workshop-area .btn:hover {
    background: #1e376c;
}

body.workshop-area .btn.secondary {
    color: #1e376c;
    border-color: #b8c6df;
    background: #fff;
}

body.workshop-area .btn.secondary:hover {
    background: #eaf0fb;
}

body.workshop-area input:focus,
body.workshop-area select:focus,
body.workshop-area textarea:focus {
    outline-color: rgba(50, 102, 193, .22);
    border-color: #3266c1;
}

body.workshop-area .changelog-preview {
    border-color: #b8c8e4;
    border-left-color: #3266c1;
    background: #f7f9fd;
}

body.workshop-area .workshop-statusbar span {
    border-color: #c5d0e4;
    background: #f7f9fd;
}

body.workshop-area .workshop-statusbar strong {
    color: #1e376c;
}

body.workshop-area .berlin-clock {
    border-color: #7195df !important;
    background: #e9effb !important;
}

body.workshop-area .badge.info {
    background: #e3ebfb;
    color: #1e376c;
}

body.workshop-area .badge.ok {
    background: #dff2e9;
    color: #21634d;
}

body.workshop-area .badge.warn {
    background: #fff1c9;
    color: #76510c;
}

body.workshop-area .badge.danger {
    background: #f8dfdf;
    color: #8d3036;
}

.invoice-created .panel-body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.invoice-created .panel-body span {
    color: var(--muted);
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.quick-link {
    display: grid;
    gap: 5px;
    min-height: 104px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
}

.quick-link:hover {
    border-color: var(--brand);
    background: var(--panel);
}

.quick-link strong {
    color: var(--brand-strong);
}

.quick-link span {
    color: var(--muted);
    font-size: 13px;
}

.assignment-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.assignment-card-grid > div {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
}

.assignment-card-grid strong,
.assignment-card-grid .muted {
    overflow-wrap: anywhere;
}

.assignment-card-grid strong {
    color: var(--brand-strong);
}

.invoice-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.invoice-kpis > div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
}

.invoice-kpis strong {
    color: var(--brand-strong);
    font-size: 20px;
}

.invoice-kpis span,
.cashier-action span,
.invoice-summary span {
    color: var(--muted);
}

.cashier-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px;
    border-left: 4px solid var(--brand);
    background: var(--panel-soft);
}

.cashier-action > div {
    display: grid;
    gap: 4px;
}

.inline-form {
    display: inline-flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form .field {
    margin: 0;
}

.inline-form label {
    display: block;
}

.invoice-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.invoice-summary > div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
}

.text-right {
    text-align: right;
}

@media (max-width: 1100px) {
    .help-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .help-role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .invoice-kpis,
    .invoice-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cashier-action {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Zeiterfassung und WLAN-Blatt */
.time-widget-summary {
    display: flex;
    align-items: end;
    gap: 22px;
    flex-wrap: wrap;
}

.time-widget-summary > div {
    display: grid;
    gap: 4px;
}

.time-widget-start {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1 1 560px;
}

.time-widget-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-widget-actions form {
    margin: 0;
}

.time-pause-active {
    white-space: nowrap;
}

.time-widget-start label,
.time-correction-form label {
    display: grid;
    gap: 5px;
    min-width: 180px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.time-widget-start label:first-child {
    flex: 1 1 260px;
}

.time-widget-start label:nth-child(2) {
    flex: 2 1 320px;
}

.time-entry-table {
    min-width: 980px;
}

.time-month-filter .actions {
    align-items: end;
}

.time-month-filter .actions label {
    display: grid;
    gap: 5px;
    min-width: 210px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.time-day-group {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel);
}

.time-day-group:last-child {
    margin-bottom: 0;
}

.time-day-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    color: var(--ink);
    background: var(--panel-soft);
    font-weight: 700;
}

.time-day-group summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.time-day-group .table-wrap {
    border-top: 1px solid var(--line);
}

.management-task-list {
    display: grid;
    gap: 8px;
}

.management-task {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    background: var(--panel-soft);
}

.management-task span {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .time-day-group summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .time-month-filter .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .time-month-filter .actions label,
    .time-month-filter .actions input,
    .time-month-filter .actions select,
    .time-month-filter .actions button {
        width: 100%;
    }
}

.time-correction-details summary {
    cursor: pointer;
    color: var(--brand-strong);
    font-weight: 700;
}

.time-correction-form {
    display: grid;
    gap: 7px;
    min-width: 250px;
    margin-top: 8px;
}

.time-correction-form textarea {
    min-height: 56px;
}

.wifi-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.wifi-summary-grid > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
}

.wifi-preview-canvas,
.wifi-print-canvas {
    overflow: auto;
    padding: 20px;
    background: #dfe5ee;
}

.wifi-preview-canvas img,
.wifi-print-canvas img {
    max-width: 100%;
    height: auto;
}

.wifi-preview-canvas img[src*="die-werkstatt-logo"],
.wifi-print-canvas img[src*="die-werkstatt-logo"],
.wifi-preview-canvas img[alt="Die Werkstatt"],
.wifi-print-canvas img[alt="Die Werkstatt"] {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
    max-height: 82px !important;
    object-fit: contain !important;
}

.wifi-preview-canvas > img[src*="die-werkstatt-logo"],
.wifi-print-canvas > img[src*="die-werkstatt-logo"] {
    display: block;
    margin: 0 auto 16px;
}

.wifi-paper {
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    margin: 0 auto;
    background: #fff;
    color: #20252b;
    box-shadow: 0 8px 24px rgba(20, 45, 82, .14);
}

.wifi-paper .invoice-paper-header {
    display: flex;
    align-items: flex-start;
    border-bottom: 2px solid #315ea8;
}

.wifi-paper .invoice-paper-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.wifi-paper .invoice-paper-brand img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.wifi-paper .invoice-paper-brand > div {
    display: grid;
    gap: 4px;
}

.wifi-paper .invoice-paper-brand strong {
    color: #315ea8;
    font-size: 17px;
}

.wifi-paper .invoice-paper-brand span {
    color: #64748b;
    font-size: 12px;
}

.wifi-paper .invoice-extra-block {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f7f9fc;
}

.wifi-paper .invoice-extra-block p {
    margin: 8px 0 0;
    white-space: normal;
}

.wifi-paper .invoice-paper-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 11px;
}

.wifi-qr-unavailable,
.wifi-qr-placeholder {
    display: grid;
    width: 42mm;
    height: 42mm;
    place-items: center;
    border: 1px dashed #64748b;
    color: #64748b;
    text-align: center;
}

.workshop-price-paper {
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 16mm;
    background: #fff;
    color: #20252b;
    box-shadow: 0 8px 24px rgba(20, 45, 82, .14);
}

.workshop-price-header {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #315ea8;
}

.workshop-price-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.workshop-price-brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.workshop-price-brand > div {
    display: grid;
    gap: 4px;
}

.workshop-price-brand strong,
.workshop-price-title h1 {
    color: #315ea8;
}

.workshop-price-brand strong {
    font-size: 16px;
}

.workshop-price-brand span,
.workshop-price-title span {
    color: #64748b;
    font-size: 11px;
}

.workshop-price-title {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 5px;
    min-width: 160px;
    text-align: right;
}

.workshop-price-title h1 {
    margin: 0;
    font-size: 25px;
    letter-spacing: .06em;
}

.workshop-price-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    font-size: 10px;
}

.workshop-price-table th {
    padding: 8px 6px;
    background: #315ea8;
    color: #fff;
    text-align: left;
}

.workshop-price-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #cbd5e1;
    vertical-align: top;
}

.workshop-price-table .barcode-cell {
    width: 25mm;
    text-align: center;
}

.workshop-price-table .barcode-cell svg {
    display: block;
    width: 22mm;
    height: auto;
    margin: 0 auto 3px;
}

.workshop-price-table .barcode-cell small {
    display: block;
    font-size: 8px;
    overflow-wrap: anywhere;
}

.workshop-price-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 10px;
}

@media print {
    .workshop-price-paper {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 16mm !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .workshop-price-table th {
        background: #315ea8 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Werkstatt-Preisliste 2026: Kategorien und Layout nach der Word-Vorlage */
.workshop-catalog-group th {
    padding: 10px 12px;
    background: var(--brand-strong);
    color: #fff;
    font-size: 13px;
    letter-spacing: .02em;
    text-align: left;
}

.workshop-price-reference-main {
    display: grid;
    gap: 22px;
    width: min(1180px, 100%);
}

.workshop-price-reference-page {
    display: flex;
    flex-direction: column;
    gap: 8mm;
    padding: 10mm 11mm 7mm;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.workshop-price-reference-header {
    display: grid;
    grid-template-columns: 38mm minmax(0, 1fr);
    align-items: center;
    gap: 6mm;
    min-height: 38mm;
}

.workshop-price-reference-header img {
    width: 34mm;
    height: 34mm;
    object-fit: contain;
}

.workshop-price-reference-header > div {
    display: grid;
    gap: 2mm;
}

.workshop-price-reference-header h1 {
    margin: 0;
    color: #0d2944;
    font-size: 30px;
    line-height: 1;
    letter-spacing: .015em;
}

.workshop-price-reference-header strong {
    color: #1688c5;
    font-size: 16px;
}

.workshop-price-reference-header span {
    color: #65758a;
    font-size: 11px;
}

.workshop-price-plan-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #9dc7e1;
    background: #e9f3f9;
}

.workshop-price-plan-cards article {
    display: grid;
    min-height: 31mm;
    padding: 4mm 3mm;
    place-items: center;
    border-right: 1px solid #9dc7e1;
    color: #12304b;
    text-align: center;
}

.workshop-price-plan-cards article:last-child {
    border-right: 0;
    background: #dceef8;
}

.workshop-price-plan-cards strong {
    color: #075886;
    font-size: 13px;
}

.workshop-price-plan-cards b {
    color: #0d2944;
    font-size: 27px;
    line-height: 1;
}

.workshop-price-plan-cards span {
    color: #405166;
    font-size: 10px;
}

.workshop-price-reference-section {
    min-width: 0;
}

.workshop-price-reference-section h2 {
    margin: 0;
    padding: 3.2mm 3mm;
    background: #0d2944;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
}

.workshop-price-reference-section.category-zusatzservices h2 {
    background: #1688c5;
}

.workshop-price-reference-section table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 10px;
}

.workshop-price-reference-section th,
.workshop-price-reference-section td {
    padding: 2.2mm 2mm;
    border: 1px solid #c3d7e4;
    vertical-align: middle;
}

.workshop-price-reference-section th {
    background: #e8f2f8;
    color: #075886;
    font-weight: 800;
    text-align: left;
}

.workshop-price-reference-section th:nth-child(2),
.workshop-price-reference-section td:nth-child(2) {
    width: 26mm;
}

.workshop-price-reference-section th:last-child,
.workshop-price-reference-section td:last-child {
    width: 28mm;
    color: #075886;
    text-align: right;
    white-space: nowrap;
}

.workshop-price-reference-section tbody tr:nth-child(even) {
    background: #f4f7f9;
}

.workshop-price-reference-notes {
    display: grid;
    gap: 1mm;
    margin: -3mm 4mm 0;
    color: #20252b;
    font-size: 9px;
}

.workshop-price-reference-notes p {
    margin: 0;
}

.workshop-price-reference-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 2mm;
}

.workshop-price-reference-columns.second-row {
    margin-top: 2mm;
}

.workshop-price-reference-footer {
    margin-top: auto;
    padding-top: 3mm;
    border-top: 1px solid #c3d7e4;
    color: #65758a;
    font-size: 9px;
    text-align: center;
}

@media (max-width: 760px) {
    .workshop-price-reference-body {
        overflow-x: auto;
    }

    .workshop-price-reference-main {
        min-width: 794px;
        padding: 12px;
    }
}

@media print {
    @page workshop-price-reference {
        size: A4 portrait;
        margin: 0;
    }

    body.workshop-price-reference-body {
        page: workshop-price-reference;
        background: #fff !important;
    }

    .workshop-price-reference-body .print-main {
        display: block !important;
        width: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .workshop-price-reference-body .print-toolbar {
        display: none !important;
    }

    .workshop-price-reference-page {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 10mm 11mm 7mm !important;
        box-shadow: none !important;
        break-after: page;
        page-break-after: always;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        forced-color-adjust: none !important;
    }

    .workshop-price-reference-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }
}

body.theme-dark .brand-logo-frame {
    background: #fff;
    border-radius: 6px;
}

body.theme-dark .brand-logo-square,
body.theme-dark .login-brand-primary img {
    mix-blend-mode: normal;
    filter: none;
}

body.workshop-area.theme-dark .panel-head,
body.workshop-area.theme-dark .panel-title,
body.workshop-area.theme-dark .page-title,
body.workshop-area.theme-dark h1,
body.workshop-area.theme-dark h2,
body.workshop-area.theme-dark h3,
body.workshop-area.theme-dark strong {
    color: var(--ink);
}

body.workshop-area.theme-dark .panel-head,
body.workshop-area.theme-dark .workshop-statusbar span,
body.workshop-area.theme-dark .berlin-clock {
    background: var(--panel-soft) !important;
    border-color: var(--line) !important;
}

body.workshop-area.theme-dark .btn.secondary {
    background: #252d36;
    color: var(--ink);
    border-color: #617080;
}

@media (max-width: 760px) {
    .wifi-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wifi-preview-canvas {
        padding: 8px;
    }

    .wifi-paper {
        transform-origin: top left;
        transform: scale(.72);
        margin-right: -28%;
        margin-bottom: -28%;
    }
}

/* Dunkelmodus: feste helle Warn- und Scannerflaechen brauchen eigene Kontraste. */
body.theme-dark .brand-logo-frame {
    background: transparent;
}

body.theme-dark .brand-logo-square,
body.theme-dark .login-brand-primary img {
    mix-blend-mode: multiply;
}

/* Werkstatt-Tarife, Reservierungskalender und globale Berliner Zeit */
.global-berlin-clock {
    display: grid;
    gap: 1px;
    min-width: 190px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
    line-height: 1.2;
    text-align: right;
}

.global-berlin-clock strong {
    font-size: 13px;
}

.global-berlin-clock small {
    color: var(--muted);
    font-size: 10px;
}

.lift-current-plan {
    display: grid;
    gap: 2px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #9fb5db;
    border-radius: 7px;
    background: #edf3ff;
}

.lift-current-plan span,
.lift-current-plan small {
    color: #465b7b;
    font-size: 11px;
}

.lift-subscription-dialog {
    width: min(780px, calc(100vw - 28px));
    max-width: none;
    max-height: min(92dvh, 860px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel, #fff);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.lift-subscription-dialog::backdrop {
    background: rgba(18, 22, 27, .7);
    backdrop-filter: blur(2px);
}

.lift-subscription-dialog-card {
    max-height: min(92dvh, 860px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lift-subscription-form {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.subscription-plan-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.subscription-plan-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.subscription-plan-option input {
    position: absolute;
    inset: 12px auto auto 12px;
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.subscription-plan-option > span {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 165px;
    padding: 42px 14px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
}

.subscription-plan-option input:checked + span {
    border-color: var(--brand);
    background: #edf3ff;
    box-shadow: 0 0 0 2px rgba(49, 94, 168, .12);
}

.subscription-plan-option b {
    color: var(--brand-strong);
    font-size: 14px;
}

.subscription-plan-option small {
    color: var(--muted);
    line-height: 1.45;
}

.subscription-day-pass {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d5b04d;
    border-radius: 8px;
    background: #fff8dc;
    cursor: pointer;
}

.subscription-day-pass input {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 0;
    accent-color: var(--brand);
}

.subscription-day-pass > span[aria-hidden] {
    display: none;
}

.subscription-day-pass small {
    color: #665315;
}

.subscription-upgrade-warning {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border-left: 4px solid var(--accent);
    background: var(--panel-soft);
}

.catalog-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.catalog-checkbox-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.workshop-calendar {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.workshop-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.workshop-calendar-toolbar h3 {
    min-width: 180px;
    margin: 0;
    text-align: center;
}

.workshop-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(92px, 1fr));
    min-width: 700px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--line);
    gap: 1px;
}

.workshop-calendar-weekday {
    padding: 8px;
    background: var(--brand-strong);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.workshop-calendar-day {
    position: relative;
    display: block;
    min-height: 112px;
    padding: 7px;
    background: var(--panel, #fff);
    color: var(--ink);
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.workshop-calendar-day:hover {
    z-index: 1;
    background: color-mix(in srgb, var(--accent) 8%, var(--panel, #fff));
    box-shadow: inset 0 0 0 2px var(--accent);
}

.workshop-calendar-day:focus-visible {
    z-index: 2;
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.workshop-calendar-day.is-selected {
    background: color-mix(in srgb, var(--accent) 12%, var(--panel, #fff));
    box-shadow: inset 0 0 0 3px var(--brand-strong);
}

.workshop-calendar-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.workshop-calendar.is-compact .workshop-calendar-day {
    min-height: 86px;
}

.workshop-calendar-day.is-outside {
    background: var(--panel-soft);
    opacity: .62;
}

.workshop-calendar-day.is-today {
    box-shadow: inset 0 0 0 3px var(--accent);
}

.workshop-calendar-date {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-bottom: 5px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.workshop-calendar-add {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 10%, var(--panel, #fff));
    color: var(--brand-strong);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.workshop-calendar-day:hover .workshop-calendar-add,
.workshop-calendar-day.is-selected .workshop-calendar-add {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.workshop-calendar-day.is-today .workshop-calendar-date {
    background: var(--accent);
    color: #fff;
}

.workshop-calendar-events {
    display: grid;
    gap: 4px;
}

.workshop-calendar-event {
    display: grid;
    min-width: 0;
    padding: 4px 6px;
    overflow: hidden;
    border-left: 4px solid #315ea8;
    border-radius: 4px;
    background: #e9effb;
    color: #142b55;
    font-size: 10px;
}

.workshop-calendar-event b,
.workshop-calendar-event small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workshop-calendar-event.lift-color-2 { border-left-color: #14855b; background: #e2f5ed; color: #0b553b; }
.workshop-calendar-event.lift-color-3 { border-left-color: #b36b00; background: #fff1d7; color: #6b4204; }
.workshop-calendar-event.lift-color-4 { border-left-color: #7a4eb3; background: #f0e8fb; color: #4f2d7a; }
.workshop-calendar-event.lift-color-5 { border-left-color: #ad2838; background: #fbe8eb; color: #741622; }

.workshop-calendar-more {
    color: var(--muted);
    font-size: 10px;
}

body.theme-dark .global-berlin-clock,
body.workshop-area.theme-dark .lift-current-plan,
body.workshop-area.theme-dark .subscription-plan-option > span,
body.workshop-area.theme-dark .workshop-calendar-day,
body.workshop-area.theme-dark .subscription-upgrade-warning {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--ink);
}

@media (max-width: 760px) {
    .global-berlin-clock {
        width: 100%;
        text-align: left;
    }

    .subscription-plan-options {
        grid-template-columns: 1fr;
    }

    .subscription-plan-option > span {
        min-height: 0;
    }

    .lift-subscription-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 10px;
    }

    .lift-subscription-dialog-card {
        max-height: calc(100dvh - 16px);
    }

    .lift-subscription-form {
        padding: 14px;
    }

    .workshop-calendar-grid {
        grid-template-columns: repeat(7, minmax(78px, 1fr));
        min-width: 560px;
    }

    .workshop-calendar-day {
        min-height: 96px;
        padding: 5px;
    }

    .workshop-calendar.is-compact .workshop-calendar-day {
        min-height: 78px;
    }

    .workshop-calendar-toolbar {
        position: sticky;
        left: 0;
        justify-content: flex-start;
    }

    .workshop-calendar-toolbar h3 {
        min-width: 150px;
    }
}

body.theme-dark .login-branding {
    background: var(--panel);
}

body.theme-dark tr.low-stock td {
    background: #4a3b19 !important;
    color: #fff0b5;
}

body.theme-dark .scanner-item-preview {
    border-color: #47745b;
    background: #1d3228;
}

body.theme-dark .scanner-stock-value {
    border-color: #9d7b2a;
    background: #4a3b19;
    color: #fff0b5;
}

body.theme-dark .scanner-stock-value dd {
    color: #ffe49a;
}

body.theme-dark .help-flow span,
body.theme-dark .help-role-tag,
body.theme-dark .help-role-gold,
body.theme-dark .help-role-green,
body.theme-dark .help-role-red {
    color: var(--ink);
}

body.theme-dark .help-role-gold,
body.theme-dark .help-role-green,
body.theme-dark .help-role-red {
    background: #303943;
}

body.theme-dark .field-help,
body.theme-dark small,
body.theme-dark .muted {
    color: var(--muted);
}

body.theme-dark .brand-subtitle {
    color: var(--accent);
}

body.theme-dark .page-title,
body.theme-dark .panel-title,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark strong {
    color: var(--ink);
}

body.theme-dark .btn,
body.theme-dark .help-topic summary em,
body.theme-dark .help-quick-arrow {
    color: #fff;
}

body.theme-dark .btn.warn {
    color: #161a1e;
}

body.theme-dark .login-brand-center strong {
    color: var(--accent);
}

@media (max-width: 480px) {
    .invoice-kpis,
    .invoice-summary {
        grid-template-columns: 1fr;
    }
}

/* Packlisten und druckbare Vorlagen */
.form-section-title {
    margin-top: 6px;
    padding: 9px 0 7px;
    border-bottom: 2px solid var(--line);
    color: var(--brand-strong);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
}

.scanner-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scanner-form input {
    flex: 1 1 260px;
    min-width: 0;
}

.scanner-form .btn {
    flex: 0 0 auto;
}

.scanner-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.scanner-step {
    display: grid;
    align-content: start;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 8px;
    background: var(--panel-soft);
}

.scanner-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scanner-step-head h3 {
    margin: 0;
    font-size: 16px;
}

.scanner-step-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.scanner-step-number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.scanner-item-preview {
    display: grid;
    gap: 12px;
    padding: 13px;
    border: 1px solid #b9d9c7;
    border-radius: 7px;
    background: #f5fbf7;
}

.scanner-item-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.scanner-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.scanner-detail-grid > div {
    min-width: 0;
}

.scanner-detail-grid dt,
.scanner-detail-grid dd {
    margin: 0;
}

.scanner-detail-grid dt,
.scanner-readonly-field span,
.scanner-context-summary .meta-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.scanner-detail-grid dd {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.scanner-stock-value {
    padding: 9px 10px;
    border: 1px solid #e4c773;
    border-radius: 6px;
    background: #fff8dc;
}

.scanner-stock-value dd {
    color: #785b00;
    font-size: 18px;
}

.scanner-empty-state,
.scanner-readonly-field,
.scanner-context-summary {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: var(--panel);
}

.scanner-readonly-field strong,
.scanner-context-summary strong {
    overflow-wrap: anywhere;
}

.scanner-or {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.scanner-or::before,
.scanner-or::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--line);
}

.scanner-confirm-step {
    border-top-color: var(--ok);
}

.scanner-confirm-step .btn:disabled,
.scanner-quantity-form .btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.scanner-validation-note {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
}

.scanner-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.scanner-context-first {
    border-top-color: #9b1d32;
}

.scanner-next-position {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 2px solid #b91c2c;
    border-radius: 7px;
    background: #fff5f5;
}

.scanner-next-position strong {
    color: #891827;
    font-size: 16px;
}

.scanner-next-position span:last-child {
    color: #5c6874;
    font-size: 12px;
}

.scanner-complete-message {
    margin: 0;
}

.scanner-packlist-progress {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
}

.scanner-packlist-progress .panel-head {
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.scanner-packlist-progress .table-wrap {
    margin: 0;
}

.scanner-packlist-progress table {
    min-width: 860px;
}

.scanner-packlist-progress tr.scanner-position-next {
    background: #fff1f2;
    box-shadow: inset 5px 0 #b91c2c;
}

.scanner-packlist-progress tr.scanner-position-done {
    background: #eefaf2;
    color: #315f44;
}

.scanner-packlist-progress tr.scanner-position-done strong {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.scanner-packlist-select-form select,
.scanner-job-form select {
    width: 100%;
}

.scanner-item-form input:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.history-search {
    max-width: 760px;
}

.history-table-wrap {
    overflow-x: auto;
}

.history-table-wrap table {
    min-width: 1180px;
}

@media (max-width: 900px) {
    .scanner-step-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .scanner-form,
    .scanner-footer-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .scanner-form .btn,
    .scanner-footer-actions .btn {
        width: 100%;
    }

    .scanner-detail-grid {
        grid-template-columns: 1fr;
    }
}

.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.job-meta-grid > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.job-meta-grid span {
    color: var(--muted);
    font-size: 12px;
}

.job-meta-grid strong {
    overflow-wrap: anywhere;
}

.barcode-actions,
.catalog-print-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.barcode-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.barcode-inline svg {
    width: 150px;
    height: 36px;
}

.procurement-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.procurement-form .wide {
    grid-column: span 2;
}

.invoice-footer {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.invoice-footer img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.invoice-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 auto 16px;
    width: min(210mm, 100%);
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, 100%);
    box-sizing: border-box;
    margin: auto auto 0;
    padding: 18px 24px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.template-editor {
    width: 100%;
    box-sizing: border-box;
    min-height: 260px;
    padding: 14px;
    border: 1px solid #2e4052;
    border-radius: 6px;
    background: #111a24;
    color: #e8eff7;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
    tab-size: 2;
}

.template-editor:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(51, 105, 194, .22);
}

.visual-editor {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9fc;
}

.visual-editor-head,
.visual-editor-actions,
.visual-template-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.visual-editor-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.visual-editor-head h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 17px;
}

.visual-editor-head .page-note {
    margin: 0;
}

.visual-editor-board {
    display: grid;
    gap: 8px;
}

.visual-template-block {
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: grab;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.visual-template-block:active {
    cursor: grabbing;
}

.visual-template-block.is-dragging {
    opacity: .5;
}

.visual-template-block.is-drag-target {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(51, 105, 194, .14);
}

.visual-template-drag {
    flex: 0 0 26px;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
}

.visual-template-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 3px;
    min-width: 0;
}

.visual-template-copy strong {
    color: var(--ink);
}

.visual-template-copy span {
    color: var(--muted);
    font-size: 12px;
}

.visual-template-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--ink);
    font-size: 12px;
}

.visual-template-controls {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.visual-template-controls .btn {
    min-width: 54px;
    padding: 7px 9px;
    font-size: 12px;
}

.element-insert-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
    padding: 10px;
    border: 1px dashed #b8c4d3;
    border-radius: 6px;
    background: #eef3f8;
}

.element-insert-bar strong {
    margin-right: 4px;
    color: var(--ink);
}

.visual-element-card {
    flex-wrap: wrap;
    align-items: flex-start;
}

.visual-element-card .visual-template-copy {
    padding-top: 2px;
}

.visual-element-editor {
    flex: 1 1 100%;
    margin: 10px 0 0 40px;
    padding-top: 10px;
    border-top: 1px solid #e0e7ef;
}

.element-field-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 9px;
}

.element-field-grid label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
}

.element-field-grid .element-content-field {
    grid-column: span 4;
}

.element-field-grid .element-content-field textarea {
    min-height: 58px;
    resize: vertical;
}

.element-field-grid input,
.element-field-grid select,
.element-field-grid textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.element-field-grid input[type="color"] {
    min-height: 34px;
    padding: 3px;
}

.element-field-grid .element-check {
    display: flex;
    align-items: center;
    align-self: end;
    min-height: 34px;
    gap: 6px;
    color: var(--ink);
    font-size: 12px;
}

.element-field-grid .element-check input {
    width: auto;
}

.invoice-custom-text,
.invoice-custom-heading,
.invoice-custom-box {
    box-sizing: border-box;
    width: 100%;
}

.invoice-custom-heading {
    margin: 12px 0;
}

.invoice-custom-box {
    margin: 12px 0;
}

.invoice-custom-line {
    width: 100%;
}

.invoice-custom-spacer {
    width: 100%;
}

.packlist-paper {
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 16mm;
    background: #fff;
    color: #20252b;
    box-shadow: 0 5px 22px rgba(24, 38, 56, .16);
}

.packlist-paper .visual-invoice-meta {
    display: grid;
    justify-items: start;
    gap: 4px;
    margin: 18px 0;
    text-align: left;
}

.packlist-paper .visual-invoice-meta h1 {
    margin: 0;
    font-size: 25px;
}

.packlist-paper .invoice-paper-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 18px 0;
}

.packlist-paper .invoice-paper-parties section,
.packlist-paper .invoice-extra-block {
    display: grid;
    gap: 5px;
}

.packlist-paper .invoice-lines {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 12px;
}

.packlist-paper .invoice-lines th,
.packlist-paper .invoice-lines td {
    padding: 8px;
    border-bottom: 1px solid #d9dee4;
    text-align: left;
    vertical-align: top;
}

.packlist-paper .invoice-lines th {
    background: #9b1d32;
    color: #fff;
}

.packlist-paper .invoice-lines th.packlist-color-head {
    position: relative;
    overflow: hidden;
    background: transparent;
    color: #fff;
}

.packlist-paper .invoice-lines .packlist-head-fill {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.packlist-paper .invoice-lines .packlist-head-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 9px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.packlist-paper .invoice-label {
    color: #697586;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.packlist-paper .invoice-extra-block {
    margin: 18px 0;
    padding: 10px 12px;
    border: 1px solid #d9dee4;
    border-radius: 4px;
}

.packlist-paper .invoice-paper-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    padding-top: 10px;
    border-top: 1px solid #d9dee4;
    font-size: 10px;
}

.packlist-paper .packlist-barcode {
    display: flex;
    justify-content: flex-end;
    width: 58mm;
    max-width: 100%;
    margin: 2px 0 0 auto;
    line-height: 0;
}

.packlist-paper .packlist-barcode svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.packlist-paper .packlist-page-number {
    display: block;
    color: #5c6874;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: right;
}

.packlist-paper-page + .packlist-paper-page {
    margin-top: 22px;
}

.blank-packlist-paper {
    border-top: 6px solid #9b1d32;
}

.blank-packlist-paper .invoice-paper-header {
    border-bottom-color: #9b1d32;
}

.blank-packlist-paper .invoice-paper-title h1,
.blank-packlist-paper .invoice-paper-title strong {
    color: #9b1d32;
}

.blank-packlist-paper .invoice-lines th {
    background: #9b1d32;
}

.blank-packlist-parties {
    margin: 16px 0 18px;
}

.blank-packlist-parties section {
    gap: 6px;
}

.blank-packlist-write-line {
    display: block;
    width: 100%;
    height: 19px;
    border-bottom: 1px solid #aeb8c4;
}

.blank-packlist-labeled-line {
    display: flex !important;
    align-items: end;
    gap: 7px;
    min-height: 20px;
}

.blank-packlist-labeled-line b {
    flex: 0 0 auto;
    color: #5c6874;
    font-size: 11px;
    font-weight: 700;
}

.blank-packlist-short-line {
    display: inline-block;
    min-width: 78px;
    height: 17px;
    border-bottom: 1px solid #aeb8c4;
    vertical-align: bottom;
}

.blank-packlist-lines {
    table-layout: fixed;
    margin: 0 !important;
}

.blank-packlist-lines th,
.blank-packlist-lines td {
    height: 27px;
    padding: 6px 6px;
    overflow-wrap: anywhere;
}

.blank-packlist-lines th:nth-child(1),
.blank-packlist-lines td:nth-child(1) {
    width: 7%;
    text-align: center;
}

.blank-packlist-lines th:nth-child(2),
.blank-packlist-lines td:nth-child(2) {
    width: 29%;
}

.blank-packlist-lines th:nth-child(3),
.blank-packlist-lines td:nth-child(3) {
    width: 24%;
}

.blank-packlist-lines th:nth-child(4),
.blank-packlist-lines td:nth-child(4) {
    width: 11%;
}

.blank-packlist-lines th:nth-child(5),
.blank-packlist-lines td:nth-child(5) {
    width: 11%;
}

.blank-packlist-lines th:nth-child(6),
.blank-packlist-lines td:nth-child(6) {
    width: 18%;
}

.blank-packlist-position {
    color: #697586;
    font-weight: 700;
}

.blank-packlist-notes {
    margin: 14px 0 0 !important;
    padding: 9px 11px !important;
}

.blank-packlist-writing-lines {
    display: grid;
    gap: 3px;
    margin-top: 2px;
}

.blank-packlist-writing-line {
    display: block;
    height: 18px;
    border-bottom: 1px solid #b7c0cb;
}

.blank-packlist-signatures {
    margin-top: 19px !important;
}

.blank-packlist-signature-line {
    display: inline-block;
    width: 76px;
    height: 14px;
    border-bottom: 1px solid #8c98a6;
    vertical-align: bottom;
}

.visual-editor-actions {
    justify-content: space-between;
    margin-top: 12px;
}

.advanced-editor {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    background: #fbfcfe;
}

.advanced-editor summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
}

.advanced-editor-body {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.visual-invoice-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    padding: 18px 0;
    border-bottom: 1px solid #d9dee4;
    text-align: right;
}

.visual-invoice-meta h1 {
    margin: 0;
    color: #142d52;
    font-size: 26px;
}

.designer-page {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.designer-page-head,
.designer-preview-head,
.designer-sidebar-head,
.designer-sidebar-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.designer-page-head {
    margin-bottom: 18px;
}

.designer-page-head .page-note,
.designer-preview-head span,
.designer-sidebar-head span {
    color: var(--muted);
    font-size: 13px;
}

.designer-page-head .panel-title,
.designer-preview-head h3,
.designer-sidebar-head h3 {
    margin: 0 0 4px;
}

.designer-form {
    display: block;
}

.designer-workspace {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.designer-sidebar,
.designer-preview-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f9fc;
}

.designer-sidebar {
    position: sticky;
    top: 18px;
}

.designer-sidebar-head {
    align-items: flex-start;
    margin-bottom: 16px;
}

.designer-style-controls {
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid #d5dde7;
    border-radius: 6px;
    background: #fff;
}

.designer-style-controls h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 14px;
}

.designer-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.designer-style-grid label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.designer-style-grid label:nth-child(n + 5) {
    grid-column: 1 / -1;
}

.designer-style-grid input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 2px;
}

.designer-style-grid input[type="range"] {
    width: 100%;
}

.designer-style-grid output {
    float: right;
    color: var(--ink);
    font-weight: 700;
}

.invoice-extra-block {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 12px 14px;
    border-left: 4px solid #d9dee4;
    background: #f7f9fc;
}

.invoice-extra-block p {
    margin: 0;
}

.designer-sidebar-foot {
    align-items: stretch;
    flex-direction: column;
    margin-top: 16px;
}

.designer-sidebar-foot .btn {
    width: 100%;
}

.designer-preview-head {
    align-items: flex-start;
    margin-bottom: 16px;
}

.designer-preview-canvas {
    min-height: 640px;
    overflow: auto;
    padding: 18px;
    background: #dfe5ec;
}

.designer-preview-canvas .invoice-paper {
    transform-origin: top left;
}

.visual-editor-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    border: 1px solid #d5dde7;
    border-radius: 7px;
    background: #eef2f7;
}

.visual-editor-tabs button {
    flex: 1;
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.visual-editor-tabs button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(25, 34, 44, .12);
}

.visual-canvas-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.visual-canvas-toolbar[hidden] {
    display: none;
}

.visual-toolbar-title {
    display: grid;
    min-width: 190px;
    gap: 2px;
    margin-right: auto;
}

.visual-toolbar-title span {
    color: var(--muted);
    font-size: 11px;
}

.visual-canvas-toolbar label {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.visual-canvas-toolbar input {
    width: 74px;
    min-height: 31px;
    padding: 5px 7px;
}

.visual-canvas-toolbar .btn {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
}

.visual-template-source {
    display: none;
}

.job-workflow-step {
    border-left: 4px solid var(--accent);
}

.invoice-paper {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 17mm 16mm 14mm;
    background: #fff;
    color: #20252b;
    box-shadow: 0 10px 34px rgba(25, 34, 44, .16);
}

.invoice-paper [data-editor-element] {
    cursor: move;
    outline: 1px dashed transparent;
    transition: outline-color .12s ease, box-shadow .12s ease;
}

.invoice-paper [data-editor-element]:hover,
.invoice-paper [data-editor-element].is-selected {
    outline: 2px solid #2f6fed;
    outline-offset: 2px;
}

.invoice-paper [data-editor-element].is-selected {
    box-shadow: 0 0 0 4px rgba(47, 111, 237, .12);
}

.visual-resize-handle {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 2px;
    background: #2f6fed;
    cursor: ew-resize;
}

.invoice-paper .visual-resize-handle {
    display: none;
}

.invoice-paper [data-editor-element].is-selected .visual-resize-handle {
    display: block;
}

.invoice-paper-header {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid #142d52;
}

.invoice-paper-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.invoice-paper-brand img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex: 0 0 auto;
}

.invoice-paper-brand > div,
.invoice-paper-title,
.invoice-paper-parties section,
.invoice-totals,
.invoice-thankyou {
    display: grid;
    gap: 5px;
}

.invoice-paper-brand strong {
    color: #142d52;
    font-size: 16px;
}

.invoice-paper-brand span,
.invoice-paper-title span,
.invoice-paper-parties span,
.invoice-paper-footer span,
.invoice-thankyou span {
    color: #5c6874;
    font-size: 12px;
}

.invoice-paper-title {
    min-width: 178px;
    align-content: start;
    text-align: right;
}

.invoice-paper-title h1 {
    margin: 0 0 4px;
    color: #142d52;
    font-size: 28px;
    letter-spacing: .04em;
}

.invoice-paper-title strong {
    font-size: 13px;
}

.invoice-paper-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0 26px;
    padding: 14px 0;
    border-bottom: 1px solid #d9dee4;
}

.invoice-label {
    color: #687581 !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invoice-paper-parties strong {
    font-size: 14px;
}

.invoice-lines {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.invoice-lines th,
.invoice-lines td {
    padding: 9px 7px;
    border-bottom: 1px solid #e1e5e9;
    text-align: right;
    vertical-align: top;
}

.invoice-lines th:first-child,
.invoice-lines td:first-child {
    text-align: left;
}

.invoice-lines th {
    background: #142d52;
    color: #fff;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.invoice-paper-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 32px;
    align-items: end;
    margin-top: 28px;
}

.invoice-thankyou {
    align-self: end;
}

.invoice-thankyou strong {
    color: #142d52;
    font-size: 14px;
}

.invoice-totals {
    justify-items: end;
    font-size: 12px;
}

.invoice-totals > span {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.invoice-total {
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #142d52;
    color: #fff;
    font-size: 14px;
}

.invoice-paper-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
    padding-top: 10px;
    border-top: 1px solid #d9dee4;
}

/* Rechnung im Layout des offiziellen Kopfbogens "Die Werkstatt" */
.invoice-letterhead-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42mm;
    align-items: start;
    gap: 10mm;
    min-height: 37mm;
}

.invoice-letterhead-sender {
    display: grid;
    align-content: start;
    gap: 2px;
    padding-top: 12mm;
    color: #173c72;
    font-size: 9.5px;
    line-height: 1.35;
}

.invoice-letterhead-sender strong {
    font-size: 10.5px;
}

.invoice-letterhead-sender span {
    color: #173c72;
}

.invoice-letterhead-logo {
    display: flex;
    justify-content: flex-end;
}

.invoice-letterhead-logo img {
    display: block;
    width: 40mm;
    height: 40mm;
    object-fit: contain;
}

.invoice-document-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12mm;
    margin-top: 5mm;
    padding-bottom: 4mm;
    border-bottom: 1.5px solid #173c72;
}

.invoice-document-heading .invoice-paper-title {
    min-width: 0;
    text-align: left;
}

.invoice-document-heading .invoice-paper-title h1 {
    margin: 0 0 2mm;
    color: #173c72;
    font-size: 28px;
    line-height: 1;
}

.invoice-document-heading .invoice-paper-title strong {
    color: #173c72;
    font-size: 12px;
}

.invoice-document-meta {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: #5c6f86;
    font-size: 10px;
    text-align: right;
}

.invoice-paper > .invoice-paper-parties {
    gap: 4mm;
    margin: 5mm 0;
    padding: 0 0 5mm;
    border-bottom: 1.5px solid #173c72;
}

.invoice-paper > .invoice-paper-parties section {
    gap: 3px;
    min-height: 28mm;
    padding: 4mm;
    border: 1px solid #c8d4e2;
    border-radius: 2mm;
    background: #f7f9fc;
}

.invoice-paper > .invoice-paper-parties strong {
    color: #26384d;
    font-size: 12.5px;
}

.invoice-paper > .invoice-paper-parties span {
    font-size: 10px;
}

.invoice-paper > .invoice-paper-parties span:empty {
    display: none;
}

.invoice-paper > .invoice-lines {
    table-layout: fixed;
    font-size: 9.5px;
    line-height: 1.3;
}

.invoice-paper > .invoice-lines th,
.invoice-paper > .invoice-lines td {
    padding: 2.4mm 1.6mm;
    overflow-wrap: anywhere;
}

.invoice-paper > .invoice-lines th {
    background: #173c72;
    font-size: 8px;
}

.invoice-paper > .invoice-lines th:nth-child(1),
.invoice-paper > .invoice-lines td:nth-child(1) {
    width: 42%;
}

.invoice-paper > .invoice-lines th:nth-child(2),
.invoice-paper > .invoice-lines td:nth-child(2) {
    width: 13%;
}

.invoice-paper > .invoice-lines th:nth-child(3),
.invoice-paper > .invoice-lines td:nth-child(3) {
    width: 17%;
}

.invoice-paper > .invoice-lines th:nth-child(4),
.invoice-paper > .invoice-lines td:nth-child(4) {
    width: 10%;
}

.invoice-paper > .invoice-lines th:nth-child(5),
.invoice-paper > .invoice-lines td:nth-child(5) {
    width: 18%;
}

.invoice-paper > .invoice-paper-bottom {
    grid-template-columns: minmax(0, 1fr) 62mm;
    gap: 10mm;
    align-items: start;
    margin-top: 5mm;
}

.invoice-payment-overview {
    display: grid;
    align-content: start;
    gap: 2px;
    color: #5c6f86;
    font-size: 10px;
}

.invoice-payment-overview strong {
    margin-bottom: 3mm;
    color: #26384d;
    font-size: 11px;
}

.invoice-paper > .invoice-paper-bottom .invoice-totals {
    gap: 3px;
    color: #26384d;
    font-size: 10px;
}

.invoice-paper > .invoice-paper-bottom .invoice-totals:only-child {
    grid-column: 2;
}

.invoice-paper > .invoice-paper-bottom .invoice-total {
    margin-top: 2mm;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5mm;
    padding: 3.5mm 4mm;
    background: #173c72;
    font-size: 12px;
    letter-spacing: .02em;
}

.invoice-paper > .invoice-paper-bottom .invoice-total b {
    font-size: 14px;
    white-space: nowrap;
}

.invoice-letterhead-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 61mm;
    align-items: end;
    gap: 12mm;
    margin-top: auto;
    padding-top: 5mm;
}

.invoice-footer-message {
    display: grid;
    align-self: end;
    gap: 2px;
    padding-bottom: 2mm;
    color: #6a7c91;
    font-size: 9px;
}

.invoice-footer-message strong {
    color: #173c72;
    font-size: 11px;
}

.invoice-legal-block {
    display: grid;
    gap: 0;
    justify-self: end;
    width: 61mm;
    color: #173c72;
    font-size: 7.5px;
    line-height: 1.28;
    text-align: right;
}

.invoice-legal-block > strong {
    font-size: 9px;
}

.invoice-legal-block .invoice-legal-gap {
    margin-top: 2mm;
}

.invoice-legal-block b {
    font-size: 7.5px;
}

@media (max-width: 760px) {
    .app-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-inline: 16px;
    }

    .visual-editor-head,
    .visual-editor-actions,
    .visual-template-block {
        align-items: stretch;
        flex-direction: column;
    }

    .visual-template-block {
        align-items: flex-start;
    }

    .visual-template-drag {
        display: none;
    }

    .visual-element-editor {
        margin-left: 0;
    }

    .element-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .element-field-grid .element-content-field {
        grid-column: span 2;
    }

    .visual-template-controls,
    .visual-template-controls .btn {
        width: 100%;
    }

    .visual-template-controls .btn {
        flex: 1;
    }

    .designer-page-head,
    .designer-preview-head,
    .designer-sidebar-head {
        align-items: stretch;
        flex-direction: column;
    }

    .designer-workspace {
        grid-template-columns: 1fr;
    }

    .designer-sidebar {
        position: static;
    }

    .designer-preview-canvas {
        padding: 8px;
    }

    .designer-style-grid {
        grid-template-columns: 1fr;
    }

    .designer-style-grid label:nth-child(n + 5) {
        grid-column: auto;
    }

    .designer-preview-canvas .invoice-paper {
        transform: scale(.68);
        transform-origin: top left;
        margin-bottom: -260px;
    }

    .invoice-preview-actions {
        width: 100%;
        justify-content: stretch;
    }

    .invoice-preview-actions .btn {
        flex: 1;
        text-align: center;
    }

    .invoice-paper {
        width: 100%;
        min-height: 0;
        padding: 22px 16px;
    }

    .packlist-paper {
        width: 100%;
        min-height: 0;
        padding: 22px 16px;
    }

    .invoice-paper-header,
    .invoice-paper-parties,
    .invoice-paper-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .invoice-paper-title {
        text-align: left;
    }

    .invoice-paper-bottom {
        display: grid;
    }

    .invoice-totals {
        justify-items: stretch;
    }

    .invoice-paper-footer {
        flex-direction: column;
    }

    .invoice-letterhead-header,
    .invoice-document-heading,
    .invoice-letterhead-footer {
        grid-template-columns: 1fr;
    }

    .invoice-letterhead-sender {
        order: 2;
        padding-top: 0;
    }

    .invoice-letterhead-logo {
        justify-content: flex-start;
    }

    .invoice-document-meta {
        justify-items: start;
        text-align: left;
    }

    .invoice-paper > .invoice-paper-bottom {
        grid-template-columns: 1fr;
    }

    .invoice-paper > .invoice-paper-bottom .invoice-totals:only-child {
        grid-column: 1;
    }

    .invoice-lines {
        min-width: 720px;
    }

    .packlist-paper .invoice-paper-parties {
        grid-template-columns: 1fr;
    }

    .packlist-paper .invoice-paper-footer {
        flex-direction: column;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    @page afr-packlist-portrait {
        size: A4 portrait;
        margin: 0;
    }

    body.packlist-print-page {
        page: afr-packlist-portrait;
    }

    .packlist-paper-page {
        break-after: page;
        page-break-after: always;
    }

    .packlist-paper-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .invoice-preview-actions {
        display: none;
    }

    .invoice-paper {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 17mm 16mm 14mm;
        box-shadow: none;
    }

    .invoice-letterhead-header {
        grid-template-columns: minmax(0, 1fr) 42mm;
    }

    .invoice-letterhead-sender {
        order: initial;
        padding-top: 12mm;
    }

    .invoice-letterhead-logo {
        justify-content: flex-end;
    }

    .invoice-document-heading {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .invoice-document-meta {
        justify-items: end;
        text-align: right;
    }

    .invoice-paper > .invoice-paper-parties {
        grid-template-columns: 1fr 1fr;
        flex-direction: row;
    }

    .invoice-paper > .invoice-paper-bottom {
        grid-template-columns: minmax(0, 1fr) 62mm;
    }

    .invoice-paper > .invoice-paper-bottom .invoice-totals:only-child {
        grid-column: 2;
    }

    .invoice-letterhead-footer {
        grid-template-columns: minmax(0, 1fr) 61mm;
    }

    .invoice-paper > .invoice-lines {
        min-width: 0;
    }

    .invoice-print-copy.is-single-page,
    .invoice-print-copy.is-single-page > .invoice-paper {
        height: 296mm;
        min-height: 296mm;
    }

    .invoice-print-copy.is-single-page {
        overflow: hidden;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-print-copy.is-single-page > .invoice-paper {
        overflow: hidden;
    }

    .packlist-paper {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        margin: 0;
        padding: 14mm 12mm 9mm 20mm;
        line-height: 1.4;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .packlist-paper .invoice-paper-header {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        padding-bottom: 14px;
    }

    .packlist-paper .invoice-paper-brand {
        display: flex;
        flex: 1 1 auto;
        flex-direction: row;
        gap: 14px;
    }

    .packlist-paper .invoice-paper-brand img {
        width: 82px;
        height: 82px;
    }

    .packlist-paper .invoice-paper-title {
        flex: 0 0 50mm;
        min-width: 50mm;
        text-align: right;
    }

    .packlist-paper .invoice-paper-parties {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin: 14px 0;
        padding: 11px 0;
    }

    .packlist-paper .invoice-lines {
        min-width: 0;
        margin: 11px 0;
        font-size: 10px;
        table-layout: fixed;
    }

    .packlist-paper .invoice-lines th,
    .packlist-paper .invoice-lines td {
        padding: 5px 6px;
        line-height: 1.25;
        overflow-wrap: anywhere;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .packlist-paper .invoice-lines th.packlist-color-head {
        position: relative;
        overflow: hidden;
        background: transparent;
        color: #fff;
    }

    .packlist-paper .invoice-extra-block {
        margin: 5px 0;
        padding: 4px 7px;
    }

    .packlist-paper .invoice-paper-footer {
        flex-direction: row;
        gap: 7px;
        margin-top: 6px;
        padding-top: 4px;
        font-size: 7.5px;
    }
}

body.print-page {
    min-height: 100vh;
    background: #fff;
}

.inventory-print-page {
    min-height: 100vh;
    background: #e8ecef;
    color: #1f2937;
}

.inventory-print-main {
    width: min(100%, 297mm);
    margin: 0 auto;
    padding: 24px;
}

.inventory-print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cbd5e1;
}

.inventory-print-sheet {
    width: 100%;
    min-height: 190mm;
    padding: 12mm 14mm;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
}

.inventory-print-header {
    display: grid;
    grid-template-columns: 34mm minmax(0, 1fr) 58mm;
    align-items: center;
    gap: 9mm;
    padding-bottom: 7mm;
    border-bottom: 2px solid #1f3d67;
}

.inventory-print-header img {
    display: block;
    width: 30mm;
    max-height: 28mm;
    object-fit: contain;
}

.inventory-print-header h1 {
    margin: 0 0 3px;
    color: #173b68;
    font-size: 25px;
}

.inventory-print-header p {
    margin: 2px 0;
    color: #52677e;
    font-size: 12px;
}

.inventory-print-filter {
    margin-top: 8px !important;
    font-weight: 700;
}

.inventory-print-meta {
    display: grid;
    gap: 7px;
    color: #52677e;
    font-size: 11px;
}

.inventory-print-meta span {
    display: grid;
    gap: 1px;
}

.inventory-print-meta strong {
    color: #173b68;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.inventory-print-count {
    margin: 7mm 0 3mm;
    color: #52677e;
    font-size: 12px;
    font-weight: 700;
}

.inventory-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.inventory-print-table th,
.inventory-print-table td {
    padding: 6px 7px;
    border-bottom: 1px solid #d7dee7;
    text-align: left;
    vertical-align: top;
}

.inventory-print-table th {
    background: #1f3d67;
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.inventory-print-table .number {
    white-space: nowrap;
    text-align: right;
}

.inventory-print-table .manufacturer-col {
    width: 11%;
    max-width: 28mm;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-print-table .empty {
    padding: 18px 7px;
    color: #52677e;
    text-align: center;
}

@media print {
    @page afr-inventory-landscape {
        size: A4 landscape;
        margin: 0;
    }

    body.inventory-print-page {
        page: afr-inventory-landscape;
        background: #fff;
    }

    .inventory-print-main {
        width: 297mm;
        padding: 0;
    }

    .inventory-print-toolbar {
        display: none;
    }

    .inventory-print-sheet {
        width: 297mm;
        min-height: 210mm;
        padding: 10mm 12mm;
        box-shadow: none;
    }
}

.print-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.print-header {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(180px, 260px);
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand);
}

.print-header img {
    display: block;
    width: 140px;
    max-height: 110px;
    object-fit: contain;
}

.print-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.print-header p {
    margin: 0;
}

.print-barcode {
    display: grid;
    gap: 5px;
    justify-items: center;
    text-align: center;
}

.print-barcode svg {
    width: 100%;
    height: 60px;
}

.print-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 18px;
    color: var(--muted);
}

.price-list {
    width: 100%;
    border-collapse: collapse;
}

.price-list th,
.price-list td {
    padding: 8px 9px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.price-list th {
    background: #f2f3f3;
    color: #454545;
    font-size: 12px;
    text-transform: uppercase;
}

.price-list .text-right,
.price-list td.text-right {
    text-align: right;
}

.avery-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 12mm 8mm;
    display: grid;
    grid-template-columns: repeat(4, 48.5mm);
    grid-auto-rows: 25.4mm;
    align-content: start;
    column-gap: 0;
    row-gap: 0;
    background: #fff;
}

.avery-label {
    width: 48.5mm;
    height: 25.4mm;
    overflow: hidden;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 1.4mm;
    border: 1px dotted #c9c9c9;
    color: #111;
    font-size: 8px;
    line-height: 1.15;
}

.avery-label strong,
.avery-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avery-label svg {
    width: 100%;
    height: 8mm;
}

.avery-label-empty {
    border-color: transparent;
    background: transparent;
}

.label-preview-heading {
    width: min(100%, 210mm);
    margin: 18px auto 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
}

.label-preview-heading h2 {
    margin: 0;
    font-size: 18px;
}

.label-preview-heading span {
    color: var(--muted);
    font-size: 13px;
}

.site-overview-table {
    min-width: 1180px;
}

.site-overview-table td {
    vertical-align: top;
}

.site-overview-table code {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .job-meta-grid,
    .procurement-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .print-header {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .print-barcode {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .scanner-form,
    .print-toolbar,
    .invoice-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .scanner-form .btn {
        width: 100%;
    }

    .job-meta-grid,
    .procurement-form {
        grid-template-columns: 1fr;
    }

    .procurement-form .wide {
        grid-column: auto;
    }

    .print-main {
        padding: 14px;
    }

    .print-header {
        grid-template-columns: 1fr;
    }

    .print-header img {
        width: 120px;
    }

    .price-list {
        display: block;
        overflow-x: auto;
    }
}

/* Werkstattabschluss: Pruefen, Zahlungsart waehlen, zwei Exemplare drucken */
.workshop-checkout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.workshop-checkout > .span-12 {
    grid-column: span 12;
}

.checkout-head .panel-head {
    align-items: center;
}

.checkout-total {
    color: var(--brand);
    font-size: clamp(22px, 3vw, 34px);
    white-space: nowrap;
}

.checkout-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-progress li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--muted);
    font-weight: 700;
}

.checkout-progress li span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
}

.checkout-progress li.active {
    background: color-mix(in srgb, var(--brand) 12%, var(--panel));
    color: var(--brand);
}

.checkout-progress li.done {
    background: color-mix(in srgb, var(--ok) 13%, var(--panel));
    color: var(--ok);
}

.checkout-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.checkout-customer-section {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
}

.checkout-customer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.checkout-customer-heading h3 {
    margin: 0 0 3px;
    color: var(--ink);
}

.checkout-customer-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-customer-type-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.checkout-customer-type-option input {
    position: absolute;
    inset: 14px auto auto 14px;
    width: 21px;
    height: 21px;
    accent-color: var(--brand);
}

.checkout-customer-type-option > span {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 3px 11px;
    min-height: 112px;
    padding: 38px 14px 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .12s ease;
}

.checkout-customer-type-option:hover > span {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.checkout-customer-type-option input:checked + span {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, var(--panel));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.checkout-customer-type-option b {
    display: grid;
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
}

.checkout-customer-type-option strong {
    color: var(--ink);
    font-size: 16px;
}

.checkout-customer-type-option small {
    color: var(--muted);
    line-height: 1.4;
}

.checkout-license-field {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 0;
}

.checkout-business-fields {
    display: none;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    padding-top: 2px;
}

.checkout-customer-section.is-business .checkout-business-fields,
.checkout-customer-section:has(input[name="customer_type"][value="gewerblich"]:checked) .checkout-business-fields {
    display: grid;
}

.checkout-lines {
    display: grid;
    gap: 10px;
}

.checkout-time-section,
.checkout-add-section {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
}

.checkout-time-section h3,
.checkout-add-section h3 {
    margin: 0 0 3px;
}

.checkout-time-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-add-section {
    margin-top: 20px;
}

.checkout-add-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.checkout-new-lines {
    display: grid;
    gap: 10px;
}

.checkout-new-line {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(120px, .25fr) minmax(150px, .35fr) auto;
    align-items: end;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

.checkout-new-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.checkout-new-remove {
    min-height: 42px;
}

.checkout-line {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(290px, 430px);
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

.checkout-line.is-deposit {
    background: var(--panel-soft);
}

.checkout-line.is-marked-for-removal {
    border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
    background: color-mix(in srgb, var(--danger) 8%, var(--panel));
    opacity: .72;
}

.checkout-line.is-marked-for-removal .checkout-line-main strong {
    text-decoration: line-through;
}

.checkout-line-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.checkout-line-main strong {
    overflow-wrap: anywhere;
}

.checkout-line-main span,
.checkout-readonly small {
    color: var(--muted);
    font-size: 12px;
}

.checkout-line-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
}

.checkout-remove-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line));
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-remove-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--danger);
}

.input-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.input-suffix > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.checkout-readonly {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    text-align: right;
}

.checkout-readonly small {
    grid-column: 1 / -1;
}

.checkout-sticky-action {
    position: sticky;
    z-index: 4;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
}

.checkout-sticky-action > div,
.checkout-confirmed {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-sticky-action > div {
    flex-wrap: wrap;
}

.checkout-sticky-action small {
    flex-basis: 100%;
    color: var(--muted);
}

.checkout-sticky-action span,
.checkout-confirmed span {
    color: var(--muted);
}

.checkout-sticky-action strong,
.checkout-confirmed strong {
    color: var(--brand);
    font-size: 21px;
}

.checkout-payment .panel-head {
    align-items: center;
}

.checkout-confirmed {
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 10px;
    background: var(--panel-soft);
}

.payment-choice-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.payment-choice {
    display: grid;
    min-height: 150px;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.payment-choice:hover,
.payment-choice:focus-visible {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.payment-choice .payment-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 12%, var(--panel));
    color: var(--brand);
    font-size: 25px;
    font-weight: 900;
}

.payment-choice strong {
    font-size: 20px;
}

.payment-choice small {
    color: var(--muted);
    text-align: center;
}

.checkout-complete .panel-body {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding-block: 36px;
    text-align: center;
}

.checkout-success-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    background: var(--ok);
    color: #fff;
    font-size: 34px;
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.invoice-archive-head {
    align-items: flex-start;
}

.invoice-archive-summary {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.invoice-archive-export {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.invoice-archive-export label {
    align-self: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.invoice-archive-export select {
    min-width: 190px;
}

.invoice-day-archive {
    display: grid;
    gap: 10px;
}

.invoice-day-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.invoice-day-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    background: var(--panel-soft);
}

.invoice-day-group > summary::-webkit-details-marker {
    display: none;
}

.invoice-day-group[open] > summary {
    border-bottom: 1px solid var(--line);
    background: #eef3f9;
}

.invoice-day-title {
    display: grid;
    gap: 3px;
}

.invoice-day-title strong {
    color: var(--brand-strong);
    font-size: 15px;
}

.invoice-day-title small {
    color: var(--muted);
    font-size: 12px;
}

.invoice-day-total {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: var(--ink);
    font-weight: 800;
}

.invoice-day-total b {
    display: inline-block;
    color: var(--brand);
    font-size: 25px;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform .15s ease;
}

.invoice-day-group[open] .invoice-day-total b {
    transform: rotate(-90deg);
}

.invoice-day-group .table-wrap {
    margin: 0;
}

.invoice-day-group table {
    min-width: 1120px;
}

.invoice-print-copy {
    position: relative;
    width: 210mm;
    margin: 0 auto 18px;
}

.invoice-copy-label {
    position: absolute;
    z-index: 3;
    top: 7mm;
    right: 16mm;
    color: #66717d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invoice-internal-watermark {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
}

.invoice-internal-watermark span {
    display: block;
    width: 150%;
    transform: rotate(-31deg);
    color: rgba(23, 60, 114, .09);
    font-size: 43px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.training-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
    gap: 22px;
    margin-bottom: 18px;
    padding: 24px;
    border: 2px solid #d29a20;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8df 0%, #fffdf5 58%, #f5f8fc 100%);
    box-shadow: 0 8px 24px rgba(49, 56, 68, .08);
}

.training-hero h2 {
    margin: 5px 0 8px;
    color: #173c72;
    font-size: clamp(24px, 3vw, 36px);
}

.training-hero p {
    max-width: 780px;
    margin: 0;
    color: #4b596b;
    font-size: 15px;
    line-height: 1.55;
}

.training-kicker,
.training-test-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #b77800;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 5px 9px;
}

.training-isolation {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 9px;
    background: #173c72;
    color: #fff;
}

.training-isolation strong {
    font-size: 17px;
}

.training-isolation span {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
}

.training-isolation span::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: #ffd77a;
    font-weight: 900;
}

.training-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.training-steps > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
}

.training-steps b {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #173c72;
    color: #fff;
}

.training-steps span {
    display: grid;
    gap: 2px;
}

.training-steps small {
    color: var(--muted);
    line-height: 1.25;
}

.training-summary-grid {
    margin-bottom: 20px;
}

.training-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
}

.training-section-head h2 {
    margin: 3px 0 0;
    color: var(--ink);
}

.training-lifts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.training-lift-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 5px solid #8b98a8;
    border-radius: 11px;
    background: var(--panel);
    box-shadow: 0 5px 16px rgba(31, 45, 62, .06);
}

.training-lift-card.is-active {
    border-top-color: #27825e;
}

.training-lift-card.is-checkout {
    border-top-color: #d18b00;
}

.training-lift-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.training-lift-card > header div {
    display: grid;
    gap: 2px;
}

.training-lift-card > header span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.training-lift-card > header h3 {
    margin: 0;
    color: var(--ink);
}

.training-lift-card > header > b {
    border-radius: 999px;
    padding: 6px 10px;
    background: #e6ebf1;
    color: #44556a;
    font-size: 11px;
}

.training-lift-card.is-active > header > b {
    background: #d9f3e7;
    color: #176c4b;
}

.training-lift-card.is-checkout > header > b {
    background: #fff0c9;
    color: #875600;
}

.training-lift-form,
.training-checkout-form,
.training-reservation-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 16px;
}

.training-lift-form label,
.training-checkout-form label,
.training-reservation-form label,
.training-add-item label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.training-lift-form button,
.training-checkout-form button,
.training-reservation-form button {
    align-self: end;
}

.training-lift-details {
    display: grid;
    gap: 5px;
    padding: 15px 16px;
    color: var(--muted);
}

.training-lift-details strong {
    color: var(--ink);
    font-size: 16px;
}

.training-item-list {
    display: grid;
    gap: 0;
    margin: 0 16px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    list-style: none;
}

.training-item-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

.training-item-list li:last-child {
    border-bottom: 0;
}

.training-add-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px auto;
    gap: 9px;
    align-items: end;
    padding: 14px 16px;
}

.training-stop-form {
    padding: 0 16px 16px;
}

.training-stop-form .btn {
    width: 100%;
}

.training-checkout-note {
    display: grid;
    gap: 3px;
    margin: 14px 16px 0;
    padding: 10px 12px;
    border-left: 4px solid #d18b00;
    background: #fff8e4;
    color: #69521f;
}

.training-checkout-lines {
    grid-column: 1 / -1;
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.training-checkout-lines > div,
.training-checkout-lines > label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 10px;
    align-items: center;
}

.training-lower-grid {
    margin-top: 6px;
}

.training-test-badge {
    margin-top: 5px;
    padding: 3px 7px;
    background: #a11b25;
}

.training-invoice-copy {
    min-height: 297mm;
    background: #fff;
}

.training-invoice-document {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 210mm;
    min-height: 297mm;
    padding: 18mm 17mm 16mm;
    color: #26364a;
    background: #fff;
}

.training-invoice-document > header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12mm;
    border-bottom: 2px solid #173c72;
}

.training-invoice-document > header > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.training-invoice-document > header > div:last-child {
    display: grid;
    justify-items: end;
    text-align: right;
}

.training-invoice-document header img {
    width: 24mm;
    height: 24mm;
    object-fit: contain;
}

.training-invoice-document header strong,
.training-invoice-document header span {
    display: block;
}

.training-invoice-document h1 {
    margin: 4px 0;
    color: #173c72;
    font-size: 22px;
}

.training-invoice-warning {
    display: grid;
    gap: 3px;
    margin: 9mm 0 6mm;
    padding: 10px 12px;
    border: 2px solid #a11b25;
    color: #8b1720;
    background: #fff4f4;
}

.training-invoice-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8mm;
    margin-bottom: 7mm;
}

.training-invoice-meta > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #cbd5e2;
    border-radius: 6px;
    background: #f7f9fc;
}

.training-invoice-meta span,
.training-invoice-meta small {
    color: #66758a;
}

.training-invoice-document table {
    width: 100%;
    border-collapse: collapse;
}

.training-invoice-document th {
    padding: 9px;
    color: #fff;
    background: #173c72;
    text-align: left;
}

.training-invoice-document td {
    padding: 9px;
    border-bottom: 1px solid #d5dde8;
}

.training-invoice-document th:last-child,
.training-invoice-document td:last-child {
    text-align: right;
}

.training-invoice-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75mm;
    margin: 10mm 0 0 auto;
    padding: 12px;
    color: #fff;
    background: #173c72;
}

.training-invoice-total strong {
    font-size: 19px;
}

.training-invoice-document > footer {
    position: absolute;
    right: 17mm;
    bottom: 17mm;
    left: 17mm;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #ccd6e2;
    color: #66758a;
}

.training-invoice-document > footer strong {
    color: #a11b25;
}

.nav-section-test-system .nav-parent {
    border-color: #d09a24;
    background: linear-gradient(90deg, rgba(208, 154, 36, .15), transparent);
}

.workshop-test-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #91a9d3;
    border-left: 6px solid #3266c1;
    border-radius: 8px;
    color: #1e376c;
    background: #edf3ff;
    box-shadow: var(--shadow);
}

.test-environment-topline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -2px 0 14px;
    padding: 10px 16px;
    border: 2px solid #c43f4b;
    border-radius: 10px;
    background: #fff1f2;
    color: #7f1d2d;
    box-shadow: 0 8px 20px rgba(127, 29, 45, 0.08);
}

.test-environment-topline strong {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 6px;
    background: #b92f3b;
    color: #fff;
    letter-spacing: 0.08em;
}

.test-environment-topline span {
    font-weight: 700;
}

.test-environment-print-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 2px solid #b91c2b;
    background: #fff1f2;
    color: #8b1725;
    font-weight: 700;
}

.workshop-test-banner > div:first-child {
    display: flex;
    align-items: center;
    gap: 13px;
}

.workshop-test-banner > div:first-child > div {
    display: grid;
    gap: 3px;
}

.workshop-test-banner strong {
    font-size: 16px;
}

.workshop-test-banner small {
    color: #526681;
}

.workshop-test-banner .actions,
.workshop-test-banner form {
    margin: 0;
}

.workshop-test-mark {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 5px;
    color: #fff;
    background: #b9434a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.workshop-test-view-nav {
    position: sticky;
    z-index: 8;
    top: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding: 8px;
    border: 1px solid #c6d2e7;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 16px rgba(27, 43, 74, .09);
}

.workshop-test-view-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 6px;
    color: #405675;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.workshop-test-view-nav a:hover,
.workshop-test-view-nav a.active {
    color: #fff;
    background: #3266c1;
}

.workshop-test-lift {
    position: relative;
}

.workshop-test-lift::after {
    position: absolute;
    top: 52px;
    right: 12px;
    content: "TEST";
    color: rgba(50, 102, 193, .18);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.workshop-test-items {
    margin: 0 0 13px;
}

.workshop-test-checkout {
    display: grid;
    gap: 9px;
    margin-top: 13px;
    padding: 12px;
    border: 1px solid #d3b05e;
    border-radius: 7px;
    background: #fff8e4;
}

.workshop-test-checkout-head {
    display: grid;
    gap: 2px;
}

.workshop-test-checkout-head span {
    color: #6e5a2d;
    font-size: 12px;
}

.workshop-test-checkout label {
    display: grid;
    gap: 4px;
    color: #5f5130;
    font-size: 11px;
    font-weight: 800;
}

.workshop-test-help {
    margin-top: 4px;
}

body.workshop-area .workshop-test-help .training-guide[open] > summary {
    color: #1e376c;
    background: #e9effb;
}

@media (max-width: 760px) {
    .test-environment-topline {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .test-environment-topline strong {
        text-align: center;
    }

    .workshop-test-banner,
    .workshop-test-banner > div:first-child {
        align-items: stretch;
        flex-direction: column;
    }

    .workshop-test-banner .actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .workshop-test-banner .actions .btn,
    .workshop-test-banner .actions form,
    .workshop-test-banner .actions form .btn {
        width: 100%;
    }

    .workshop-test-view-nav {
        margin-right: -4px;
        margin-left: -4px;
    }

    .workshop-test-original .quick-link-grid,
    .workshop-test-original .invoice-kpis {
        grid-template-columns: 1fr;
    }
}

.test-system-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.test-system-module {
    display: grid;
    gap: 8px;
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 6px solid #b77800;
    border-radius: 12px;
    color: var(--ink);
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(38, 50, 66, .08);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.test-system-module.workshop {
    border-top-color: #173c72;
}

.test-system-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(38, 50, 66, .14);
}

.test-system-module > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.test-system-module h2 {
    margin: 0;
    color: #173c72;
    font-size: 26px;
}

.test-system-module p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.test-system-module b {
    align-self: end;
    color: var(--brand-strong);
}

.training-module-nav {
    position: sticky;
    z-index: 8;
    top: 0;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 16px rgba(34, 49, 68, .08);
}

.training-module-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 7px;
    color: #415267;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.training-module-nav a:hover,
.training-module-nav a.active {
    color: #fff;
    background: #173c72;
}

.training-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.training-guide {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
}

.training-guide > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 11px 13px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    background: var(--panel-soft);
}

.training-guide > summary::-webkit-details-marker {
    display: none;
}

.training-guide > summary span {
    font-weight: 800;
}

.training-guide > summary b {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 8px;
    color: #6b4a00;
    background: #ffe5a5;
    font-size: 10px;
}

.training-guide[open] > summary {
    border-bottom: 1px solid var(--line);
    color: #173c72;
    background: #edf3fb;
}

.training-guide-body {
    padding: 12px 15px 14px;
}

.training-guide-body ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 23px;
}

.training-guide-body li {
    padding-left: 4px;
    line-height: 1.45;
}

.training-guide-body li::marker {
    color: #b77800;
    font-weight: 900;
}

.training-guide-body p {
    margin: 12px 0 0;
    padding: 9px 10px;
    border-left: 4px solid #b77800;
    color: #69521f;
    background: #fff8e4;
}

.training-data-form,
.training-scanner-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.training-data-form label,
.training-scanner-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.training-data-form .btn,
.training-scanner-form .btn {
    align-self: end;
    min-height: 42px;
}

.training-scan-examples {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.training-request-card {
    margin-top: 14px;
}

.warehouse-training-hero {
    border-color: #b77800;
}

@media (max-width: 760px) {
    .training-hero,
    .training-steps,
    .test-system-module-grid,
    .training-guide-grid,
    .training-lifts-grid,
    .training-lift-form,
    .training-checkout-form,
    .training-reservation-form,
    .training-data-form,
    .training-scanner-form {
        grid-template-columns: 1fr;
    }

    .training-module-nav {
        top: 0;
        margin-right: -4px;
        margin-left: -4px;
    }

    .training-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .training-section-head .btn,
    .training-lift-form .btn,
    .training-checkout-form .btn,
    .training-reservation-form .btn {
        width: 100%;
        min-height: 46px;
    }

    .training-add-item {
        grid-template-columns: 1fr 90px;
    }

    .training-add-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .training-invoice-document {
        width: 100%;
    }

    .invoice-archive-head,
    .invoice-archive-summary,
    .invoice-archive-export {
        align-items: stretch;
        justify-items: stretch;
        width: 100%;
    }

    .invoice-archive-export {
        display: grid;
        grid-template-columns: 1fr;
    }

    .invoice-archive-export select,
    .invoice-archive-export .btn {
        width: 100%;
    }

    .invoice-day-group > summary {
        align-items: flex-start;
    }

    .checkout-head .panel-head,
    .checkout-payment .panel-head,
    .checkout-sticky-action,
    .checkout-confirmed {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-customer-grid,
    .checkout-customer-type-options,
    .checkout-line,
    .checkout-time-fields,
    .checkout-new-line,
    .payment-choice-form {
        grid-template-columns: 1fr;
    }

    .checkout-customer-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-add-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-add-heading .btn,
    .checkout-new-remove {
        width: 100%;
    }

    .checkout-business-fields {
        grid-template-columns: 1fr;
    }

    .checkout-business-fields .field {
        grid-column: 1;
    }

    .checkout-line {
        gap: 12px;
    }

    .checkout-sticky-action .btn,
    .checkout-payment .panel-head .btn,
    .checkout-actions .btn {
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .payment-choice {
        min-height: 116px;
    }

    .invoice-print-copy {
        width: 100%;
    }
}

@media print {
    .training-invoice-print .training-invoice-copy,
    .training-invoice-print .training-invoice-document {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
    }
}

@media (max-width: 460px) {
    .checkout-progress li {
        display: grid;
        justify-items: center;
        gap: 3px;
        padding: 6px 3px;
        font-size: 11px;
        text-align: center;
    }

    .checkout-line-fields {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-remove-option {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media print {
    body.print-page,
    body.print-page * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        forced-color-adjust: none !important;
    }

    body.print-page .invoice-paper {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        width: 210mm !important;
        height: 296mm !important;
        min-height: 296mm !important;
        margin: 0 !important;
        padding: 12mm 14mm 10mm 18mm !important;
        overflow: hidden !important;
        background: #fff !important;
        color: #26384d !important;
        box-shadow: none !important;
    }

    body.print-page .invoice-letterhead-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42mm !important;
        align-items: start !important;
        gap: 10mm !important;
        min-height: 37mm !important;
    }

    body.print-page .invoice-letterhead-logo img {
        display: block !important;
        width: 40mm !important;
        height: 40mm !important;
        object-fit: contain !important;
    }

    body.print-page .invoice-document-heading {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: end !important;
        gap: 12mm !important;
        margin-top: 5mm !important;
        padding-bottom: 4mm !important;
        border-bottom: 1.5px solid #173c72 !important;
    }

    body.print-page .invoice-paper > .invoice-paper-parties {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4mm !important;
        margin: 5mm 0 !important;
        padding: 0 0 5mm !important;
        border-bottom: 1.5px solid #173c72 !important;
    }

    body.print-page .invoice-paper > .invoice-paper-parties section {
        display: grid !important;
        gap: 3px !important;
        min-height: 28mm !important;
        padding: 4mm !important;
        border: 1px solid #c8d4e2 !important;
        border-radius: 2mm !important;
        background: #f7f9fc !important;
    }

    body.print-page .invoice-paper > .invoice-lines {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 9.5px !important;
        line-height: 1.3 !important;
    }

    body.print-page .invoice-paper > .invoice-lines th,
    body.print-page .invoice-paper > .invoice-lines td {
        padding: 2.4mm 1.6mm !important;
        border-bottom: 1px solid #e1e5e9 !important;
    }

    body.print-page .invoice-paper > .invoice-lines th {
        background: #173c72 !important;
        color: #fff !important;
        font-size: 8px !important;
    }

    body.print-page .invoice-paper > .invoice-paper-bottom {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 62mm !important;
        gap: 10mm !important;
        align-items: start !important;
        margin-top: 5mm !important;
    }

    body.print-page .invoice-paper .invoice-total {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5mm !important;
        padding: 3.5mm 4mm !important;
        background: #173c72 !important;
        color: #fff !important;
    }

    body.print-page .invoice-letterhead-footer {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 61mm !important;
        align-items: end !important;
        gap: 12mm !important;
        margin-top: auto !important;
        padding-top: 5mm !important;
    }

    body.print-page .invoice-legal-block {
        justify-self: end !important;
        width: 61mm !important;
        text-align: right !important;
    }

    .invoice-print-copy {
        width: 210mm;
        margin: 0;
        break-after: page;
        page-break-after: always;
    }

    .invoice-print-copy:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .invoice-copy-label {
        top: 7mm;
        right: 16mm;
    }

    .invoice-internal-watermark span {
        color: rgba(23, 60, 114, .09) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Lokaler Barcode-Scanner fuer Handy- und Tablet-Kameras */
.camera-scan-input {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
    gap: 6px;
}

.camera-scan-input > input {
    width: 100%;
    min-width: 0;
}

.scanner-form .camera-scan-input {
    flex: 1 1 260px;
}

.global-search .camera-scan-input {
    flex: 1 1 auto;
}

.camera-scan-button {
    display: inline-flex;
    min-width: 92px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--brand);
    border-radius: 7px;
    background: var(--panel);
    color: var(--brand-strong);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.camera-scan-button:hover,
.camera-scan-button:focus-visible {
    background: var(--brand);
    color: #fff;
}

body.camera-scanner-open {
    overflow: hidden;
}

.camera-scanner-layer[hidden] {
    display: none;
}

.camera-scanner-layer {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 18px;
    background: rgba(8, 14, 25, .82);
    backdrop-filter: blur(3px);
}

.camera-scanner-card {
    width: min(680px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.camera-scanner-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.camera-scanner-head h2 {
    margin: 0;
    color: var(--brand-strong);
    font-size: 20px;
}

.camera-scanner-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.camera-scanner-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-soft);
    color: var(--text);
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.camera-scanner-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #05070a;
}

.camera-scanner-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-scanner-guide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 32%, transparent 68%, rgba(0, 0, 0, .18));
}

.camera-scanner-guide span {
    position: relative;
    display: block;
    width: min(84%, 520px);
    height: 34%;
    border: 3px solid #fff;
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .18), inset 0 0 18px rgba(0, 0, 0, .2);
}

.camera-scanner-guide span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    left: 5%;
    height: 2px;
    background: #dc2534;
    box-shadow: 0 0 8px rgba(220, 37, 52, .85);
}

.camera-scanner-status {
    min-height: 24px;
    margin: 0;
    padding: 12px 18px 4px;
    color: var(--text);
    font-weight: 700;
}

.camera-scanner-options,
.camera-scanner-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    padding: 10px 18px;
}

.camera-scanner-options label {
    display: grid;
    flex: 1 1 280px;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.camera-scanner-actions {
    justify-content: flex-end;
    padding-top: 4px;
}

.camera-scanner-privacy {
    margin: 0;
    padding: 2px 18px 16px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 600px) {
    .global-search .camera-scan-input,
    .scanner-form .camera-scan-input {
        width: 100%;
        flex-basis: 100%;
    }

    .camera-scan-button {
        min-width: 76px;
    }

    .camera-scan-button span:last-child {
        display: none;
    }

    .camera-scanner-layer {
        align-items: end;
        padding: 0;
    }

    .camera-scanner-card {
        width: 100%;
        max-height: 100dvh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 16px 16px 0 0;
    }

    .camera-scanner-preview {
        aspect-ratio: 3 / 4;
        max-height: 62dvh;
    }

    .camera-scanner-options {
        align-items: stretch;
        flex-direction: column;
    }

    .camera-scanner-options label,
    .camera-scanner-options .btn {
        width: 100%;
        flex-basis: auto;
    }
}

@media print {
    .camera-scan-button,
    .camera-scanner-layer {
        display: none !important;
    }
}

@media print {
    body.print-page {
        background: #fff;
    }

    .print-main {
        width: 100%;
        padding: 0;
    }

    .print-toolbar {
        display: none;
    }

    .avery-sheet {
        margin: 0;
        padding: 12mm 8mm;
    }

    .avery-label {
        border-color: transparent;
    }

    .blank-packlist-paper {
        box-shadow: none;
        page-break-after: always;
    }
}

/* Klare Hauptnavigation mit eingeruecktem Werkstatt-Untermenue */
.nav-section {
    display: grid;
    gap: 4px;
}

.nav-section-collapsible {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.nav-section-label {
    padding: 8px 10px 3px;
    color: #858585;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.nav-section-workshop {
    gap: 5px;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.nav-workshop-group {
    display: grid;
    gap: 3px;
}

.nav-parent {
    min-height: 42px;
}

.nav button.nav-link {
    width: 100%;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.nav button.nav-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font-weight: 650;
}

.nav button.nav-section-toggle:hover,
.nav button.nav-section-toggle.active {
    background: #f8e9ea;
    color: var(--brand-strong);
}

.nav-submenu[hidden] {
    display: none;
}

.nav-chevron {
    color: currentColor;
    font-size: 18px;
    line-height: 1;
    transform: rotate(90deg);
}

.nav-parent[aria-expanded="true"] .nav-chevron {
    transform: rotate(-90deg);
}

.nav-submenu {
    display: grid;
    gap: 2px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--line);
}

.nav-sub-link {
    display: block;
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.nav-sub-link:hover,
.nav-sub-link.active {
    background: #f8e9ea;
    color: var(--brand-strong);
}

.collapsible-panel > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.collapsible-panel > summary::-webkit-details-marker {
    display: none;
}

.collapse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.collapse-indicator::before {
    content: '+';
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.collapsible-panel[open] .collapse-indicator::before {
    content: '-';
}

.material-history-group {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
}

.material-history-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
}

.material-history-group > summary::-webkit-details-marker {
    display: none;
}

.material-history-group > summary::after {
    content: '+';
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.material-history-group[open] > summary::after {
    content: '-';
}

.material-history-group > .table-wrap {
    border-top: 1px solid var(--line);
}

.defect-report-table {
    min-width: 980px;
}

.defect-description {
    display: inline-block;
    min-width: min(100%, 420px);
    max-width: 620px;
    white-space: pre-line;
}

.defect-description-field {
    width: 100%;
}

.defect-description-input {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    line-height: 1.5;
}

.defect-submit-field {
    display: flex;
    justify-content: flex-start;
}

.defect-inline-form {
    display: grid;
    min-width: 220px;
    gap: 6px;
}

.defect-inline-form select,
.defect-inline-form textarea {
    width: 100%;
    box-sizing: border-box;
}

body.workshop-area .nav-section-label {
    color: #9eabc5;
}

body.workshop-area .nav-section-workshop {
    border-top-color: rgba(210, 225, 255, .18);
}

body.workshop-area .nav-section-collapsible {
    border-top-color: rgba(210, 225, 255, .18);
}

body.workshop-area .nav button.nav-link {
    color: #d6deef;
}

body.workshop-area .nav button.nav-link:hover {
    background: rgba(86, 130, 215, .18);
    color: #fff;
}

body.workshop-area .nav button.nav-link.active {
    background: #3266c1;
    color: #fff;
}

body.workshop-area .nav button.nav-section-toggle {
    color: #d6deef;
}

body.workshop-area .nav button.nav-section-toggle:hover,
body.workshop-area .nav button.nav-section-toggle.active {
    background: rgba(86, 130, 215, .18);
    color: #fff;
}

body.workshop-area .nav button.nav-section-toggle.active {
    background: #3266c1;
}

body.workshop-area .nav-submenu {
    border-left-color: rgba(157, 185, 242, .45);
}

body.workshop-area .nav-sub-link {
    color: #b7c4dc;
}

body.workshop-area .nav-sub-link:hover,
body.workshop-area .nav-sub-link.active {
    background: rgba(86, 130, 215, .18);
    color: #fff;
}

.permission-intro .panel-body {
    display: grid;
    gap: 10px;
}

.permission-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--muted);
    font-size: 13px;
}

.permission-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.permission-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #c9c5ba;
}

.permission-dot.individual {
    background: var(--brand);
}

.permission-dot.admin {
    background: var(--ok);
}

.permission-table-wrap {
    overflow-x: auto;
}

.permissions-table {
    min-width: 2050px;
}

.permissions-table th,
.permissions-table td {
    min-width: 88px;
    padding: 9px 7px;
    text-align: center;
    vertical-align: middle;
}

.permissions-table th {
    min-width: 106px;
    white-space: normal;
    text-transform: none;
    line-height: 1.25;
}

.permissions-table th > span {
    display: block;
}

.permissions-table .permission-category {
    margin-bottom: 4px;
    color: var(--brand-strong);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.permission-user-col {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 220px !important;
    width: 220px;
    text-align: left !important;
    background: var(--panel) !important;
}

.permissions-table thead .permission-user-col {
    z-index: 3;
    background: #f2f0ea !important;
}

.permission-user-col strong,
.permission-user-col .muted,
.permission-user-col .permission-role {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-user-col .muted,
.permission-role {
    color: var(--muted);
    font-size: 11px;
}

.permission-cell {
    background: #fff;
}

.permission-cell.permission-overridden {
    background: #fff5f5;
}

.permission-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    cursor: pointer;
}

.permission-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-checkmark {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 2px solid #b8b5ad;
    border-radius: 5px;
    background: #fff;
}

.permission-toggle input:checked + .permission-checkmark {
    border-color: var(--brand);
    background: var(--brand);
}

.permission-toggle input:checked + .permission-checkmark::after {
    width: 9px;
    height: 5px;
    content: '';
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.permission-toggle input:focus-visible + .permission-checkmark {
    outline: 2px solid rgba(180, 30, 40, .25);
    outline-offset: 2px;
}

.permission-toggle input:disabled + .permission-checkmark {
    border-color: var(--ok);
    background: var(--ok);
    opacity: .85;
}

.permission-actions-col {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 150px !important;
    background: var(--panel) !important;
    text-align: center !important;
}

.permissions-table thead .permission-actions-col {
    z-index: 3;
    background: #f2f0ea !important;
}

.permission-actions-col .btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
}

.permission-save-bar {
    position: sticky;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    padding: 14px 12px;
    border-top: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 -5px 14px rgba(31, 61, 103, .08);
}

.permission-save-bar .btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    flex: 0 0 auto;
    box-shadow: 0 8px 24px rgba(31, 61, 103, .24);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .nav {
        display: grid;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        padding-bottom: 0;
    }

    .nav-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .nav-section-label {
        grid-column: 1 / -1;
        padding-top: 5px;
    }

    .nav-section-workshop,
    .nav-workshop-group {
        grid-template-columns: 1fr;
    }

    .nav-section-workshop .nav-section-label,
    .nav-section-workshop .nav-workshop-group,
    .nav-submenu {
        grid-column: 1 / -1;
    }

    .nav-submenu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 0;
        padding-left: 8px;
    }

    .nav-sub-link {
        min-height: 36px;
        padding: 8px 7px;
        font-size: 12px;
    }

    .nav-section-test-system {
        grid-column: 1 / -1;
    }

    .nav-section-test-system > .nav-section-label,
    .nav-section-test-system > .nav-workshop-group {
        grid-column: 1 / -1;
    }

    .nav-section-test-system .nav-sub-link:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .assignment-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .assignment-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Globale Darstellung aus System > Einstellungen. */
body {
    font-family: var(--app-font-family, Lato, "Segoe UI", Arial, sans-serif);
    font-size: var(--app-font-size, 15px);
}

body.theme-dark {
    --bg: #12161b;
    --panel: #1d232a;
    --panel-soft: #262d35;
    --ink: #edf2f6;
    --muted: #aeb8c3;
    --line: #3d4752;
    --danger: #e27b78;
    --ok: #75c99c;
    --warn: #e2b85f;
    --shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

body.theme-dark .sidebar {
    background: #171c22;
    color: var(--ink);
    border-right-color: var(--line);
}

body.theme-dark .brand,
body.theme-dark .user-box {
    border-color: var(--line);
}

body.theme-dark .nav a,
body.theme-dark .nav button.nav-link,
body.theme-dark .nav-section-label {
    color: #dbe4ec;
}

body.theme-dark .nav a:hover,
body.theme-dark .nav button.nav-link:hover,
body.theme-dark .nav button.nav-section-toggle:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

body.theme-dark .nav a.active,
body.theme-dark .nav button.nav-link.active,
body.theme-dark .nav button.nav-section-toggle.active {
    background: var(--brand);
    color: #fff;
}

body.theme-dark .panel,
body.theme-dark .login-branding,
body.theme-dark .lift-tile {
    background: var(--panel);
    border-color: var(--line);
}

body.theme-dark .panel-head,
body.theme-dark th {
    background: var(--panel-soft);
    color: var(--ink);
    border-color: var(--line);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
    border-color: #53606d;
    background: #151a20;
    color: var(--ink);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #8995a1;
}

body.theme-dark .btn.secondary {
    border-color: #617080;
    background: #252d36;
    color: var(--ink);
}

body.theme-dark .btn.secondary:hover {
    background: #303b47;
}

body.theme-dark .help-flow span,
body.theme-dark .permission-cell,
body.theme-dark .permission-actions-col {
    background: var(--panel-soft) !important;
}

body.theme-dark .permission-cell.permission-overridden {
    background: #3a292d !important;
}

body.theme-dark .permission-user-col,
body.theme-dark .permissions-table thead .permission-user-col {
    background: var(--panel) !important;
}

body.theme-dark .permissions-table thead .permission-user-col,
body.theme-dark .permissions-table thead .permission-actions-col {
    background: var(--panel-soft) !important;
}

body.theme-dark .permission-checkmark {
    border-color: #71808d;
    background: #151a20;
}

body.theme-dark .login-screen {
    background: var(--bg);
}

body.theme-dark .login-branding {
    background: var(--panel);
}

body.theme-dark .changelog-preview,
body.theme-dark .flash,
body.theme-dark .scanner-pill,
body.theme-dark .user-pill {
    background: var(--panel);
    border-color: var(--line);
    color: var(--ink);
}

body.theme-dark .badge {
    background: #303943;
    color: var(--ink);
}

.help-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
}

.help-topic {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
}

.help-topic summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-weight: 750;
}

.help-topic summary > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.help-topic summary em {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

.help-topic summary::-webkit-details-marker {
    display: none;
}

.help-topic summary::after {
    content: '+';
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.help-topic[open] summary::after {
    content: '-';
}

.help-topic-body {
    padding: 0 14px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.help-topic-body ol,
.help-topic-body ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.help-topic-body li + li {
    margin-top: 7px;
}

@media (max-width: 760px) {
    .help-quick-grid,
    .help-role-grid {
        grid-template-columns: 1fr;
    }

    .help-topic-list {
        grid-template-columns: 1fr;
    }

    .permission-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .permission-save-bar .btn {
        right: 14px;
        bottom: 14px;
    }
}

/* Sammel-Ausbuchung mit gepackter Packliste */
.stock-issue-page {
    align-items: start;
}

.stock-issue-step .panel-head > div,
.stock-issue-finalize .panel-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-issue-scan-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 110px auto;
}

.stock-issue-manual-entry {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.stock-issue-manual-entry > div:first-child {
    margin-bottom: 10px;
}

.stock-issue-manual-form {
    display: grid;
    grid-template-columns: minmax(210px, 2fr) 90px 90px minmax(180px, 1.5fr) auto;
    align-items: end;
    gap: 10px;
}

.stock-issue-manual-form label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.stock-issue-manual-form label > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stock-issue-manual-row {
    background: color-mix(in srgb, var(--panel) 88%, var(--brand-soft));
}

.stock-issue-manual-row td:nth-child(2) {
    min-width: 280px;
}

.stock-issue-manual-row td:nth-child(2) > input {
    display: block;
    width: 100%;
    margin-top: 7px;
}

.stock-issue-manual-quantity {
    display: grid;
    grid-template-columns: 88px 82px;
    gap: 6px;
}

.history-manual-row {
    background: color-mix(in srgb, var(--panel) 91%, var(--brand-soft));
}

.stock-issue-cart {
    overflow-x: auto;
}

.stock-issue-cart table {
    min-width: 900px;
}

.stock-issue-qty-form {
    flex-wrap: nowrap;
}

.stock-issue-qty-form input {
    width: 92px;
    min-width: 92px;
}

.stock-issue-clear-form {
    margin-top: 12px;
}

.stock-issue-finalize .btn.danger {
    min-height: 44px;
}

@media (max-width: 900px) {
    .stock-issue-page > .span-4,
    .stock-issue-page > .span-8 {
        grid-column: span 12;
    }

    .stock-issue-manual-form {
        grid-template-columns: minmax(200px, 2fr) 90px 90px minmax(180px, 1fr);
    }

    .stock-issue-manual-form .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .stock-issue-scan-form {
        grid-template-columns: 1fr 88px;
    }

    .stock-issue-scan-form .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .stock-issue-manual-form {
        grid-template-columns: 1fr 1fr;
    }

    .stock-issue-manual-form label:first-of-type,
    .stock-issue-manual-form label:nth-of-type(4),
    .stock-issue-manual-form .btn {
        grid-column: 1 / -1;
    }

    .stock-issue-finalize .panel-head,
    .stock-issue-step .panel-head {
        align-items: flex-start;
    }
}

/* Werkstatt-Kassenbuch */
.cashbook-page-head .panel-head {
    align-items: center;
}

.cashbook-legal-note {
    border-left: 5px solid #c88914;
}

.cashbook-legal-note .panel-body {
    display: grid;
    gap: 10px;
}

.cashbook-legal-note p,
.cashbook-note {
    margin: 0;
    color: var(--muted);
}

.cashbook-blocking-note,
.cashbook-start-required .panel-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cashbook-blocking-note {
    padding: 14px;
    border: 1px solid #e3b25d;
    border-radius: 8px;
    background: #fff7e6;
}

.cashbook-blocking-note span,
.cashbook-start-required span {
    color: var(--muted);
}

.cashbook-start-required {
    border-left: 5px solid #b51f2d;
}

.cashbook-start-required .panel-body > div {
    display: grid;
    gap: 3px;
}

.cashbook-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.cashbook-kpis article {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.cashbook-kpis article span,
.cashbook-closed-summary span {
    color: var(--muted);
    font-size: 12px;
}

.cashbook-kpis article strong {
    font-size: 17px;
}

.cashbook-kpis .cash-in strong,
.cashbook-money-in {
    color: #20744a;
}

.cashbook-kpis .cash-out strong,
.cashbook-money-out {
    color: #b51f2d;
}

.cashbook-table {
    min-width: 1050px;
}

.cashbook-row-in {
    box-shadow: inset 4px 0 #2f8b61;
}

.cashbook-row-out {
    box-shadow: inset 4px 0 #c33b49;
}

.cashbook-reversal-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 7px;
    min-width: 310px;
}

.cashbook-reversal-form input,
.cashbook-reversal-form .btn {
    min-height: 36px;
}

.cashbook-closed-summary .panel-body {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.cashbook-closed-summary .panel-body > div {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-radius: 8px;
    background: var(--panel-soft);
}

.cashbook-test-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cashbook-test-result {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: 8px;
    background: var(--panel-soft);
}

.cashbook-test-result.is-ok {
    border-left-color: #2f8b61;
}

.cashbook-test-result.is-error {
    border-left-color: #c33b49;
}

.cashbook-test-result ul {
    margin: 0;
    padding-left: 20px;
}

.cashbook-paper {
    overflow: hidden;
}

.cashbook-print-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
    margin: 5mm 0;
}

.cashbook-print-kpis > div {
    display: grid;
    gap: 1mm;
    padding: 3mm;
    border: 1px solid #c8d4e2;
    border-radius: 2mm;
    background: #f7f9fc;
}

.cashbook-print-kpis span,
.cashbook-print-summary span {
    color: #5c6f86;
    font-size: 8.5px;
    text-transform: uppercase;
}

.cashbook-print-kpis strong,
.cashbook-print-summary strong {
    color: #26384d;
    font-size: 10.5px;
}

.invoice-paper > .cashbook-print-lines {
    table-layout: fixed;
    font-size: 8.1px;
    line-height: 1.2;
}

.invoice-paper > .cashbook-print-lines th,
.invoice-paper > .cashbook-print-lines td {
    padding: 1.8mm 1.1mm;
}

.invoice-paper > .cashbook-print-lines th {
    font-size: 7px;
}

.invoice-paper > .cashbook-print-lines th:nth-child(1),
.invoice-paper > .cashbook-print-lines td:nth-child(1) { width: 15%; }
.invoice-paper > .cashbook-print-lines th:nth-child(2),
.invoice-paper > .cashbook-print-lines td:nth-child(2) { width: 9%; }
.invoice-paper > .cashbook-print-lines th:nth-child(3),
.invoice-paper > .cashbook-print-lines td:nth-child(3) { width: 25%; text-align: left; }
.invoice-paper > .cashbook-print-lines th:nth-child(4),
.invoice-paper > .cashbook-print-lines td:nth-child(4) { width: 16%; text-align: left; }
.invoice-paper > .cashbook-print-lines th:nth-child(5),
.invoice-paper > .cashbook-print-lines td:nth-child(5),
.invoice-paper > .cashbook-print-lines th:nth-child(6),
.invoice-paper > .cashbook-print-lines td:nth-child(6),
.invoice-paper > .cashbook-print-lines th:nth-child(7),
.invoice-paper > .cashbook-print-lines td:nth-child(7) { width: 11.66%; text-align: right; }

.cashbook-print-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
    margin-top: 5mm;
    padding: 4mm;
    border-radius: 2mm;
    background: #173c72;
}

.cashbook-print-summary > div {
    display: grid;
    gap: 1mm;
}

.cashbook-print-summary span,
.cashbook-print-summary strong {
    color: #fff;
}

.cashbook-print-note,
.cashbook-print-signoff {
    margin: 3mm 0 0;
    color: #5c6f86;
    font-size: 9px;
}

.cashbook-test-watermark {
    position: absolute;
    z-index: 4;
    top: 48%;
    left: 50%;
    width: 170mm;
    transform: translate(-50%, -50%) rotate(-27deg);
    color: rgba(181, 31, 45, .13);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    pointer-events: none;
}

.cashbook-letterhead-footer {
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .cashbook-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cashbook-closed-summary .panel-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .cashbook-kpis,
    .cashbook-closed-summary .panel-body {
        grid-template-columns: 1fr;
    }

    .cashbook-blocking-note,
    .cashbook-start-required .panel-body {
        align-items: stretch;
        flex-direction: column;
    }

    .cashbook-blocking-note .btn,
    .cashbook-start-required .btn,
    .cashbook-test-actions > *,
    .cashbook-test-actions .btn {
        width: 100%;
    }
}

@media print {
    body.cashbook-print-page .cashbook-paper {
        break-after: page !important;
        page-break-after: always !important;
    }

    body.cashbook-print-page .cashbook-paper:last-child {
        break-after: auto !important;
        page-break-after: auto !important;
    }

    body.cashbook-print-page .cashbook-print-kpis,
    body.cashbook-print-page .cashbook-print-summary {
        display: grid !important;
    }

    body.cashbook-print-page .invoice-paper > .cashbook-print-lines {
        font-size: 8.1px !important;
        line-height: 1.2 !important;
    }

    body.cashbook-print-page .invoice-paper > .cashbook-print-lines th,
    body.cashbook-print-page .invoice-paper > .cashbook-print-lines td {
        padding: 1.8mm 1.1mm !important;
    }

    body.cashbook-print-page .cashbook-test-watermark {
        display: block !important;
    }
}

/* Gemeinsamer, vollständig isolierter Testspiegel für Verwaltung und Montage */
.test-system-module.management {
    border-top-color: #3266c1;
}

.test-system-module.montage {
    border-top-color: #27825e;
}

.operations-test-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #91a9d3;
    border-left: 6px solid #3266c1;
    border-radius: 8px;
    color: #1e376c;
    background: #edf3ff;
    box-shadow: var(--shadow);
}

.operations-test-banner > div:first-child {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.operations-test-banner > div:first-child > div {
    display: grid;
    gap: 3px;
}

.operations-test-banner strong {
    font-size: 16px;
}

.operations-test-banner small {
    color: #526681;
}

.operations-test-banner .actions,
.operations-test-banner form {
    margin: 0;
}

.management-training-hero {
    border-color: #3266c1;
    background: linear-gradient(135deg, #f2f6ff 0%, #fff 65%);
}

.montage-training-hero {
    border-color: #27825e;
    background: linear-gradient(135deg, #effaf5 0%, #fff 65%);
}

.operations-status-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.operations-status-flow span {
    position: relative;
    min-height: 48px;
    padding: 14px 18px;
    border: 1px solid #b8c9e4;
    border-radius: 9px;
    color: #21477d;
    background: #f3f7ff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.procurement-training-form {
    display: grid;
    grid-template-columns: minmax(150px, 1.3fr) minmax(135px, .9fr) minmax(110px, .7fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 600px;
    margin: 0;
}

.procurement-training-form input,
.procurement-training-form select,
.procurement-training-form .btn {
    min-height: 40px;
}

.montage-time-panel {
    overflow: hidden;
}

.montage-active-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #9ccdb8;
    border-radius: 10px;
    background: #eefaf4;
}

.montage-active-time > div:first-child {
    display: grid;
    gap: 5px;
}

.montage-active-time > div:first-child > span {
    color: #287556;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.montage-active-time > div:first-child > strong {
    color: #173c72;
    font-size: clamp(25px, 4vw, 38px);
}

.montage-active-time > div:first-child > small {
    color: var(--muted);
    line-height: 1.5;
}

.montage-active-time .actions,
.montage-active-time form {
    margin: 0;
}

.montage-packlist-card {
    overflow: hidden;
    margin: 0 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.montage-packlist-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
    background: #f6f8fb;
}

.montage-packlist-card > header > div {
    display: grid;
    gap: 3px;
}

.montage-packlist-card > header span {
    color: #287556;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.montage-packlist-card > header strong {
    color: #173c72;
    font-size: 18px;
}

.montage-packlist-card > header small {
    color: var(--muted);
}

@media (max-width: 1000px) {
    .operations-status-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .operations-test-banner,
    .operations-test-banner > div:first-child,
    .montage-active-time,
    .montage-packlist-card > header {
        align-items: stretch;
        flex-direction: column;
    }

    .operations-test-banner .actions,
    .montage-active-time .actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .operations-test-banner .actions .btn,
    .operations-test-banner .actions form,
    .operations-test-banner .actions form .btn,
    .montage-active-time .actions .btn,
    .montage-active-time .actions form,
    .montage-active-time .actions form .btn {
        width: 100%;
    }

    .operations-status-flow,
    .procurement-training-form {
        grid-template-columns: 1fr;
    }

    .procurement-training-form {
        min-width: 245px;
    }
}

/* Direkte Werkstattrechnung ohne Hebebühne */
.direct-sale-link {
    border-color: #b8c9e4;
    background: linear-gradient(145deg, #f0f5ff, #fff);
}

.direct-invoice-button {
    white-space: nowrap;
}

.direct-invoice-hero {
    border-top: 5px solid #3266c1;
}

.direct-invoice-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.direct-invoice-steps span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #c6d3e7;
    border-radius: 9px;
    color: #27456f;
    background: #f4f7fc;
    font-weight: 800;
}

.direct-invoice-steps b {
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    color: #fff;
    background: #3266c1;
}

.direct-invoice-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.direct-invoice-form > .panel {
    margin: 0;
}

.direct-invoice-rows,
.direct-service-rows {
    display: grid;
    gap: 12px;
}

.direct-invoice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: end;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fafbfd;
}

.direct-service-row {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(100px, .7fr) minmax(100px, .7fr) minmax(145px, .9fr) minmax(95px, .55fr);
    gap: 10px;
    align-items: end;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fafbfd;
}

.direct-invoice-row .field,
.direct-service-row .field,
.direct-invoice-submit .field {
    min-width: 0;
}

.direct-invoice-submit-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.direct-invoice-submit-action > div {
    display: grid;
    gap: 4px;
}

.direct-invoice-submit-action span {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 900px) {
    .direct-service-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .direct-service-description {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .direct-invoice-steps,
    .direct-invoice-row,
    .direct-service-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .direct-invoice-submit-action {
        align-items: stretch;
        flex-direction: column;
    }

    .direct-invoice-button,
    .direct-invoice-submit-action .btn {
        width: 100%;
    }
}

/* Interne Vorschau der öffentlichen Webseite "Die Werkstatt" */
body.workshop-site-preview {
    --ws-ink: #07111f;
    --ws-navy: #0a1d36;
    --ws-blue: #1788ff;
    --ws-blue-dark: #0069d9;
    --ws-ice: #eef6ff;
    --ws-paper: #f7f9fc;
    --ws-line: rgba(15, 38, 68, .14);
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ws-paper);
    color: var(--ws-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    scroll-padding-top: calc(100px + env(safe-area-inset-top));
}

.workshop-site-preview *,
.workshop-site-preview *::before,
.workshop-site-preview *::after {
    box-sizing: border-box;
}

.workshop-site-preview a {
    color: inherit;
    text-decoration: none;
}

.workshop-site-preview picture {
    display: block;
}

.workshop-site-preview img {
    display: block;
    width: 100%;
}

.ws-preview-bar {
    position: relative;
    z-index: 50;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px clamp(20px, 4vw, 72px);
    background: #07111f;
    color: #fff;
    font-size: 13px;
}

.ws-preview-bar > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-preview-bar strong {
    color: #71b9ff;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
}

.ws-preview-bar span {
    color: rgba(255, 255, 255, .68);
}

.ws-preview-links {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.ws-preview-links a {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-weight: 700;
}

.ws-preview-links a.active {
    border-color: #71b9ff;
    background: #187bd4;
    color: #fff;
}

.ws-site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    min-height: 86px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 clamp(24px, 5vw, 86px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(6, 17, 31, .94);
    color: #fff;
    backdrop-filter: blur(16px);
}

.ws-site-brand {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.ws-site-logo-picture {
    flex: 0 0 auto;
    width: 72px;
    height: 60px;
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(84, 174, 255, .42);
    border-radius: 12px;
    background: #030913;
    box-shadow: 0 0 30px rgba(23, 136, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.ws-site-logo-picture img {
    height: 100%;
    object-fit: contain;
}

.ws-site-brand > span {
    display: grid;
    min-width: 0;
    line-height: 1.12;
}

.ws-site-brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: 19px;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ws-site-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ws-site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 38px);
    font-size: 14px;
    font-weight: 700;
}

.ws-site-nav > a:not(.ws-site-nav-cta) {
    position: relative;
    padding: 12px 0;
    color: rgba(255, 255, 255, .8);
}

.ws-site-nav > a:not(.ws-site-nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--ws-blue);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.ws-site-nav > a:hover::after,
.ws-site-nav > a:focus-visible::after {
    transform: scaleX(1);
}

.ws-site-nav-cta {
    padding: 11px 18px;
    border-radius: 7px;
    background: var(--ws-blue);
    color: #fff;
}

.ws-site-mobile-nav {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.ws-site-mobile-nav summary {
    cursor: pointer;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.ws-site-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.ws-site-mobile-nav > div {
    position: absolute;
    z-index: 3;
    top: calc(100% + 12px);
    right: 0;
    width: min(280px, calc(100vw - 36px));
    display: grid;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: #0a1d36;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    max-height: min(60svh, calc(100vh - 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ws-site-mobile-nav a {
    padding: 12px 14px;
    border-radius: 7px;
    font-weight: 700;
}

.ws-site-mobile-nav a:hover {
    background: rgba(255, 255, 255, .08);
}

.workshop-site-preview :where(a, summary):focus-visible {
    outline: 3px solid #9edbff;
    outline-offset: 4px;
}

.ws-site-mobile-nav summary:focus-visible {
    border-color: #9edbff;
    background: rgba(23, 136, 255, .18);
}

.ws-site-mobile-nav a:focus-visible,
.ws-site-mobile-nav a:hover {
    background: rgba(23, 136, 255, .22);
    color: #fff;
}

.ws-site-hero {
    position: relative;
    min-height: calc(100vh - 128px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #07111f;
    color: #fff;
}

.ws-site-hero-picture,
.ws-site-hero-shade {
    position: absolute;
    inset: 0;
}

.ws-site-hero-picture img {
    height: 100%;
    object-fit: cover;
    object-position: 56% center;
}

.ws-site-hero-shade {
    background: linear-gradient(90deg, rgba(4, 12, 23, .96) 0%, rgba(4, 15, 28, .87) 38%, rgba(5, 17, 31, .32) 72%, rgba(5, 17, 31, .18) 100%), linear-gradient(0deg, rgba(3, 11, 21, .52), transparent 52%);
}

.ws-site-hero-content {
    position: relative;
    z-index: 2;
    width: min(880px, 100%);
    padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 118px);
}

.ws-site-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ws-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.ws-site-kicker::before {
    width: 30px;
    height: 2px;
    content: "";
    background: currentColor;
}

.ws-site-hero h1 {
    max-width: 780px;
    margin: 20px 0 22px;
    font-size: clamp(54px, 7.5vw, 108px);
    line-height: .91;
    letter-spacing: -.055em;
}

.ws-site-hero h1 em {
    color: #54adff;
    font-style: normal;
}

.ws-site-hero-content {
    width: min(1180px, 74vw);
    padding-right: 24px;
}

body.workshop-industrial-preview .ws-site-hero h1.ws-site-hero-title {
    max-width: none;
    font-size: clamp(58px, 6vw, 112px);
    line-height: .88;
    letter-spacing: -.065em;
}

.ws-site-hero-title > span,
.ws-site-hero-title > em {
    display: block;
    white-space: nowrap;
}

.ws-site-hero-content > p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(17px, 1.55vw, 22px);
    line-height: 1.55;
}

.ws-site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.ws-site-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 900;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ws-site-button:hover,
.ws-site-button:focus-visible {
    transform: translateY(-2px);
}

.ws-site-button.primary {
    background: var(--ws-blue);
    color: #fff;
    box-shadow: 0 14px 35px rgba(23, 136, 255, .28);
}

.ws-site-button.primary:hover {
    background: var(--ws-blue-dark);
}

.ws-site-button.ghost {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.ws-site-button.light {
    background: #fff;
    color: var(--ws-navy);
}

.ws-site-button.outline-light {
    border-color: rgba(255, 255, 255, .52);
    color: #fff;
}

.ws-site-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 54px;
}

.ws-site-hero-facts span {
    display: grid;
    gap: 2px;
    min-width: 175px;
    padding: 0 28px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.ws-site-hero-facts span:first-child {
    padding-left: 0;
    border-left: 0;
}

.ws-site-hero-facts strong {
    color: #fff;
    font-size: 18px;
}

.ws-site-scroll {
    position: absolute;
    z-index: 3;
    right: clamp(24px, 4vw, 70px);
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ws-site-scroll span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
}

.ws-site-intro,
.ws-site-feature,
.ws-site-workbench,
.ws-site-pricing,
.ws-site-gallery,
.ws-site-contact,
.ws-site-footer {
    padding-right: clamp(24px, 7vw, 118px);
    padding-left: clamp(24px, 7vw, 118px);
}

.ws-site-intro,
.ws-site-feature,
.ws-site-workbench,
.ws-site-pricing,
.ws-site-gallery {
    scroll-margin-top: calc(100px + env(safe-area-inset-top));
}

.ws-site-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    gap: clamp(50px, 8vw, 130px);
    align-items: center;
    padding-top: clamp(90px, 10vw, 160px);
    padding-bottom: clamp(90px, 10vw, 160px);
}

.ws-site-section-copy h2,
.ws-site-feature h2,
.ws-site-workbench h2,
.ws-site-pricing h2,
.ws-site-gallery h2,
.ws-site-contact h2 {
    margin: 18px 0 24px;
    color: var(--ws-navy);
    font-size: clamp(38px, 4.7vw, 68px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.ws-site-section-copy > p,
.ws-site-feature-content > p,
.ws-site-workbench-copy > p,
.ws-site-pricing-heading > p {
    color: #516175;
    font-size: 17px;
    line-height: 1.75;
}

.ws-site-signature {
    display: grid;
    grid-template-columns: 45px auto;
    margin-top: 32px;
}

.ws-site-signature > span {
    grid-row: 1 / 3;
    align-self: center;
    width: 30px;
    height: 2px;
    background: var(--ws-blue);
}

.ws-site-signature small {
    color: #738195;
}

.ws-site-story-images {
    position: relative;
    min-height: 560px;
}

.ws-site-story-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    height: 76%;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 34px 75px rgba(7, 17, 31, .16);
}

.ws-site-story-main img,
.ws-site-story-small img {
    height: 100%;
    object-fit: cover;
}

.ws-site-story-small {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 58%;
    height: 49%;
    overflow: hidden;
    border: 8px solid var(--ws-paper);
    border-radius: 14px;
    box-shadow: 0 24px 55px rgba(7, 17, 31, .18);
}

.ws-site-open-badge {
    position: absolute;
    right: 4%;
    bottom: 4%;
    width: 150px;
    height: 150px;
    display: grid;
    align-content: center;
    justify-items: center;
    border: 8px solid var(--ws-paper);
    border-radius: 50%;
    background: var(--ws-blue);
    color: #fff;
    box-shadow: 0 18px 38px rgba(23, 136, 255, .3);
    transform: rotate(-6deg);
}

.ws-site-open-badge strong {
    font-size: 23px;
}

.ws-site-open-badge span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ws-site-feature {
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr);
    gap: clamp(50px, 7vw, 110px);
    align-items: center;
    padding-top: clamp(80px, 9vw, 140px);
    padding-bottom: clamp(80px, 9vw, 140px);
    background: #071321;
    color: #fff;
}

.ws-site-feature h2 {
    color: #fff;
}

.ws-site-feature-media {
    position: relative;
    min-height: 610px;
}

.ws-site-feature-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 14px;
}

.ws-site-feature-photo img {
    height: 100%;
    object-fit: cover;
}

.ws-site-feature-media > span,
.ws-site-tools-image > span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 13px;
    border-radius: 6px;
    background: rgba(4, 13, 24, .82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    backdrop-filter: blur(10px);
}

.ws-site-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 40px;
    background: rgba(255, 255, 255, .12);
}

.ws-site-benefit-grid article {
    min-height: 180px;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 15px;
    padding: 28px 24px;
    background: #071321;
}

.ws-site-benefit-grid b {
    color: #58afff;
    font-size: 12px;
}

.ws-site-benefit-grid h3 {
    margin: 0 0 9px;
    font-size: 19px;
}

.ws-site-benefit-grid p {
    margin: 0;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
}

.ws-site-workbench {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr);
    gap: clamp(55px, 8vw, 130px);
    align-items: center;
    padding-top: clamp(90px, 10vw, 160px);
    padding-bottom: clamp(90px, 10vw, 160px);
    background: #fff;
}

.ws-site-workbench-copy ul,
.ws-site-price-card ul {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.ws-site-workbench-copy li,
.ws-site-price-card li {
    position: relative;
    padding-left: 28px;
    color: #415166;
    font-weight: 700;
}

.ws-site-workbench-copy li::before,
.ws-site-price-card li::before {
    position: absolute;
    top: .38em;
    left: 0;
    width: 14px;
    height: 14px;
    content: "";
    border: 4px solid #d8ecff;
    border-radius: 50%;
    background: var(--ws-blue);
}

.ws-site-tools-image {
    position: relative;
    height: 680px;
    overflow: hidden;
    border-radius: 14px;
    background: #0a1420;
    box-shadow: 0 35px 80px rgba(7, 17, 31, .18);
}

.ws-site-tools-main,
.ws-site-tools-main img {
    height: 100%;
}

.ws-site-tools-main img {
    object-fit: cover;
}

.ws-site-pricing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 480px);
    gap: clamp(50px, 8vw, 130px);
    align-items: center;
    padding-top: clamp(90px, 10vw, 150px);
    padding-bottom: clamp(90px, 10vw, 150px);
    background: var(--ws-ice);
}

.ws-site-pricing-heading {
    max-width: 780px;
}

.ws-site-price-card {
    padding: clamp(32px, 4vw, 52px);
    border-radius: 16px;
    background: var(--ws-navy);
    color: #fff;
    box-shadow: 0 32px 70px rgba(10, 29, 54, .22);
}

.ws-site-price-card > span {
    color: #72b9ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.ws-site-price-card > div {
    display: flex;
    align-items: flex-start;
    margin: 12px 0 20px;
}

.ws-site-price-card > div strong {
    font-size: 92px;
    line-height: .95;
    letter-spacing: -.06em;
}

.ws-site-price-card > div sup {
    margin: 8px 0 0 6px;
    color: #72b9ff;
    font-size: 30px;
    font-weight: 900;
}

.ws-site-price-card > div small {
    align-self: flex-end;
    margin: 0 0 8px 10px;
    color: rgba(255, 255, 255, .58);
}

.ws-site-price-card li {
    color: rgba(255, 255, 255, .77);
}

.ws-site-price-card .ws-site-button {
    width: 100%;
    margin-top: 34px;
}

.ws-site-gallery {
    padding-top: clamp(90px, 10vw, 150px);
    padding-bottom: clamp(90px, 10vw, 150px);
    background: #fff;
}

.ws-site-gallery-heading {
    max-width: 850px;
    margin-bottom: 52px;
}

.ws-site-gallery-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: 255px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ws-site-gallery-grid figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #071321;
}

.ws-site-gallery-grid figure.wide {
    grid-column: span 2;
}

.ws-site-gallery-grid figure.tall {
    grid-row: span 2;
}

.ws-site-gallery-grid picture,
.ws-site-gallery-grid img {
    height: 100%;
}

.ws-site-gallery-grid img {
    object-fit: cover;
    transition: transform .45s ease;
}

.ws-site-gallery-grid figure:hover img {
    transform: scale(1.035);
}

.ws-site-gallery-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 36px 18px 16px;
    background: linear-gradient(transparent, rgba(4, 13, 24, .86));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.ws-site-gallery-grid .logo-tile img {
    object-fit: contain;
    padding: 26px;
}

.ws-site-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
    gap: clamp(55px, 8vw, 130px);
    align-items: center;
    padding-top: clamp(80px, 9vw, 135px);
    padding-bottom: clamp(80px, 9vw, 135px);
    scroll-margin-top: 100px;
    background: var(--ws-blue-dark);
    color: #fff;
}

.ws-site-contact .ws-site-kicker {
    color: #b9ddff;
}

.ws-site-contact h2 {
    color: #fff;
}

.ws-site-contact-copy > p {
    max-width: 680px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.ws-site-contact-details {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.ws-site-contact-details > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.ws-site-contact-details > div > span {
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.ws-site-address-detail > div {
    display: grid;
    gap: 16px;
}

.ws-site-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ws-site-map-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 8px;
    background: rgba(4, 22, 43, .2);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ws-site-map-button:hover,
.ws-site-map-button:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .13);
    transform: translateY(-2px);
}

.ws-map-logo {
    width: 30px;
    height: 30px;
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .24);
}

.ws-map-logo svg {
    width: 19px;
    height: 19px;
    display: block;
}

.ws-map-logo.ws-apple-logo {
    background: #070707;
    color: #fff;
}

.ws-map-logo.ws-apple-logo svg {
    width: 20px;
    height: 20px;
}

.ws-site-map-button > span {
    display: grid;
    gap: 2px;
}

.ws-site-map-button small,
.ws-site-phone-links small {
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 650;
}

.ws-site-phone-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.ws-site-phone-links > a:first-child {
    display: grid;
    gap: 2px;
}

.ws-site-phone-links > a:last-child {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 7px;
    font-size: 13px;
}

.ws-site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 34px 70px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 38px;
    background: #050d18;
    color: #fff;
}

.ws-site-footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ws-site-footer-brand .ws-site-logo-picture {
    width: 64px;
    height: 64px;
}

.ws-site-footer-brand > div {
    display: grid;
}

.ws-site-footer-brand strong {
    font-size: 20px;
}

.ws-site-footer-brand span {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.ws-site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 26px;
    font-size: 14px;
    font-weight: 800;
}

.ws-site-footer-socials {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.ws-site-footer-social-label {
    margin-right: 7px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.ws-site-social-link {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    color: #fff;
    line-height: 1.15;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

a.ws-site-social-link:hover,
a.ws-site-social-link:focus-visible {
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.ws-site-social-link.pending {
    border-style: dashed;
    color: rgba(255, 255, 255, .72);
    cursor: default;
}

.ws-social-logo {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.ws-social-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ws-site-social-link.instagram .ws-social-logo {
    padding: 6px;
    background: radial-gradient(circle at 30% 105%, #ffd600 0 23%, #ff7a00 24% 41%, #ff0169 42% 67%, #d300c5 68% 82%, #7638fa 100%);
    color: #fff;
}

.ws-site-social-link > span:last-child {
    display: grid;
    gap: 3px;
    font-size: 13px;
    font-weight: 850;
}

.ws-site-social-link small {
    color: rgba(255, 255, 255, .52);
    font-size: 10px;
    font-weight: 650;
}

.ws-site-legal {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.ws-site-legal details {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ws-site-legal summary {
    cursor: pointer;
    padding: 13px 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 800;
}

.ws-site-legal p {
    max-width: 760px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.7;
}

.ws-site-legal a {
    color: #79beff;
}

.ws-site-footer > small {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, .38);
}

@media (max-width: 1100px) {
    .ws-site-intro,
    .ws-site-feature,
    .ws-site-workbench,
    .ws-site-pricing,
    .ws-site-contact {
        gap: 55px;
    }

    .ws-site-intro,
    .ws-site-workbench {
        grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    }

    .ws-site-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ws-site-nav {
        display: none;
    }

    .ws-site-mobile-nav {
        display: block;
    }

    .ws-site-intro,
    .ws-site-feature,
    .ws-site-workbench,
    .ws-site-pricing,
    .ws-site-contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-site-story-images {
        min-height: 520px;
    }

    .ws-site-feature-media {
        min-height: 520px;
    }

    .ws-site-feature-content {
        padding-bottom: 10px;
    }

    .ws-site-workbench-copy {
        max-width: 720px;
    }

    .ws-site-tools-image {
        height: 640px;
    }

    .ws-site-price-card {
        max-width: 540px;
    }

    .ws-site-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ws-preview-bar {
        align-items: flex-start;
        padding: 8px 16px;
    }

    .ws-preview-bar > div:first-child {
        display: grid;
        gap: 1px;
    }

    .ws-preview-links {
        gap: 4px;
    }

    .ws-preview-links a {
        padding: 5px 8px;
        font-size: 11px;
    }

    .ws-preview-bar span {
        display: none;
    }

    .ws-site-header {
        min-height: calc(72px + env(safe-area-inset-top));
        height: auto;
        gap: 12px;
        padding: max(12px, env(safe-area-inset-top)) 18px 12px;
    }

    .ws-site-brand {
        flex: 1 1 0%;
        gap: 10px;
    }

    .ws-site-logo-picture {
        width: 56px;
        height: 48px;
        padding: 3px;
        border-radius: 9px;
    }

    .ws-site-brand strong {
        font-size: clamp(14px, 4.3vw, 16px);
        letter-spacing: .05em;
    }

    .ws-site-brand small {
        display: none;
    }

    .ws-site-mobile-nav summary {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 13px;
    }

    .ws-site-hero {
        min-height: calc(100svh - 108px);
    }

    .ws-site-hero-content {
        width: 100%;
        padding-top: 72px;
        padding-bottom: 115px;
    }

    body.workshop-industrial-preview .ws-site-hero h1.ws-site-hero-title {
        font-size: clamp(34px, 10vw, 50px);
        line-height: .92;
        letter-spacing: -.055em;
    }

    .ws-site-hero-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
        margin-top: 42px;
    }

    .ws-site-hero-facts span,
    .ws-site-hero-facts span:first-child {
        min-width: 0;
        padding: 0 14px;
        border-left: 1px solid rgba(255, 255, 255, .22);
    }

    .ws-site-hero-facts span:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .ws-site-scroll {
        right: 20px;
        bottom: 18px;
    }

    .ws-site-story-images {
        min-height: 390px;
    }

    .ws-site-story-main {
        width: 94%;
        height: 72%;
    }

    .ws-site-story-small {
        width: 64%;
        height: 48%;
        border-width: 5px;
    }

    .ws-site-open-badge {
        width: 112px;
        height: 112px;
        border-width: 5px;
    }

    .ws-site-open-badge strong {
        font-size: 18px;
    }

    .ws-site-feature-media {
        min-height: 420px;
    }

    .ws-site-benefit-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-site-benefit-grid article {
        min-height: 0;
    }

    .ws-site-tools-image {
        height: 520px;
    }

    .ws-site-gallery-grid {
        grid-auto-rows: 220px;
    }

    .ws-site-gallery-grid figure.wide {
        grid-column: span 2;
    }

    .ws-site-contact-details > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .ws-site-address-detail > div {
        gap: 14px;
    }

    .ws-site-map-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-site-map-button {
        width: 100%;
    }

    .ws-site-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-site-footer-links {
        justify-content: flex-start;
    }

    .ws-site-footer-socials {
        align-items: stretch;
    }
}

@media (max-width: 500px) {
    .ws-site-hero-content {
        padding-right: 20px;
        padding-left: 20px;
    }

    .ws-site-hero-content > p,
    .ws-site-contact-copy > p {
        font-size: 16px;
    }

    .ws-site-actions {
        display: grid;
    }

    .ws-site-map-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-site-footer-social-label {
        width: 100%;
        margin: 0 0 2px;
    }

    .ws-site-social-link {
        flex: 1 1 100%;
    }

    .ws-site-button {
        width: 100%;
    }

    .ws-site-hero-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-site-hero-facts span,
    .ws-site-hero-facts span:first-child,
    .ws-site-hero-facts span:nth-child(odd) {
        padding: 0;
        border-left: 0;
    }

    .ws-site-section-copy h2,
    .ws-site-feature h2,
    .ws-site-workbench h2,
    .ws-site-pricing h2,
    .ws-site-gallery h2,
    .ws-site-contact h2 {
        font-size: clamp(36px, 11vw, 50px);
    }

    body.workshop-industrial-preview .ws-site-section-copy h2,
    body.workshop-industrial-preview .ws-site-workbench h2,
    body.workshop-industrial-preview .ws-site-pricing h2,
    body.workshop-industrial-preview .ws-site-gallery h2 {
        line-height: 1.04;
        overflow-wrap: anywhere;
    }

    .ws-site-story-images {
        min-height: 330px;
    }

    .ws-site-open-badge {
        right: 0;
    }

    .ws-site-feature-media {
        min-height: 340px;
    }

    .ws-site-tools-image {
        height: 460px;
    }

    .ws-site-price-card > div strong {
        font-size: 76px;
    }

    .ws-site-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ws-site-gallery-grid figure.wide,
    .ws-site-gallery-grid figure.tall {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 380px) {
    .ws-site-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ws-site-logo-picture {
        width: 50px;
        height: 44px;
    }

    .ws-site-mobile-nav summary {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }

    body.workshop-industrial-preview .ws-site-hero h1.ws-site-hero-title {
        font-size: 30px;
    }
}

/* Zweiter Webseitenentwurf: modern, hell und technisch */
body.workshop-modern-preview {
    --wm-ink: #10141a;
    --wm-blue: #1268ff;
    --wm-lime: #c7ff36;
    --wm-paper: #f4f5f2;
    background: var(--wm-paper);
    color: var(--wm-ink);
}

.wm-preview-bar {
    background: #10141a;
}

.wm-header {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 12px clamp(22px, 5vw, 82px);
    border-bottom: 1px solid #d8dcd5;
    background: rgba(244, 245, 242, .94);
    backdrop-filter: blur(14px);
}

.wm-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.wm-logo-picture {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    background: #050a12;
}

.wm-logo-picture img {
    height: 100%;
    object-fit: contain;
}

.wm-brand > span {
    display: grid;
    line-height: 1;
}

.wm-brand b {
    font-size: 17px;
    letter-spacing: .08em;
}

.wm-brand small {
    margin-top: 6px;
    color: #68717c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .25em;
}

.wm-header nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.8vw, 40px);
    font-size: 13px;
    font-weight: 850;
}

.wm-header nav a:last-child {
    padding: 10px 15px;
    border-radius: 999px;
    background: var(--wm-ink);
    color: #fff;
}

.wm-mobile-menu {
    display: none;
    position: relative;
}

.wm-mobile-menu summary {
    cursor: pointer;
    list-style: none;
    padding: 9px 13px;
    border: 1px solid #aeb4bb;
    border-radius: 7px;
    font-weight: 800;
}

.wm-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.wm-mobile-menu > div {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    display: grid;
    padding: 10px;
    border: 1px solid #d8dcd5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(16, 20, 26, .2);
}

.wm-mobile-menu a {
    padding: 11px 12px;
    font-weight: 750;
}

.wm-hero {
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(430px, .85fr) minmax(0, 1.15fr);
    border-bottom: 1px solid #ced3cc;
}

.wm-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(60px, 8vw, 120px) clamp(28px, 6vw, 100px);
}

.wm-eyebrow,
.wm-section-no {
    color: var(--wm-blue);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.wm-hero h1 {
    margin: 22px 0 28px;
    font-size: clamp(64px, 8vw, 118px);
    line-height: .84;
    letter-spacing: -.075em;
}

.wm-hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #555e68;
    font-size: clamp(17px, 1.5vw, 21px);
}

.wm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.wm-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--wm-ink);
    border-radius: 5px;
    font-weight: 900;
}

.wm-button.dark {
    background: var(--wm-ink);
    color: #fff;
}

.wm-button.line {
    background: transparent;
}

.wm-button.white {
    border-color: #fff;
    background: #fff;
    color: var(--wm-ink);
}

.wm-button.outline-white {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.wm-hero dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 54px 0 0;
}

.wm-hero dl > div {
    padding-top: 13px;
    border-top: 2px solid var(--wm-ink);
}

.wm-hero dt {
    color: #717984;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.wm-hero dd {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 850;
}

.wm-hero-media {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.wm-hero-picture,
.wm-hero-picture img {
    height: 100%;
}

.wm-hero-picture img {
    object-fit: cover;
}

.wm-hero-stamp {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 130px;
    height: 130px;
    display: grid;
    align-content: center;
    justify-items: center;
    border-radius: 50%;
    background: var(--wm-lime);
    color: var(--wm-ink);
    transform: rotate(7deg);
}

.wm-hero-stamp strong {
    font-size: 30px;
    line-height: 1;
}

.wm-hero-stamp span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.wm-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, .7fr);
    gap: clamp(50px, 10vw, 180px);
    padding: clamp(90px, 10vw, 155px) clamp(28px, 7vw, 118px);
}

.wm-intro h2,
.wm-tools h2,
.wm-contact h2 {
    margin: 18px 0 0;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: .98;
    letter-spacing: -.055em;
}

.wm-intro > p {
    align-self: end;
    margin: 0;
    color: #56606b;
    font-size: 18px;
    line-height: 1.75;
}

.wm-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(280px, auto);
    gap: 12px;
    padding: 0 clamp(18px, 4vw, 70px) clamp(90px, 10vw, 150px);
}

.wm-bento article {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    padding: clamp(26px, 3vw, 44px);
    border: 1px solid #d5dad3;
    border-radius: 12px;
    background: #fff;
}

.wm-bento article > span,
.wm-bento-photo > div > span {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .16em;
}

.wm-bento h3 {
    margin: 18px 0 12px;
    font-size: clamp(29px, 3vw, 45px);
    line-height: 1;
    letter-spacing: -.04em;
}

.wm-bento p,
.wm-bento li {
    color: #59636d;
}

.wm-bento ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.wm-bento article > b {
    position: absolute;
    right: 24px;
    bottom: 18px;
    color: rgba(16, 20, 26, .18);
    font-size: 72px;
}

.wm-bento-photo {
    grid-column: span 8 !important;
    grid-row: span 2;
    min-height: 650px;
    padding: 0 !important;
}

.wm-cover-picture,
.wm-cover-picture img {
    height: 100%;
}

.wm-cover-picture img {
    object-fit: cover;
}

.wm-bento-photo > div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 80px 38px 34px;
    background: linear-gradient(transparent, rgba(8, 13, 20, .9));
    color: #fff;
}

.wm-bento-blue {
    background: var(--wm-blue) !important;
    color: #fff;
}

.wm-bento-blue p,
.wm-bento-dark p {
    color: rgba(255, 255, 255, .74);
}

.wm-bento-blue > b,
.wm-bento-dark > b {
    color: rgba(255, 255, 255, .19) !important;
}

.wm-bento-dark {
    background: var(--wm-ink) !important;
    color: #fff;
}

.wm-tools {
    display: grid;
    grid-template-columns: minmax(460px, 1.05fr) minmax(0, .95fr);
    min-height: 760px;
    background: var(--wm-ink);
    color: #fff;
}

.wm-tools-media {
    min-height: 650px;
    overflow: hidden;
}

.wm-tools-picture,
.wm-tools-picture img {
    height: 100%;
}

.wm-tools-picture img {
    object-fit: cover;
}

.wm-tools-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(55px, 8vw, 125px);
}

.wm-tools-copy .wm-section-no {
    color: var(--wm-lime);
}

.wm-tools-copy p {
    color: rgba(255, 255, 255, .66);
    font-size: 17px;
    line-height: 1.75;
}

.wm-tools-copy > a {
    align-self: flex-start;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--wm-lime);
    color: var(--wm-lime);
    font-weight: 900;
}

.wm-break {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(45px, 9vw, 150px);
    padding: clamp(90px, 10vw, 150px) clamp(28px, 7vw, 118px);
}

.wm-break > div {
    height: 480px;
    overflow: hidden;
    border-radius: 12px;
}

.wm-lounge-picture,
.wm-lounge-picture img {
    height: 100%;
}

.wm-lounge-picture img {
    object-fit: cover;
}

.wm-break blockquote {
    margin: 0;
    font-size: clamp(42px, 5.5vw, 80px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.wm-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    background: var(--wm-ink);
}

.wm-gallery figure {
    position: relative;
    height: 410px;
    margin: 0;
    overflow: hidden;
}

.wm-gallery-picture,
.wm-gallery-picture img,
.wm-gallery .wm-cover-picture,
.wm-gallery .wm-cover-picture img {
    height: 100%;
}

.wm-gallery img {
    object-fit: cover;
}

.wm-gallery figcaption {
    position: absolute;
    bottom: 18px;
    left: 18px;
    padding: 7px 10px;
    border-radius: 5px;
    background: #fff;
    color: var(--wm-ink);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.wm-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .7fr);
    gap: clamp(55px, 9vw, 150px);
    padding: clamp(90px, 10vw, 150px) clamp(28px, 7vw, 118px);
    background: var(--wm-blue);
    color: #fff;
}

.wm-contact .wm-section-no {
    color: var(--wm-lime);
}

.wm-contact > div > p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
}

.wm-contact aside {
    display: grid;
    align-content: center;
    gap: 25px;
}

.wm-contact aside > div {
    display: grid;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.wm-contact aside small {
    color: rgba(255, 255, 255, .62);
    font-weight: 900;
    letter-spacing: .13em;
}

.wm-map-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    border: 0 !important;
}

.wm-map-links a {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.wm-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 30px 70px;
    align-items: center;
    padding: 55px clamp(28px, 7vw, 118px) 36px;
    background: #0b0f14;
    color: #fff;
}

.wm-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wm-footer-brand .wm-logo-picture {
    width: 52px;
    height: 52px;
}

.wm-footer > div:nth-child(2) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    font-weight: 750;
}

.wm-footer details,
.wm-footer > small {
    grid-column: 1 / -1;
}

.wm-footer details {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.wm-footer summary {
    cursor: pointer;
    font-weight: 850;
}

.wm-footer details p,
.wm-footer > small {
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
}

/* Dritter Webseitenentwurf: klassisch, warm und handwerklich */
body.workshop-classic-preview {
    --wc-ink: #26241f;
    --wc-brown: #73533b;
    --wc-red: #8a2d24;
    --wc-cream: #f3eee3;
    --wc-line: #c8bdab;
    background: var(--wc-cream);
    color: var(--wc-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.wc-preview-bar {
    background: #25231f;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wc-header {
    padding: 0 clamp(22px, 5.5vw, 92px);
    border-bottom: 1px solid var(--wc-line);
    background: var(--wc-cream);
}

.wc-header-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wc-line);
    color: #766b5c;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.wc-brand {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.wc-logo-picture {
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 50%;
    background: #050a10;
}

.wc-logo-picture img {
    height: 100%;
    object-fit: contain;
}

.wc-brand > span {
    display: grid;
}

.wc-brand small,
.wc-brand em {
    color: #756b5e;
    font-size: 11px;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.wc-brand strong {
    margin: 2px 0 4px;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 1;
}

.wc-header nav {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 4vw, 58px);
    padding: 15px 0 17px;
    border-top: 1px solid var(--wc-line);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.wc-hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    margin: 30px clamp(22px, 5.5vw, 92px) 0;
}

.wc-hero-picture,
.wc-hero-picture img {
    height: 100%;
}

.wc-hero-picture {
    position: absolute;
    inset: 0;
}

.wc-hero-picture img {
    object-fit: cover;
}

.wc-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(32, 27, 22, .84), rgba(32, 27, 22, .12) 70%);
}

.wc-hero-caption {
    position: relative;
    z-index: 2;
    max-width: 690px;
    padding: clamp(90px, 11vw, 160px) clamp(30px, 6vw, 90px);
    color: #fff;
}

.wc-hero-caption > span,
.wc-kicker {
    color: var(--wc-red);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .17em;
}

.wc-hero-caption > span {
    color: #f0cdb7;
}

.wc-hero h1 {
    margin: 20px 0 24px;
    font-size: clamp(55px, 7vw, 94px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.035em;
}

.wc-hero-caption p {
    max-width: 560px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    line-height: 1.7;
}

.wc-hero-caption a {
    display: inline-flex;
    margin-top: 20px;
    padding: 13px 20px;
    border: 1px solid #fff;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.wc-welcome {
    display: grid;
    grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
    gap: clamp(45px, 9vw, 140px);
    padding: clamp(90px, 11vw, 165px) clamp(30px, 10vw, 170px);
}

.wc-ornament {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border: 1px solid var(--wc-brown);
    border-radius: 50%;
    color: var(--wc-brown);
    font-size: 46px;
}

.wc-welcome h2,
.wc-hall h2,
.wc-services h2,
.wc-price h2,
.wc-contact h2 {
    margin: 18px 0 25px;
    font-size: clamp(42px, 5.3vw, 72px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.wc-welcome p,
.wc-hall p,
.wc-price p {
    max-width: 820px;
    color: #625a4e;
    font-size: 17px;
    line-height: 1.85;
}

.wc-owner {
    display: grid;
    grid-template-columns: 45px auto;
    margin-top: 30px;
}

.wc-owner > span {
    grid-row: 1 / 3;
    align-self: center;
    width: 28px;
    height: 1px;
    background: var(--wc-red);
}

.wc-owner small {
    color: #7f7568;
}

.wc-hall {
    display: grid;
    grid-template-columns: minmax(480px, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(50px, 8vw, 130px);
    padding: clamp(60px, 8vw, 110px) clamp(30px, 7vw, 118px);
    background: #292720;
    color: #fff;
}

.wc-hall-picture,
.wc-hall-picture img {
    min-height: 510px;
    height: 100%;
}

.wc-hall-picture img {
    object-fit: cover;
}

.wc-hall .wc-kicker {
    color: #ddad8b;
}

.wc-hall p {
    color: rgba(255, 255, 255, .66);
}

.wc-services {
    padding: clamp(90px, 10vw, 150px) clamp(30px, 7vw, 118px);
}

.wc-services > header {
    max-width: 850px;
    margin-bottom: 55px;
}

.wc-service-list {
    border-top: 1px solid var(--wc-line);
}

.wc-service-list article {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid var(--wc-line);
}

.wc-service-list b {
    color: var(--wc-red);
    font-weight: 400;
    font-style: italic;
}

.wc-service-list h3 {
    margin: 0 0 7px;
    font-size: 27px;
    font-weight: 400;
}

.wc-service-list p {
    margin: 0;
    color: #6a6154;
}

.wc-photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 0 clamp(30px, 7vw, 118px) clamp(90px, 10vw, 150px);
}

.wc-photo-pair figure {
    margin: 0;
}

.wc-photo-picture,
.wc-photo-picture img {
    height: 440px;
}

.wc-photo-picture img {
    object-fit: cover;
}

.wc-photo-pair figcaption {
    padding: 12px 0;
    border-bottom: 1px solid var(--wc-line);
    color: #776d60;
    font-style: italic;
}

.wc-craft {
    display: grid;
    grid-template-columns: minmax(360px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(50px, 9vw, 145px);
    padding: clamp(80px, 9vw, 140px) clamp(30px, 10vw, 170px);
    background: #ded3c1;
}

.wc-craft > div {
    height: 620px;
    overflow: hidden;
}

.wc-tool-picture,
.wc-tool-picture img {
    height: 100%;
}

.wc-tool-picture img {
    object-fit: cover;
}

.wc-craft blockquote {
    margin: 0;
}

.wc-craft blockquote span {
    color: var(--wc-red);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
}

.wc-craft blockquote p {
    margin: 24px 0 0;
    font-size: clamp(37px, 4.8vw, 66px);
    font-style: italic;
    line-height: 1.12;
}

.wc-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
    gap: clamp(55px, 9vw, 145px);
    align-items: center;
    padding: clamp(90px, 10vw, 150px) clamp(30px, 7vw, 118px);
}

.wc-price aside {
    padding: 40px;
    border: 1px solid var(--wc-brown);
    outline: 1px solid var(--wc-brown);
    outline-offset: -8px;
    background: #e8dece;
}

.wc-price aside > span {
    color: var(--wc-red);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.wc-price aside a {
    display: inline-block;
    margin-top: 18px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--wc-red);
    color: var(--wc-red);
    font-weight: 700;
}

.wc-contact {
    display: grid;
    grid-template-columns: minmax(440px, 1fr) minmax(0, 1fr);
    background: #28261f;
    color: #fff;
}

.wc-contact-photo {
    min-height: 680px;
}

.wc-location-picture,
.wc-location-picture img {
    height: 100%;
}

.wc-location-picture img {
    object-fit: cover;
}

.wc-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(55px, 8vw, 120px);
}

.wc-contact-card .wc-kicker {
    color: #d9a985;
}

.wc-contact address {
    color: rgba(255, 255, 255, .72);
    font-size: 19px;
    font-style: normal;
}

.wc-contact dl {
    display: grid;
    gap: 0;
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.wc-contact dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.wc-contact dt {
    color: rgba(255, 255, 255, .48);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.wc-contact dd {
    margin: 0;
}

.wc-contact-actions {
    display: grid;
    gap: 8px;
}

.wc-contact-actions a {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .34);
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.wc-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 28px 60px;
    align-items: center;
    padding: 55px clamp(30px, 7vw, 118px) 38px;
    border-top: 1px solid var(--wc-line);
}

.wc-footer > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-footer .wc-logo-picture {
    width: 52px;
    height: 52px;
}

.wc-footer > div span {
    color: #786f62;
}

.wc-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.wc-footer details,
.wc-footer > small {
    grid-column: 1 / -1;
}

.wc-footer details {
    padding-top: 20px;
    border-top: 1px solid var(--wc-line);
}

.wc-footer summary {
    cursor: pointer;
    font-weight: 700;
}

.wc-footer details p,
.wc-footer > small {
    color: #766d60;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .wm-header nav {
        display: none;
    }

    .wm-mobile-menu {
        display: block;
    }

    .wm-hero,
    .wm-tools,
    .wm-contact,
    .wc-hall,
    .wc-contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-hero-media {
        min-height: 560px;
    }

    .wm-bento article {
        grid-column: span 6;
    }

    .wm-bento-photo {
        grid-column: span 12 !important;
        grid-row: auto;
    }

    .wc-contact-photo {
        min-height: 520px;
    }
}

@media (max-width: 800px) {
    .wm-hero,
    .wm-intro,
    .wm-break,
    .wc-welcome,
    .wc-craft,
    .wc-price {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-hero {
        min-height: 0;
    }

    .wm-hero-copy {
        order: 2;
    }

    .wm-hero-media {
        min-height: 470px;
    }

    .wm-break > div {
        height: 420px;
    }

    .wm-gallery,
    .wc-photo-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-gallery figure {
        height: 360px;
    }

    .wc-header nav {
        gap: 15px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .wc-hero {
        min-height: 580px;
        margin-right: 18px;
        margin-left: 18px;
    }

    .wc-welcome {
        padding-right: 30px;
        padding-left: 30px;
    }

    .wc-ornament {
        width: 100px;
        height: 100px;
        font-size: 34px;
    }

    .wc-photo-picture,
    .wc-photo-picture img {
        height: 360px;
    }

    .wc-craft > div {
        height: 520px;
    }

    .wc-footer {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 580px) {
    .ws-preview-bar {
        display: grid;
        gap: 7px;
    }

    .ws-preview-links {
        justify-content: flex-start;
    }

    .wm-header {
        min-height: 70px;
        padding: 9px 16px;
    }

    .wm-logo-picture {
        width: 48px;
        height: 48px;
    }

    .wm-brand b {
        font-size: 14px;
    }

    .wm-hero-copy,
    .wm-intro,
    .wm-tools-copy,
    .wm-break,
    .wm-contact {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wm-hero h1 {
        font-size: clamp(58px, 19vw, 82px);
    }

    .wm-hero dl,
    .wm-map-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-actions {
        display: grid;
    }

    .wm-button {
        width: 100%;
    }

    .wm-bento {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding-right: 12px;
        padding-left: 12px;
    }

    .wm-bento article,
    .wm-bento-photo {
        grid-column: auto !important;
    }

    .wm-bento-photo {
        min-height: 430px;
    }

    .wm-tools-media {
        min-height: 500px;
    }

    .wm-break blockquote {
        font-size: 43px;
    }

    .wm-footer {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 20px;
        padding-left: 20px;
    }

    .wc-header {
        padding: 0 16px;
    }

    .wc-header-line span:last-child {
        display: none;
    }

    .wc-brand {
        min-height: 118px;
        gap: 12px;
    }

    .wc-logo-picture {
        width: 64px;
        height: 64px;
    }

    .wc-brand strong {
        font-size: 34px;
    }

    .wc-brand small,
    .wc-brand em {
        font-size: 8px;
    }

    .wc-hero-caption {
        padding-right: 24px;
        padding-left: 24px;
    }

    .wc-hero h1 {
        font-size: 53px;
    }

    .wc-hall,
    .wc-services,
    .wc-photo-pair,
    .wc-craft,
    .wc-price,
    .wc-contact-card,
    .wc-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wc-hall-picture,
    .wc-hall-picture img {
        min-height: 380px;
    }

    .wc-service-list article {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .wc-craft > div {
        height: 440px;
    }

    .wc-contact dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }
}
