/* Axis Field – Demo-Programm von Axis Digital */
@font-face { font-family: 'Jakarta'; src: url('../fonts/jakarta-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('../fonts/jakarta-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('../fonts/jakarta-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('../fonts/jakarta-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('../fonts/jakarta-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('../fonts/mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --page: #071a1d;
  --page-2: #0d2c30;
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f8f6f2;
  --ink: #142027;
  --ink-2: #33414a;
  --muted: #69747c;
  --line: #e3dfd6;
  --brand: #0b4f55;
  --brand-2: #127b80;
  --brand-soft: #dcecea;
  --accent: #f26b1d;
  --accent-soft: #fde8da;
  --ok: #1d8656;
  --ok-soft: #dcf1e5;
  --warn: #b97d00;
  --warn-soft: #fbf0d0;
  --danger: #c23f2c;
  --danger-soft: #f9e0db;
  --info: #2c62b8;
  --info-soft: #e0e9f8;
  --shadow: 0 1px 2px rgba(20, 32, 39, .06), 0 4px 14px rgba(20, 32, 39, .06);
  --sat: 50px;            /* Platz für Statusleiste */
  --sab: 22px;            /* Platz für Home-Indikator */
  --tabh: 62px;
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JBMono', ui-monospace, Consolas, monospace;
}

.app.dark {
  --bg: #0f1719;
  --surface: #172225;
  --surface-2: #1c292d;
  --ink: #eaf0ef;
  --ink-2: #c5d0cf;
  --muted: #8c9a9b;
  --line: #2a3a3e;
  --brand: #5cc3bf;
  --brand-2: #79d3cf;
  --brand-soft: #173a3c;
  --accent: #ff8a4a;
  --accent-soft: #3a2518;
  --ok: #4cc58a;
  --ok-soft: #173326;
  --warn: #e5b33f;
  --warn-soft: #362c12;
  --danger: #f07b69;
  --danger-soft: #3a1d18;
  --info: #7ea8ef;
  --info-soft: #1b2840;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color: #eaf0ef;
  background-color: #0f1719;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: #e8efee;
  background: radial-gradient(900px 600px at 50% 55%, rgba(242, 107, 29, .16), transparent 60%),
              radial-gradient(1200px 800px at 15% 0%, #12403f 0%, transparent 60%),
              var(--page);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Demo-Leiste */
.demo-bar {
  position: relative; z-index: 50;
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
  padding: 7px 16px; padding-top: max(7px, env(safe-area-inset-top));
  background: #fbe9a8; color: #2b2410; font-size: 13px; line-height: 1.35; text-align: center;
  border-bottom: 1px solid #e2c968;
}
.demo-bar a { font-weight: 700; color: #2b2410; white-space: nowrap; }

/* Bühne (Desktop) */
.stage { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; padding: 18px 28px 14px; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1240px; width: 100%; margin: 0 auto; }
.stage-brand { display: flex; gap: 12px; align-items: center; }
.stage-brand strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.stage-brand span { font-size: 13px; color: #9fb7b6; }
.logo-mark svg { width: 38px; height: 38px; display: block; }
.logo-mark rect { fill: #127b80; }
.logo-mark path { fill: #ff7a2f; }
.stage-hint { margin: 0; font-size: 13px; color: #9fb7b6; max-width: 360px; text-align: right; }

.stage-grid {
  flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 72px;
  max-width: 1240px; width: 100%; margin: 0 auto; padding: 12px 0;
}
.notes { display: flex; flex-direction: column; gap: 26px; }
.notes-left { align-items: flex-end; }
.notes-right { align-items: flex-start; }
.note {
  position: relative; width: 100%; max-width: 280px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px; padding: 16px 18px 16px; color: #e8efee;
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s;
}
.note:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 138, 74, .5); transform: translateY(-2px); }
.note strong { display: block; font-size: 15px; margin: 6px 0 4px; }
.note > span:not(.note-ic) { display: block; font-size: 13px; line-height: 1.5; color: #a9bebd; }
.note-ic { font-family: var(--mono); font-size: 11px; color: #ff8a4a; letter-spacing: .08em; }
.note-arrow { position: absolute; top: 50%; width: 62px; height: 28px; margin-top: -14px; fill: none; stroke: #ff8a4a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.notes-left .note-arrow { right: -68px; }
.notes-right .note-arrow { left: -68px; }
.notes-left .note:nth-child(2) { margin-right: 24px; }
.notes-left .note:nth-child(2) .note-arrow, .notes-right .note:nth-child(2) .note-arrow { width: 86px; }
.notes-left .note:nth-child(2) .note-arrow { right: -92px; }
.notes-right .note:nth-child(2) .note-arrow { left: -92px; }
.notes-right .note:nth-child(2) { margin-left: 24px; }

.stage-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
  max-width: 1240px; width: 100%; margin: 0 auto; font-size: 12px; color: #86a09f;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px;
}
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-links a, .linklike { color: #c9dbda; text-decoration: none; }
.foot-links a:hover, .linklike:hover { color: #fff; text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; }

/* Gerät */
.device-wrap { position: relative; width: calc(414px * var(--s, 1)); height: calc(868px * var(--s, 1)); }
.device {
  position: absolute; left: 0; top: 0; width: 414px; height: 868px; transform-origin: 0 0; transform: scale(var(--s, 1));
  border-radius: 64px; padding: 12px;
  background: linear-gradient(145deg, #3a4446, #171d1f 40%, #2b3335);
  box-shadow: 0 0 0 2px #59666a inset, 0 0 0 1px #0a0d0e, 0 40px 80px rgba(0, 0, 0, .55), 0 10px 30px rgba(0, 0, 0, .4);
}
.device-btn { position: absolute; width: 4px; background: #2a3234; border-radius: 3px; box-shadow: inset 1px 0 0 #59666a; }
.device-btn.b1 { left: -3px; top: 150px; height: 34px; }
.device-btn.b2 { left: -3px; top: 205px; height: 62px; }
.device-btn.b3 { right: -3px; top: 220px; height: 92px; }
.device-screen {
  position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden;
  background: var(--bg); color: var(--ink); isolation: isolate;
}
.island {
  position: absolute; z-index: 40; top: 11px; left: 50%; width: 122px; height: 35px; margin-left: -61px;
  background: #050607; border-radius: 20px;
}
.island .cam { position: absolute; right: 14px; top: 11px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a52, #0b0f16 60%); }
.statusbar {
  position: absolute; z-index: 39; top: 0; left: 0; right: 0; height: 50px; padding: 0 30px 0 44px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px;
  color: var(--sb-color, #142027); pointer-events: none; transition: color .3s;
}
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { width: 18px; height: 12px; fill: currentColor; }
.sb-icons .sb-weak { opacity: .35; }
.sb-net { font-size: 12px; font-weight: 800; }
.sb-batt { position: relative; width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .9; padding: 1.5px; }
.sb-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: currentColor; }
.sb-batt-fill { display: block; height: 100%; width: 78%; border-radius: 1.5px; background: currentColor; }
.sb-pct { font-size: 11px; font-weight: 700; min-width: 14px; }
.home-ind { position: absolute; z-index: 60; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--hi-color, #142027); opacity: .85; pointer-events: none; }

/* ===================== App ===================== */
.app {
  position: absolute; inset: 0; overflow: hidden; background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.45;
}
.app button { cursor: pointer; }
.screens { position: absolute; inset: 0; }
.app.has-tabs .screens { bottom: calc(var(--tabh) + var(--sab)); }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg);
  will-change: transform; transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .38s, filter .38s;
}
.screen.is-under { transform: translateX(-28%); filter: brightness(.92); }
.screen.is-right { transform: translateX(100%); box-shadow: -10px 0 30px rgba(0, 0, 0, .12); }
.screen.is-fade { opacity: 0; transform: translateY(10px); }
.screen.no-anim { transition: none; }
.content { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.pad { padding: 4px 18px 26px; }

/* Kopfzeile */
.topbar { padding: calc(var(--sat) + 4px) 14px 10px; background: var(--bg); position: relative; z-index: 2; }
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.tb-row { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.tb-title { flex: 1; font-weight: 700; font-size: 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--brand); flex: none; }
.tb-btn:active { background: var(--brand-soft); }
.tb-btn svg { width: 24px; height: 24px; }
.big-title { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin: 4px 4px 2px; line-height: 1.1; }
.sub-title { color: var(--muted); font-size: 14px; margin: 0 4px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }

/* Tab-Leiste */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabh) + var(--sab)); padding-bottom: var(--sab);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transition: transform .3s;
}
.app:not(.has-tabs) .tabbar { transform: translateY(110%); }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.tab .ic { width: 24px; height: 24px; }
.tab.is-active { color: var(--brand); }
.tab.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tab .badge { position: absolute; top: 7px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

/* Karten & Listen */
.card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.section-h { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 4px 10px; }
.section-h h2, .section-h h3 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.section-h span, .section-h button { font-size: 13px; color: var(--muted); }
.section-h button { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 0; }
.list { padding: 4px 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; background: none; border: 0; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { color: var(--muted); opacity: .7; }
button.row:active { background: var(--surface-2); }
.avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 14px; flex: none; }
.avatar.round { border-radius: 50%; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 14px; padding: 14px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.st-geplant { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.st-arbeit { background: var(--accent-soft); color: var(--accent); }
.st-pausiert { background: var(--warn-soft); color: var(--warn); }
.st-erledigt { background: var(--ok-soft); color: var(--ok); }
.chip.hoch { background: var(--danger-soft); color: var(--danger); }
.chip.tag { background: var(--info-soft); color: var(--info); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; transition: transform .1s, filter .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.app.dark .btn-primary { color: #06201f; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.offline-banner { display: none; align-items: center; gap: 8px; margin: 0 14px 6px; padding: 8px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.app.offline .offline-banner { display: flex; }

/* Login */
.login { position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background: radial-gradient(500px 360px at 85% 8%, rgba(242, 107, 29, .5), transparent 60%), linear-gradient(170deg, #0e5a60 0%, #0a3a3f 55%, #082a2e 100%); }
.login-art { position: absolute; inset: 0; opacity: .25; }
.login-inner { position: relative; flex: 1; display: flex; flex-direction: column; padding: calc(var(--sat) + 40px) 28px calc(var(--sab) + 24px); }
.login-logo { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); }
.login-logo svg { width: 38px; height: 38px; }
.login h1 { font-size: 38px; line-height: 1.05; letter-spacing: -.03em; margin: 26px 0 10px; font-weight: 800; }
.login h1 em { font-style: normal; color: #ffb184; }
.login p { color: rgba(255, 255, 255, .78); margin: 0; font-size: 15px; }
.login-company { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.login-company b { display: block; font-size: 14px; }
.login .btn-login { margin-top: 16px; background: #fff; color: #0b4f55; min-height: 56px; font-size: 16px; }
.login-note { margin-top: 12px !important; font-size: 12px !important; text-align: center; color: rgba(255, 255, 255, .6) !important; }
.login-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 12px; }
.login-links a { color: rgba(255, 255, 255, .75); }

/* Begrüßung */
.welcome { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; text-align: center; background: linear-gradient(170deg, #0e5a60, #082a2e); color: #fff; transition: opacity .5s, transform .5s; }
.welcome.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.welcome .w-av { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-weight: 800; font-size: 30px; background: #f26b1d; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 0 0 16px rgba(255, 255, 255, .04); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.welcome h2 { margin: 0; font-size: 26px; animation: up .6s .15s both; }
.welcome p { margin: 6px 0 0; color: rgba(255, 255, 255, .75); animation: up .6s .3s both; }
.welcome .w-sync { margin-top: 26px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .8); animation: up .6s .45s both; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

/* Heute */
.today-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 4px; }
.hello { font-size: 14px; color: var(--muted); font-weight: 600; }
.today-head .big-title { margin: 2px 0 0; }
.me-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-weight: 800; }
.progress-card { margin-top: 16px; padding: 16px; display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--brand), #0d3f44); color: #fff; border: 0; }
.app.dark .progress-card { background: linear-gradient(135deg, #14514f, #0f2f31); }
.ring { width: 74px; height: 74px; flex: none; position: relative; }
.ring svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .r-bg { stroke: rgba(255, 255, 255, .16); }
.ring .r-fg { stroke: #ff8a4a; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.pc-txt b { font-size: 17px; display: block; }
.pc-txt span { font-size: 13px; opacity: .8; display: block; margin-top: 2px; }
.pc-stats { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; }
.pc-stats b { font-family: var(--mono); font-size: 14px; font-weight: 500; }

.map-card { margin-top: 12px; overflow: hidden; position: relative; }
.map-card > svg { display: block; width: 100%; height: auto; }
.map-legend { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.map-legend b { color: var(--ink); }
.m-land { fill: #e9e5da; }
.m-water { fill: #b9d7dc; }
.m-park { fill: #cfe2c4; }
.m-block { fill: #dfd9cc; }
.m-road { stroke: #fff; fill: none; stroke-linecap: round; }
.m-road-main { stroke: #fbe3a7; }
.m-route { stroke: var(--brand); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 8; }
.m-route-done { stroke: var(--ok); stroke-dasharray: none; opacity: .7; }
.app.dark .m-land { fill: #1d292b; }
.app.dark .m-water { fill: #1e3d45; }
.app.dark .m-park { fill: #20352a; }
.app.dark .m-block { fill: #263538; }
.app.dark .m-road { stroke: #33474b; }
.app.dark .m-road-main { stroke: #4a4a33; }
.pin circle.p-bg { stroke: #fff; stroke-width: 2.5; }
.pin text { font-size: 11px; font-weight: 800; fill: #fff; text-anchor: middle; dominant-baseline: central; font-family: var(--font); }
.pin { cursor: pointer; }
.me-dot { fill: #2c62b8; stroke: #fff; stroke-width: 3; }
.me-pulse { fill: #2c62b8; opacity: .3; transform-box: fill-box; transform-origin: center; animation: pulse 2s infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.map-tag { position: absolute; top: 10px; left: 10px; background: var(--surface); border-radius: 10px; padding: 5px 9px; font-size: 11px; font-weight: 700; box-shadow: var(--shadow); color: var(--ink-2); display: flex; gap: 6px; align-items: center; }

.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; position: relative; }
.tl-time { padding-top: 15px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: right; }
.tl-time small { display: block; color: var(--muted); font-size: 11px; font-family: var(--font); }
.tl-item::before { content: ""; position: absolute; left: 62px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item:first-child::before { top: 22px; }
.tl-item:last-child::before { bottom: calc(100% - 22px); }
.tl-dot { position: absolute; left: 56px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); z-index: 1; }
.tl-item.erledigt .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl-item.arbeit .tl-dot, .tl-item.next .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.pausiert .tl-dot { border-color: var(--warn); }
.job-card { margin: 0 0 12px 20px; padding: 14px; text-align: left; width: calc(100% - 20px); display: block; color: var(--ink); position: relative; }
.job-card:active { transform: scale(.99); }
.tl-item.erledigt .job-card { opacity: .72; }
.tl-item.next .job-card { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 6px 20px rgba(242, 107, 29, .12); }
.jc-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.jc-type { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.jc-title { font-weight: 750; font-size: 15.5px; line-height: 1.3; }
.jc-cust { margin-top: 6px; font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.jc-addr { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.jc-next { display: flex; gap: 8px; margin-top: 12px; }
.jc-next .btn { min-height: 40px; font-size: 14px; flex: 1; padding: 0 10px; }
.jc-timer { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.next-label { position: absolute; top: -9px; right: 12px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }

/* Kunden */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; margin: 12px 0 10px; }
.search input { flex: 1; border: 0; background: none; min-height: 44px; outline: 0; font-size: 15px; min-width: 0; }
.search .ic { color: var(--muted); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.fchip { border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 650; white-space: nowrap; color: var(--ink-2); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.letter { font-size: 12px; font-weight: 800; color: var(--muted); margin: 16px 6px 6px; letter-spacing: .08em; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }

/* Kundendetail */
.hero { position: relative; height: 200px; margin: 0 -18px; overflow: hidden; background: var(--brand); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .hero-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, .9); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent 60%); }
.hero-txt { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 14px; color: #fff; }
.hero-txt h1 { margin: 6px 0 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.hero-txt p { margin: 2px 0 0; font-size: 13px; opacity: .88; }
.hero .chip { background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(6px); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px 10px; background: var(--surface); color: var(--brand); font-size: 12px; font-weight: 700; }
.act span { color: var(--ink-2); }
.act:active { background: var(--brand-soft); }
.access { padding: 14px 16px; display: flex; gap: 12px; }
.access .a-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; flex: none; }
.access b { display: block; font-size: 14px; }
.access p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.code-box { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--mono); font-size: 16px; letter-spacing: .1em; padding: 6px 10px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; }
.code-box button { border: 0; background: none; color: var(--brand); font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 0; }
.device-row .d-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.d-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.d-meta b { color: var(--ink-2); font-weight: 600; }
.d-due { color: var(--danger) !important; }
.hist { padding: 14px 16px 14px 34px; position: relative; font-size: 14px; }
.hist + .hist { border-top: 1px solid var(--line); }
.hist::before { content: ""; position: absolute; left: 16px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.hist-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.hist-top span { font-weight: 500; color: var(--muted); font-size: 12px; font-family: var(--mono); }
.hist p { margin: 3px 0 0; color: var(--ink-2); font-size: 13.5px; }
.hist small { color: var(--muted); }
.note-item { padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; }
.note-item + .note-item { border-top: 1px solid var(--line); }
.note-item .ic { color: var(--accent); margin-top: 2px; }
.note-item small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.note-add { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.note-add input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 42px; background: var(--surface-2); outline: 0; }
.note-add input:focus { border-color: var(--brand); }
.note-add .btn { min-height: 42px; padding: 0 14px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .new { position: absolute; left: 5px; top: 5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.photo-add { display: grid; place-items: center; border: 2px dashed var(--line); background: transparent; color: var(--brand); font-size: 12px; font-weight: 700; aspect-ratio: 1; border-radius: 12px; }
.photo-add div { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Einsatz */
.job-head { padding: 4px 4px 0; }
.job-head h1 { margin: 6px 0 4px; font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.job-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.cust-mini { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-top: 14px; width: 100%; text-align: left; color: var(--ink); }
.timer-card { margin-top: 14px; padding: 18px; text-align: center; position: relative; overflow: hidden; }
.timer-card .t-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.timer-card .t-val { font-family: var(--mono); font-size: 46px; letter-spacing: -.02em; margin: 2px 0 4px; color: var(--ink); }
.timer-card.running .t-val { color: var(--accent); }
.timer-card .t-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.timer-card.running::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: run 1.6s linear infinite; }
@keyframes run { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.steps { display: flex; gap: 4px; margin: 14px 0 0; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--brand-2); }
.check { display: flex; align-items: center; gap: 12px; padding: 13px 16px; width: 100%; background: none; border: 0; text-align: left; font-size: 14.5px; color: var(--ink); }
.check + .check { border-top: 1px solid var(--line); }
.box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all .2s; color: transparent; }
.check.on .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.check.on .c-txt { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.mat { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.mat + .mat { border-top: 1px solid var(--line); }
.mat .row-main small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--surface-2); color: var(--brand); font-size: 18px; font-weight: 700; }
.qty span { min-width: 44px; text-align: center; font-family: var(--mono); font-size: 14px; }
.qty small { color: var(--muted); font-size: 10px; display: block; margin-top: -3px; font-family: var(--font); }
.add-row { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--brand); font-weight: 700; font-size: 14px; }
.list > .add-row:first-child { border-top: 0; }
textarea.field { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 92px; background: var(--surface); resize: vertical; outline: 0; font-size: 14.5px; }
textarea.field:focus, input.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input.field { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 44px; background: var(--surface); outline: 0; font-size: 15px; }
.sig-wrap { padding: 12px; }
.sig-pad { position: relative; height: 170px; border-radius: 14px; background: var(--surface-2); border: 1.5px dashed var(--line); overflow: hidden; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 22px; right: 22px; bottom: 42px; border-bottom: 1.5px solid var(--muted); opacity: .4; pointer-events: none; }
.sig-x { position: absolute; left: 22px; bottom: 46px; font-size: 18px; color: var(--muted); opacity: .6; pointer-events: none; }
.sig-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; transition: opacity .2s; }
.sig-pad.has-ink .sig-hint { opacity: 0; }
.sig-pad.locked { border-style: solid; }
.sig-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.sig-foot .field { flex: 1; }
.sig-foot .btn { min-height: 44px; }
.sig-img { width: 100%; height: 100%; object-fit: contain; }
.app.dark .sig-img, .app.dark .sig-svg { filter: invert(1) hue-rotate(180deg); }
.sticky-foot { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: 10px; }

/* Bericht */
.report-head { text-align: center; padding: 10px 0 6px; }
.report-head .ok-badge { width: 70px; height: 70px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin: 0 auto 12px; display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.report-head .ok-badge .ic { width: 36px; height: 36px; stroke-width: 2.6; }
.report-head h1 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.report-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.doc { padding: 18px; margin-top: 16px; font-size: 13.5px; }
.doc-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.doc-top b { font-size: 15px; }
.doc-top small { color: var(--muted); display: block; }
.doc h4 { margin: 16px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; }
.doc td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:last-child { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; padding-left: 8px; }
.doc ul { margin: 0; padding: 0; list-style: none; }
.doc li { display: flex; gap: 8px; padding: 3px 0; }
.doc li .ic { color: var(--ok); width: 16px; height: 16px; margin-top: 2px; }
.doc li.no .ic { color: var(--muted); }
.doc .sig-box { height: 90px; border-bottom: 1px solid var(--ink); position: relative; }
.doc .sig-box img, .doc .sig-box svg { height: 100%; max-width: 100%; }
.doc-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

/* Nachrichten */
.msg-row .avatar { background: var(--brand); }
.msg-row .unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.msg-row .row-title { display: flex; justify-content: space-between; gap: 8px; }
.msg-row .row-title span { font-size: 12px; color: var(--muted); font-weight: 500; }
.msg-row.unread .row-sub { color: var(--ink); font-weight: 600; }
.chat { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; animation: up .3s; }
.bubble small { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.app.dark .bubble.me { color: #06201f; }
.chat-day { text-align: center; font-size: 11.5px; color: var(--muted); margin: 8px 0; font-weight: 600; }
.typing { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: 18px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.composer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); border-radius: 22px; padding: 0 16px; min-height: 42px; outline: 0; }
.composer input:focus { border-color: var(--brand); }
.composer button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.quick { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; background: var(--surface); }
.quick button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }

/* Profil */
.prof { display: flex; gap: 14px; align-items: center; padding: 16px; }
.prof .avatar { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); font-size: 22px; }
.prof b { font-size: 18px; display: block; }
.prof div > span { font-size: 13px; color: var(--muted); display: block; }
.hours { padding: 16px; }
.hours-top { display: flex; justify-content: space-between; align-items: baseline; }
.hours-top b { font-size: 26px; font-family: var(--mono); font-weight: 500; letter-spacing: -.02em; }
.hours-top span { font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 120px; margin-top: 14px; position: relative; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 22px) * .78); border-top: 1.5px dashed var(--line); }
.bar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--brand-soft); position: relative; min-height: 4px; transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.bar.done i { background: var(--brand-2); }
.bar.today i { background: var(--accent); }
.bar em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }
.bar small { font-size: 10.5px; font-family: var(--mono); color: var(--ink-2); }
.vac { display: flex; gap: 14px; padding: 16px; align-items: center; }
.vac-num { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.vac-num small { font-size: 14px; color: var(--muted); font-weight: 600; }
.vac-bar { height: 8px; border-radius: 4px; background: var(--brand-soft); overflow: hidden; margin-top: 6px; }
.vac-bar i { display: block; height: 100%; background: var(--brand-2); }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.toggle-row + .toggle-row, .toggle-row + .row, .row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row .ic { color: var(--brand); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
a.row { text-decoration: none; color: inherit; }
.row .ic.lead { color: var(--brand); }
.app-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 22px; line-height: 1.6; }
.app-foot a { color: var(--muted); }

/* Bottom-Sheet, Lightbox, Toast */
.layer { position: absolute; inset: 0; z-index: 45; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: rgba(5, 15, 17, .45); opacity: 0; transition: opacity .3s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84%; display: flex; flex-direction: column; background: var(--surface); border-radius: 26px 26px 0 0; transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); padding-bottom: var(--sab); }
.layer.open { pointer-events: auto; }
.layer.open .scrim { opacity: 1; }
.layer.open .sheet { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 4px; flex: none; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 10px; }
.sheet-h h3 { margin: 0; font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 0 18px 18px; scrollbar-width: none; }
.sheet-body p { color: var(--ink-2); font-size: 14px; }
.lightbox { position: absolute; inset: 0; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .25s; }
.layer.open .lightbox { opacity: 1; }
.lightbox img { width: 100%; max-height: 70%; object-fit: contain; }
.lightbox p { color: #fff; text-align: center; font-size: 14px; }
.lightbox .tb-btn { position: absolute; top: calc(var(--sat) + 6px); right: 12px; color: #fff; background: rgba(255, 255, 255, .15); border-radius: 50%; }
.camera { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; opacity: 0; transition: opacity .25s; }
.layer.open .camera { opacity: 1; }
.cam-view { flex: 1; position: relative; overflow: hidden; margin-top: var(--sat); }
.cam-view img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.cam-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 33.33% 33.33%; }
.cam-focus { position: absolute; left: 50%; top: 45%; width: 80px; height: 80px; margin: -40px; border: 2px solid #ffd34d; border-radius: 6px; animation: focus 1s ease-out; }
@keyframes focus { from { transform: scale(1.5); opacity: 0; } }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .45s ease-out; }
@keyframes flash { 10% { opacity: 1; } to { opacity: 0; } }
.cam-demo { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.cam-bar { height: 140px; display: flex; align-items: center; justify-content: space-around; padding-bottom: var(--sab); }
.cam-bar button { border: 0; background: none; color: #fff; font-size: 14px; font-weight: 600; width: 80px; }
.shutter { width: 72px !important; height: 72px; border-radius: 50%; border: 4px solid #fff !important; background: transparent; padding: 4px !important; }
.shutter::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .1s; }
.shutter:active::after { transform: scale(.88); }
.toast { position: absolute; z-index: 70; left: 16px; right: 16px; bottom: calc(var(--tabh) + var(--sab) + 12px); display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #13252a; color: #fff; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transform: translateY(20px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; pointer-events: none; }
.app:not(.has-tabs) .toast { bottom: calc(var(--sab) + 16px); }
.toast.show { transform: none; opacity: 1; }
.toast .ic { color: #ffb184; margin-top: 1px; }
.toast b { display: block; }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink); }
.pick .row-main small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.pick .plus { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 14px; }
.date-grid .dh { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.dbtn { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 650; color: var(--ink); padding: 0; }
.dbtn.we { color: var(--muted); background: var(--surface-2); }
.dbtn.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.dbtn.mid { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.dbtn[disabled] { opacity: .35; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.req { display: flex; gap: 10px; align-items: center; padding: 12px 16px; font-size: 14px; }
.req + .req { border-top: 1px solid var(--line); }

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

/* ===================== Mobil: Vollbild ohne Rahmen ===================== */
@media (max-width: 899px), (max-height: 620px) {
  html, body { height: 100%; overflow: hidden; }
  body { background: var(--bg); min-height: 0; height: 100dvh; }
  body::before { display: none; }
  .demo-bar { font-size: 11.5px; padding: 5px 10px; padding-top: max(5px, env(safe-area-inset-top)); gap: 2px 10px; }
  .stage { padding: 0; flex: 1; min-height: 0; }
  .stage-head, .notes, .stage-foot { display: none; }
  .stage-grid { display: block; flex: 1; padding: 0; max-width: none; position: relative; min-height: 0; }
  .device-wrap { position: absolute; inset: 0; width: auto !important; height: auto !important; }
  .device { position: absolute; inset: 0; width: auto; height: auto; transform: none !important; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .device-btn, .island, .statusbar, .home-ind { display: none; }
  .device-screen { width: 100%; height: 100%; border-radius: 0; }
  :root { --sat: 0px; --sab: env(safe-area-inset-bottom, 0px); }
  .topbar { padding-top: 10px; }
  .lightbox .tb-btn { top: 12px; }
  .login-inner { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Rechtliche Seiten */
body.legal { display: block; background: #f3f1ec; color: #142027; overflow: auto; height: auto; min-height: 100vh; }
body.legal::before { display: none; }
.legal-head { background: #0b4f55; color: #fff; }
.legal-head .in { max-width: 760px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal .legal-head a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.legal-head .logo-mark svg { width: 32px; height: 32px; }
.legal-head .logo-mark rect { fill: #127b80; }
.legal main { max-width: 760px; margin: 0 auto; padding: 28px 20px 48px; line-height: 1.65; font-size: 16px; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.15; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #33414a; }
.legal a { color: #0b4f55; font-weight: 600; }
.legal .demo-note { background: #fff4d6; border: 1px solid #e8cf7f; border-left: 5px solid #f26b1d; padding: 14px 16px; border-radius: 10px; color: #2b2410; }
.legal footer { max-width: 760px; margin: 0 auto; padding: 18px 20px 30px; border-top: 1px solid #e3dfd6; font-size: 13px; color: #69747c; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal footer a { color: #33414a; }
@media (max-width: 899px), (max-height: 620px) {
  html:has(body.legal) { height: auto; overflow: auto; }
  body.legal { height: auto; overflow: auto; }
}
