/* Tablet-first, inspiriert von der Check-in-Oberfläche: Beere, Magenta, Türkis. */
:root {
  --shell:#8b1254; --blue:#a71968; --blue-dark:#80114e;
  --text:#25282c; --muted:#60656c; --border:#dfe1e6; --bg:#f7f8fa;
  --info:#00a5c2; --berry-soft:#faf0f6; --info-soft:#effafd;
  --shadow:0 4px 20px rgba(30,35,45,.055);
}
[hidden] { display:none !important; }
body { font-family:Arial,"Segoe UI",sans-serif; font-size:16px; line-height:1.5; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; }
:focus-visible { outline:3px solid #007f99; outline-offset:3px; }
a { color:var(--blue); text-underline-offset:3px; }
.appbar { height:auto; min-height:76px; padding:12px max(20px,calc((100vw - 1100px)/2)); gap:12px; background:#fff; color:var(--shell); border-bottom:1px solid var(--border); box-shadow:none; }
.appbar h1 { font-size:20px; font-weight:700; letter-spacing:-.4px; }
.home-button { color:var(--shell); background:var(--berry-soft); width:48px; height:48px; flex-basis:48px; border-radius:50%; }
.home-button:hover { background:#f1dce8; }
.home-button:focus-visible { outline:3px solid #007f99; outline-offset:2px; background:var(--berry-soft); }
.connection-status { color:var(--muted); font-size:12px; background:#f7f8fa; padding:8px 12px; border-radius:24px; }
.connection-dot { border:0; background:#777; }
.connection-status.is-online .connection-dot { background:#16864b; }
.connection-status.is-offline .connection-dot { background:#c93036; }
main,.launchpad,.workspace-page { max-width:1100px; padding:40px 24px 64px; }
#inspectionWorkspace { max-width:960px; }
.launch-intro { margin-bottom:32px; }
.launch-intro h2,.page-intro h2 { font-size:clamp(28px,3.3vw,38px); line-height:1.18; letter-spacing:-.8px; font-weight:700; margin:8px 0 18px; }
.launch-intro p,.page-intro>p { font-size:16px; line-height:1.65; max-width:770px; color:var(--muted); }
.launch-intro .eyebrow,.page-intro .eyebrow { color:var(--shell); font-size:12px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; margin:0; }
.launch-intro strong { margin-top:22px; font-size:15px; }
.page-intro { margin-bottom:26px; }
.launch-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.launch-tile { padding:26px; border:1px solid transparent; border-radius:12px; box-shadow:var(--shadow); aspect-ratio:1; transition:border-color .15s,box-shadow .15s; }
.launch-tile:hover { border-color:var(--blue); box-shadow:0 6px 24px #8b125414; }
.launch-tile:focus-visible { outline:3px solid #007f99; outline-offset:4px; }
.tile-icon { background:var(--berry-soft); color:var(--blue); width:64px; height:64px; }
.tile-icon svg { width:32px; height:32px; }
#openHelp .tile-icon { background:var(--info-soft); color:#007d95; }
.tile-copy { padding-right:20px; }
.tile-copy strong { font-size:22px; letter-spacing:-.4px; }
.tile-copy small { line-height:1.5; font-size:14px; }
.tile-arrow { right:20px; bottom:23px; color:var(--blue); }
.fiori-card,.result { border:1px solid #eceef1; border-radius:12px; box-shadow:var(--shadow); }
.card-header { padding:24px 28px 8px; border:0; }
.card-header h2 { font-size:22px; font-weight:700; letter-spacing:-.4px; }
.filter-card form { padding:20px 28px 28px; }
.scan-choice { gap:16px; }
.scan-choice button { min-height:56px; font-size:16px; }
.primary-button,.secondary-button,.small-button,.danger-button { border-radius:28px; min-height:48px; padding:10px 22px; font-weight:700; }
.primary-button { border:0; background:linear-gradient(110deg,#891450,#c60070); color:#fff; }
.primary-button:hover { background:#80114e; }
.secondary-button,.small-button { border-color:var(--blue); color:var(--blue); background:#fff; }
.secondary-button:hover,.small-button:hover { background:var(--berry-soft); }
button:disabled { cursor:not-allowed; }
.info-box { display:flex; gap:16px; margin:24px 0; padding:24px 26px; background:#fff; border:1px solid #eceef1; border-left:7px solid var(--info); border-radius:10px; box-shadow:var(--shadow); }
.info-symbol { flex:0 0 24px; width:24px; height:24px; margin-top:3px; border:2px solid #00849a; border-radius:50%; color:#007d95; font-size:15px; font-weight:700; line-height:20px; text-align:center; }
.info-box h3 { font-size:18px; line-height:1.4; margin:0 0 8px; }
.info-box p { color:var(--muted); font-size:15px; line-height:1.65; }
.message { border:1px solid #eed0d3; border-left:6px solid var(--red); border-radius:10px; padding:18px 22px; font-size:15px; overflow-wrap:anywhere; }
.result { margin-top:24px; }
.asset-head { padding:26px 28px; align-items:center; }
.asset-head h2 { font-size:26px; line-height:1.25; font-weight:700; overflow-wrap:anywhere; }
.asset-head p { font-size:12px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.overall { padding:6px 12px; font-size:12px; }
.asset-meta { padding:24px 28px; gap:24px; background:#fff; }
.asset-meta span { font-size:12px; margin-bottom:5px; }
.asset-meta b { font-size:15px; font-weight:600; }
.services { padding:26px 28px; }
.services>h3 { font-size:20px; margin-bottom:16px; }
.service-list { grid-template-columns:1fr; gap:12px; }
.service { min-height:88px; border-radius:10px; padding:18px 20px; }
.service b { font-size:17px; }
.service small { font-size:13px; }
.service-action { font-size:14px; font-weight:700; }
.no-services { border-radius:10px; padding:20px; }
dialog { width:min(720px,calc(100% - 32px)); border-radius:16px; max-height:calc(100dvh - 32px); }
dialog::backdrop { background:rgba(30,22,31,.55); }
.dialog-head { padding:24px; align-items:center; }
.dialog-head h2 { font-size:23px; line-height:1.3; }
.dialog-head p { font-size:12px; color:var(--blue); }
.close-button { flex:0 0 44px; width:44px; height:44px; border-radius:50%; background:var(--bg); }
.dialog-body { padding:24px; max-height:calc(100dvh - 238px); }
.dialog-actions { background:#fff; padding:18px 24px; }
.completion-fields>label,.text-field>span,legend { font-size:14px; }
.text-field input,.text-field textarea,.text-field select,.completion-fields>input[type=date],.completion-fields>select,.point-comment textarea,.template-row input,.checkpoint-row input {
  border:1px solid #96999f; border-radius:10px; padding:12px 14px; min-height:50px; background:#fff; color:var(--text); font-size:16px;
}
.completion-fields>input[type=date]:focus,.text-field input:focus,.text-field textarea:focus { outline:2px solid var(--blue); }
input[type=radio],input[type=checkbox],.result-choice input { accent-color:var(--blue); }
.result-choice label,.point-result label { border-radius:10px; min-height:52px; }
.result-choice label:has(input:checked),.point-result label:has(input:checked) { border-color:var(--blue); background:var(--berry-soft); }
.result-choice label:last-child:has(input:checked),.point-result label:last-child:has(input:checked) { border-color:var(--red); background:var(--red-bg); }
.inspection-chapter { border-radius:10px; }
.inspection-chapter>h3 { background:var(--info-soft); padding:16px; border-left:5px solid var(--info); }
.inspection-point { padding:18px; }
.point-result { margin:12px 0; }
.template-page-body { padding:24px 28px; }
.template-chapter-editor { border-radius:10px; border-left:5px solid var(--info); }
.template-chapter-editor>.template-row { background:var(--info-soft); border-bottom-color:#c9e9ed; }
.template-chapter-editor>.template-row::before { color:#006b7f; }
.template-chapter-editor .icon-button { border-radius:50%; }
.small-button { min-height:44px; }
.numeric-keypad { gap:12px; }
.numeric-keypad button { border-color:var(--border); border-radius:12px; min-height:64px; box-shadow:none; font-family:inherit; }
.numeric-keypad button:active { background:var(--berry-soft); }
.numeric-keypad .keypad-function { color:var(--blue); background:var(--berry-soft); }
.field-note,.hint { font-size:12px; line-height:1.5; }
.signature-title span,.photo-title { font-size:14px; }
.signature-title button { color:var(--blue); min-height:44px; }
#signatureCanvas { border-radius:10px; height:180px; }
.photo-preview figure { border-radius:10px; }
.photo-preview button { min-height:44px; min-width:44px; }
.photo-preview figcaption { font-size:12px; }
.help-content { padding:24px 28px 28px; }
.contact-list { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.contact-list div { border-radius:10px; background:var(--bg); }
.contact-list dt { font-size:12px; }
.toast { border-radius:12px; padding:18px 22px; bottom:24px; }
.scanner-head { background:var(--shell); padding:18px; }
.scanner-actions .secondary-button { color:#fff; border-color:#fff; }
.scanner-head .close-button { background:#ffffff18; }
@media(max-width:999px) { .launch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:619px) {
  .appbar { padding:10px 14px; gap:8px; flex-wrap:wrap; }
  .appbar h1 { font-size:18px; }
  .appbar-actions { margin-left:auto; }
  .connection-status { font-size:10px; padding:6px 8px; }
  main,.launchpad,.workspace-page { padding:28px 16px 40px; }
  .launch-grid { grid-template-columns:1fr; gap:16px; }
  .launch-tile { max-width:440px; justify-self:center; padding:28px; }
  .launch-intro h2,.page-intro h2 { font-size:28px; }
  .launch-intro p,.page-intro>p { font-size:15px; }
  .scan-choice { grid-template-columns:1fr; gap:12px; }
  .card-header,.asset-head { padding:22px 20px 14px; }
  .filter-card form,.services,.help-content,.template-page-body { padding:20px; }
  .info-box { padding:20px 18px; gap:12px; }
  .asset-head { flex-wrap:wrap; }
  .overall { margin-left:0; }
  .asset-meta { grid-template-columns:1fr 1fr; padding:20px; gap:18px; }
  .asset-meta div:last-child:nth-child(odd) { grid-column:1/-1; }
  .service { flex-wrap:wrap; }
  .service-action { margin-left:auto; }
  dialog { width:calc(100% - 16px); max-height:calc(100dvh - 16px); }
  .dialog-head,.dialog-body { padding:18px; }
  .dialog-actions { padding:16px; flex-wrap:wrap; }
  .dialog-actions>button { flex:1; }
  .dialog-body { max-height:calc(100dvh - 250px); }
  .point-result { grid-template-columns:1fr; }
}
@media(max-width:390px) { .appbar-actions { width:100%; justify-content:flex-end; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
