﻿:root {
  --ink: #172033;
  --muted: #687080;
  --line: #e4d8c9;
  --bg: #f8f1e7;
  --panel: #fffdf9;
  --cyan: #52d6e8;
  --cyan-soft: #eafcff;
  --blue: #355fbd;
  --blue-soft: #edf3ff;
  --purple: #7a55c7;
  --purple-soft: #f3edff;
}

/* Teamleiter: gefuehrter Flyer-Alltag */
@media (max-width:620px){
  .teamleader-flyer-home{padding-bottom:92px!important}
  .flyer-day-planner{display:grid!important;gap:16px!important;padding:18px!important;background:#fff!important}
  .flyer-day-planner>header{display:grid!important;grid-template-columns:1fr 46px!important;gap:12px!important;border:0!important;padding:0!important}
  .flyer-day-planner>header small{color:#1269e8!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important}
  .flyer-day-planner h2{margin:3px 0 4px!important;font-size:25px!important;line-height:1.05!important;color:#111c32!important}
  .flyer-day-planner p{margin:0!important;color:#657085!important;font-size:13px!important;line-height:1.35!important;font-weight:750!important}
  .flyer-quick-capture{width:46px!important;height:46px!important;border:0!important;border-radius:15px!important;background:#edf4ff!important;color:#1269e8!important;font-size:28px!important;font-weight:700!important}
  .flyer-day-planner form{display:grid!important;gap:15px!important}
  .flyer-day-planner form>label{display:grid!important;gap:6px!important;color:#526078!important;font-size:12px!important;font-weight:900!important}
  .flyer-day-planner select{width:100%!important;height:50px!important;border:1px solid #dbe3ef!important;border-radius:15px!important;background:#f8fbff!important;padding:0 14px!important;color:#172033!important;font-size:15px!important;font-weight:900!important}
  .flyer-day-planner fieldset{margin:0!important;padding:0!important;border:0!important}
  .flyer-day-planner legend{margin-bottom:7px!important;color:#526078!important;font-size:12px!important;font-weight:900!important}
  .flyer-choice-row{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:7px!important}
  .flyer-choice-row.transport{grid-template-columns:repeat(3,1fr)!important}
  .flyer-choice-row label{position:relative!important}
  .flyer-choice-row input{position:absolute!important;opacity:0!important;pointer-events:none!important}
  .flyer-choice-row span{display:grid!important;place-items:center!important;height:43px!important;border:1px solid #dbe3ef!important;border-radius:13px!important;background:#fff!important;color:#33405a!important;font-size:12px!important;font-weight:900!important}
  .flyer-choice-row input:checked+span{border-color:#1269e8!important;background:#edf4ff!important;color:#1269e8!important;box-shadow:inset 0 0 0 1px #1269e8!important}
  .flyer-auto-start{height:54px!important;border:0!important;border-radius:16px!important;background:#1269e8!important;color:#fff!important;font-size:15px!important;font-weight:950!important;box-shadow:0 12px 24px rgba(18,105,232,.24)!important}
  .flyer-day-glance{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .flyer-day-glance span{padding:10px 12px!important;border-radius:13px!important;background:#f7f9fc!important;color:#657085!important;font-size:11px!important;font-weight:850!important}
  .flyer-day-glance strong{display:block!important;color:#123583!important;font-size:18px!important}
  .flyer-manual-map{height:40px!important;border:0!important;background:transparent!important;color:#526078!important;font-size:12px!important;font-weight:900!important}
  .teamleader-route-active{padding:16px!important}
  .teamleader-route-active>header{display:flex!important;align-items:start!important;justify-content:space-between!important;border:0!important;padding:0!important}
  .teamleader-route-active>header small{color:#168154!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important}
  .teamleader-route-active>header h2{margin:2px 0 0!important;font-size:22px!important;color:#111c32!important}
  .teamleader-route-active>header b{padding:7px 10px!important;border-radius:999px!important;background:#edf4ff!important;color:#1269e8!important;font-size:11px!important}
  .teamleader-route-active .instant-current-target{padding:16px!important;border-radius:17px!important;background:#f8fbff!important}
  .teamleader-route-active .instant-current-target strong{font-size:21px!important;line-height:1.1!important}
  .teamleader-route-active .instant-current-target span{display:block!important;margin-top:8px!important;color:#168154!important;font-size:11px!important;font-weight:900!important}
  .teamleader-route-active .instant-target-actions{grid-template-columns:1fr 1fr!important}
  .teamleader-route-active .instant-target-actions button{min-height:50px!important;border-radius:15px!important;font-size:13px!important;font-weight:950!important}
  .teamleader-route-active .instant-target-actions .primary{grid-column:1/-1!important;background:#1269e8!important;color:#fff!important}
  .teamleader-route-active .instant-target-actions .complete{background:#e9fff3!important;color:#11784f!important;border-color:#b9e8cc!important}
}

.location-capture-preview .capture-completed{padding:12px;border:1px solid #b9e2c8;border-radius:8px;background:#effaf3;color:#176a38}
.location-capture-preview .capture-completed span{display:grid;gap:3px}
.location-capture-preview .capture-completed small{color:#456b55;font-weight:650;line-height:1.35}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}
body::before { content: "desktop"; display: none; }
.app-head, main {
  width: min(100%, 1100px);
  margin: 0 auto;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: #fffdf9;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand-text {
  display: grid;
  gap: 2px;
}
.brand-text strong {
  font-size: 18px;
}
.brand-text small {
  color: var(--muted);
  font-size: 13px;
}
.ladybug-symbol {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
.brand-logo-img {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 12px;
}
.mobile-top-logo-img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 9px;
}
.admin-logo-img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 9px;
}
.ladybug-symbol::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 10px 10px, #07182d 0 4px, transparent 5px),
    radial-gradient(circle at 22px 10px, #07182d 0 4px, transparent 5px),
    radial-gradient(circle at 16px 22px, #07182d 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 47%, #ffffff 48% 52%, transparent 53%),
    #e93235;
  border: 3px solid #07182d;
  transform: rotate(-18deg);
}
.ladybug-symbol::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 5px;
  width: 19px;
  height: 18px;
  border-radius: 50% 50% 42% 42%;
  background: #07182d;
  transform: rotate(28deg);
}
nav { display: flex; flex-wrap: nowrap; gap: 4px; justify-content: flex-end; align-items: center; }
nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.nav-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
}
.nav-icon {
  position: relative;
  width: 15px;
  height: 15px;
  display: inline-block;
  color: var(--purple);
  flex: 0 0 auto;
}
.nav-icon.home::before { content: ""; position: absolute; inset: 6px 3px 2px; border: 2px solid currentColor; border-top: 0; border-radius: 2px; }
.nav-icon.home::after { content: ""; position: absolute; left: 3px; top: 2px; width: 9px; height: 9px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.nav-icon.clock { border: 2px solid currentColor; border-radius: 50%; }
.nav-icon.clock::before { content: ""; position: absolute; left: 6px; top: 2px; width: 2px; height: 5px; background: currentColor; }
.nav-icon.clock::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 2px; background: currentColor; }
.nav-icon.client::before, .nav-icon.team::before { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav-icon.client::after, .nav-icon.team::after { content: ""; position: absolute; left: 2px; bottom: 1px; width: 11px; height: 7px; border: 2px solid currentColor; border-radius: 9px 9px 3px 3px; }
.nav-icon.team { box-shadow: -5px 4px 0 -3px currentColor, 5px 4px 0 -3px currentColor; }
.nav-icon.calendar { border: 2px solid currentColor; border-radius: 3px; }
.nav-icon.calendar::before { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; border-top: 2px solid currentColor; }
.nav-icon.shift::before { content: ""; position: absolute; inset: 2px; border: 2px solid currentColor; border-radius: 3px; }
.nav-icon.shift::after { content: ""; position: absolute; left: 7px; top: 1px; bottom: 1px; border-left: 2px solid currentColor; }
.nav-icon.check::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.nav-icon.note { border: 2px solid currentColor; border-radius: 3px; }
.nav-icon.note::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 6px; height: 6px; background: var(--panel); border-left: 2px solid currentColor; border-top: 2px solid currentColor; }
.nav-icon.lock::before { content: ""; position: absolute; left: 3px; bottom: 1px; width: 9px; height: 8px; border: 2px solid currentColor; border-radius: 2px; }
.nav-icon.lock::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
nav a:hover, nav a.active { background: var(--cyan-soft); color: var(--blue); }
main { padding: 20px 22px 36px; }
.hero, .panel, .metric, .dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 14px;
}
.mobile-save { display: none; }
.hero-logo {
  width: 260px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}
.hero-symbol {
  width: 82px;
  height: 82px;
}
.hero-symbol::before {
  left: 12px;
  top: 18px;
  width: 54px;
  height: 54px;
}
.hero-symbol::after {
  left: 46px;
  top: 8px;
  width: 30px;
  height: 28px;
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--purple);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 4px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.intro, .panel-head p, .muted { color: var(--muted); }
.intro { max-width: 720px; line-height: 1.55; margin-bottom: 0; }
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 12px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}
button:hover { background: var(--cyan-soft); border-color: var(--cyan); }
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.primary:hover { background: var(--purple); border-color: var(--purple); }
.ghost { background: transparent; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.metric { padding: 12px; border-left: 4px solid var(--cyan); }
.metric:nth-child(2) { border-left-color: var(--purple); }
.metric:nth-child(3) { border-left-color: var(--blue); }
.metric:nth-child(4) { border-left-color: #d9b789; }
.metric span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.metric strong { display: block; margin-top: 4px; font-size: 24px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dash-card {
  display: grid;
  gap: 8px;
  text-align: left;
  min-height: 126px;
  padding: 18px;
  align-content: start;
}
.dash-card strong { font-size: 18px; color: var(--blue); }
.dash-card span { color: var(--muted); line-height: 1.4; font-weight: 500; }
.panel { padding: 18px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.panel-head p { margin-bottom: 0; }
.cards, .stack {
  display: grid;
  gap: 9px;
}
.cards.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.item {
  border: 1px solid #ded6ea;
  border-radius: 12px;
  background: white;
  padding: 13px;
}
.item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.item p { margin-bottom: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.mini-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-soft);
  border: 1px solid #c7eef5;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 700;
}
.mini-list.absences span.vacation {
  background: #fff5e7;
  border-color: #ead2aa;
}
.mini-list.absences span.sick {
  background: var(--purple-soft);
  border-color: #ded6ea;
}
.mini-list button {
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
}

/* Flyer tab: city pills and instant-route controls */
.flyer-route-suggestions {
  padding: 12px;
}
.flyer-route-suggestions header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.flyer-route-suggestions > div { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.flyer-route-suggestion {
  -webkit-tap-highlight-color: transparent;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  min-width: 140px;
  cursor:pointer;
  transition:transform .08s ease, box-shadow .08s ease;
}
.flyer-route-suggestion:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(16,32,64,0.08); }
.flyer-route-suggestion .flyer-route-suggestion-icon { width:36px; height:36px; display:inline-grid; place-items:center; border-radius:10px; background:var(--blue-soft); color:var(--blue); font-weight:900; }

/* Instant route card: position bottom-left and compact */
.instant-route-card { display:block; margin-top:12px; border-radius:12px; padding:10px; }
.instant-route-card .mobile-route-button { background:var(--blue); color:#fff; border-radius:10px; padding:8px 12px; min-height:36px; }
.mobile-route-button { font-weight:800; }

/* Mobile: ensure top controls are not overlapping */
@media (max-width: 620px) {
  .flyer-route-suggestions > div { gap:8px; }
  .flyer-route-suggestions header h3 { font-size:15px; }
  .flyer-map-panel .panel-actions { gap:8px; }
  .flyer-map-panel .flyer-route-summary { margin-top:8px; }
}

/* Floating map controls (blue action + red cancel) */
.flyer-map-shell { position: relative; }
.flyer-map-controls { position: absolute; top: 18px; left: 14px; display:flex; gap:12px; align-items:center; z-index:60; pointer-events:auto; }
.flyer-map-controls .map-floating { box-shadow: 0 10px 26px rgba(21,32,58,0.18); border: none; }
.flyer-map-controls .mobile-route-button.map-floating { background: linear-gradient(90deg,#1780ff,#0b5fd6); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight:800; display:inline-flex; align-items:center; gap:10px; }
.flyer-map-controls .instant-cancel { display:none; width:44px; height:44px; border-radius:999px; background: #fff; border: 6px solid rgba(255,100,100,0.12); color:#d32f2f; font-weight:900; align-items:center; justify-content:center; box-shadow:0 8px 22px rgba(211,47,47,0.12); }
.flyer-map-panel.instant-route-active .flyer-map-controls .instant-cancel { display:inline-flex; transform: translateY(0); }
.flyer-map-controls .instant-cancel::after{ content:''; position:absolute; inset:0; border-radius:999px; box-shadow: 0 2px 0 rgba(0,0,0,0.04); }

@media (max-width:620px){
  .flyer-map-controls { top: 12px; left: 10px; }
  .flyer-map-controls .mobile-route-button.map-floating { padding:10px 14px; font-size:13px; }
  .flyer-map-controls .instant-cancel { width:40px; height:40px; border-width:5px; }
}
.month-calendar { display: grid; gap: 10px; }
.month-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: capitalize;
}
.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-weekdays span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 8px 6px;
}
.month-grid {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}
.month-day {
  min-height: 128px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  background: white;
}
.month-day:nth-child(7n) { border-right: 0; }
.month-day h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.month-day.today h3 {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
}
.month-day.empty { background: #faf7f1; }
.calendar-event {
  display: grid;
  gap: 3px;
  background: var(--cyan-soft);
  border: 1px solid #bfeef5;
  border-radius: 9px;
  padding: 6px;
  margin-bottom: 5px;
  font-size: 12px;
}
.shift-event {
  background: var(--purple-soft);
  border-color: #ded6ea;
}
.calendar-event span,
.calendar-event em {
  color: var(--muted);
  font-style: normal;
}
.calendar-event button {
  min-height: 26px;
  padding: 0 8px;
  justify-self: start;
  font-size: 12px;
}
.ios-agenda { display: none; }
.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.summary div {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 12px;
}
.summary strong, .summary span { display: block; }
.summary span { color: var(--muted); margin-top: 4px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; background: white; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--blue-soft); color: var(--muted); font-size: 13px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  font: inherit;
  background: white;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--cyan-soft); border-color: var(--cyan); }
textarea { resize: vertical; }
.notes-list { margin-top: 12px; }
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.checks label, fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}
.checks input, fieldset input { width: auto; }
fieldset {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.availability-week {
  display: grid;
  gap: 8px;
}
.availability-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.availability-row strong {
  font-size: 14px;
}
legend { color: var(--muted); font-weight: 800; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 26, 38, .45);
  padding: 20px;
  z-index: 10;
}
.modal {
  width: min(740px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}
.logged-out .login-screen { display: grid; }
.logged-out .app-head,
.logged-out main { display: none; }
.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.login-symbol {
  width: 72px;
  height: 72px;
  justify-self: center;
}
.login-logo-img {
  width: 110px;
  height: 110px;
  justify-self: center;
  object-fit: contain;
  border-radius: 20px;
}
.login-footnote {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.login-symbol::before {
  left: 10px;
  top: 16px;
  width: 48px;
  height: 48px;
}
.login-symbol::after {
  left: 40px;
  top: 7px;
  width: 27px;
  height: 25px;
}
.error-text {
  color: #a03345;
  margin-bottom: 0;
  font-weight: 700;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fields label:has(textarea) { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .app-head, .hero, .panel-head { flex-direction: column; align-items: stretch; }
  nav { justify-content: flex-start; }
  .hero-logo { width: 180px; height: 100px; }
  .metrics, .dashboard-grid, .summary, .cards.compact { grid-template-columns: 1fr 1fr; }
  .month-day { min-height: 110px; }
}

@media (max-width: 620px) {
  body {
    background: #fbf7ef;
    padding-bottom: 92px;
  }
  body::before { content: "mobile"; }
  .app-head {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(228, 216, 201, .75);
    box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
  }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 12px; }
  .ladybug-symbol { width: 42px; height: 42px; }
  .ladybug-symbol::before {
    left: 7px;
    top: 10px;
    width: 28px;
    height: 28px;
  }
  .ladybug-symbol::after {
    left: 22px;
    top: 5px;
    width: 17px;
    height: 16px;
  }
  nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: rgba(255, 253, 249, .96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(23, 32, 51, .16);
    backdrop-filter: blur(12px);
  }
  nav a {
    min-height: 52px;
    justify-content: center;
    display: grid;
    gap: 2px;
    padding: 6px 3px;
    border-radius: 16px;
    font-size: 10px;
    text-align: center;
  }
  nav a span {
    font-size: 18px;
    line-height: 1;
  }
  nav a:nth-child(7), nav a:nth-child(8), nav a:nth-child(9), .nav-button { display: none; }
  main {
    padding: 12px 12px 0;
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-items: center;
  }
  .hero .eyebrow { display: none; }
  .hero-logo {
    display: none;
  }
  .hero-symbol {
    display: none;
  }
  h1 {
    font-size: 22px;
    margin-bottom: 4px;
  }
  h2 { font-size: 20px; }
  .intro {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .metric {
    padding: 9px 6px;
    border-left: 0;
    border-top: 3px solid var(--cyan);
    border-radius: 14px;
    text-align: center;
  }
  .metric span {
    font-size: 10px;
    line-height: 1.1;
  }
  .metric strong {
    font-size: 18px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dash-card {
    min-height: 76px;
    padding: 14px;
    border-radius: 18px;
  }
  .dash-card strong { font-size: 17px; }
  .dash-card span {
    font-size: 13px;
    line-height: 1.35;
  }
  .panel {
    border-radius: 20px;
    padding: 14px;
  }
  .panel-head {
    gap: 10px;
    margin-bottom: 12px;
  }
  .panel-head button, .button-row button {
    width: 100%;
  }
  .summary, .cards.compact, .fields {
    grid-template-columns: 1fr;
  }
  .month-title {
    font-size: 21px;
    padding: 2px 4px;
  }
  .month-weekdays span {
    text-align: center;
    padding: 0 0 6px;
    font-size: 12px;
  }
  .month-grid {
    border: 0;
    background: transparent;
    gap: 2px 0;
    overflow: visible;
  }
  .month-day {
    min-height: 44px;
    border: 0;
    padding: 2px;
    background: transparent;
    display: grid;
    place-items: center;
  }
  .month-day h3 {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 999px;
    color: var(--ink);
    font-size: 15px;
  }
  .month-day.today h3 {
    width: 34px;
    height: 34px;
  }
  .month-day:has(.calendar-event) h3 {
    box-shadow: inset 0 -4px 0 var(--cyan);
  }
  .month-day .calendar-event {
    display: none;
  }
  .ios-agenda {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }
  .ios-agenda article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
  }
  .ios-agenda article > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
  }
  .item {
    border-radius: 16px;
    padding: 12px;
  }
  .table {
    border: 0;
    overflow: visible;
  }
  table, thead, tbody, tr, th, td {
    display: block;
    min-width: 0;
    width: 100%;
  }
  thead { display: none; }
  tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 8px;
  }
  td {
    border-bottom: 0;
    padding: 6px 0;
  }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    padding: 16px;
  }
  .availability-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.shift-warning {
  background: #fff5e7;
  border-color: #ead2aa;
}
.shift-warning em {
  color: #8a5a00;
  font-weight: 800;
}

.employee-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.employee-card-head {
  align-items: flex-start;
  margin-bottom: 0;
}
.employee-card-head div {
  display: grid;
  gap: 3px;
}
.employee-card-head strong {
  font-size: 19px;
}
.employee-card-head small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}
.employee-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.employee-kpis div {
  background: var(--blue-soft);
  border: 1px solid #dbe6ff;
  border-radius: 14px;
  padding: 10px;
}
.employee-kpis strong,
.employee-kpis span {
  display: block;
}
.employee-kpis strong {
  font-size: 20px;
  color: var(--blue);
}
.employee-kpis span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.employee-kpis .good { background: #ecfff4; border-color: #bfe7cf; }
.employee-kpis .good strong { color: #197b3f; }
.employee-kpis .warn { background: #fff5e7; border-color: #ead2aa; }
.employee-kpis .warn strong { color: #9a6500; }
.employee-kpis .bad { background: #fff0f2; border-color: #f0c2ca; }
.employee-kpis .bad strong { color: #a03345; }
.employee-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.employee-details p {
  margin: 0;
  line-height: 1.35;
  min-width: 0;
}
.employee-details span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 2px;
}
.employee-notes {
  background: #faf7f1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  margin: 0;
  color: var(--muted);
}
.employee-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  #employees .panel-head h2 { margin-bottom: 2px; }
  #employees .panel-head p {
    font-size: 13px;
    line-height: 1.35;
  }
  .employee-card {
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
  }
  .employee-card-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .employee-card-head strong {
    font-size: 18px;
  }
  .employee-card-head small {
    font-size: 12px;
  }
  .employee-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .employee-kpis div {
    padding: 8px 6px;
    text-align: center;
    border-radius: 13px;
  }
  .employee-kpis strong {
    font-size: 18px;
  }
  .employee-kpis span {
    font-size: 10px;
    line-height: 1.1;
  }
  .employee-details {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .employee-details p {
    background: #fbf8f1;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    font-size: 13px;
  }
  .employee-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .employee-actions button {
    width: 100%;
  }
}

.employee-more summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
  list-style: none;
}
.employee-more summary::-webkit-details-marker { display: none; }
.employee-more summary::after { content: " +"; }
.employee-more[open] summary::after { content: " â€“"; }
.shift-summary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}
.shift-summary h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.shift-summary > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.shift-summary-card {
  border-radius: 12px;
  padding: 10px;
  background: var(--blue-soft);
  border: 1px solid #dbe6ff;
}
.shift-summary-card strong,
.shift-summary-card span { display: block; }
.shift-summary-card span { color: var(--muted); margin-top: 3px; font-size: 13px; }
.shift-summary-card.good { background: #ecfff4; border-color: #bfe7cf; }
.shift-summary-card.warn { background: #fff5e7; border-color: #ead2aa; }
.shift-summary-card.bad { background: #fff0f2; border-color: #f0c2ca; }
.shift-summary-card.neutral { background: #faf7f1; }
@media (max-width: 620px) {
  .shift-summary > div { grid-template-columns: 1fr; }
  .shift-summary { padding: 10px; border-radius: 16px; }
}

/* AFH single UI system: desktop admin + mobile employee app */
:root{--afh-blue:#0a5fe0;--afh-ink:#172033;--afh-muted:#687080;--afh-line:#eadccd;--afh-bg:#fbf6ee;--afh-green:#0b9b63;--afh-purple:#7c5ce8}
@media (min-width:621px){
body:not(.logged-out){background:radial-gradient(circle at 20% 0%,rgba(255,255,255,.62),transparent 26%),linear-gradient(180deg,#fbf3e6,#f8eee0)!important;color:var(--afh-ink)!important}.app-head,.hero{display:none!important}body:not(.logged-out) main{width:min(1080px,calc(100vw - 72px))!important;margin:28px auto!important;padding:0!important}.mobile-app{display:none!important}.admin-web{display:block!important;max-width:1080px!important;min-height:610px!important;margin:0 auto!important;background:#fff!important;border:1px solid var(--afh-line)!important;border-radius:17px!important;box-shadow:0 22px 60px rgba(44,35,25,.10)!important;overflow:hidden!important}.admin-topbar{height:62px!important;display:grid!important;grid-template-columns:1fr 210px 38px 132px!important;gap:14px!important;align-items:center!important;padding:0 22px!important;background:#fff!important;border-bottom:1px solid #eee1d2!important}.admin-logo{display:flex!important;align-items:center!important;gap:9px!important;text-decoration:none!important;color:var(--afh-blue)!important}.admin-logo span{font-size:18px!important}.admin-logo strong{font-size:15px!important}.admin-search{height:34px!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;padding:0 10px!important;border:1px solid #eadfd2!important;border-radius:7px!important;background:#fbfaf8!important}.admin-search input{border:0!important;background:transparent!important;outline:0!important;font-size:12px!important}.admin-icon{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;background:#fff!important}.admin-user{display:flex!important;align-items:center!important;gap:9px!important}.admin-user>span{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:50%!important;background:linear-gradient(135deg,#7c5ce8,#a781ff)!important;color:#fff!important;font-size:12px!important;font-weight:900!important}.admin-user strong,.admin-user small{display:block!important;line-height:1.15!important}.admin-user strong{font-size:12px!important}.admin-user small{font-size:10px!important;color:var(--afh-muted)!important;text-transform:capitalize!important}
.admin-layout{display:grid!important;grid-template-columns:160px 1fr!important;min-height:548px!important;background:#fff!important}.admin-sidebar{display:flex!important;flex-direction:column!important;gap:7px!important;padding:18px 10px!important;border-right:1px solid var(--afh-line)!important;background:#fffdf9!important}.admin-nav{height:34px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 10px!important;border-radius:8px!important;text-decoration:none!important;color:#29344b!important;font-size:11.5px!important;font-weight:800!important}.admin-nav span{width:18px!important;text-align:center!important;font-size:14px!important}.admin-nav.active{background:#eaf3ff!important;color:var(--afh-blue)!important;box-shadow:inset 3px 0 0 var(--afh-blue)!important}.admin-support{margin-top:auto!important;display:grid!important;grid-template-columns:26px 1fr auto!important;gap:8px!important;align-items:center!important;padding:9px!important;border:1px solid var(--afh-line)!important;border-radius:13px!important;background:#fff8ef!important;text-decoration:none!important;color:#29344b!important}.admin-support>span{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:50%!important;border:1px solid #cad3df!important}.admin-support strong,.admin-support small{display:block!important}.admin-support strong{font-size:10.5px!important}.admin-support small{font-size:9.5px!important;color:var(--afh-muted)!important}.admin-content{display:grid!important;gap:12px!important;padding:21px 28px 22px!important;background:#fff!important}.admin-heading{display:flex!important;justify-content:space-between!important;align-items:flex-start!important}.admin-heading h2{margin:0 0 4px!important;font-size:21px!important;line-height:1!important;color:var(--afh-ink)!important}.admin-heading p{margin:0!important;font-size:11px!important;color:#6d7482!important}.planning-notice{display:inline-flex!important;align-items:center!important;min-height:22px!important;margin-top:7px!important;padding:0 9px!important;border-radius:999px!important;font-size:10px!important;font-weight:900!important}.planning-notice.good{background:#e9fff3!important;color:#11784f!important;border:1px solid #b9e8cc!important}.planning-notice.warn{background:#fff2e4!important;color:#9c6100!important;border:1px solid #f3d1a4!important}.admin-heading button{height:34px!important;min-height:34px!important;padding:0 14px!important;border-radius:8px!important;background:var(--afh-blue)!important;border-color:var(--afh-blue)!important;font-size:11px!important;box-shadow:0 10px 22px rgba(18,105,232,.20)!important}
.admin-kpis{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:12px!important}.admin-kpi{display:flex!important;align-items:center!important;gap:13px!important;min-height:78px!important;padding:13px!important;background:#fff!important;border:1px solid var(--afh-line)!important;border-radius:11px!important;box-shadow:0 8px 20px rgba(43,35,26,.035)!important}.admin-kpi>span{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:12px!important;background:#e9f8f4!important;font-size:20px!important}.admin-kpi:nth-child(2)>span{background:#edf4ff!important}.admin-kpi:nth-child(3)>span{background:#f2edff!important}.admin-kpi:nth-child(4)>span{background:#fff4df!important}.admin-kpi strong{display:block!important;font-size:22px!important;line-height:1!important;color:#082b79!important}.admin-kpi b{display:block!important;margin-top:5px!important;font-size:10.5px!important;color:#26324a!important}.admin-kpi small{display:block!important;margin-top:6px!important;font-size:9.5px!important;color:var(--afh-green)!important;font-weight:900!important}.admin-grid{display:grid!important;grid-template-columns:2fr 1fr 1fr!important;gap:12px!important;align-items:start!important}.admin-wide{grid-column:span 2!important}.admin-panel{min-height:142px!important;padding:13px!important;background:#fff!important;border:1px solid var(--afh-line)!important;border-radius:11px!important;box-shadow:0 8px 20px rgba(43,35,26,.035)!important}.admin-panel.admin-wide{min-height:218px!important}.admin-panel header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;margin-bottom:10px!important}.admin-panel h3{margin:0!important;color:#173a9a!important;font-size:12.5px!important}.admin-panel a{color:var(--afh-blue)!important;text-decoration:none!important;font-size:10.5px!important;font-weight:900!important}.admin-table,.availability-table{width:100%!important;min-width:0!important;border-collapse:separate!important;border-spacing:0!important}.admin-table th,.admin-table td,.availability-table th,.availability-table td{padding:7px 5px!important;border-bottom:1px solid #eee5da!important;background:#fff!important;text-align:left!important;font-size:10.5px!important}.admin-table th,.availability-table th{font-size:10px!important;color:var(--afh-muted)!important;font-weight:900!important}.admin-table td small{display:block!important;margin-top:2px!important;color:var(--afh-muted)!important;font-size:9.5px!important}.time-blue{color:var(--afh-blue)!important;font-size:11px!important;font-weight:900!important}.status-pill{display:inline-flex!important;align-items:center!important;padding:4px 7px!important;border-radius:999px!important;background:#edf4ff!important;color:var(--afh-blue)!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}.status-pill.warn{background:#fff2e4!important;color:#a76500!important}.avatar{display:inline-grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:50%!important;margin-right:6px!important;background:linear-gradient(135deg,#ffe3c2,#dcecff)!important;color:#082b79!important;font-size:8.5px!important;font-weight:900!important;vertical-align:middle!important}
.availability-table th:not(:first-child),.availability-table td:not(:first-child){text-align:center!important}.avail-dot{display:inline-grid!important;place-items:center!important;width:18px!important;height:18px!important;margin:auto!important;border-radius:50%!important;font-size:10px!important;font-weight:900!important}.avail-dot.on{background:#e8fff2!important;color:#11875b!important;border:1px solid #9de3bd!important}.avail-dot.off{background:#fff0f2!important;color:#c7384b!important}.avail-dot.muted{background:#f2f4f7!important;color:#a7afbd!important}.admin-list{display:grid!important;gap:8px!important}.admin-list div{display:grid!important;grid-template-columns:1fr auto!important;gap:6px!important;align-items:center!important;padding:7px 0!important;border-bottom:1px solid #eee5da!important;font-size:11px!important}.admin-list small{grid-column:1/-1!important;color:#526078!important;font-weight:800!important}.admin-list b{padding:4px 7px!important;border-radius:999px!important;background:#fff0f2!important;color:#c7384b!important;font-size:10px!important}.hours-card{display:grid!important;grid-template-columns:84px 1fr!important;gap:12px!important;align-items:center!important}.donut{position:relative!important;display:grid!important;place-items:center!important;width:76px!important;height:76px!important;border-radius:50%!important;background:conic-gradient(#8ed6ff 0 63%,#b790ff 63% 80%,#eef3f8 80%)!important}.donut:after{content:""!important;position:absolute!important;inset:11px!important;border-radius:50%!important;background:#fff!important}.donut strong,.donut small{position:relative!important;z-index:1!important;display:block!important;text-align:center!important}.donut strong{font-size:15px!important;color:#082b79!important}.donut small{font-size:9px!important;color:#526078!important}.hours-card>div:last-child strong{display:block!important;color:var(--afh-green)!important;font-size:18px!important}.hours-card>div:last-child small{font-size:10px!important;color:var(--afh-muted)!important}.hours-card a{display:block!important;margin-top:12px!important;color:var(--afh-blue)!important;text-decoration:none!important;font-weight:900!important;font-size:10px!important}.admin-hints{display:grid!important;gap:8px!important}.admin-hints a{display:grid!important;grid-template-columns:30px 1fr auto!important;gap:8px!important;align-items:center!important;padding:9px!important;border:1px solid #dcecff!important;border-radius:10px!important;background:#f3f8ff!important;text-decoration:none!important}.admin-hints strong{display:block!important;color:var(--afh-blue)!important;font-size:11.5px!important}.admin-hints small{display:block!important;margin-top:2px!important;color:#31405c!important;font-size:10.5px!important}.admin-hints b{font-size:18px!important;color:var(--afh-blue)!important}.empty-state{margin:0!important;padding:12px!important;border:1px dashed var(--afh-line)!important;border-radius:10px!important;background:#fffaf4!important;color:#7a8291!important}
}
@media (min-width:621px) and (max-width:1180px){.admin-kpis{grid-template-columns:repeat(2,1fr)!important}.admin-grid{grid-template-columns:1fr 1fr!important}.admin-wide{grid-column:span 2!important}}
@media (max-width:620px){
body:not(.logged-out){background:#fbf6ee!important;color:var(--afh-ink)!important;padding-bottom:104px!important;overflow-x:hidden!important}.admin-web,.hero{display:none!important}body:not(.logged-out) main{width:100%!important;margin:0!important;padding:0 16px!important}.mobile-app{display:grid!important;max-width:390px!important;margin:0 auto!important;padding:18px 0 118px!important;gap:10px!important;min-height:auto!important}.mobile-top{height:38px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 18px!important;padding:0!important}.mobile-top div{display:flex!important;align-items:center!important;gap:8px!important;color:var(--afh-blue)!important;font-weight:900!important}.mobile-top div span{font-size:22px!important}.mobile-top strong{font-size:17px!important;line-height:1!important;color:var(--afh-blue)!important}.mobile-top button{width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--afh-ink)!important;font-size:21px!important}.mobile-welcome{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;margin:0!important;padding:0 0 18px!important}.mobile-welcome h2{margin:0 0 5px!important;font-size:22px!important;line-height:1.05!important;letter-spacing:-.02em!important;color:var(--afh-ink)!important;font-weight:900!important;white-space:nowrap!important}.mobile-welcome h2 .wave{font-size:.78em!important}.mobile-welcome p{margin:0!important;color:#5f6675!important;font-size:13px!important;line-height:1.25!important;font-weight:700!important}.mobile-welcome-deco{min-width:92px!important;padding-top:5px!important;text-align:right!important;font-size:28px!important;line-height:1!important;letter-spacing:2px!important}.mobile-card{padding:13px!important;border:1px solid var(--afh-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 20px rgba(44,35,25,.07)!important}.mobile-card h3{margin:0 0 11px!important;color:#173a9a!important;font-size:13px!important;font-weight:900!important;line-height:1.2!important}.mobile-shift{display:grid!important;grid-template-columns:1fr 18px!important;gap:2px 8px!important;align-items:center!important;padding:11px 13px!important;border:1px solid var(--afh-line)!important;border-radius:13px!important;background:#fffdf9!important;color:inherit!important;text-decoration:none!important}.mobile-shift strong{color:var(--afh-blue)!important;font-size:17px!important;font-weight:900!important;line-height:1.15!important;white-space:nowrap!important}.mobile-shift strong span{margin-left:8px!important;color:#202942!important;font-size:12px!important}.mobile-shift small{grid-column:1!important;margin:0!important;color:var(--afh-muted)!important;font-size:10px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.mobile-shift b{grid-column:2!important;grid-row:1/3!important;align-self:center!important;color:#536071!important;font-size:22px!important}
.mobile-tasks{display:grid!important;gap:9px!important;margin:0 0 12px!important;padding:12px!important;border:1px solid #eee2d4!important;border-radius:13px!important;background:linear-gradient(135deg,#fff8f0,#f1eaff)!important}.mobile-tasks label{display:flex!important;align-items:center!important;gap:9px!important;min-height:22px!important;color:#202942!important;font-size:11.5px!important;font-weight:800!important}.mobile-tasks input{appearance:none!important;display:grid!important;place-items:center!important;flex:0 0 auto!important;width:16px!important;height:16px!important;border:1.8px solid #607089!important;border-radius:50%!important;background:#fff!important}.mobile-tasks input:checked{background:#18b875!important;border-color:#18b875!important}.mobile-tasks input:checked::after{content:'âœ“';color:#fff;font-size:12px;font-weight:900;line-height:1}.mobile-start{width:100%!important;height:34px!important;min-height:34px!important;border:1px solid #d9caff!important;border-radius:10px!important;background:#eee6ff!important;color:#211090!important;font-size:12px!important;font-weight:900!important;box-shadow:none!important}.mobile-day p{margin:6px 0!important;color:#202942!important;font-size:11.5px!important;line-height:1.25!important;font-weight:900!important}.mobile-card .empty-state{min-height:38px!important;font-size:12px!important}.app-head{display:block!important;position:static!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.app-head .brand{display:none!important}.app-head nav{position:fixed!important;left:16px!important;right:16px!important;bottom:14px!important;z-index:40!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:4px!important;max-width:390px!important;min-height:68px!important;margin:0 auto!important;padding:8px!important;border:1px solid var(--afh-line)!important;border-radius:22px!important;background:rgba(255,253,249,.98)!important;box-shadow:0 10px 24px rgba(44,35,25,.11)!important;backdrop-filter:blur(16px)!important}.app-head nav a{display:grid!important;place-items:center!important;gap:2px!important;min-height:52px!important;padding:4px!important;border-radius:16px!important;color:transparent!important;font-size:0!important}.app-head nav a:nth-child(1){order:1}.app-head nav a:nth-child(2){order:2}.app-head nav a:nth-child(3){order:3}.app-head nav a:nth-child(4){order:4}.app-head nav a:nth-child(1)::after{content:'Start'}.app-head nav a:nth-child(2)::after{content:'EinsÃ¤tze'}.app-head nav a:nth-child(3)::after{content:'Kalender'}.app-head nav a:nth-child(4)::after{content:'Profil'}.app-head nav a:nth-child(1),.app-head nav a:nth-child(2),.app-head nav a:nth-child(3),.app-head nav a:nth-child(4){display:grid!important}.app-head .nav-button{display:none!important}.app-head nav a .nav-icon{color:#27324a!important;font-size:18px!important}.app-head nav a::after{color:#27324a!important;font-size:10.5px!important;font-weight:900!important}.app-head nav a.active{background:#edf4ff!important}.app-head nav a.active .nav-icon,.app-head nav a.active::after{color:var(--afh-blue)!important}
}

/* Mobile-only final beauty pass */
@media (max-width:620px){
  html,body{min-height:100%!important}body:not(.logged-out){background:linear-gradient(180deg,#fbf6ee 0%,#f8f1e6 100%)!important;color:#172033!important;padding-bottom:100px!important}.mobile-app{max-width:390px!important;margin:0 auto!important;padding:20px 0 114px!important;gap:11px!important}.mobile-top{height:36px!important;margin-bottom:16px!important}.mobile-top div{gap:9px!important}.mobile-top div span{font-size:21px!important}.mobile-top strong{font-size:17px!important;letter-spacing:-.01em!important}.mobile-top button{font-size:20px!important;opacity:.95!important}
  .mobile-welcome{padding:2px 0 17px!important}.mobile-welcome h2{font-size:23px!important;line-height:1.05!important;margin-bottom:6px!important}.mobile-welcome p{font-size:13px!important;color:#5f6675!important}.mobile-welcome-deco{font-size:27px!important;min-width:98px!important;filter:drop-shadow(0 4px 7px rgba(23,32,51,.06))!important}
  .mobile-card{border-radius:17px!important;border-color:#e9dac9!important;background:rgba(255,255,255,.94)!important;box-shadow:0 10px 26px rgba(50,39,25,.075)!important}.mobile-card h3{font-size:13px!important;color:#173a9a!important}.mobile-next{padding:13px!important}.mobile-shift{padding:12px 14px!important;border-radius:14px!important;background:#fffdf9!important}.mobile-shift strong{font-size:18px!important}.mobile-shift strong span{font-size:12px!important;font-weight:900!important}.mobile-shift small{font-size:10.5px!important}.mobile-task-card{padding:13px!important}.mobile-tasks{border-radius:14px!important;background:linear-gradient(135deg,#fffaf3,#f1eaff)!important}.mobile-tasks label{font-size:12px!important}.mobile-start{height:35px!important;border-radius:10px!important;background:#eee6ff!important;color:#20109b!important}.mobile-day{padding:13px!important}.mobile-day p{font-size:12px!important}.app-head nav{max-width:390px!important;min-height:66px!important;padding:8px!important;bottom:13px!important;border-radius:22px!important}.app-head nav a{min-height:50px!important;border-radius:16px!important}.app-head nav a .nav-icon{font-size:18px!important}.app-head nav a::after{font-size:10.5px!important}
}
.mobile-running{border-color:#b9e8cc!important;background:linear-gradient(135deg,#f2fff7,#ffffff)!important}.mobile-running h3{color:#11875b!important}.mobile-running p{margin:6px 0!important;color:#202942!important;font-size:12px!important;font-weight:800!important}.mobile-stop{width:100%!important;height:34px!important;margin-top:8px!important;border:1px solid #ffc6cf!important;border-radius:10px!important;background:#fff0f2!important;color:#b42335!important;font-size:12px!important;font-weight:900!important}

/* Desktop stability fix */
@media (min-width:621px){
  body:not(.logged-out) main{width:min(1240px,calc(100vw - 56px))!important;margin:26px auto!important}
  .admin-web{max-width:1240px!important;min-height:650px!important}
  .admin-topbar{grid-template-columns:1fr 280px 40px 150px!important}
  .admin-layout{grid-template-columns:180px minmax(0,1fr)!important}
  .admin-content{min-width:0!important;overflow:hidden!important}
  .admin-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .admin-grid{grid-template-columns:minmax(0,1.25fr) minmax(360px,.95fr)!important}
  .admin-wide{grid-column:auto!important}
  .admin-panel{min-width:0!important}
  .admin-table,.availability-table{table-layout:auto!important}
  .admin-sidebar .admin-nav{cursor:default!important}
}
@media (min-width:621px) and (max-width:1050px){
  .admin-topbar{grid-template-columns:1fr 220px 40px 130px!important}
  .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-grid{grid-template-columns:1fr!important}
}
.mobile-list{display:grid!important;gap:8px!important}.mobile-list-row{display:grid!important;gap:3px!important;padding:10px 12px!important;border:1px solid #eadccd!important;border-radius:12px!important;background:#fffdf9!important;text-decoration:none!important;color:#172033!important}.mobile-list-row strong{font-size:12px!important;color:#1269e8!important}.mobile-list-row span{font-size:12px!important;font-weight:900!important}.mobile-list-row small{font-size:10.5px!important;color:#687080!important}
.mobile-time-panel{display:grid!important;gap:10px!important}.mobile-time-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.mobile-time-actions button,.mobile-running-actions button,.mobile-done{height:36px!important;border:1px solid #d9caff!important;border-radius:11px!important;background:#eee6ff!important;color:#211090!important;font-size:12px!important;font-weight:900!important}.mobile-running-box{padding:12px!important;border:1px solid #b9e8cc!important;border-radius:13px!important;background:linear-gradient(135deg,#f2fff7,#ffffff)!important}.mobile-running-box h4{margin:0 0 6px!important;color:#11875b!important;font-size:13px!important}.mobile-running-box p{margin:4px 0!important;font-size:12px!important;font-weight:800!important;color:#202942!important}.mobile-running-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:10px!important}.mobile-running-actions button:last-child{background:#fff0f2!important;border-color:#ffc6cf!important;color:#b42335!important}.pause-note{display:inline-flex!important;padding:3px 8px!important;border-radius:999px!important;background:#fff2e4!important;color:#9c6100!important}.mobile-time-total{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 10px!important;border-radius:12px!important;background:#f3f8ff!important}.mobile-time-total strong{color:#1269e8!important;font-size:16px!important}.mobile-time-total span{font-size:11px!important;font-weight:900!important;color:#687080!important}.mobile-action-row{display:grid!important;grid-template-columns:1.3fr .9fr!important;gap:8px!important}.mobile-done{background:#e9fff3!important;border-color:#b9e8cc!important;color:#11784f!important}
.mobile-shift-card{margin-bottom:10px!important}.mobile-shift-card em{grid-column:1/-1!important;margin-top:4px!important;color:#a76500!important;font-style:normal!important;font-size:10.5px!important;font-weight:900!important}.mobile-action-row-next{grid-template-columns:1fr!important;gap:8px!important}.mobile-action-row-next .mobile-start,.mobile-action-row-next .mobile-done{height:38px!important;font-size:12.5px!important}.mobile-done-note{margin:8px 0 0!important;padding:9px 10px!important;border-radius:11px!important;background:#e9fff3!important;color:#11784f!important;font-size:12px!important;font-weight:900!important;text-align:center!important}
.mobile-today-focus{display:grid!important;gap:9px!important;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%)!important}.mobile-today-focus h3{margin-bottom:0!important}.mobile-today-focus>strong{display:block!important;color:#172033!important;font-size:18px!important;line-height:1.15!important;font-weight:950!important}.mobile-today-focus>span{display:block!important;color:#657085!important;font-size:12px!important;line-height:1.35!important;font-weight:850!important}.mobile-today-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin-top:2px!important}.mobile-today-stats div{display:grid!important;place-items:center!important;min-height:48px!important;padding:6px!important;border:1px solid #dbe8ff!important;border-radius:14px!important;background:#fff!important}.mobile-today-stats b{color:#1269e8!important;font-size:17px!important;line-height:1!important}.mobile-today-stats small{margin-top:3px!important;color:#657085!important;font-size:9.5px!important;font-weight:900!important}.mobile-action-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-bottom:8px!important}.mobile-action-grid a,.mobile-action-grid button{display:grid!important;place-items:center!important;min-height:38px!important;border:1px solid #dbe8ff!important;border-radius:12px!important;background:#fff!important;color:#1269e8!important;text-decoration:none!important;font-size:12px!important;font-weight:950!important}.mobile-action-grid .mobile-route-button,.mobile-action-grid .mobile-call-button{margin-top:0!important}.mobile-action-grid .mobile-call-button{border-color:#b9e8cc!important;color:#11784f!important;background:#e9fff3!important}
.mobile-time-primary{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.mobile-time-primary button{height:38px!important;border:1px solid #d9caff!important;border-radius:12px!important;background:#eee6ff!important;color:#211090!important;font-size:12.5px!important;font-weight:900!important}.mobile-time-menu{display:grid!important;gap:8px!important;margin-top:8px!important}.mobile-time-menu button{height:36px!important;border:1px solid #eadccd!important;border-radius:11px!important;background:#fffdf9!important;color:#172033!important;font-size:12px!important;font-weight:900!important}.mobile-time-correction{display:grid!important;gap:9px!important;margin-top:9px!important;padding:12px!important;border:1px solid #eadccd!important;border-radius:13px!important;background:#fffdf9!important}.mobile-time-correction label{display:grid!important;gap:4px!important;color:#526078!important;font-size:10.5px!important;font-weight:900!important}.mobile-time-correction input,.mobile-time-correction select{height:34px!important;border:1px solid #d9d0c5!important;border-radius:9px!important;padding:0 9px!important;background:#fff!important;color:#172033!important;font-size:12px!important}.mobile-time-correction .time-two{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.mobile-time-correction button{height:36px!important;border:1px solid #b9e8cc!important;border-radius:11px!important;background:#e9fff3!important;color:#11784f!important;font-size:12px!important;font-weight:900!important}
.mobile-insights{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}.mobile-insights div{display:grid!important;gap:2px!important;place-items:center!important;padding:10px 6px!important;border:1px solid #eadccd!important;border-radius:14px!important;background:#fffdf9!important;box-shadow:0 6px 16px rgba(44,35,25,.05)!important}.mobile-insights strong{font-size:16px!important;color:#1269e8!important}.mobile-insights span{font-size:10px!important;color:#687080!important;font-weight:900!important}.mobile-tip p{margin:0!important;font-size:12px!important;line-height:1.35!important;font-weight:800!important;color:#202942!important}.day-complete{background:#f2fff7!important;border-color:#b9e8cc!important}.day-complete strong,.day-complete span{color:#11784f!important}
.shift-planner-backdrop{position:fixed!important;inset:0!important;z-index:9999!important;display:grid!important;place-items:center!important;background:rgba(23,32,51,.42)!important;backdrop-filter:blur(6px)!important}.shift-planner-modal{width:min(520px,calc(100vw - 32px))!important;max-height:calc(100vh - 40px)!important;overflow:auto!important}.shift-planner-modal .fields{display:grid!important;gap:12px!important}.shift-planner-modal label{display:grid!important;gap:5px!important;font-size:12px!important;font-weight:900!important;color:#526078!important}.shift-planner-modal input,.shift-planner-modal select,.shift-planner-modal textarea{width:100%!important;border:1px solid #d9d0c5!important;border-radius:10px!important;padding:10px!important;background:#fff!important;color:#172033!important;font-size:14px!important}.shift-planner-modal .time-two{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}

/* FINAL PC Verwaltung: Planung + Auswertung gross und klickbar */
@media (min-width: 621px) {
  html, body { min-width: 1100px !important; }
  body:not(.logged-out) {
    padding: 0 !important;
    background: linear-gradient(180deg,#fbf3e6,#f7ead8) !important;
    overflow-x: auto !important;
  }
  body:not(.logged-out) main {
    width: min(1760px, calc(100vw - 72px)) !important;
    max-width: none !important;
    margin: 28px auto !important;
    padding: 0 !important;
  }
  .app-head, .mobile-app { display: none !important; pointer-events: none !important; }
  .admin-web {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 56px) !important;
    border-radius: 18px !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
  }
  .admin-topbar { height: 68px !important; grid-template-columns: 1fr 340px 44px 180px !important; }
  .admin-layout { grid-template-columns: 210px minmax(0,1fr) !important; min-height: calc(100vh - 124px) !important; }
  .admin-sidebar { padding: 22px 14px !important; }
  .admin-nav { height: 42px !important; font-size: 13px !important; cursor: pointer !important; }
  .admin-content { padding: 28px 32px !important; gap: 18px !important; overflow: visible !important; }
  .admin-heading h2 { font-size: 28px !important; }
  .admin-heading p { font-size: 13px !important; }
  .admin-heading button[data-plan-shift] {
    height: 46px !important;
    min-width: 170px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 20 !important;
  }
  .admin-kpis { grid-template-columns: repeat(4,minmax(170px,1fr)) !important; gap: 16px !important; }
  .admin-kpi { min-height: 104px !important; padding: 18px !important; }
  .admin-kpi strong { font-size: 30px !important; }
  .admin-kpi b { font-size: 13px !important; }
  .admin-kpi small { font-size: 11px !important; }
  .admin-grid { grid-template-columns: minmax(620px,1.45fr) minmax(420px,.9fr) !important; gap: 18px !important; align-items: stretch !important; }
  .admin-panel { min-height: 190px !important; padding: 18px !important; overflow: visible !important; }
  .admin-wide { grid-column: auto !important; min-height: 320px !important; }
  .admin-panel h3 { font-size: 16px !important; }
  .admin-panel a, .admin-table th, .admin-table td, .availability-table th, .availability-table td { font-size: 12px !important; }
  .admin-table td small { font-size: 11px !important; }
  .time-blue { font-size: 13px !important; }
  .status-pill { font-size: 11px !important; padding: 5px 9px !important; }
  .avatar { width: 28px !important; height: 28px !important; font-size: 10px !important; }
  .shift-planner-backdrop { z-index: 99999 !important; }
  .shift-planner-modal { width: min(620px, calc(100vw - 80px)) !important; }
}
.admin-workspace{display:grid!important;grid-template-columns:minmax(680px,1.4fr) minmax(360px,.8fr)!important;gap:18px!important}.admin-workspace .admin-panel.admin-wide{min-height:420px!important}.admin-heading .primary.small,.admin-panel .primary.small{height:38px!important;min-width:140px!important;border-radius:10px!important;font-size:13px!important;cursor:pointer!important}.admin-sidebar [data-admin-tab]{pointer-events:auto!important;cursor:pointer!important}.admin-panel button,.admin-heading button{pointer-events:auto!important;cursor:pointer!important}
@media (min-width:621px) and (max-width:1200px){.admin-workspace{grid-template-columns:1fr!important}}
.planner-client-hints,.planner-warnings{display:grid!important;gap:5px!important;padding:10px!important;border-radius:12px!important;background:#f8fbff!important;border:1px solid #dcecff!important}.planner-client-hints strong{font-size:12px!important;color:#1269e8!important}.planner-client-hints span,.planner-warnings span{font-size:12px!important;font-weight:800!important;color:#31405c!important}.planner-warnings span{color:#a76500!important}.planner-warnings .good{color:#11784f!important}.panel-actions{display:flex!important;gap:8px!important;align-items:center!important}.panel-actions .ghost.small{height:38px!important;border:1px solid #eadccd!important;border-radius:10px!important;background:#fffdf9!important;color:#172033!important;font-size:13px!important;font-weight:900!important;cursor:pointer!important}.customer-detail-list div{align-items:start!important}.customer-detail-list small b{color:#173a9a!important}
.mobile-admin-actions{display:grid!important;gap:9px!important}.mobile-admin-actions button{height:38px!important;border:1px solid #d9caff!important;border-radius:12px!important;background:#eee6ff!important;color:#211090!important;font-size:12.5px!important;font-weight:900!important}.mobile-admin-actions button:last-child{background:#fffdf9!important;border-color:#eadccd!important;color:#172033!important}.mobile-admin-app .mobile-list-row{align-items:start!important}.mobile-admin-app .mobile-insights strong{font-size:15px!important}

/* Mobile time menus must stay closed until tapped */
@media (max-width:620px){
  #timeCaptureMenu[hidden],
  #timeCorrectionForm[hidden],
  .mobile-time-menu[hidden],
  .mobile-time-correction[hidden]{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
  .mobile-time-panel{padding-bottom:18px!important}
  .mobile-app{padding-bottom:170px!important}
  .mobile-time-primary{margin-bottom:0!important}
  .mobile-time-menu:not([hidden]),.mobile-time-correction:not([hidden]){animation:afhSlideOpen .16s ease-out!important}
  @keyframes afhSlideOpen{from{opacity:.3;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
}

/* Mobile user notes and todos */
@media (max-width:620px){
  .mobile-notes-todos{gap:9px!important}
  .mobile-mini-form{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;margin-bottom:8px!important}
  .mobile-mini-form input,.mobile-mini-form select{height:36px!important;border:1px solid #d9d0c5!important;border-radius:10px!important;padding:0 10px!important;background:#fff!important;color:#172033!important;font-size:12px!important;font-weight:800!important;min-width:0!important}
  .mobile-mini-form button{height:36px!important;border:1px solid #d9caff!important;border-radius:10px!important;background:#eee6ff!important;color:#211090!important;font-size:11.5px!important;font-weight:900!important;padding:0 10px!important}
  .mobile-assign-form{grid-template-columns:1fr 104px auto!important;padding:9px!important;border:1px solid #eadccd!important;border-radius:13px!important;background:#fffdf9!important}
  .mobile-todo-row{display:grid!important;grid-template-columns:22px 1fr!important;gap:9px!important;align-items:center!important;padding:10px 12px!important;border:1px solid #eadccd!important;border-radius:12px!important;background:#fffdf9!important;color:#172033!important}
  .mobile-todo-row input{width:18px!important;height:18px!important;accent-color:#18b875!important}
  .mobile-todo-row strong,.mobile-todo-row small{display:block!important}.mobile-todo-row strong{font-size:12px!important}.mobile-todo-row small{font-size:10.5px!important;color:#687080!important;margin-top:2px!important}
}

/* Mobile shift detail sheet */
@media (max-width:620px){
  .mobile-shift-card{width:100%!important;border:1px solid #eadccd!important;text-align:left!important;cursor:pointer!important}
  .mobile-detail-backdrop{position:fixed!important;inset:0!important;z-index:99999!important;background:rgba(23,32,51,.38)!important;display:grid!important;align-items:end!important;padding:14px!important;backdrop-filter:blur(5px)!important}
  .mobile-detail-sheet{max-width:390px!important;width:100%!important;max-height:86vh!important;margin:0 auto!important;overflow:auto!important;border:1px solid #eadccd!important;border-radius:24px 24px 18px 18px!important;background:#fffdf9!important;box-shadow:0 20px 48px rgba(23,32,51,.22)!important;padding:16px!important;display:grid!important;gap:10px!important}
  .mobile-detail-sheet header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.mobile-detail-sheet h2{margin:0!important;font-size:20px!important;color:#172033!important}.mobile-detail-sheet header button{width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;background:#edf4ff!important;color:#1269e8!important;font-size:22px!important;font-weight:900!important}.mobile-detail-meta{display:grid!important;gap:2px!important;padding:10px!important;border-radius:13px!important;background:#f3f8ff!important}.mobile-detail-meta strong{font-size:12px!important;color:#1269e8!important}.mobile-detail-meta span{font-size:11px!important;color:#526078!important;font-weight:900!important}.mobile-detail-sheet article{display:grid!important;gap:6px!important;padding:11px!important;border:1px solid #eadccd!important;border-radius:14px!important;background:#fff!important}.mobile-detail-sheet h3{margin:0!important;font-size:13px!important;color:#173a9a!important}.mobile-detail-sheet p,.mobile-detail-sheet li{margin:0!important;font-size:12px!important;line-height:1.35!important;font-weight:800!important;color:#202942!important}.mobile-detail-sheet ul{margin:0!important;padding-left:18px!important}.mobile-route-button{display:grid!important;place-items:center!important;height:38px!important;margin-top:4px!important;border-radius:11px!important;background:#1269e8!important;color:#fff!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;box-shadow:0 8px 20px rgba(18,105,232,.25)!important}
}

/* Stop confirmation */
@media (max-width:620px){
  .stop-confirm-sheet article p{font-size:12.5px!important;line-height:1.4!important;color:#202942!important;font-weight:800!important}.stop-confirm-actions{display:grid!important;grid-template-columns:1fr 1.3fr!important;gap:9px!important}.stop-confirm-actions button{height:40px!important;border-radius:12px!important;font-size:12px!important;font-weight:900!important}.stop-confirm-actions button:first-child{border:1px solid #eadccd!important;background:#fffdf9!important;color:#172033!important}.stop-confirm-actions button:last-child{border:1px solid #ffc6cf!important;background:#fff0f2!important;color:#b42335!important}
}
@media (max-width:620px){.mobile-reactivate-button{height:40px!important;border:1px solid #b9e8cc!important;border-radius:12px!important;background:#e9fff3!important;color:#11784f!important;font-size:12.5px!important;font-weight:900!important}}

/* Flyer route planning */
.flyer-layout{display:grid!important;grid-template-columns:minmax(320px,.55fr) minmax(520px,1.45fr)!important;gap:18px!important;align-items:start!important}.flyer-import-form{display:grid!important;gap:12px!important}.flyer-import-form label{display:grid!important;gap:6px!important;color:#526078!important;font-size:12px!important;font-weight:900!important}.flyer-import-form input,.flyer-import-form select{height:40px!important;border:1px solid #d9d0c5!important;border-radius:10px!important;padding:0 10px!important;background:#fff!important;color:#172033!important;font-size:13px!important}.flyer-import-form input[type=file]{height:auto!important;padding:9px!important}.flyer-route-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.flyer-route-card{display:grid!important;gap:10px!important;padding:13px!important;border:1px solid #eadccd!important;border-radius:12px!important;background:#fffdf9!important}.flyer-route-card header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin:0!important}.flyer-route-card strong,.flyer-route-card small{display:block!important}.flyer-route-card strong{font-size:14px!important;color:#173a9a!important}.flyer-route-card small{margin-top:3px!important;color:#687080!important;font-size:11px!important;font-weight:900!important}.flyer-route-card header span{display:inline-flex!important;align-items:center!important;min-height:24px!important;padding:0 8px!important;border-radius:999px!important;background:#fff2e4!important;color:#9c6100!important;font-size:10px!important;font-weight:900!important;white-space:nowrap!important}.flyer-route-card header span.done{background:#e9fff3!important;color:#11784f!important}.flyer-route-card header span.paused{background:#eef4ff!important;color:#173a9a!important}.flyer-route-card p{margin:0!important;color:#202942!important;font-size:12px!important;line-height:1.35!important;font-weight:800!important}.flyer-route-card footer{display:grid!important;grid-template-columns:1fr auto auto auto!important;gap:8px!important}.map-button{display:grid!important;place-items:center!important;min-height:36px!important;border-radius:10px!important;background:#1269e8!important;color:#fff!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important}.flyer-route-card button{height:36px!important;min-height:36px!important;border-radius:10px!important;font-size:12px!important}.flyer-route-card .danger,.mobile-reactivate-button.danger{background:#fff0f2!important;border-color:#ffc6cf!important;color:#b42335!important}.flyer-show-all{width:100%!important;border:1px solid #d9caff!important;background:#eee6ff!important;color:#211090!important}.flyer-target-list{display:grid!important;gap:7px!important;margin:0!important;padding:0!important;list-style:none!important}.flyer-target-list li{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important;padding:8px!important;border:1px solid #eadccd!important;border-radius:10px!important;background:#fff!important}.flyer-target-list li.target-done{background:#f2fff7!important;border-color:#b9e8cc!important}.flyer-target-list li.target-done strong{color:#11784f!important}.flyer-target-list li.target-skipped{background:#fff8e8!important;border-color:#ffd98b!important}.flyer-target-list li.target-skipped strong{color:#9c6100!important}.flyer-target-list li.target-postponed{background:#eef4ff!important;border-color:#bdd5ff!important}.flyer-target-list li.target-postponed strong{color:#173a9a!important}.flyer-target-list strong{font-size:12px!important;color:#172033!important}.flyer-target-list span,.flyer-target-list small{display:block!important;margin-top:2px!important;color:#526078!important;font-size:10.5px!important;font-weight:800!important;line-height:1.25!important}.flyer-target-actions{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;min-width:124px!important}.flyer-target-list a,.flyer-target-actions button{display:grid!important;place-items:center!important;min-height:30px!important;padding:0 9px!important;border-radius:9px!important;background:#edf4ff!important;color:#1269e8!important;text-decoration:none!important;font-size:10.5px!important;font-weight:900!important;white-space:nowrap!important;border:1px solid #dbe8ff!important}.flyer-target-actions button:nth-child(2){background:#e9fff3!important;color:#11784f!important;border-color:#b9e8cc!important}.flyer-target-actions button:nth-child(3){background:#fff8e8!important;color:#9c6100!important;border-color:#ffd98b!important}.flyer-target-actions button:nth-child(4){background:#eef4ff!important;color:#173a9a!important;border-color:#bdd5ff!important}.flyer-target-actions button:nth-child(5){background:#fffdf9!important;color:#172033!important;border-color:#eadccd!important}
@media (min-width:621px) and (max-width:1200px){.flyer-layout{grid-template-columns:1fr!important}.flyer-route-grid{grid-template-columns:1fr!important}}
@media (max-width:620px){.mobile-flyer-routes .mobile-list-row{gap:7px!important}.mobile-flyer-routes .mobile-list-row .mobile-route-button{margin-top:2px!important}.mobile-flyer-routes .mobile-list-row .mobile-reactivate-button{height:36px!important;font-size:12px!important}.flyer-target-list.compact{gap:6px!important}.flyer-target-list.compact li{grid-template-columns:1fr!important;padding:8px!important}.flyer-target-actions{grid-template-columns:1fr!important;min-width:0!important}.flyer-target-list.compact a,.flyer-target-list.compact button{height:32px!important;width:100%!important}}

/* Mobile comfort upgrade: Aufgaben tab, quick actions, shift feedback */
@media (max-width:620px){
  .app-head nav{grid-template-columns:repeat(5,1fr)!important;max-width:420px!important}
  .app-head nav a{font-size:0!important;min-width:0!important;padding:4px 2px!important}
  .app-head nav a::after{font-size:9.5px!important;line-height:1!important}
  .app-head nav a:nth-child(1)::after{content:'Start'}
  .app-head nav a:nth-child(2)::after{content:'EinsÃ¤tze'}
  .app-head nav a:nth-child(3)::after{content:'Zeiten'}
  .app-head nav a:nth-child(4)::after{content:'Aufgaben'}
  .app-head nav a:nth-child(5)::after{content:'Profil'}
  .mobile-fab-wrap{position:fixed!important;right:18px!important;bottom:92px!important;z-index:9998!important;display:grid!important;gap:8px!important;justify-items:end!important}.mobile-fab{width:52px!important;height:52px!important;border:0!important;border-radius:50%!important;background:#1269e8!important;color:#fff!important;font-size:28px!important;font-weight:900!important;box-shadow:0 12px 28px rgba(18,105,232,.34)!important}.mobile-quick-menu{display:grid!important;gap:7px!important;padding:9px!important;border:1px solid #dbe8ff!important;border-radius:16px!important;background:#fff!important;box-shadow:0 16px 36px rgba(23,32,51,.18)!important}.mobile-quick-menu[hidden]{display:none!important}.mobile-quick-menu button{height:36px!important;min-width:150px!important;border:1px solid #eadccd!important;border-radius:11px!important;background:#fffdf9!important;color:#172033!important;font-size:12px!important;font-weight:900!important;text-align:left!important;padding:0 12px!important}.mobile-detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.mobile-call-button{display:grid!important;place-items:center!important;height:38px!important;margin-top:4px!important;border-radius:11px!important;background:#e9fff3!important;color:#11784f!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important}.mobile-shift-note-form{display:grid!important;gap:8px!important}.mobile-shift-note-form textarea{border:1px solid #d9d0c5!important;border-radius:11px!important;padding:10px!important;font-size:12px!important;color:#172033!important;background:#fff!important}.mobile-shift-note-form button{height:36px!important;border:1px solid #d9caff!important;border-radius:11px!important;background:#eee6ff!important;color:#211090!important;font-size:12px!important;font-weight:900!important}.shift-note-line{padding:7px 9px!important;border-radius:10px!important;background:#f3f8ff!important;color:#202942!important;font-size:12px!important;font-weight:800!important}
}

/* PWA install prompt */
.pwa-install-card{position:fixed;left:16px;right:16px;bottom:92px;z-index:100000;max-width:420px;margin:0 auto;padding:14px;border:1px solid #dbe8ff;border-radius:18px;background:#fff;box-shadow:0 18px 42px rgba(23,32,51,.22);display:grid;gap:8px}.pwa-install-card strong{font-size:15px;color:#172033}.pwa-install-card p{margin:0;color:#526078;font-size:12px;font-weight:800;line-height:1.35}.pwa-install-card div{display:grid;grid-template-columns:1fr 1fr auto;gap:7px}.pwa-install-card button{height:34px;border-radius:10px;border:1px solid #d9caff;background:#eee6ff;color:#211090;font-size:11px;font-weight:900}.pwa-install-card button:last-child{background:#fffdf9;border-color:#eadccd;color:#172033}

/* FINAL mobile nav order fix */
@media (max-width:620px){
  .app-head nav{grid-template-columns:repeat(5,1fr)!important;max-width:430px!important}
  .app-head nav a[data-mobile-tab]{display:grid!important;order:unset!important}
  .app-head nav a[data-mobile-tab="start"]{order:1!important}
  .app-head nav a[data-mobile-tab="shifts"]{order:2!important}
  .app-head nav a[data-mobile-tab="times"]{order:3!important}
  .app-head nav a[data-mobile-tab="tasks"]{order:4!important}
  .app-head nav a[data-mobile-tab="profile"]{order:5!important}
  .app-head nav a[data-mobile-tab="start"]::after{content:'Start'!important}
  .app-head nav a[data-mobile-tab="shifts"]::after{content:'EinsÃ¤tze'!important}
  .app-head nav a[data-mobile-tab="times"]::after{content:'Zeiten'!important}
  .app-head nav a[data-mobile-tab="tasks"]::after{content:'Aufgaben'!important}
  .app-head nav a[data-mobile-tab="profile"]::after{content:'Profil'!important}
}
@media (max-width:620px){.pwa-inline-card{border-color:#dbe8ff!important;background:linear-gradient(135deg,#edf4ff,#fff)!important}.pwa-inline-card p{margin:0 0 10px!important;font-size:12px!important;color:#526078!important;font-weight:800!important}.pwa-inline-card button{height:38px!important;border:1px solid #1269e8!important;border-radius:12px!important;background:#1269e8!important;color:#fff!important;font-size:12px!important;font-weight:900!important}}
@media (max-width:620px){.drive-distance{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;padding:5px 9px!important;border-radius:999px!important;background:#edf4ff!important;color:#1269e8!important;font-size:12px!important;font-weight:900!important}}

/* Final mobile time panel behavior */
@media (max-width:620px){
  .app-head nav a[data-mobile-tab="times"]::after{content:'Zeiten'!important}
  .mobile-time-primary button.active{background:#ddd0ff!important;border-color:#c5adff!important;color:#211090!important;box-shadow:inset 0 0 0 1px rgba(33,16,144,.12)!important}
  .mobile-time-menu,.mobile-time-correction{margin-top:10px!important}
  .mobile-time-menu button{text-align:center!important}
  .mobile-app{padding-bottom:230px!important}
  .mobile-time-panel{margin-bottom:34px!important}
}

/* Einsatzplanung Upgrade */
.planning-layout{display:grid!important;grid-template-columns:minmax(760px,1.45fr) minmax(380px,.8fr)!important;gap:18px!important;align-items:start!important}.planning-main{min-height:360px!important}.planning-week-board{display:grid!important;grid-template-columns:repeat(7,minmax(120px,1fr))!important;gap:10px!important;overflow-x:auto!important;padding-bottom:6px!important}.planning-day{display:grid!important;align-content:start!important;gap:8px!important;min-height:260px!important;padding:10px!important;border:1px solid #eadccd!important;border-radius:14px!important;background:#fffdf9!important}.planning-day header{display:flex!important;align-items:center!important;justify-content:space-between!important}.planning-day header strong{font-size:12px!important;color:#172033!important}.planning-day header span{display:grid!important;place-items:center!important;min-width:22px!important;height:22px!important;border-radius:999px!important;background:#eaf2ff!important;color:#1269e8!important;font-size:11px!important;font-weight:900!important}.planning-day p{font-size:11px!important;color:#7a8496!important;margin:6px 0!important}.planning-shift-card{display:grid!important;text-align:left!important;gap:2px!important;width:100%!important;padding:9px!important;border:1px solid #e0d2c4!important;border-radius:11px!important;background:#fff!important;color:#172033!important;cursor:pointer!important}.planning-shift-card:hover{border-color:#1269e8!important;box-shadow:0 8px 18px rgba(18,105,232,.12)!important}.planning-shift-card b{font-size:11px!important;color:#1269e8!important}.planning-shift-card strong{font-size:12px!important}.planning-shift-card small{font-size:10.5px!important;color:#657085!important}.plan-chip{display:inline-flex!important;justify-content:center!important;width:max-content!important;margin-top:4px!important;padding:3px 7px!important;border-radius:999px!important;font-size:10px!important;font-weight:900!important}.plan-chip.ok{background:#e9fff3!important;color:#11784f!important}.plan-chip.warn{background:#fff2d9!important;color:#a76500!important}.plan-chip.active{background:#eaf2ff!important;color:#1269e8!important}.plan-chip.done{background:#eef2f7!important;color:#657085!important}.capacity-table{width:100%!important;border-collapse:collapse!important}.capacity-table th,.capacity-table td{padding:9px!important;border-bottom:1px solid #eee2d4!important;font-size:12px!important;text-align:center!important}.capacity-table th:first-child,.capacity-table td:first-child{text-align:left!important;font-weight:900!important}.capacity-table td.free{color:#11784f!important;background:#f2fff7!important}.capacity-table td.used{color:#1269e8!important;background:#f3f8ff!important}.capacity-table td.over{color:#b42335!important;background:#fff0f2!important;font-weight:900!important}.missing-client{position:relative!important;padding-right:84px!important}.missing-client button{position:absolute!important;right:10px!important;top:10px!important;height:30px!important;border:1px solid #c5adff!important;border-radius:9px!important;background:#eee6ff!important;color:#211090!important;font-size:12px!important;font-weight:900!important;cursor:pointer!important}
@media (min-width:621px) and (max-width:1320px){.planning-layout{grid-template-columns:1fr!important}.planning-week-board{grid-template-columns:repeat(4,minmax(150px,1fr))!important}}

/* Portal clickability hardening */
@media (min-width:621px){
  .admin-web,.admin-web *{pointer-events:auto!important}
  .app-head,.mobile-app,.mobile-fab-wrap,.mobile-quick-menu{pointer-events:none!important}
  .pwa-install-card,.pwa-notification-card{display:none!important}
  .admin-sidebar a,.admin-content button,.admin-content a,.planning-shift-card,.missing-client button{cursor:pointer!important;position:relative!important;z-index:5!important}
  .admin-content{position:relative!important;z-index:4!important}
}
.shift-detail-admin-actions{display:grid!important;gap:8px!important;margin-top:10px!important}.shift-detail-admin-actions button,.shift-planner-actions button{height:38px!important;border:1px solid #d9caff!important;border-radius:11px!important;background:#eee6ff!important;color:#211090!important;font-size:12px!important;font-weight:900!important;cursor:pointer!important}.shift-detail-admin-actions .danger,.shift-planner-actions .danger{background:#fff0f2!important;border-color:#ffc6cf!important;color:#b42335!important}.shift-planner-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:12px!important}

/* Kundenverwaltung bedienbar */
.clients-workspace>header{display:flex!important;align-items:center!important;justify-content:space-between!important}.client-card-grid{display:grid!important;grid-template-columns:repeat(2,minmax(360px,1fr))!important;gap:14px!important}.client-card{display:grid!important;gap:10px!important;padding:16px!important;border:1px solid #eadccd!important;border-radius:16px!important;background:#fffdf9!important;box-shadow:0 8px 20px rgba(44,35,25,.04)!important}.client-card header{display:flex!important;justify-content:space-between!important;gap:12px!important;border:0!important;padding:0!important}.client-card header strong{font-size:15px!important;color:#172033!important}.client-card header small{display:block!important;margin-top:3px!important;font-size:11px!important;color:#657085!important}.client-card header span{height:24px!important;padding:5px 9px!important;border-radius:999px!important;background:#eee6ff!important;color:#211090!important;font-size:11px!important;font-weight:900!important;white-space:nowrap!important}.client-card-body{display:grid!important;gap:5px!important}.client-card-body p{margin:0!important;font-size:12px!important;line-height:1.35!important;color:#2d374d!important}.client-card-body b{color:#173a9a!important}.client-card footer{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.client-card footer button{height:34px!important;border:1px solid #d9caff!important;border-radius:10px!important;background:#eee6ff!important;color:#211090!important;font-size:12px!important;font-weight:900!important;cursor:pointer!important;padding:0 12px!important}.client-card footer button:first-child{background:#1269e8!important;border-color:#1269e8!important;color:#fff!important}.client-card footer .danger{background:#fff0f2!important;border-color:#ffc6cf!important;color:#b42335!important}.client-editor-modal{width:min(680px,calc(100vw - 80px))!important}@media (max-width:1100px){.client-card-grid{grid-template-columns:1fr!important}}

/* Monatsplanung und Bearbeiten */
.planning-month-label{margin:-6px 0 12px!important;color:#173a9a!important;font-size:14px!important;font-weight:900!important}.planning-week-board{grid-template-columns:repeat(7,minmax(130px,1fr))!important;max-height:720px!important;overflow:auto!important}.planning-day{min-height:150px!important}.planning-day header strong{font-size:11px!important}.planning-main{overflow:auto!important}.planning-conflict-row{position:relative!important;padding-right:78px!important}.planning-conflict-row button{position:absolute!important;right:10px!important;top:10px!important;height:28px!important;border:1px solid #ffc6cf!important;border-radius:999px!important;background:#fff0f2!important;color:#b42335!important;font-size:11px!important;font-weight:900!important;cursor:pointer!important}.planning-shift-card{user-select:none!important}.planning-shift-card:after{content:'Klicken zum Bearbeiten'!important;font-size:9px!important;color:#7a8496!important;margin-top:2px!important}

/* Reload/Auth stabilisieren */
body.auth-loading .login-screen{display:none!important}
body.auth-loading .app-head,body.auth-loading main{display:none!important}
body.auth-loading::before{content:'';position:fixed;inset:0;background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.86),rgba(255,255,255,0) 30%),linear-gradient(180deg,#fbf3e6,#f8eee0);z-index:999998}
body.auth-loading::after{content:'';position:fixed;left:50%;top:50%;width:78px;height:66px;border:3px solid #141414;border-radius:52% 52% 48% 48%;background:radial-gradient(circle at 28% 34%,#141414 0 5px,transparent 6px),radial-gradient(circle at 69% 34%,#141414 0 5px,transparent 6px),radial-gradient(circle at 36% 66%,#141414 0 5px,transparent 6px),radial-gradient(circle at 64% 68%,#141414 0 5px,transparent 6px),linear-gradient(90deg,transparent 0 47%,#141414 48% 52%,transparent 53% 100%),radial-gradient(ellipse at 50% 7%,#141414 0 18%,transparent 19%),radial-gradient(ellipse at 50% 56%,#e73545 0 61%,#bd1428 62% 100%);box-shadow:0 22px 34px rgba(86,48,24,.18);z-index:999999;animation:afh-ladybug-flight 2.2s ease-in-out infinite;transform-origin:center}
@keyframes afh-ladybug-flight{0%{transform:translate(-72px,-34px) rotate(-18deg) scale(.92)}28%{transform:translate(-34px,-58px) rotate(10deg) scale(1)}55%{transform:translate(18px,-32px) rotate(-8deg) scale(.96)}78%{transform:translate(48px,-62px) rotate(13deg) scale(1.02)}100%{transform:translate(-72px,-34px) rotate(-18deg) scale(.92)}}

/* Flyer map planning */
.flyer-workspace-nav{display:inline-grid!important;grid-template-columns:repeat(3,minmax(120px,1fr))!important;gap:4px!important;margin:0 0 14px!important;padding:4px!important;border:1px solid #dbe8ff!important;border-radius:12px!important;background:#f3f8ff!important}.flyer-workspace-nav button{height:38px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#526078!important;font-size:13px!important;font-weight:900!important;cursor:pointer!important}.flyer-workspace-nav button.active{background:#1269e8!important;color:#fff!important;box-shadow:0 6px 14px rgba(18,105,232,.16)!important}
.flyer-target-more{display:grid!important;gap:5px!important}.flyer-target-more summary{display:grid!important;place-items:center!important;min-height:30px!important;padding:0 9px!important;border:1px solid #eadccd!important;border-radius:9px!important;background:#fffdf9!important;color:#172033!important;font-size:10.5px!important;font-weight:900!important;cursor:pointer!important;list-style:none!important}.flyer-target-more summary::-webkit-details-marker{display:none!important}.flyer-target-more[open]{padding:5px!important;border:1px solid #eadccd!important;border-radius:10px!important;background:#fffdf9!important}.flyer-target-more button{width:100%!important}
.flyer-layout{grid-template-columns:minmax(320px,.45fr) minmax(640px,1fr)!important}
.flyer-map-panel,.flyer-routes-panel,.flyer-import-panel{grid-column:1/-1!important}
.flyer-location-panel{grid-column:1/-1!important}.flyer-location-panel header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}.flyer-location-panel header h3{margin:0!important;color:#173a9a!important}.flyer-location-panel header small{color:#657085!important;font-size:12px!important;font-weight:900!important}.flyer-location-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.flyer-location-grid button{display:grid!important;text-align:left!important;gap:6px!important;min-height:128px!important;padding:16px!important;border:1px solid #eadccd!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#fffdf9)!important;color:#172033!important;box-shadow:0 10px 24px rgba(50,39,25,.06)!important;cursor:pointer!important}.flyer-location-grid button:hover{border-color:#1269e8!important;box-shadow:0 14px 30px rgba(18,105,232,.12)!important}.flyer-location-grid strong{font-size:17px!important;color:#123583!important}.flyer-location-grid span{font-size:13px!important;font-weight:900!important;color:#172033!important}.flyer-location-grid small{font-size:11px!important;font-weight:900!important;color:#657085!important}
.flyer-route-card header span.active,.flyer-mobile-route-card header b.active{background:#eaf7ff!important;color:#1269e8!important}.map-button{border:1px solid #1269e8!important}.flyer-route-card button.map-button,.flyer-mobile-route-actions button:first-child{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
.flyer-map-panel>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.flyer-map-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:12px!important;min-height:460px!important}
#flyerMap{height:460px!important;min-height:460px!important;max-height:460px!important;width:100%!important;border:1px solid #dbe8ff!important;border-radius:12px!important;overflow:hidden!important;background:#eef4ff!important;z-index:1!important}
#flyerMap .leaflet-pane,#flyerMap .leaflet-tile,#flyerMap .leaflet-marker-icon,#flyerMap .leaflet-marker-shadow,#flyerMap .leaflet-tile-container,#flyerMap .leaflet-pane>svg,#flyerMap .leaflet-pane>canvas,#flyerMap .leaflet-zoom-box,#flyerMap .leaflet-image-layer,#flyerMap .leaflet-layer{position:absolute!important;left:0!important;top:0!important}#flyerMap .leaflet-container{overflow:hidden!important}#flyerMap .leaflet-tile,#flyerMap .leaflet-marker-icon,#flyerMap .leaflet-marker-shadow{user-select:none!important;-webkit-user-drag:none!important}#flyerMap .leaflet-marker-icon,#flyerMap .leaflet-marker-shadow{display:block!important}#flyerMap .leaflet-control-container .leaflet-top,#flyerMap .leaflet-control-container .leaflet-bottom{position:absolute!important;z-index:1000!important;pointer-events:none!important}#flyerMap .leaflet-top{top:0!important}#flyerMap .leaflet-right{right:0!important}#flyerMap .leaflet-bottom{bottom:0!important}#flyerMap .leaflet-left{left:0!important}#flyerMap .leaflet-control{position:relative!important;z-index:800!important;pointer-events:auto!important;float:left!important;clear:both!important}#flyerMap .leaflet-right .leaflet-control{float:right!important;margin-right:10px!important}#flyerMap .leaflet-top .leaflet-control{margin-top:10px!important}#flyerMap .leaflet-bottom .leaflet-control{margin-bottom:10px!important}#flyerMap .leaflet-left .leaflet-control{margin-left:10px!important}
#flyerMap .leaflet-attribution-flag{display:none!important}
#flyerMap .leaflet-control-zoom{border:0!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 10px 28px rgba(23,32,51,.18)!important}#flyerMap .leaflet-control-zoom a{width:36px!important;height:36px!important;line-height:36px!important;border:0!important;background:rgba(255,255,255,.94)!important;color:#172033!important;font-size:18px!important;font-weight:800!important}#flyerMap .leaflet-control-attribution{border-radius:10px 0 0 0!important;background:rgba(255,255,255,.82)!important;color:#657085!important;font-size:10px!important}.flyer-map-pin{display:grid!important;place-items:center!important;width:28px!important;height:34px!important;background:transparent!important;border:0!important}.flyer-map-pin-inner{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border:2px solid #fff!important;border-radius:50% 50% 50% 6px!important;background:#007aff!important;box-shadow:0 8px 18px rgba(0,122,255,.28)!important;transform:rotate(-45deg)!important}.flyer-map-pin-inner span{display:grid!important;place-items:center!important;min-width:16px!important;height:16px!important;border-radius:999px!important;color:#fff!important;font-size:10px!important;font-weight:900!important;transform:rotate(45deg)!important}.flyer-map-pin.selected .flyer-map-pin-inner{background:#34c759!important;box-shadow:0 8px 18px rgba(52,199,89,.32)!important}.leaflet-popup-content-wrapper{border-radius:16px!important;box-shadow:0 18px 36px rgba(23,32,51,.2)!important}.leaflet-popup-content{margin:12px!important}.leaflet-popup-tip{box-shadow:0 8px 18px rgba(23,32,51,.14)!important}
.flyer-map-route{display:grid!important;align-content:start!important;gap:8px!important;padding:12px!important;border:1px solid #eadccd!important;border-radius:12px!important;background:#fffdf9!important;max-height:460px!important;overflow:auto!important}
.flyer-map-route strong{font-size:14px!important;color:#173a9a!important}.flyer-map-route small{color:#657085!important;font-size:11px!important;font-weight:900!important}.flyer-map-route ol{display:grid!important;gap:7px!important;margin:0!important;padding:0!important;list-style:none!important}.flyer-map-route li{display:grid!important;grid-template-columns:1fr auto!important;gap:5px 8px!important;padding:8px!important;border:1px solid #eadccd!important;border-radius:10px!important;background:#fff!important}.flyer-map-route li.empty{display:block!important;color:#7a8496!important;font-size:12px!important;font-weight:800!important}.flyer-map-route li strong{font-size:12px!important;color:#172033!important}.flyer-map-route li span{font-size:10.5px!important;color:#526078!important;font-weight:800!important}.flyer-map-route li button{grid-row:1/3!important;grid-column:2!important;min-height:30px!important;border:1px solid #ffc6cf!important;border-radius:9px!important;background:#fff0f2!important;color:#b42335!important;font-size:10.5px!important;font-weight:900!important}
.flyer-map-popup{display:grid!important;gap:5px!important;min-width:190px!important}.flyer-map-popup strong{font-size:13px!important;color:#172033!important}.flyer-map-popup span,.flyer-map-popup small,.flyer-map-popup em{font-size:11px!important;color:#526078!important;font-weight:800!important;font-style:normal!important}.flyer-map-popup em{color:#1269e8!important}.flyer-map-popup button{height:32px!important;border:1px solid #1269e8!important;border-radius:9px!important;background:#1269e8!important;color:#fff!important;font-size:11px!important;font-weight:900!important}
.flyer-map-warning{display:grid!important;place-content:center!important;gap:8px!important;min-height:460px!important;padding:24px!important;text-align:center!important;background:linear-gradient(180deg,#f6fbff,#edf4ff)!important;color:#172033!important}.flyer-map-warning strong{font-size:16px!important;color:#173a9a!important}.flyer-map-warning span{max-width:520px!important;margin:0 auto!important;color:#202942!important;font-size:13px!important;font-weight:900!important;line-height:1.35!important}.flyer-map-warning small{max-width:560px!important;margin:0 auto!important;color:#657085!important;font-size:11.5px!important;font-weight:800!important;line-height:1.35!important}.flyer-map-info{display:grid!important;gap:5px!important;padding:10px!important;border:1px solid #dbe8ff!important;border-radius:11px!important;background:#f7fbff!important}.flyer-map-info.empty{border-color:#eadccd!important;background:#fffdf9!important}.flyer-map-info strong{font-size:13px!important;color:#173a9a!important}.flyer-map-info span,.flyer-map-info small{color:#526078!important;font-size:11px!important;font-weight:800!important;line-height:1.3!important}.flyer-map-info button{height:34px!important;border:1px solid #1269e8!important;border-radius:10px!important;background:#1269e8!important;color:#fff!important;font-size:11.5px!important;font-weight:900!important;cursor:pointer!important}
.checkline{display:flex!important;align-items:center!important;grid-template-columns:none!important;gap:8px!important}.checkline input{width:18px!important;height:18px!important;padding:0!important}
.flyer-map-pin{width:30px!important;height:36px!important}.flyer-map-pin.grouped{width:34px!important;height:40px!important}.flyer-map-pin-inner{width:30px!important;height:30px!important;color:#fff!important}.flyer-map-pin.grouped .flyer-map-pin-inner{width:34px!important;height:34px!important;border-radius:16px!important;transform:none!important}.flyer-map-pin.grouped .flyer-map-pin-inner span{transform:none!important;font-size:12px!important}.flyer-map-pin.medizin .flyer-map-pin-inner{background:#1269e8!important}.flyer-map-pin.apotheke .flyer-map-pin-inner{background:#10a66f!important}.flyer-map-pin.kita .flyer-map-pin-inner{background:#e0a100!important}.flyer-map-pin.pflege .flyer-map-pin-inner{background:#8a5cf6!important}.flyer-map-pin.kirche .flyer-map-pin-inner{background:#64748b!important}.flyer-map-pin.handel .flyer-map-pin-inner{background:#d4577a!important}.flyer-map-pin.sonstiges .flyer-map-pin-inner{background:#334155!important}.flyer-map-pin.done .flyer-map-pin-inner{background:#28a745!important}.flyer-map-pin.warn .flyer-map-pin-inner{background:#ff9f0a!important}.flyer-info-head{display:grid!important;grid-template-columns:auto 1fr!important;gap:8px!important;align-items:center!important}.flyer-info-head strong{display:block!important}.flyer-type{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:9px!important;background:#334155!important;color:#fff!important;font-size:12px!important;font-weight:900!important}.flyer-type.medizin{background:#1269e8!important}.flyer-type.apotheke{background:#10a66f!important}.flyer-type.kita{background:#e0a100!important}.flyer-type.pflege{background:#8a5cf6!important}.flyer-type.kirche{background:#64748b!important}.flyer-type.handel{background:#d4577a!important}.flyer-map-info.done{border-color:#a8e4bc!important;background:#f0fff5!important}.flyer-map-info.warn{border-color:#ffd28a!important;background:#fff8ea!important}.flyer-map-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}.flyer-map-actions a,.flyer-map-actions button{display:grid!important;place-items:center!important;min-height:34px!important;border-radius:10px!important;border:1px solid #dbe8ff!important;background:#edf4ff!important;color:#1269e8!important;text-decoration:none!important;font-size:11px!important;font-weight:900!important}.flyer-map-actions button:nth-child(2){background:#e9fff3!important;color:#11784f!important;border-color:#b9e8cc!important}.flyer-map-actions button:nth-child(3){background:#fff8e8!important;color:#9c6100!important;border-color:#ffd98b!important}.flyer-map-group-list{display:grid!important;gap:7px!important;margin-top:8px!important}.flyer-map-group-list button{display:grid!important;grid-template-columns:auto 1fr!important;gap:8px!important;align-items:center!important;text-align:left!important;width:100%!important;min-height:46px!important;padding:7px!important;border:1px solid #dbe8ff!important;border-radius:11px!important;background:#fff!important;color:#172033!important}.flyer-map-group-list button.done{background:#f0fff5!important;border-color:#b9e8cc!important}.flyer-map-group-list button.warn{background:#fff8e8!important;border-color:#ffd98b!important}.flyer-map-group-list strong{display:block!important;font-size:11.5px!important;color:#172033!important}.flyer-map-group-list small{font-size:10.5px!important;color:#526078!important}
.flyer-map-legend{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:-2px 0 10px!important}.flyer-map-legend span{display:flex!important;align-items:center!important;gap:5px!important;min-height:28px!important;padding:4px 7px!important;border:1px solid #e5edf8!important;border-radius:999px!important;background:#fbfdff!important;color:#334155!important;font-size:10.5px!important;font-weight:900!important}.flyer-map-legend .flyer-type{width:20px!important;height:20px!important;border-radius:7px!important;font-size:9px!important}.flyer-type.done{background:#28a745!important}.flyer-type.warn{background:#ff9f0a!important}
.flyer-extra-info{display:grid!important;gap:4px!important;padding:7px 8px!important;border-radius:10px!important;background:#fff!important;border:1px solid #e8edf5!important}.flyer-extra-info small{font-size:11px!important;color:#334155!important}.flyer-drop-editor textarea{resize:vertical!important}
.flyer-map-pin.skipped .flyer-map-pin-inner{background:#f59e0b!important}.flyer-map-pin.grouped.warn .flyer-map-pin-inner{background:#ff9f0a!important}.flyer-map-pin.grouped.done .flyer-map-pin-inner{background:#28a745!important}.flyer-map-info.skipped{border-color:#ffd98b!important;background:#fff8e8!important}.flyer-type.skipped{background:#f59e0b!important}.flyer-map-group-list button.skipped{background:#fff8e8!important;border-color:#ffd98b!important}.flyer-map-actions button[data-flyer-drop-skip]{background:#fff8e8!important;color:#9c6100!important;border-color:#ffd98b!important}.flyer-map-actions button[data-flyer-drop-note]{background:#fff2e4!important;color:#a76500!important;border-color:#ffc46b!important}
.flyer-map-pin.compact{width:18px!important;height:18px!important}.flyer-map-pin.compact .flyer-map-pin-inner{width:14px!important;height:14px!important;border-radius:50%!important;border-width:2px!important;transform:none!important;box-shadow:0 5px 12px rgba(23,32,51,.18)!important}.flyer-map-pin.compact .flyer-map-pin-inner span{display:none!important}.flyer-map-pin.grouped .flyer-map-pin-inner{box-shadow:0 10px 24px rgba(23,32,51,.22)!important}
#flyerMap .leaflet-marker-pane{z-index:650!important}#flyerMap .leaflet-marker-icon.flyer-map-pin{display:grid!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;will-change:transform!important}.flyer-map-pin-inner span{font-size:13px!important;line-height:1!important}.flyer-map-pin.apotheke .flyer-map-pin-inner span{font-size:9px!important}.flyer-map-pin.kita .flyer-map-pin-inner span{font-size:15px!important}.flyer-map-pin.selected .flyer-map-pin-inner{background:#11784f!important;box-shadow:0 0 0 4px rgba(17,120,79,.16),0 10px 20px rgba(17,120,79,.26)!important}.flyer-map-pin.selected .flyer-map-pin-inner span{font-size:12px!important}.flyer-route-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.flyer-route-summary div{display:grid!important;place-items:center!important;min-height:58px!important;border:1px solid #dbe8ff!important;border-radius:12px!important;background:#f3f8ff!important}.flyer-route-summary.active div{background:#eaf7ff!important;border-color:#aad5ff!important}.flyer-route-summary strong{font-size:18px!important;color:#1269e8!important}.flyer-route-summary span{font-size:10px!important;color:#526078!important;font-weight:900!important}.flyer-route-help{margin:0!important;padding:8px 10px!important;border-radius:11px!important;background:#fff8e8!important;color:#6b4a00!important;font-size:11px!important;font-weight:900!important;line-height:1.25!important}
html,body{max-width:100%!important;overflow-x:hidden!important;touch-action:pan-y!important;-webkit-text-size-adjust:100%!important}button,a,input,textarea,select{touch-action:manipulation!important}#flyerMap,#flyerMap.leaflet-container{touch-action:none!important;overscroll-behavior:contain!important;isolation:isolate!important}.flyer-map-panel{overflow:hidden!important}.flyer-map-shell,.flyer-map-route,.flyer-map-legend{max-width:100%!important}
html:has(body.flyer-map-fullscreen-mode),body.flyer-map-fullscreen-mode{overflow:hidden!important;position:fixed!important;width:100%!important;height:100%!important;touch-action:none!important}.flyer-map-panel.map-fullscreen-active{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:14px!important;border:0!important;border-radius:0!important;background:#fbf6ee!important;box-shadow:none!important;display:grid!important;grid-template-rows:auto auto 1fr auto!important}.flyer-map-panel.map-fullscreen-active>header{position:relative!important;z-index:5!important;margin:0!important;padding:0 0 10px!important}.flyer-map-panel.map-fullscreen-active .flyer-map-legend{position:relative!important;z-index:5!important;margin:0 0 10px!important}.flyer-map-panel.map-fullscreen-active .flyer-map-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 340px!important;gap:12px!important;min-height:0!important;height:100%!important}.flyer-map-panel.map-fullscreen-active #flyerMap{height:100%!important;min-height:0!important;max-height:none!important;border-radius:18px!important}.flyer-map-panel.map-fullscreen-active .flyer-map-route{max-height:none!important;height:100%!important;overflow:auto!important;border-radius:18px!important}.flyer-map-panel.map-fullscreen-active>p.muted{display:none!important}
@media (max-width:1100px){.flyer-map-shell{grid-template-columns:1fr!important}.flyer-map-route{max-height:none!important}.flyer-layout{grid-template-columns:1fr!important}}
@media (max-width:620px){.flyer-workspace-nav{display:grid!important;grid-template-columns:repeat(3,1fr)!important;width:100%!important}.flyer-workspace-nav button{font-size:12px!important}}
@media (max-width:620px){.flyer-location-panel{padding:14px!important}.flyer-location-panel header{display:grid!important;gap:4px!important}.flyer-location-grid{grid-template-columns:1fr!important;gap:10px!important}.flyer-location-grid button{min-height:92px!important;border-radius:18px!important;padding:14px!important}.flyer-map-panel>header .panel-actions{grid-template-columns:1fr 1fr!important}.flyer-map-panel>header .panel-actions button[data-flyer-map-create]{grid-column:1/-1!important}}

/* Flyer creation on mobile */
@media (max-width:620px){
  .app-head nav{grid-template-columns:repeat(6,1fr)!important;max-width:470px!important;left:8px!important;right:8px!important}
  .app-head nav a[data-mobile-tab="start"]{order:1!important}
  .app-head nav a[data-mobile-tab="shifts"]{order:2!important}
  .app-head nav a[data-mobile-tab="times"]{order:3!important}
  .app-head nav a[data-mobile-tab="flyers"]{order:4!important}
  .app-head nav a[data-mobile-tab="tasks"]{order:5!important}
  .app-head nav a[data-mobile-tab="profile"]{order:6!important}
  .app-head nav a[data-mobile-tab="start"]::after{content:'Start'!important}
  .app-head nav a[data-mobile-tab="shifts"]::after{content:'EinsÃ¤tze'!important}
  .app-head nav a[data-mobile-tab="times"]::after{content:'Zeiten'!important}
  .app-head nav a[data-mobile-tab="flyers"]::after{content:'Flyer'!important}
  .app-head nav a[data-mobile-tab="tasks"]::after{content:'Aufgaben'!important}
  .app-head nav a[data-mobile-tab="profile"]::after{content:'Profil'!important}
  .mobile-flyer-workspace{display:grid!important;gap:12px!important}
  .mobile-flyer-workspace .admin-panel{padding:12px!important;border:1px solid #e9dac9!important;border-radius:17px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 10px 26px rgba(50,39,25,.075)!important}
  .mobile-flyer-workspace .admin-panel header{display:grid!important;gap:8px!important;align-items:start!important}
  .mobile-flyer-workspace .panel-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .mobile-flyer-workspace .panel-actions button{height:36px!important;border-radius:11px!important;font-size:12px!important}
  .flyer-map-panel{padding:11px!important}
  .flyer-map-panel h3{font-size:15px!important;line-height:1.15!important}
  .flyer-map-panel>header{gap:9px!important}
  .flyer-map-legend{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:3px!important;margin:0 0 8px!important;scrollbar-width:none!important}
  .flyer-map-legend::-webkit-scrollbar{display:none!important}
  .flyer-map-legend span{flex:0 0 auto!important;min-height:26px!important;padding:3px 7px!important;font-size:10px!important}
  .flyer-map-shell{min-height:0!important;gap:9px!important}
  #flyerMap{height:min(62vh,390px)!important;min-height:315px!important;max-height:390px!important;border-radius:16px!important}
  .flyer-map-route{max-height:315px!important;overflow:auto!important;border-radius:14px!important;padding:10px!important;background:#ffffff!important}
  .flyer-map-route>strong{font-size:15px!important;color:#172033!important}
  .flyer-map-route>small{font-size:10.5px!important;color:#657085!important}
  .flyer-route-summary{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .flyer-route-summary div{min-height:48px!important;border-radius:11px!important}
  .flyer-route-summary strong{font-size:16px!important}
  .flyer-route-help{font-size:10.5px!important;padding:7px 9px!important}
  .flyer-map-info{padding:9px!important;border-radius:12px!important;gap:7px!important}
  .flyer-info-head{grid-template-columns:auto 1fr!important}
  .flyer-info-head strong{font-size:13px!important;color:#172033!important}
  .flyer-info-head small{font-size:10.5px!important}
  .flyer-extra-info{padding:6px 7px!important}
  .flyer-extra-info small{font-size:10.5px!important}
  .flyer-map-actions{grid-template-columns:1fr 1fr!important}
  .flyer-map-actions a,.flyer-map-actions button{min-height:32px!important;font-size:10.5px!important}
  .flyer-map-route ol{gap:6px!important}
  .flyer-map-route li{grid-template-columns:1fr!important;padding:8px!important}
  .flyer-map-route li button{grid-column:1!important;grid-row:auto!important;width:100%!important}
  .flyer-map-popup{min-width:170px!important}
  .leaflet-popup-content-wrapper{border-radius:14px!important}
  .leaflet-control-zoom{display:none!important}
  .flyer-import-form button.primary{height:40px!important;border-radius:12px!important}
}

/* AFH BEAUTY PASS 2026-06-08: visuelle Veredelung ohne Funktionsaenderungen */
:root{--afh-primary:#0a66e8;--afh-primary-dark:#0340c0;--afh-accent:#7c5ce8;--afh-success:#0b9b63;--afh-danger:#b42335;--afh-cream:#fbf6ee;--afh-surface:#fffdf9;--afh-border:#eadccd;--afh-text:#172033;--afh-soft-text:#657085;--afh-shadow-soft:0 12px 32px rgba(50,39,25,.08);--afh-shadow-lift:0 24px 70px rgba(44,35,25,.13)}
html,body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:var(--afh-text)!important}
button,.primary,.ghost,input,textarea,select,a{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease!important}
button:hover,a.admin-nav:hover,.dash-card:hover,.client-card:hover,.flyer-route-card:hover,.mobile-shift-card:hover{transform:translateY(-1px)}
button:active,a.admin-nav:active,.mobile-shift-card:active{transform:translateY(0)!important}
input:focus,textarea:focus,select:focus{outline:0!important;border-color:rgba(18,105,232,.72)!important;box-shadow:0 0 0 4px rgba(18,105,232,.12)!important}
.primary,button.primary,.mobile-route-button,.map-button{background:linear-gradient(135deg,var(--afh-primary),var(--afh-primary-dark))!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 22px rgba(18,105,232,.22)!important}
.primary:hover,button.primary:hover,.mobile-route-button:hover,.map-button:hover{box-shadow:0 14px 28px rgba(18,105,232,.28)!important}
.ghost:hover{background:#f3f8ff!important;border-color:#dbe8ff!important;color:var(--afh-primary)!important}

/* AFH Beauty: Login */
.login-screen{background:radial-gradient(circle at 20% 15%,rgba(18,105,232,.14),transparent 28%),radial-gradient(circle at 85% 20%,rgba(124,92,232,.13),transparent 26%),linear-gradient(145deg,#fff8ef 0%,#f7ead8 100%)!important}
.login-card{position:relative!important;overflow:hidden!important;border:1px solid rgba(234,220,205,.88)!important;border-radius:28px!important;padding:30px!important;background:rgba(255,253,249,.92)!important;box-shadow:0 28px 80px rgba(44,35,25,.16)!important;backdrop-filter:blur(16px)!important}
.login-card::before{content:"Haushaltshilfen Plan"!important;position:absolute!important;right:-42px!important;top:28px!important;transform:rotate(38deg)!important;color:rgba(18,105,232,.055)!important;font-size:44px!important;font-weight:950!important;letter-spacing:-.04em!important;pointer-events:none!important}
.login-card h2{margin:0!important;text-align:center!important;font-size:28px!important;letter-spacing:-.035em!important}
.login-card h2::after{content:"Einsatzplanung, Zeiten & Teamverwaltung"!important;display:block!important;margin-top:7px!important;color:var(--afh-soft-text)!important;font-size:13px!important;font-weight:750!important;letter-spacing:0!important}
.login-card label{color:#526078!important;font-size:12px!important;letter-spacing:.01em!important}.login-card input{min-height:48px!important;border-radius:14px!important;background:#fff!important}.login-card .primary{min-height:50px!important;border-radius:15px!important;font-size:15px!important}.login-symbol{filter:drop-shadow(0 12px 18px rgba(23,32,51,.12))!important}

/* AFH Beauty: Desktop Admin */
@media (min-width:621px){body:not(.logged-out){background:radial-gradient(circle at 12% -8%,rgba(18,105,232,.12),transparent 28%),radial-gradient(circle at 94% 0%,rgba(124,92,232,.10),transparent 25%),linear-gradient(180deg,#fff7ec 0%,#f6eadb 100%)!important}.admin-web{border:1px solid rgba(234,220,205,.82)!important;border-radius:26px!important;box-shadow:var(--afh-shadow-lift)!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(12px)!important;overflow:hidden!important}.admin-topbar{background:rgba(255,253,249,.92)!important;border-bottom:1px solid rgba(234,220,205,.84)!important;padding-left:26px!important;padding-right:26px!important}.admin-logo strong{font-size:16px!important;letter-spacing:-.02em!important}.admin-logo span{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:12px!important;background:#fff2e4!important;box-shadow:inset 0 0 0 1px rgba(234,220,205,.8)!important}.admin-search{height:40px!important;border-radius:14px!important;background:#fff!important;box-shadow:inset 0 0 0 1px rgba(234,220,205,.32)!important}.admin-user>span{box-shadow:0 9px 20px rgba(124,92,232,.24)!important}.admin-layout{background:linear-gradient(90deg,#fffbf6 0%,#fff 100%)!important}.admin-sidebar{background:linear-gradient(180deg,#fffdf9 0%,#fff7ee 100%)!important;border-right:1px solid rgba(234,220,205,.82)!important}.admin-nav{border:1px solid transparent!important;border-radius:14px!important;color:#31405c!important}.admin-nav:hover{background:#fff!important;border-color:var(--afh-border)!important;box-shadow:0 8px 18px rgba(44,35,25,.06)!important;color:var(--afh-primary)!important}.admin-nav.active{background:linear-gradient(135deg,#edf4ff,#fff)!important;border-color:#dbe8ff!important;color:var(--afh-primary)!important;box-shadow:inset 4px 0 0 var(--afh-primary),0 10px 24px rgba(18,105,232,.10)!important}.admin-support{border-radius:18px!important;background:linear-gradient(135deg,#fff8ef,#fff)!important;box-shadow:0 10px 24px rgba(44,35,25,.055)!important}.admin-content{background:linear-gradient(180deg,#ffffff 0%,#fffdf9 100%)!important}.admin-heading h2{letter-spacing:-.04em!important;color:#121b2f!important}.admin-heading p{color:var(--afh-soft-text)!important;font-weight:800!important}.admin-kpi,.admin-panel,.client-card,.flyer-route-card{border-color:rgba(234,220,205,.88)!important;border-radius:18px!important;background:rgba(255,255,255,.94)!important;box-shadow:var(--afh-shadow-soft)!important}.admin-kpi{position:relative!important;overflow:hidden!important}.admin-kpi::after{content:""!important;position:absolute!important;inset:auto -24px -36px auto!important;width:92px!important;height:92px!important;border-radius:50%!important;background:rgba(18,105,232,.055)!important}.admin-kpi>span{border-radius:16px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important}.admin-kpi strong{letter-spacing:-.045em!important}.admin-panel header{padding-bottom:10px!important;border-bottom:1px solid rgba(234,220,205,.62)!important}.admin-panel h3{color:#123583!important;letter-spacing:-.01em!important}.admin-table th,.availability-table th{background:#f8fbff!important;color:#526078!important}.admin-table tbody tr:hover td,.availability-table tbody tr:hover td{background:#fbfdff!important}.status-pill,.plan-chip,.planning-notice,.drive-distance{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)!important}.planning-shift-card,.mobile-list-row,.flyer-target-list li{box-shadow:0 6px 16px rgba(44,35,25,.045)!important}.planning-shift-card:hover{transform:translateY(-1px)!important;box-shadow:0 14px 26px rgba(18,105,232,.14)!important}}

/* AFH Beauty: Mobile App */
@media (max-width:620px){body:not(.logged-out){background:radial-gradient(circle at 22% -8%,rgba(18,105,232,.14),transparent 30%),radial-gradient(circle at 100% 2%,rgba(124,92,232,.10),transparent 24%),linear-gradient(180deg,#fff8ef 0%,#f7eadb 100%)!important}.mobile-app{padding-left:2px!important;padding-right:2px!important}.mobile-top strong{letter-spacing:-.025em!important}.mobile-top div span{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:13px!important;background:#fff2e4!important;box-shadow:inset 0 0 0 1px rgba(234,220,205,.76),0 8px 16px rgba(44,35,25,.06)!important;font-size:18px!important}.mobile-welcome{margin:0 2px!important;padding:8px 2px 18px!important}.mobile-welcome h2{color:#101a2f!important;letter-spacing:-.045em!important}.mobile-welcome-deco{opacity:.92!important;transform:rotate(-3deg)!important}.mobile-card,.mobile-flyer-workspace .admin-panel{border:1px solid rgba(234,220,205,.9)!important;border-radius:22px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 14px 34px rgba(50,39,25,.09)!important;backdrop-filter:blur(8px)!important}.mobile-card h3{color:#123583!important;font-size:13.5px!important;letter-spacing:-.01em!important}.mobile-next{background:linear-gradient(180deg,#ffffff 0%,#fffaf4 100%)!important}.mobile-shift,.mobile-list-row,.mobile-todo-row{border-color:rgba(234,220,205,.9)!important;border-radius:16px!important;background:#fffdf9!important}.mobile-shift strong{letter-spacing:-.035em!important}.mobile-start,.mobile-time-primary button,.mobile-time-actions button,.mobile-admin-actions button{border-radius:14px!important;background:linear-gradient(135deg,#f0eaff,#fff)!important;border-color:#d9caff!important;box-shadow:0 8px 18px rgba(124,92,232,.10)!important}.mobile-done,.mobile-reactivate-button{border-radius:14px!important;background:linear-gradient(135deg,#e9fff3,#fff)!important;box-shadow:0 8px 18px rgba(11,155,99,.10)!important}.app-head nav{border-radius:26px!important;border-color:rgba(234,220,205,.94)!important;background:rgba(255,253,249,.94)!important;box-shadow:0 18px 42px rgba(44,35,25,.18)!important}.app-head nav a{border:1px solid transparent!important}.app-head nav a.active{background:linear-gradient(180deg,#edf4ff,#ffffff)!important;border-color:#dbe8ff!important;box-shadow:0 8px 18px rgba(18,105,232,.11)!important}.mobile-fab{background:linear-gradient(135deg,var(--afh-primary),var(--afh-accent))!important;box-shadow:0 18px 38px rgba(18,105,232,.34)!important}.mobile-detail-sheet,.shift-planner-modal,.modal{border-radius:26px!important;box-shadow:0 26px 70px rgba(23,32,51,.24)!important}.pwa-install-card{border-radius:22px!important;box-shadow:0 24px 54px rgba(23,32,51,.22)!important}}

/* AFH FIX 2026-06-08: Navigation im Login sicher ausblenden */
body.logged-out .app-head,
body.logged-out .app-head nav,
body.logged-out main,
body.logged-out .mobile-app,
body.logged-out .admin-web,
body.auth-loading .app-head,
body.auth-loading .app-head nav,
body.auth-loading main,
body.auth-loading .mobile-app,
body.auth-loading .admin-web{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.logged-out .login-screen{
  display:grid!important;
  visibility:visible!important;
}

/* AFH FIX 2026-06-08: aktiven Routenplanungszustand sichtbar machen */
[data-flyer-map-create].route-planning-active{
  background:linear-gradient(135deg,#fff8e8,#fff)!important;
  border-color:#ffd98b!important;
  color:#9c6100!important;
  box-shadow:0 8px 18px rgba(255,159,10,.14)!important;
}

/* AFH FIX 2026-06-08: Mobile Karten-Fokusmodus bei Flyer-Routenplanung */
@media (max-width:620px){
body.flyer-route-focus-mode{overflow:hidden!important;padding-bottom:0!important}
body.flyer-route-focus-mode .mobile-app{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
body.flyer-route-focus-mode .mobile-top,body.flyer-route-focus-mode .mobile-welcome,body.flyer-route-focus-mode .mobile-flyer-workspace>article.mobile-card,body.flyer-route-focus-mode .flyer-workspace-nav,body.flyer-route-focus-mode .flyer-map-panel>header h3,body.flyer-route-focus-mode .flyer-map-legend,body.flyer-route-focus-mode .flyer-map-info,body.flyer-route-focus-mode .flyer-map-route>strong,body.flyer-route-focus-mode .flyer-map-route>small,body.flyer-route-focus-mode .flyer-map-route ol,body.flyer-route-focus-mode .flyer-map-panel>p.muted,body.flyer-route-focus-mode .app-head nav,body.flyer-route-focus-mode .mobile-fab-wrap{display:none!important}
body.flyer-route-focus-mode .flyer-map-panel.route-focus-active{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#eef4ff!important;box-shadow:none!important;display:grid!important;grid-template-rows:auto 1fr auto!important;overflow:hidden!important}
body.flyer-route-focus-mode .flyer-map-panel.route-focus-active>header{position:absolute!important;left:10px!important;right:10px!important;top:calc(env(safe-area-inset-top,0px) + 10px)!important;z-index:1002!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;padding:0!important;border:0!important;background:transparent!important;margin:0!important}
body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions{display:flex!important;gap:8px!important;width:auto!important}
body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button{height:42px!important;min-height:42px!important;border-radius:999px!important;padding:0 14px!important;font-size:12px!important;box-shadow:0 12px 28px rgba(23,32,51,.22)!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px)!important}
body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions .primary{background:linear-gradient(135deg,#1269e8,#0b4fb3)!important;color:#fff!important;border-color:transparent!important}
/* Fix: the floating "Punkte auswaehlen"/cancel controls (.flyer-map-controls) and the floating
   header pills above were both anchored near the top of the map with independent offsets, so in
   this focus mode they visually collided. Push the map-controls row below the header row. */
body.flyer-route-focus-mode .flyer-map-controls{top:calc(env(safe-area-inset-top,0px) + 70px)!important;left:10px!important;z-index:1002!important}
}
@media (max-width:620px){
body.flyer-route-focus-mode .flyer-map-shell{display:block!important;min-height:100vh!important;height:100vh!important;width:100%!important;margin:0!important;padding:0!important}
body.flyer-route-focus-mode #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100vh!important;min-height:100vh!important;max-height:none!important;border:0!important;border-radius:0!important;z-index:1!important}
body.flyer-route-focus-mode .flyer-map-route{position:absolute!important;left:12px!important;right:12px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;z-index:1001!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;max-height:none!important;min-height:0!important;padding:10px!important;border:1px solid rgba(219,232,255,.9)!important;border-radius:22px!important;background:rgba(255,255,255,.93)!important;box-shadow:0 18px 44px rgba(23,32,51,.22)!important;backdrop-filter:blur(16px)!important;overflow:hidden!important}
body.flyer-route-focus-mode .flyer-route-summary{grid-template-columns:1fr 1fr!important;margin:0!important;gap:8px!important}
body.flyer-route-focus-mode .flyer-route-summary div{min-height:46px!important;border-radius:15px!important;background:#f3f8ff!important}
body.flyer-route-focus-mode .flyer-route-summary strong{font-size:18px!important}
body.flyer-route-focus-mode .flyer-route-summary span{font-size:10.5px!important}
body.flyer-route-focus-mode .flyer-route-help{margin:0!important;padding:7px 10px!important;text-align:center!important;border-radius:14px!important;font-size:11px!important;line-height:1.25!important}
}

/* AFH FIX 2026-06-08: untere Routenleiste darf im Fokusmodus nicht scrollen */
@media (max-width:620px){
  body.flyer-route-focus-mode,
  body.flyer-route-focus-mode main,
  body.flyer-route-focus-mode .mobile-flyer-workspace,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  body.flyer-route-focus-mode .flyer-map-route,
  body.flyer-route-focus-mode .flyer-route-summary,
  body.flyer-route-focus-mode .flyer-route-summary *,
  body.flyer-route-focus-mode .flyer-route-help{
    touch-action:none!important;
    overscroll-behavior:none!important;
    -webkit-user-select:none!important;
    user-select:none!important;
  }
  body.flyer-route-focus-mode #flyerMap,
  body.flyer-route-focus-mode #flyerMap.leaflet-container{
    touch-action:none!important;
    overscroll-behavior:contain!important;
  }
}

/* AFH FIX 2026-06-08: Flyer Route pruefen und Reihenfolge aendern */
.flyer-route-review{display:grid!important;gap:14px!important}.flyer-route-review header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important}.flyer-route-review h2{margin:0!important}.flyer-route-review header p{margin:4px 0 0!important;color:#657085!important;font-size:12px!important;font-weight:900!important}.flyer-review-list{display:grid!important;gap:8px!important;margin:0!important;padding:0!important;list-style:none!important}.flyer-review-list li{display:grid!important;grid-template-columns:34px 1fr auto!important;gap:9px!important;align-items:center!important;padding:10px!important;border:1px solid #eadccd!important;border-radius:14px!important;background:#fffdf9!important}.flyer-review-list li>b{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:50%!important;background:#1269e8!important;color:#fff!important;font-size:13px!important}.flyer-review-list strong,.flyer-review-list span{display:block!important}.flyer-review-list strong{font-size:13px!important;color:#172033!important}.flyer-review-list span{margin-top:2px!important;font-size:11px!important;color:#657085!important;font-weight:800!important}.flyer-review-list nav{display:flex!important;gap:5px!important}.flyer-review-list button{width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:10px!important}.flyer-review-list button:disabled{opacity:.35!important}.flyer-route-review footer{display:grid!important;grid-template-columns:1fr 1.4fr!important;gap:10px!important}.flyer-route-review footer button{height:42px!important;border-radius:13px!important}
@media (max-width:620px){.flyer-route-review{width:min(420px,calc(100vw - 24px))!important;max-height:86vh!important;border-radius:24px!important;padding:14px!important}.flyer-route-review header{display:grid!important}.flyer-review-list{max-height:46vh!important;overflow:auto!important;padding-right:2px!important}.flyer-review-list li{grid-template-columns:30px 1fr!important}.flyer-review-list nav{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr 1fr!important}.flyer-review-list button{width:100%!important}.flyer-route-review footer{grid-template-columns:1fr!important}}

/* AFH FIX 2026-06-08: Route-Reihenfolge per Zahl antippen */
.flyer-review-list .route-review-number{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#1269e8!important;color:#fff!important;font-size:13px!important;font-weight:950!important;box-shadow:0 8px 18px rgba(18,105,232,.22)!important}
.flyer-review-list li.move-selected{border-color:#1269e8!important;background:#edf4ff!important;box-shadow:0 12px 26px rgba(18,105,232,.14)!important}
.flyer-review-list li.move-selected .route-review-number{background:#0b9b63!important;box-shadow:0 8px 18px rgba(11,155,99,.24)!important}
.flyer-review-list small{display:block!important;margin-top:4px!important;color:#9c6100!important;font-size:10.5px!important;font-weight:900!important}
@media (max-width:620px){.flyer-review-list .route-review-number{width:38px!important;height:38px!important}.flyer-review-list li{grid-template-columns:42px 1fr!important}}

/* AFH FIX 2026-06-08: Flyer-Reihenfolge per Beweg-Griff ziehen */
.flyer-review-list li{grid-template-columns:34px 34px 1fr auto!important}
.flyer-review-list .route-review-drag{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid #d9caff!important;border-radius:12px!important;background:#eee6ff!important;color:#211090!important;font-size:18px!important;font-weight:950!important;cursor:grab!important;touch-action:none!important;user-select:none!important}
.flyer-review-list.dragging{cursor:grabbing!important;user-select:none!important;touch-action:none!important}
.flyer-review-list.dragging li{transition:transform .12s ease,background-color .12s ease,border-color .12s ease!important}
.flyer-review-list li.drag-over{border-color:#1269e8!important;background:#edf4ff!important;transform:scale(1.01)!important;box-shadow:0 12px 26px rgba(18,105,232,.14)!important}
.flyer-review-list li.drag-over .route-review-drag{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
@media (max-width:620px){.flyer-review-list li{grid-template-columns:40px 34px 1fr!important}.flyer-review-list .route-review-drag{width:40px!important;height:40px!important;font-size:20px!important}.flyer-review-list nav{grid-column:1/-1!important}}

/* AFH FIX 2026-06-08: aktives Ziehen sichtbar machen */
.flyer-review-list li.drag-active{
  border-color:#0b9b63!important;
  background:linear-gradient(135deg,#f0fff5,#ffffff)!important;
  box-shadow:0 18px 38px rgba(11,155,99,.22)!important;
  transform:scale(1.035)!important;
  z-index:5!important;
  position:relative!important;
}
.flyer-review-list li.drag-active strong{font-size:15px!important;font-weight:950!important;color:#0b5138!important}
.flyer-review-list li.drag-active .route-review-drag{background:#0b9b63!important;border-color:#0b9b63!important;color:#fff!important;cursor:grabbing!important;box-shadow:0 10px 22px rgba(11,155,99,.24)!important}
.flyer-review-list li.drag-active>b{background:#0b9b63!important;box-shadow:0 10px 22px rgba(11,155,99,.22)!important}

/* AFH FIX 2026-06-08: Review nur per Griff sortieren, keine Pfeile anzeigen */
.flyer-route-review .flyer-review-list nav,
.flyer-route-review .flyer-review-list [data-route-review-up],
.flyer-route-review .flyer-review-list [data-route-review-down]{
  display:none!important;
}
.flyer-route-review .flyer-review-list li{
  grid-template-columns:42px 34px 1fr!important;
}
.flyer-route-review .flyer-review-list li>div{
  min-width:0!important;
}
.flyer-route-review .flyer-review-list .route-review-drag{
  touch-action:none!important;
}
@media (max-width:620px){
  .flyer-route-review .flyer-review-list li{
    grid-template-columns:42px 34px 1fr!important;
  }
}

/* AFH FIX 2026-06-08: Mobile Routenliste darf nicht seitlich ausbrechen */
@media (max-width:620px){
  body:not(.logged-out) main{
    width:100%!important;
    max-width:100vw!important;
    overflow-x:hidden!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .mobile-app{
    width:100%!important;
    max-width:430px!important;
    overflow-x:hidden!important;
    padding-top:calc(env(safe-area-inset-top,0px) + 18px)!important;
  }
  .mobile-top{
    margin-top:2px!important;
    padding:0 2px!important;
  }
  .mobile-top div{
    min-width:0!important;
    max-width:calc(100vw - 86px)!important;
    overflow:hidden!important;
  }
  .mobile-top strong{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .mobile-flyer-workspace,
  .mobile-flyer-workspace .flyer-layout,
  .mobile-flyer-workspace .admin-panel,
  .mobile-flyer-workspace .flyer-routes-panel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }
  .mobile-flyer-workspace .flyer-route-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  .mobile-flyer-workspace .flyer-route-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    border-radius:18px!important;
  }
  .mobile-flyer-workspace .flyer-route-card header{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    align-items:start!important;
  }
  .mobile-flyer-workspace .flyer-route-card header strong,
  .mobile-flyer-workspace .flyer-route-card header small{
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .mobile-flyer-workspace .flyer-route-card header strong{
    white-space:nowrap!important;
  }
  .mobile-flyer-workspace .flyer-route-card header span{
    width:max-content!important;
    max-width:100%!important;
  }
  .mobile-flyer-workspace .flyer-target-list,
  .mobile-flyer-workspace .flyer-target-list li{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .mobile-flyer-workspace .flyer-route-card footer{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .mobile-flyer-workspace .flyer-route-card footer a,
  .mobile-flyer-workspace .flyer-route-card footer button,
  .mobile-flyer-workspace .flyer-show-all{
    width:100%!important;
  }
  .mobile-flyer-workspace .admin-panel h3{
    overflow-wrap:anywhere!important;
  }
}

/* AFH FIX 2026-06-08: Mobile Reload Button oben rechts */
@media (max-width:620px){
  .mobile-top .mobile-reload-button{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    padding:0!important;
    border-radius:15px!important;
    border:1px solid rgba(219,232,255,.95)!important;
    background:linear-gradient(180deg,#ffffff,#edf4ff)!important;
    color:#1269e8!important;
    font-size:22px!important;
    font-weight:950!important;
    box-shadow:0 10px 22px rgba(18,105,232,.13)!important;
  }
  .mobile-top .mobile-reload-button.loading{
    animation:afhReloadSpin .75s linear infinite!important;
    opacity:.78!important;
  }
  @keyframes afhReloadSpin{to{transform:rotate(360deg)}}
  .mobile-top-actions{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    flex:0 0 auto!important;
  }
  .mobile-top .mobile-logout-button{
    display:grid!important;
    place-items:center!important;
    width:auto!important;
    min-width:76px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 10px!important;
    border:1px solid #eadccd!important;
    border-radius:15px!important;
    background:#fff!important;
    color:#a12626!important;
    font-size:12px!important;
    font-weight:900!important;
    box-shadow:0 10px 22px rgba(50,39,25,.08)!important;
  }
  .mobile-top .mobile-logout-button:disabled{
    opacity:.55!important;
  }
}

/* AFH FIX 2026-06-08: Mobile Fussleiste aufraeumen */
@media (max-width:620px){
  .app-head nav{
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    gap:6px!important;
    left:12px!important;
    right:12px!important;
    padding:8px!important;
  }
  .app-head nav a{
    min-width:0!important;
    height:50px!important;
    padding:5px 2px!important;
    font-size:10.5px!important;
  }
  .app-head nav .nav-button,
  .app-head nav #logoutBtn{
    display:none!important;
  }
}

/* AFH FIX 2026-07-02: Abmelden in der Desktop-Kopfzeile */
@media (min-width:621px){
  .admin-topbar{
    grid-template-columns:minmax(210px,1fr) 210px 38px 132px 88px!important;
  }
  .admin-logout-button{
    display:grid!important;
    place-items:center!important;
    width:88px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 10px!important;
    border:1px solid #eadccd!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#a12626!important;
    font-size:12px!important;
    font-weight:900!important;
    cursor:pointer!important;
  }
  .admin-logout-button:hover{
    background:#fff4f2!important;
    border-color:#e5b9b4!important;
  }
  .admin-logout-button:disabled{
    opacity:.55!important;
  }
}

/* AFH FEATURE 2026-06-08: Flyer-Seite optisch ruhiger */
.flyer-mobile-hero{background:linear-gradient(135deg,#edf4ff,#fffdf9)!important}.flyer-hero-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-top:8px!important}.flyer-hero-stats span{display:grid!important;place-items:center!important;gap:2px!important;min-height:50px!important;border:1px solid #dbe8ff!important;border-radius:15px!important;background:#fff!important;color:#526078!important;font-size:11px!important;font-weight:900!important}.flyer-hero-stats strong{font-size:20px!important;color:#1269e8!important;line-height:1!important}.flyer-workspace-nav{width:100%!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;padding:5px!important;border-radius:18px!important;background:#edf4ff!important;border:1px solid #dbe8ff!important;box-shadow:0 10px 24px rgba(18,105,232,.08)!important}.flyer-workspace-nav button{height:42px!important;border-radius:14px!important;font-size:13px!important;letter-spacing:-.01em!important}.flyer-workspace-nav button.active{background:linear-gradient(135deg,#1269e8,#0b58c9)!important;color:#fff!important;box-shadow:0 10px 22px rgba(18,105,232,.22)!important}.flyer-map-panel,.flyer-routes-panel,.flyer-import-panel{border-radius:22px!important}.flyer-map-panel>header h3,.flyer-routes-panel>header h3,.flyer-import-panel>header h3{font-size:18px!important;letter-spacing:-.035em!important}.flyer-map-panel>header .panel-actions{gap:8px!important}.flyer-map-panel>header .panel-actions button{border-radius:14px!important;font-weight:950!important}.flyer-map-legend{opacity:.92!important}.flyer-map-shell{gap:14px!important}.flyer-map-route{border-radius:18px!important;background:linear-gradient(180deg,#ffffff,#fffdf9)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)!important}.flyer-route-summary div{border-radius:16px!important;min-height:62px!important}.flyer-route-help{border-radius:15px!important;background:#fff7e8!important}.flyer-map-info{border-radius:16px!important}
.flyer-route-card{border-radius:20px!important;padding:15px!important;background:linear-gradient(180deg,#ffffff,#fffdf9)!important;box-shadow:0 12px 28px rgba(50,39,25,.075)!important}.flyer-route-card header strong{font-size:15px!important;color:#123583!important}.flyer-route-card header span{border-radius:999px!important}.flyer-route-card footer{grid-template-columns:1fr 1fr!important}.flyer-route-card footer button,.flyer-route-card footer a,.flyer-show-all{border-radius:14px!important}.flyer-target-list li{border-radius:16px!important;padding:10px!important}.flyer-target-actions a,.flyer-target-actions button,.flyer-target-more summary{border-radius:12px!important}.flyer-import-panel{background:linear-gradient(180deg,#ffffff,#fffaf4)!important}.flyer-import-form button.primary{border-radius:14px!important}
@media (max-width:620px){.mobile-flyer-workspace{gap:10px!important}.flyer-mobile-hero{padding:14px!important}.flyer-workspace-nav{position:sticky!important;top:8px!important;z-index:20!important;margin-bottom:8px!important}.flyer-workspace-nav button{height:40px!important;font-size:12px!important}.flyer-map-panel>header{grid-template-columns:1fr!important}.flyer-map-panel>header h3{font-size:17px!important}.flyer-map-panel .panel-actions{grid-template-columns:1fr 1.2fr!important}.flyer-map-panel .panel-actions button{height:40px!important}.flyer-map-legend span{background:#fff!important}.flyer-map-route{max-height:260px!important}.flyer-route-summary div{min-height:52px!important}.flyer-route-grid{gap:10px!important}.flyer-route-card{padding:12px!important;border-radius:18px!important}.flyer-route-card footer{grid-template-columns:1fr!important}.flyer-target-list li{grid-template-columns:1fr!important}.flyer-target-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.flyer-target-more{grid-column:1/-1!important}.flyer-target-more summary{height:34px!important}.flyer-import-form{gap:10px!important}.flyer-import-form label{font-size:11.5px!important}}

/* AFH FEATURE 2026-06-08: Vivien einfache Flyer-Arbeitsansicht */
@media (max-width:620px){
.mobile-flyer-routes.simple{display:grid!important;gap:12px!important}.mobile-flyer-routes.simple>h3{margin-bottom:0!important}.flyer-mobile-route-card{display:grid!important;gap:10px!important;padding:13px!important;border:1px solid #eadccd!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#fffdf9)!important;box-shadow:0 12px 28px rgba(50,39,25,.075)!important}.flyer-mobile-route-card header{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:start!important}.flyer-mobile-route-card header strong{display:block!important;font-size:16px!important;line-height:1.12!important;color:#123583!important;letter-spacing:-.035em!important}.flyer-mobile-route-card header span{display:block!important;margin-top:4px!important;color:#657085!important;font-size:11px!important;font-weight:900!important}.flyer-mobile-route-card header b{display:grid!important;place-items:center!important;min-height:26px!important;padding:0 9px!important;border-radius:999px!important;background:#fff8e8!important;color:#9c6100!important;font-size:10px!important}.flyer-mobile-route-card header b.paused{background:#eef4ff!important;color:#173a9a!important}.flyer-mobile-route-card p{margin:0!important;padding:10px!important;border-radius:15px!important;background:#f7fbff!important;color:#172033!important;font-size:12px!important;font-weight:900!important;line-height:1.3!important}.flyer-mobile-route-card p small{display:block!important;margin-top:3px!important;color:#657085!important;font-size:10.5px!important;font-weight:800!important}.flyer-mobile-route-actions{display:grid!important;grid-template-columns:1.2fr 1fr!important;gap:8px!important}.flyer-mobile-route-actions a,.flyer-mobile-route-actions button{display:grid!important;place-items:center!important;min-height:42px!important;border-radius:15px!important;border:1px solid #dbe8ff!important;text-decoration:none!important;font-weight:950!important;font-size:13px!important}.flyer-mobile-route-actions a{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}.flyer-mobile-route-actions button{background:#edf4ff!important;color:#1269e8!important}.flyer-mobile-route-details{display:grid!important;gap:8px!important;padding-top:2px!important}.flyer-mobile-route-card:not(.open) .flyer-mobile-route-details{display:none!important}.mobile-flyer-routes.simple .flyer-target-list{margin-top:0!important}.mobile-flyer-routes.simple .flyer-target-list li{border-radius:15px!important;background:#fff!important}.mobile-flyer-routes.simple .flyer-target-actions{grid-template-columns:1fr 1fr!important}.mobile-flyer-routes.simple .flyer-target-more{grid-column:1/-1!important}.mobile-flyer-routes.simple .mobile-reactivate-button{height:40px!important;border-radius:14px!important}.mobile-flyer-workspace.simple .flyer-map-panel>p.muted{display:none!important}.mobile-flyer-workspace.simple .flyer-map-route ol:empty{display:none!important}.mobile-flyer-workspace.simple .flyer-map-route{max-height:230px!important}.mobile-flyer-workspace.simple .flyer-import-panel .muted{display:none!important}
}

/* AFH FEATURE 2026-06-08: Flyer mobil - Karte in den Fokus */
@media (max-width:620px){
  .mobile-flyer-workspace{
    gap:8px!important;
  }
  .mobile-flyer-workspace .flyer-mobile-hero{
    padding:8px 10px!important;
    border-radius:16px!important;
    box-shadow:0 8px 18px rgba(50,39,25,.055)!important;
  }
  .mobile-flyer-workspace .flyer-mobile-hero h3{
    display:none!important;
  }
  .mobile-flyer-workspace .flyer-hero-stats{
    margin:0!important;
    gap:6px!important;
  }
  .mobile-flyer-workspace .flyer-hero-stats span{
    min-height:34px!important;
    border-radius:12px!important;
    font-size:9.5px!important;
  }
  .mobile-flyer-workspace .flyer-hero-stats strong{
    font-size:15px!important;
  }
  .mobile-flyer-workspace .flyer-workspace-nav{
    margin:0 0 6px!important;
    padding:3px!important;
    border-radius:14px!important;
    box-shadow:0 6px 14px rgba(18,105,232,.07)!important;
    position:sticky!important;
    top:4px!important;
  }
  .mobile-flyer-workspace .flyer-workspace-nav button{
    height:34px!important;
    min-height:34px!important;
    border-radius:11px!important;
    font-size:11px!important;
  }
  .mobile-flyer-workspace .admin-panel{
    padding:8px!important;
    border-radius:16px!important;
  }
  .mobile-flyer-workspace .admin-panel header{
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  .mobile-flyer-workspace .admin-panel header h3,
  .mobile-flyer-workspace .flyer-routes-panel header small{
    display:none!important;
  }
  .mobile-flyer-workspace .flyer-map-panel>header{
    display:block!important;
  }
  .mobile-flyer-workspace .flyer-map-panel .panel-actions{
    display:grid!important;
    grid-template-columns:88px 1fr!important;
    gap:6px!important;
    margin-bottom:6px!important;
  }
  .mobile-flyer-workspace .flyer-map-panel .panel-actions button{
    height:34px!important;
    min-height:34px!important;
    border-radius:12px!important;
    font-size:11px!important;
  }
  .mobile-flyer-workspace .flyer-map-legend{
    display:none!important;
  }
  .mobile-flyer-workspace #flyerMap{
    height:58vh!important;
    min-height:410px!important;
    max-height:none!important;
    border-radius:18px!important;
  }
  .mobile-flyer-workspace .flyer-map-shell{
    gap:7px!important;
  }
  .mobile-flyer-workspace .flyer-map-route{
    max-height:none!important;
    padding:8px!important;
    border-radius:16px!important;
  }
  .mobile-flyer-workspace .flyer-map-route>strong,
  .mobile-flyer-workspace .flyer-map-route>small,
  .mobile-flyer-workspace .flyer-map-info,
  .mobile-flyer-workspace .flyer-map-route ol{
    display:none!important;
  }
  .mobile-flyer-workspace .flyer-route-summary{
    gap:6px!important;
  }
  .mobile-flyer-workspace .flyer-route-summary div{
    min-height:38px!important;
    border-radius:12px!important;
  }
  .mobile-flyer-workspace .flyer-route-summary strong{
    font-size:14px!important;
  }
  .mobile-flyer-workspace .flyer-route-summary span{
    font-size:9px!important;
  }
  .mobile-flyer-workspace .flyer-route-help{
    display:none!important;
  }
  .mobile-flyer-routes.simple>h3{
    font-size:13px!important;
    margin:0!important;
  }
  .flyer-mobile-route-card header strong{
    font-size:14px!important;
  }
  .flyer-mobile-route-card{
    padding:10px!important;
    border-radius:16px!important;
  }
}

/* AFH FEATURE 2026-06-08: Flyer Karte voll sichtbar, Details erst nach Antippen */
@media (max-width:620px){
.mobile-flyer-workspace.simple .flyer-mobile-hero{display:none!important}
.mobile-flyer-workspace.simple .flyer-workspace-nav{margin:0!important;position:sticky!important;top:4px!important;z-index:50!important}
.mobile-flyer-workspace.simple .flyer-map-panel{padding:6px!important;border-radius:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.mobile-flyer-workspace.simple .flyer-map-panel>header{position:absolute!important;left:22px!important;right:22px!important;top:98px!important;z-index:500!important;background:transparent!important;pointer-events:none!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{pointer-events:auto!important;display:flex!important;justify-content:flex-end!important;gap:7px!important;margin:0!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{width:auto!important;min-width:76px!important;height:36px!important;padding:0 12px!important;border-radius:999px!important;box-shadow:0 10px 24px rgba(23,32,51,.18)!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(12px)!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions .primary{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
}
@media (max-width:620px){
.mobile-flyer-workspace.simple .flyer-map-shell{display:block!important;position:relative!important;min-height:0!important}
.mobile-flyer-workspace.simple #flyerMap{height:calc(100vh - 190px)!important;min-height:520px!important;width:100%!important;border-radius:22px!important;border:1px solid rgba(219,232,255,.9)!important;box-shadow:0 14px 32px rgba(23,32,51,.12)!important}
.mobile-flyer-workspace.simple .flyer-map-route{position:absolute!important;left:10px!important;right:10px!important;bottom:10px!important;z-index:450!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important}
.mobile-flyer-workspace.simple .flyer-route-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:210px!important;max-width:68vw!important;margin:0 auto!important;pointer-events:auto!important}
.mobile-flyer-workspace.simple .flyer-route-summary div{min-height:38px!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 10px 24px rgba(23,32,51,.14)!important;backdrop-filter:blur(12px)!important}
}
@media (max-width:620px){
.mobile-flyer-workspace.simple .flyer-map-info:not(.empty){display:grid!important;position:absolute!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom, 0px) + 110px)!important;z-index:99988!important;max-height:34vh!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:12px!important;border-radius:20px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 18px 44px rgba(23,32,51,.22)!important;backdrop-filter:blur(16px)!important}
.mobile-flyer-workspace.simple .flyer-map-info.empty{display:none!important}
.mobile-flyer-workspace.simple .flyer-map-route>strong,.mobile-flyer-workspace.simple .flyer-map-route>small,.mobile-flyer-workspace.simple .flyer-map-route ol,.mobile-flyer-workspace.simple .flyer-route-help,.mobile-flyer-workspace.simple .flyer-map-panel>p.muted{display:none!important}
.mobile-flyer-workspace.simple .leaflet-control-zoom{display:none!important}
}

/* AFH final mobile flyer override: keep phone workflow full-screen */
@media (max-width:620px){
  .mobile-flyer-workspace.simple{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;gap:0!important}
  .mobile-flyer-workspace.simple .flyer-workspace-nav,.mobile-flyer-workspace.simple .flyer-mobile-hero{display:none!important}
  .mobile-flyer-workspace.simple .flyer-location-panel{position:static!important;margin:0 auto!important;width:min(390px,calc(100vw - 28px))!important;padding:14px!important;border-radius:22px!important}
  .mobile-flyer-workspace.simple .flyer-location-grid{grid-template-columns:1fr!important;gap:10px!important}
  .mobile-flyer-workspace.simple .flyer-map-panel{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#eef4ff!important;box-shadow:none!important;display:block!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple .flyer-map-panel>header{position:absolute!important;left:10px!important;right:10px!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;z-index:1002!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin:0!important;padding:0!important;background:transparent!important;pointer-events:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel>header h3{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{display:grid!important;grid-template-columns:86px 72px minmax(118px,1fr)!important;gap:7px!important;margin:0!important;pointer-events:auto!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{width:100%!important;min-width:0!important;height:39px!important;min-height:39px!important;padding:0 10px!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;border:1px solid rgba(219,232,255,.95)!important;color:#172033!important;box-shadow:0 10px 24px rgba(23,32,51,.18)!important;backdrop-filter:blur(14px)!important;font-size:12px!important;font-weight:950!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen]{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
  .mobile-flyer-workspace.simple .flyer-map-legend,.mobile-flyer-workspace.simple .flyer-map-panel>p.muted{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-shell{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .mobile-flyer-workspace.simple .flyer-map-route{position:absolute!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;z-index:1001!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;max-height:none!important;overflow:visible!important}
  .mobile-flyer-workspace.simple .flyer-map-route>strong,.mobile-flyer-workspace.simple .flyer-map-route>small,.mobile-flyer-workspace.simple .flyer-map-route ol,.mobile-flyer-workspace.simple .flyer-route-help,.mobile-flyer-workspace.simple #flyerMapInfo{display:none!important}
  .mobile-flyer-workspace.simple .flyer-route-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:220px!important;max-width:72vw!important;margin:0 auto!important;pointer-events:auto!important}
  .mobile-flyer-workspace.simple .flyer-route-summary div{min-height:40px!important;border:1px solid rgba(219,232,255,.95)!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 12px 28px rgba(23,32,51,.18)!important;backdrop-filter:blur(14px)!important}
  .mobile-flyer-workspace.simple .flyer-route-summary strong{font-size:14px!important;color:#1269e8!important}
  .mobile-flyer-workspace.simple .flyer-route-summary span{font-size:9px!important;color:#526078!important}
  .mobile-flyer-workspace.simple .leaflet-control-zoom{display:none!important}
  .mobile-flyer-workspace.simple .leaflet-popup-content-wrapper{border-radius:18px!important;box-shadow:0 20px 48px rgba(23,32,51,.24)!important}
  .mobile-flyer-workspace.simple .leaflet-popup-content{width:min(292px,calc(100vw - 48px))!important;margin:10px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-info{display:grid!important;position:static!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:8px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-extra-info{display:grid!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions a,.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions button{min-height:35px!important;border-radius:12px!important;font-size:11px!important}
}
.flyer-route-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.flyer-route-summary strong{white-space:nowrap!important}
@media (max-width:620px){
  body.flyer-route-focus-mode .flyer-route-summary,
  .mobile-flyer-workspace.simple .flyer-route-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:min(340px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important}
  .mobile-flyer-workspace.simple .flyer-route-summary div{padding:0 5px!important}
  .mobile-flyer-workspace.simple .flyer-route-summary strong{font-size:13px!important}
  .mobile-flyer-workspace.simple .flyer-route-summary span{font-size:8.5px!important}
  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-map-route,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-map-route{left:8px!important;right:8px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-route-summary,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;gap:6px!important}
  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-route-summary div,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary div{min-width:0!important;min-height:38px!important;border-radius:999px!important;padding:0 4px!important}
  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-route-summary strong,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary strong{font-size:12.5px!important}
  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-route-summary span,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary span{font-size:8px!important}
}
.flyer-route-next-step{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;margin:8px 0!important;padding:12px!important;border:1px solid #b8d7ff!important;border-radius:16px!important;background:linear-gradient(180deg,#f3f8ff,#ffffff)!important;box-shadow:0 10px 24px rgba(18,105,232,.09)!important}.flyer-route-next-step strong{display:block!important;font-size:14px!important;color:#173a9a!important}.flyer-route-next-step span,.flyer-route-next-step small,.flyer-route-next-step p,.flyer-route-next-step em{display:block!important;margin:2px 0 0!important;color:#526078!important;font-size:11px!important;font-weight:900!important;line-height:1.25!important;font-style:normal!important}.flyer-route-next-step em{margin-top:6px!important;padding:7px 9px!important;border-radius:11px!important;background:#e9fff3!important;color:#11784f!important}.flyer-route-next-step p{color:#202942!important;font-weight:800!important}.flyer-route-next-actions{display:grid!important;gap:7px!important;min-width:150px!important}.flyer-route-next-step button{min-height:40px!important;padding:0 14px!important;border-radius:13px!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}.flyer-route-next-step button.map-button{border:0!important;background:#1269e8!important;color:#fff!important}.flyer-route-next-step button.ghost{border:1px solid #b8d7ff!important;background:#fff!important;color:#1269e8!important}.flyer-route-next-step.active{border-color:#a8e4bc!important;background:linear-gradient(180deg,#f0fff5,#ffffff)!important}.flyer-route-next-step.active button.map-button{background:#11784f!important}
.flyer-map-route li:not(.empty){grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important}.flyer-map-route li:not(.empty)>b{grid-row:1/3!important;grid-column:1!important}.flyer-map-route li:not(.empty)>div{min-width:0!important;grid-column:2!important}.flyer-map-route li:not(.empty)>div strong,.flyer-map-route li:not(.empty)>div span{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important}.flyer-map-route li:not(.empty)>button{grid-column:3!important;grid-row:1/3!important}.flyer-delete-confirm{display:grid!important;gap:12px!important}.flyer-delete-confirm header{margin:0!important}.flyer-delete-confirm h2{margin:0!important;color:#172033!important;font-size:20px!important}.flyer-delete-confirm header p,.flyer-delete-confirm>p{margin:0!important;color:#526078!important;font-size:13px!important;font-weight:850!important;line-height:1.35!important}.flyer-delete-confirm footer{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.flyer-delete-confirm footer button{min-height:42px!important;border-radius:14px!important;font-weight:950!important}.flyer-delete-confirm .danger{border:1px solid #ffc6cf!important;background:#fff0f2!important;color:#b42335!important}
.flyer-route-review-backdrop{z-index:100250!important;pointer-events:auto!important}
.flyer-route-review-backdrop .flyer-route-review{position:relative!important;z-index:100251!important}
@media (max-width:620px){.flyer-route-next-step{grid-template-columns:1fr!important;gap:8px!important;padding:11px!important}.flyer-route-next-actions{min-width:0!important}.flyer-route-next-step button{width:100%!important}}
@media (max-width:620px){.flyer-map-route li:not(.empty){grid-template-columns:auto minmax(0,1fr)!important}.flyer-map-route li:not(.empty)>button{grid-column:1/3!important;grid-row:auto!important;width:100%!important}.flyer-delete-confirm footer{grid-template-columns:1fr!important}}

/* AFH marker clarity: category symbols and merged building targets */
.flyer-map-pin{--pin:#334155;--pin-glow:rgba(51,65,85,.22);display:grid!important;place-items:center!important;background:transparent!important;border:0!important}
.flyer-map-pin.medizin{--pin:#1269e8;--pin-glow:rgba(18,105,232,.2)}
.flyer-map-pin.apotheke{--pin:#10a66f;--pin-glow:rgba(16,166,111,.22)}
.flyer-map-pin.kita{--pin:#e0a100;--pin-glow:rgba(224,161,0,.22)}
.flyer-map-pin.pflege{--pin:#8a5cf6;--pin-glow:rgba(138,92,246,.22)}
.flyer-map-pin.kirche{--pin:#64748b;--pin-glow:rgba(100,116,139,.22)}
.flyer-map-pin.handel{--pin:#d4577a;--pin-glow:rgba(212,87,122,.22)}
.flyer-map-pin.sonstiges{--pin:#334155;--pin-glow:rgba(51,65,85,.22)}
.flyer-map-pin.done{--pin:#28a745;--pin-glow:rgba(40,167,69,.24)}
.flyer-map-pin.warn{--pin:#ff9f0a;--pin-glow:rgba(255,159,10,.26)}
.flyer-map-pin.skipped{--pin:#f59e0b;--pin-glow:rgba(245,158,11,.25)}
.flyer-map-pin.selected{--pin:#11784f;--pin-glow:rgba(17,120,79,.24)}
.flyer-map-pin .flyer-map-pin-inner{position:relative!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border:2px solid #fff!important;border-radius:50% 50% 50% 7px!important;background:var(--pin)!important;box-shadow:0 8px 18px var(--pin-glow)!important;color:#fff!important;transform:rotate(-45deg)!important}
.flyer-map-pin .flyer-map-pin-inner span{display:grid!important;place-items:center!important;min-width:18px!important;height:18px!important;border-radius:999px!important;color:#fff!important;font-size:15px!important;font-weight:950!important;line-height:1!important;letter-spacing:0!important;transform:rotate(45deg)!important}
.flyer-map-pin .flyer-map-pin-inner em{display:none!important}
.flyer-map-pin.sonstiges .flyer-map-pin-inner span{font-size:16px!important}
.flyer-map-pin.selected .flyer-map-pin-inner span,.flyer-map-pin.warn .flyer-map-pin-inner span,.flyer-map-pin.done .flyer-map-pin-inner span,.flyer-map-pin.skipped .flyer-map-pin-inner span{font-size:12px!important}
.flyer-map-pin.grouped{width:44px!important;height:48px!important}
.flyer-map-pin.grouped .flyer-map-pin-inner{width:42px!important;height:42px!important;border:3px solid #fff!important;border-radius:18px!important;box-shadow:0 0 0 4px var(--pin-glow),0 15px 30px rgba(23,32,51,.24)!important;transform:none!important}
.flyer-map-pin.grouped .flyer-map-pin-inner::after{content:""!important;position:absolute!important;inset:-7px!important;border:2px solid rgba(255,255,255,.88)!important;border-radius:23px!important;box-shadow:0 0 0 1px var(--pin-glow)!important;pointer-events:none!important}
.flyer-map-pin.grouped .flyer-map-pin-inner span{min-width:24px!important;height:24px!important;font-size:14px!important;font-weight:950!important;transform:none!important}
.flyer-map-pin.grouped .flyer-map-pin-inner em{position:absolute!important;right:-5px!important;bottom:-5px!important;display:grid!important;place-items:center!important;width:20px!important;height:20px!important;border:2px solid #fff!important;border-radius:999px!important;background:#fff!important;color:var(--pin)!important;font-size:12px!important;font-style:normal!important;font-weight:950!important;line-height:1!important;letter-spacing:0!important;box-shadow:0 6px 14px rgba(23,32,51,.22)!important}
.flyer-map-pin.grouped.mixed .flyer-map-pin-inner{box-shadow:0 0 0 4px rgba(23,32,51,.08),0 0 0 8px var(--pin-glow),0 15px 30px rgba(23,32,51,.24)!important}
.flyer-map-pin.compact{width:18px!important;height:18px!important}
.flyer-map-pin.compact .flyer-map-pin-inner{width:14px!important;height:14px!important;border-width:2px!important;border-radius:50%!important;box-shadow:0 5px 12px rgba(23,32,51,.18)!important;transform:none!important}
.flyer-map-pin.compact .flyer-map-pin-inner span{display:none!important}
.flyer-type.medizin{background:#1269e8!important}.flyer-type.apotheke{background:#10a66f!important}.flyer-type.kita{background:#e0a100!important}.flyer-type.pflege{background:#8a5cf6!important}.flyer-type.kirche{background:#64748b!important}.flyer-type.handel{background:#d4577a!important}.flyer-type.sonstiges{background:#334155!important}.flyer-type.done{background:#28a745!important}.flyer-type.warn{background:#ff9f0a!important}.flyer-type.skipped{background:#f59e0b!important}

/* AFH mobile flyer workflow: phone is the primary control surface */
@media (max-width:620px){
  .mobile-flyer-workspace.simple{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;gap:0!important}
  .mobile-flyer-workspace.simple .flyer-workspace-nav,.mobile-flyer-workspace.simple .flyer-mobile-hero{display:none!important}
  .mobile-flyer-workspace.simple .flyer-location-panel{position:static!important;margin:0 auto!important;width:min(390px,calc(100vw - 28px))!important;padding:14px!important;border-radius:22px!important}
  .mobile-flyer-workspace.simple .flyer-location-panel header{display:grid!important;gap:4px!important}
  .mobile-flyer-workspace.simple .flyer-location-grid{grid-template-columns:1fr!important;gap:10px!important}
  .mobile-flyer-workspace.simple .flyer-location-grid button{min-height:98px!important;border-radius:18px!important;padding:15px!important}
  .mobile-flyer-workspace.simple .flyer-map-panel{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#eef4ff!important;box-shadow:none!important;display:block!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple .flyer-map-panel>header{position:absolute!important;left:10px!important;right:10px!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;z-index:1002!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin:0!important;padding:0!important;background:transparent!important;pointer-events:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel>header h3{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{display:grid!important;grid-template-columns:86px 72px minmax(118px,1fr)!important;gap:7px!important;margin:0!important;pointer-events:auto!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{width:100%!important;min-width:0!important;height:39px!important;min-height:39px!important;padding:0 10px!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;border:1px solid rgba(219,232,255,.95)!important;color:#172033!important;box-shadow:0 10px 24px rgba(23,32,51,.18)!important;backdrop-filter:blur(14px)!important;font-size:12px!important;font-weight:950!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen]{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
  .mobile-flyer-workspace.simple .flyer-map-legend,.mobile-flyer-workspace.simple .flyer-map-panel>p.muted{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-shell{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .mobile-flyer-workspace.simple .flyer-map-route{position:absolute!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;z-index:1001!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;max-height:none!important;overflow:visible!important}
  .mobile-flyer-workspace.simple .flyer-map-route>strong,.mobile-flyer-workspace.simple .flyer-map-route>small,.mobile-flyer-workspace.simple .flyer-map-route ol,.mobile-flyer-workspace.simple .flyer-route-help,.mobile-flyer-workspace.simple #flyerMapInfo{display:none!important}
  .mobile-flyer-workspace.simple .flyer-route-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:220px!important;max-width:72vw!important;margin:0 auto!important;pointer-events:auto!important}
  .mobile-flyer-workspace.simple .flyer-route-summary div{min-height:40px!important;border:1px solid rgba(219,232,255,.95)!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 12px 28px rgba(23,32,51,.18)!important;backdrop-filter:blur(14px)!important}
  .mobile-flyer-workspace.simple .flyer-route-summary strong{font-size:14px!important;color:#1269e8!important}
  .mobile-flyer-workspace.simple .flyer-route-summary span{font-size:9px!important;color:#526078!important}
  .mobile-flyer-workspace.simple .leaflet-control-zoom{display:none!important}
  .mobile-flyer-workspace.simple .leaflet-popup-content-wrapper{border-radius:18px!important;box-shadow:0 20px 48px rgba(23,32,51,.24)!important}
  .mobile-flyer-workspace.simple .leaflet-popup-content{width:min(292px,calc(100vw - 48px))!important;margin:10px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-info{display:grid!important;position:static!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:8px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-extra-info{display:grid!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions a,.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions button{min-height:35px!important;border-radius:12px!important;font-size:11px!important}
}

/* AFH FIX 2026-06-08: Flyer Karte stabil, keine schwebenden Zufallsbuttons */
@media (max-width:620px){
.mobile-flyer-workspace.simple .flyer-workspace-nav{position:static!important;top:auto!important;z-index:auto!important;margin:0 0 6px!important}
.mobile-flyer-workspace.simple .flyer-map-panel{position:relative!important;display:grid!important;gap:6px!important;padding:6px!important;border-radius:16px!important;border:1px solid rgba(234,220,205,.9)!important;background:rgba(255,255,255,.94)!important;box-shadow:0 10px 24px rgba(50,39,25,.07)!important;overflow:hidden!important}
.mobile-flyer-workspace.simple .flyer-map-panel>header{position:static!important;inset:auto!important;z-index:auto!important;display:block!important;pointer-events:auto!important;margin:0!important;padding:0!important;background:transparent!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{display:grid!important;grid-template-columns:78px 1fr!important;gap:6px!important;margin:0!important;pointer-events:auto!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:0 8px!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;backdrop-filter:none!important;font-size:11px!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions .primary{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
}
@media (max-width:620px){
.mobile-flyer-workspace.simple .flyer-map-shell{display:block!important;position:relative!important;min-height:0!important;overflow:hidden!important}
.mobile-flyer-workspace.simple #flyerMap{height:calc(100dvh - 235px)!important;min-height:360px!important;max-height:620px!important;width:100%!important;border-radius:18px!important;border:1px solid rgba(219,232,255,.95)!important;box-shadow:none!important}
.mobile-flyer-workspace.simple .flyer-map-route{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:auto!important;margin-top:6px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:auto!important;max-height:none!important;overflow:visible!important}
.mobile-flyer-workspace.simple .flyer-route-summary{width:100%!important;max-width:none!important;grid-template-columns:1fr 1fr!important;margin:0!important;gap:6px!important}
.mobile-flyer-workspace.simple .flyer-route-summary div{min-height:34px!important;border-radius:12px!important;background:#f3f8ff!important;box-shadow:none!important;backdrop-filter:none!important}
.mobile-flyer-workspace.simple .flyer-route-summary strong{font-size:13px!important}.mobile-flyer-workspace.simple .flyer-route-summary span{font-size:9px!important}
.mobile-flyer-workspace.simple .flyer-map-info,.mobile-flyer-workspace.simple .flyer-map-info:not(.empty){display:none!important;position:static!important}
}
@media (max-width:620px){
.mobile-flyer-workspace.simple .leaflet-popup-content-wrapper{border-radius:18px!important;box-shadow:0 18px 44px rgba(23,32,51,.22)!important}
.mobile-flyer-workspace.simple .leaflet-popup-content{width:min(285px,calc(100vw - 54px))!important;margin:10px!important}
.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-info{display:grid!important;position:static!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.mobile-flyer-workspace.simple .flyer-map-popup .flyer-info-head strong{font-size:13px!important}
.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions{grid-template-columns:1fr 1fr!important;gap:6px!important}
.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions a,.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions button{min-height:32px!important;font-size:10.5px!important;border-radius:11px!important}
.mobile-flyer-workspace.simple .leaflet-control-zoom{display:none!important}
}
/* AFH final mobile flyer override: keep phone workflow full-screen */
@media (max-width:620px){
  .mobile-flyer-workspace.simple{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;gap:0!important}
  .mobile-flyer-workspace.simple .flyer-workspace-nav,.mobile-flyer-workspace.simple .flyer-mobile-hero{display:none!important}
  .mobile-flyer-workspace.simple .flyer-location-panel{position:static!important;margin:0 auto!important;width:min(390px,calc(100vw - 28px))!important;padding:14px!important;border-radius:22px!important}
  .mobile-flyer-workspace.simple .flyer-location-grid{grid-template-columns:1fr!important;gap:10px!important}
  .mobile-flyer-workspace.simple .flyer-map-panel{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#eef4ff!important;box-shadow:none!important;display:block!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple .flyer-map-panel>header{position:absolute!important;left:10px!important;right:10px!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;z-index:1002!important;display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin:0!important;padding:0!important;background:transparent!important;pointer-events:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel>header h3{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{display:grid!important;grid-template-columns:86px 72px minmax(118px,1fr)!important;gap:7px!important;margin:0!important;pointer-events:auto!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{width:100%!important;min-width:0!important;height:39px!important;min-height:39px!important;padding:0 10px!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;border:1px solid rgba(219,232,255,.95)!important;color:#172033!important;box-shadow:0 10px 24px rgba(23,32,51,.18)!important;backdrop-filter:blur(14px)!important;font-size:12px!important;font-weight:950!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen]{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
  .mobile-flyer-workspace.simple .flyer-map-legend,.mobile-flyer-workspace.simple .flyer-map-panel>p.muted{display:none!important}
  .mobile-flyer-workspace.simple .flyer-map-shell{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  .mobile-flyer-workspace.simple .flyer-map-route{position:absolute!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;z-index:1001!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;max-height:none!important;overflow:visible!important}
  .mobile-flyer-workspace.simple .flyer-map-route>strong,.mobile-flyer-workspace.simple .flyer-map-route>small,.mobile-flyer-workspace.simple .flyer-map-route ol,.mobile-flyer-workspace.simple .flyer-route-help,.mobile-flyer-workspace.simple #flyerMapInfo{display:none!important}
  .mobile-flyer-workspace.simple .flyer-route-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:220px!important;max-width:72vw!important;margin:0 auto!important;pointer-events:auto!important}
  .mobile-flyer-workspace.simple .flyer-route-summary div{min-height:40px!important;border:1px solid rgba(219,232,255,.95)!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 12px 28px rgba(23,32,51,.18)!important;backdrop-filter:blur(14px)!important}
  .mobile-flyer-workspace.simple .flyer-route-summary strong{font-size:14px!important;color:#1269e8!important}
  .mobile-flyer-workspace.simple .flyer-route-summary span{font-size:9px!important;color:#526078!important}
  .mobile-flyer-workspace.simple .leaflet-control-zoom{display:none!important}
  .mobile-flyer-workspace.simple .leaflet-popup-content-wrapper{border-radius:18px!important;box-shadow:0 20px 48px rgba(23,32,51,.24)!important}
  .mobile-flyer-workspace.simple .leaflet-popup-content{width:min(292px,calc(100vw - 48px))!important;margin:10px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-info{display:grid!important;position:static!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:8px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-extra-info{display:grid!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions a,.mobile-flyer-workspace.simple .flyer-map-popup .flyer-map-actions button{min-height:35px!important;border-radius:12px!important;font-size:11px!important}
}

/* AFH FIX 2026-06-13: Curved-/Ultra-Wide-Monitor Support fuer Browser-Variante */
@media (min-width:621px){
html,body{min-width:0!important;width:100%!important;max-width:none!important}
body:not(.logged-out){overflow-x:hidden!important;background:radial-gradient(ellipse at 8% -10%,rgba(18,105,232,.13),transparent 30%),radial-gradient(ellipse at 92% -8%,rgba(124,92,232,.12),transparent 28%),linear-gradient(180deg,#fff7ec 0%,#f6eadb 100%)!important}
body:not(.logged-out) main{width:min(100vw - 48px,2280px)!important;max-width:none!important;margin:clamp(18px,2vw,34px) auto!important;padding:0!important}
.admin-web{width:100%!important;max-width:none!important;min-height:calc(100vh - clamp(36px,4vw,68px))!important;border-radius:clamp(18px,1.3vw,30px)!important}
.admin-topbar{grid-template-columns:minmax(260px,1fr) minmax(240px,420px) 44px minmax(150px,220px)!important}.admin-layout{grid-template-columns:clamp(190px,11vw,260px) minmax(0,1fr)!important}
.admin-content{padding:clamp(22px,1.7vw,38px) clamp(24px,2.2vw,52px)!important;gap:clamp(16px,1.2vw,26px)!important;overflow:hidden!important}
.admin-kpis{grid-template-columns:repeat(4,minmax(180px,1fr))!important}.admin-grid,.admin-workspace,.planning-layout,.flyer-layout{grid-template-columns:minmax(0,1.35fr) minmax(360px,.75fr)!important;gap:clamp(16px,1.2vw,28px)!important}
.admin-panel,.client-card,.flyer-route-card,.planning-day{min-width:0!important}.admin-table,.availability-table,.capacity-table{min-width:0!important;table-layout:auto!important}.table{overflow-x:auto!important}
.flyer-map-shell{grid-template-columns:minmax(0,1fr) clamp(300px,20vw,440px)!important}#flyerMap{height:clamp(460px,52vh,760px)!important;max-height:none!important}.flyer-map-route{max-height:clamp(460px,52vh,760px)!important}
}
@media (min-width:1500px){.admin-grid{grid-template-columns:minmax(620px,1.3fr) minmax(420px,.7fr)!important}.admin-workspace,.planning-layout,.flyer-layout{grid-template-columns:minmax(720px,1.35fr) minmax(420px,.65fr)!important}.client-card-grid{grid-template-columns:repeat(3,minmax(320px,1fr))!important}.flyer-route-grid{grid-template-columns:repeat(3,minmax(260px,1fr))!important}}
@media (min-width:1900px){.admin-kpis{grid-template-columns:repeat(4,minmax(220px,1fr))!important}.admin-grid{grid-template-columns:minmax(720px,1.2fr) minmax(460px,.8fr)!important}.planning-week-board{grid-template-columns:repeat(7,minmax(160px,1fr))!important}.client-card-grid{grid-template-columns:repeat(4,minmax(300px,1fr))!important}}
@media (min-width:2560px){body:not(.logged-out) main{width:min(100vw - 96px,2600px)!important}.admin-grid,.admin-workspace,.planning-layout,.flyer-layout{grid-template-columns:minmax(860px,1.25fr) minmax(520px,.75fr)!important}.flyer-map-shell{grid-template-columns:minmax(0,1fr) 460px!important}}
@media (min-width:621px) and (max-width:1180px){body:not(.logged-out) main{width:min(100vw - 28px,1180px)!important}.admin-topbar{grid-template-columns:minmax(220px,1fr) minmax(190px,260px) 40px minmax(130px,160px)!important}.admin-grid,.admin-workspace,.planning-layout,.flyer-layout,.flyer-map-shell{grid-template-columns:1fr!important}.admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* AFH FIX 2026-06-13b: noch groesser fuer Curved / Ultra-Wide */
@media (min-width: 621px) {
  body:not(.logged-out) main {
    width: calc(100vw - 16px) !important;
    max-width: 3400px !important;
    margin: 8px auto !important;
  }

  .admin-web {
    min-height: calc(100vh - 16px) !important;
    border-radius: 16px !important;
  }

  .admin-topbar {
    grid-template-columns:
      minmax(280px, 1fr)
      minmax(280px, 520px)
      44px
      minmax(170px, 240px) !important;
  }

  .admin-layout {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  .admin-content {
    padding: 16px 18px !important;
    gap: 16px !important;
  }

  .flyer-layout,
  .admin-workspace,
  .planning-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .flyer-map-shell {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 12px !important;
    min-height: 78vh !important;
  }

  #flyerMap {
    height: 78vh !important;
    min-height: 780px !important;
    max-height: none !important;
  }

  .flyer-map-route {
    max-height: 78vh !important;
  }

  .client-card-grid {
    grid-template-columns: repeat(4, minmax(320px, 1fr)) !important;
  }

  .flyer-route-grid {
    grid-template-columns: repeat(4, minmax(260px, 1fr)) !important;
  }
}

@media (min-width: 2200px) {
  body:not(.logged-out) main {
    width: calc(100vw - 8px) !important;
    max-width: 4200px !important;
  }

  .flyer-map-shell {
    grid-template-columns: minmax(0, 1fr) 420px !important;
  }

  #flyerMap {
    height: 82vh !important;
    min-height: 900px !important;
  }

  .flyer-map-route {
    max-height: 82vh !important;
  }
}

/* AFH FIX 2026-06-13c: Mobile Flyer-Aktionsmenue als Bottom-Sheet statt oben unter der Notch */
@media (max-width:620px){
  body.flyer-route-focus-mode #flyerMap .leaflet-popup,
  body.flyer-route-focus-mode #flyerMap .leaflet-popup-pane{
    display:none!important;
    pointer-events:none!important;
  }

  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-map-route,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-map-route{
    pointer-events:none!important;
    overflow:visible!important;
  }

  body.flyer-route-focus-mode .mobile-flyer-workspace.simple #flyerMapInfo,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active #flyerMapInfo{
    display:block!important;
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 76px)!important;
    z-index:1004!important;
    pointer-events:auto!important;
    max-height:44dvh!important;
    overflow:visible!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-info{
    display:grid!important;
    position:static!important;
    gap:8px!important;
    max-height:44dvh!important;
    overflow:auto!important;
    padding:13px!important;
    border:1px solid rgba(219,232,255,.95)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 18px 46px rgba(23,32,51,.24)!important;
    backdrop-filter:blur(16px)!important;
    -webkit-overflow-scrolling:touch!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-info.empty{
    display:none!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-info-head{
    grid-template-columns:auto minmax(0,1fr)!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-info-head strong{
    font-size:14px!important;
    line-height:1.15!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-info>span,
  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-info small{
    font-size:11.5px!important;
    line-height:1.3!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-actions a,
  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-actions button{
    min-height:38px!important;
    border-radius:13px!important;
    font-size:11.5px!important;
  }

  body.flyer-route-focus-mode #flyerMapInfo .flyer-map-group-list{
    max-height:30dvh!important;
    overflow:auto!important;
    padding-right:2px!important;
  }

  body.flyer-route-focus-mode .mobile-flyer-workspace.simple .flyer-route-summary,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary{
    position:relative!important;
    z-index:1005!important;
    pointer-events:auto!important;
  }
}

/* AFH FIX 2026-06-13d: Mobile Flyer-Popup immer unten anzeigen */
@media (max-width:620px){
  .mobile-flyer-workspace.simple #flyerMap .leaflet-popup,
  .mobile-flyer-workspace.simple #flyerMap .leaflet-popup-pane{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo{
    display:block!important;
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 106px)!important;
    z-index:100010!important;
    pointer-events:auto!important;
    max-height:42dvh!important;
    overflow:visible!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-info{
    display:grid!important;
    position:static!important;
    gap:8px!important;
    max-height:42dvh!important;
    overflow:auto!important;
    padding:13px!important;
    border:1px solid rgba(219,232,255,.96)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 18px 46px rgba(23,32,51,.24)!important;
    backdrop-filter:blur(16px)!important;
    -webkit-overflow-scrolling:touch!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-info.empty{
    display:none!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-info-head{
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:start!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-info-head strong{
    font-size:14px!important;
    line-height:1.15!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-info>span,
  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-info small{
    font-size:11.5px!important;
    line-height:1.3!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-actions a,
  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-actions button{
    min-height:38px!important;
    border-radius:13px!important;
    font-size:11.5px!important;
  }

  .mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-group-list{
    max-height:30dvh!important;
    overflow:auto!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-route{
    pointer-events:none!important;
  }

  .mobile-flyer-workspace.simple .flyer-route-summary{
    pointer-events:auto!important;
  }
}

/* AFH FIX 2026-06-13e: Schliessen-X fuer mobiles Flyer-Bottom-Sheet */
.flyer-map-info{position:relative!important}
.flyer-map-close{position:absolute!important;right:10px!important;top:10px!important;z-index:3!important;display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:1px solid rgba(219,232,255,.95)!important;border-radius:999px!important;background:rgba(255,255,255,.96)!important;color:#172033!important;font-size:22px!important;font-weight:900!important;line-height:1!important;box-shadow:0 8px 18px rgba(23,32,51,.12)!important}.flyer-map-info .flyer-info-head,.flyer-map-info.group>strong{padding-right:38px!important}
@media (max-width:620px){.mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-info{padding-top:15px!important}.mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-close{right:11px!important;top:11px!important}}

/* AFH FIX 2026-06-13f: Mobiletest ohne sichtbaren Browser-Scrollbar im Handyrahmen */
html.mobiletest-mode,html.mobiletest-mode body{scrollbar-width:none!important}
html.mobiletest-mode::-webkit-scrollbar,html.mobiletest-mode body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* AFH FIX 2026-06-13g: Route loeschen direkt in mobiler Flyer-Routenkarte */
.flyer-route-next-actions .danger{min-height:40px!important;border:1px solid #ffc6cf!important;border-radius:13px!important;background:#fff0f2!important;color:#b42335!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}
@media (max-width:620px){.flyer-route-next-actions .danger{width:100%!important;min-height:42px!important;border-radius:14px!important}}

/* AFH FIX 2026-06-13h: Mobile Flyer Top-Buttons unter Notch sauber anordnen */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-panel>header,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active>header{
    top:calc(env(safe-area-inset-top,0px) + 42px)!important;
    left:14px!important;
    right:14px!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-areas:"back clear" "create create"!important;
    gap:8px!important;
    width:100%!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button{
    height:40px!important;
    min-height:40px!important;
    border-radius:999px!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-location-back],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-location-back]{
    grid-area:back!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-clear],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-clear]{
    grid-area:clear!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-create]{
    grid-area:create!important;
    height:44px!important;
    min-height:44px!important;
    font-size:13px!important;
  }

  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-fullscreen]{
    display:none!important;
  }
}

/* AFH FIX 2026-06-13i: Gruppierte Flyerstellen in Routenplanung auswählbar */
.flyer-group-add{width:100%!important;min-height:38px!important;margin:4px 0!important;border:1px solid #b9e8cc!important;border-radius:13px!important;background:#e9fff3!important;color:#11784f!important;font-size:12px!important;font-weight:950!important}.flyer-map-group-list button.selected{border-color:#1269e8!important;background:#edf4ff!important;box-shadow:inset 4px 0 0 #1269e8!important}.flyer-map-group-list button.selected .flyer-type{background:#1269e8!important;color:#fff!important}
@media (max-width:620px){.mobile-flyer-workspace.simple #flyerMapInfo .flyer-group-add{min-height:40px!important;border-radius:14px!important}.mobile-flyer-workspace.simple #flyerMapInfo .flyer-map-group-list button.selected{background:#edf4ff!important}}
.offers-panel .muted{margin:0 0 12px!important}.offers-table .offer-actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important}.offers-table button{height:30px!important;border:1px solid #d9caff!important;border-radius:9px!important;background:#fff!important;color:#173a9a!important;font-size:11px!important;font-weight:900!important;padding:0 9px!important;cursor:pointer!important}.offers-table button.danger{border-color:#ffc6cf!important;color:#b42335!important;background:#fff4f5!important}.offer-editor-modal{width:min(860px,calc(100vw - 60px))!important}.offer-items-field{display:grid!important;gap:8px!important;border:1px solid #eadccd!important;border-radius:14px!important;padding:12px!important;background:#fffdf9!important}.offer-items-field legend{font-weight:900!important;color:#173a9a!important}.offer-item-head,.offer-item-row{display:grid!important;grid-template-columns:minmax(220px,1fr) 86px 86px 110px 38px!important;gap:8px!important;align-items:center!important}.offer-item-head{font-size:11px!important;color:#657085!important;font-weight:900!important}.offer-item-row input{min-width:0!important}.offer-live-total{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:center!important;padding:12px!important;border-radius:14px!important;background:#edf4ff!important;color:#123583!important;font-weight:900!important}.offer-live-total span{color:#526078!important;font-size:12px!important}.status-pill.done{background:#e9fff3!important;color:#087a4f!important}.status-pill.warn{background:#fff2e4!important;color:#a76500!important}@media(max-width:760px){.offer-editor-modal{width:calc(100vw - 24px)!important}.offer-item-head{display:none!important}.offer-item-row{grid-template-columns:1fr 1fr!important}.offer-item-row input:first-child{grid-column:1/-1!important}.offer-live-total{display:grid!important}.offers-table .offer-actions{display:grid!important}}

/* AFH 2026-06-27: Flyer Tages-/Wochenexport und GPS-Status */
.flyer-report-panel{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 12px!important}.flyer-report-panel>div,.flyer-export-link{display:grid!important;align-content:center!important;min-height:66px!important;padding:12px!important;border:1px solid #dbe8ff!important;border-radius:12px!important;background:#fff!important;text-decoration:none!important;color:#172033!important;box-shadow:0 8px 20px rgba(43,35,26,.035)!important}.flyer-report-panel strong{font-size:22px!important;line-height:1!important;color:#1269e8!important}.flyer-report-panel span,.flyer-report-panel small{font-size:11px!important;font-weight:900!important;color:#526078!important}.flyer-export-link{place-items:center!important;text-align:center!important;background:#edf4ff!important;color:#173a9a!important;font-size:12px!important;font-weight:950!important}.flyer-gps-live{display:inline-flex!important;width:max-content!important;max-width:100%!important;margin-top:4px!important;padding:4px 8px!important;border-radius:999px!important;background:#e9fff3!important;color:#087a4f!important;font-size:10px!important;font-weight:950!important;white-space:normal!important}
@media (max-width:620px){.flyer-report-panel{grid-template-columns:1fr 1fr!important;margin:0 0 10px!important;padding:0!important}.flyer-report-panel>div,.flyer-export-link{min-height:54px!important;border-radius:14px!important;padding:10px!important}.flyer-report-panel strong{font-size:18px!important}.flyer-report-panel span,.flyer-report-panel small,.flyer-export-link{font-size:10.5px!important}.mobile-flyer-workspace.simple .flyer-report-panel{width:min(390px,calc(100vw - 28px))!important;margin:0 auto 10px!important;padding-top:10px!important}}

/* AFH 2026-06-27b: kostenloser Vivien-Fokus, Tagescheck und Offline-Puffer */
.flyer-admin-checks{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin:0 0 12px!important}.flyer-focus-card,.flyer-focus-progress,.flyer-daily-check,.flyer-address-quality,.offline-queue-badge{display:grid!important;gap:10px!important;margin:0 0 10px!important;padding:13px!important;border:1px solid #dbe8ff!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 20px rgba(43,35,26,.05)!important}.flyer-focus-card header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}.flyer-focus-card header strong{display:block!important;color:#173a9a!important;font-size:14px!important}.flyer-focus-card header span,.flyer-focus-card section small,.flyer-focus-card p{color:#526078!important;font-size:11px!important;font-weight:800!important}.flyer-focus-card header b{padding:5px 8px!important;border-radius:999px!important;background:#e9fff3!important;color:#087a4f!important;font-size:10px!important;white-space:nowrap!important}.flyer-focus-card header b.warn{background:#fff2e4!important;color:#a76500!important}.flyer-focus-card h3{margin:0!important;font-size:18px!important;color:#172033!important}.flyer-focus-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:8px!important}.flyer-focus-actions a,.flyer-focus-actions button{display:grid!important;place-items:center!important;min-height:42px!important;border:1px solid #d9caff!important;border-radius:12px!important;background:#edf4ff!important;color:#173a9a!important;text-decoration:none!important;font-size:12px!important;font-weight:950!important}.flyer-focus-actions button:nth-child(2){background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}.flyer-focus-progress{grid-template-columns:auto 1fr!important;align-items:center!important}.flyer-focus-progress>div:first-child strong{display:block!important;color:#1269e8!important;font-size:22px!important;line-height:1!important}.flyer-focus-progress>div:first-child span,.flyer-focus-progress small{color:#526078!important;font-size:11px!important;font-weight:900!important}.flyer-focus-progress.done{border-color:#b9e8cc!important}.flyer-focus-progress.warn{border-color:#ffe0a8!important}.flyer-progress-bar{height:12px!important;border-radius:999px!important;background:#edf4ff!important;overflow:hidden!important}.flyer-progress-bar span{display:block!important;height:100%!important;border-radius:999px!important;background:#1269e8!important}.flyer-focus-progress.done .flyer-progress-bar span{background:#18b875!important}.flyer-daily-check h3,.flyer-address-quality h3{margin:0!important;color:#173a9a!important;font-size:13px!important}.flyer-daily-check>div{display:flex!important;align-items:center!important;gap:8px!important;font-size:12px!important;font-weight:900!important;color:#172033!important}.flyer-daily-check b{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:999px!important;background:#fff2e4!important;color:#a76500!important}.flyer-daily-check .ok b{background:#e9fff3!important;color:#087a4f!important}.flyer-address-quality{grid-template-columns:repeat(3,1fr)!important}.flyer-address-quality h3,.flyer-address-quality small{grid-column:1/-1!important}.flyer-address-quality strong{display:block!important;color:#1269e8!important;font-size:20px!important}.flyer-address-quality span,.flyer-address-quality small{color:#526078!important;font-size:11px!important;font-weight:900!important}.offline-queue-badge{grid-template-columns:auto 1fr auto!important;align-items:center!important;border-color:#ffe0a8!important;background:#fffaf0!important}.offline-queue-badge strong{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:999px!important;background:#a76500!important;color:#fff!important}.offline-queue-badge span{font-size:12px!important;font-weight:950!important;color:#6f4300!important}.offline-queue-badge button{min-height:34px!important;border-radius:999px!important;font-size:11px!important;background:#fff!important}
@media (max-width:620px){.flyer-admin-checks{grid-template-columns:1fr!important}.flyer-focus-card,.flyer-focus-progress,.flyer-daily-check,.flyer-address-quality,.offline-queue-badge{width:min(390px,calc(100vw - 28px))!important;margin:0 auto 10px!important;border-radius:16px!important}.flyer-focus-actions{grid-template-columns:1fr!important}.flyer-focus-progress{grid-template-columns:1fr!important}.flyer-address-quality{grid-template-columns:repeat(3,1fr)!important}.mobile-flyer-workspace.simple .flyer-focus-card,.mobile-flyer-workspace.simple .flyer-focus-progress,.mobile-flyer-workspace.simple .flyer-daily-check{margin-top:10px!important}}

.flyer-drop-editor-backdrop{z-index:100300!important;pointer-events:auto!important}
.flyer-drop-editor-backdrop .flyer-drop-editor{position:relative!important;z-index:100301!important}

/* Modern flyer drop editor */
.flyer-drop-editor-backdrop{z-index:100300!important;background:rgba(14,22,40,.42)!important;backdrop-filter:blur(6px)!important;pointer-events:auto!important}
.flyer-drop-editor-modern{width:min(680px,calc(100vw - 24px))!important;max-height:min(88vh,920px)!important;overflow:hidden!important;border-radius:28px!important;background:linear-gradient(180deg,#fffdfa 0%,#fff8f0 100%)!important;box-shadow:0 28px 70px rgba(20,27,45,.26)!important;border:1px solid rgba(234,220,205,.95)!important;display:grid!important;grid-template-rows:auto 1fr auto!important;padding:0!important}
.flyer-editor-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;padding:22px 22px 16px!important;border-bottom:1px solid rgba(230,219,205,.9)!important;background:rgba(255,252,247,.9)!important}
.flyer-editor-head h2{margin:0!important;font-size:28px!important;line-height:1.05!important;letter-spacing:-.03em!important;color:#1b2340!important}.flyer-editor-head p{margin:6px 0 0!important;color:#6e7689!important;font-size:14px!important;font-weight:800!important}.flyer-editor-close{width:42px!important;height:42px!important;min-height:42px!important;border-radius:14px!important;border:1px solid #e7d9c8!important;background:#fff!important;color:#24304a!important;font-size:22px!important;font-weight:900!important;cursor:pointer!important;display:grid!important;place-items:center!important;padding:0!important}
.flyer-editor-body{overflow:auto!important;padding:18px 22px 8px!important;display:grid!important;gap:16px!important}.flyer-editor-section{padding:16px!important;border:1px solid #eadfd2!important;border-radius:20px!important;background:rgba(255,255,255,.82)!important;box-shadow:0 8px 20px rgba(44,35,25,.05)!important;display:grid!important;gap:14px!important}.flyer-editor-section-title{font-size:12px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#7b8397!important}
.flyer-drop-editor-modern label{display:grid!important;gap:8px!important}.flyer-drop-editor-modern label>span{font-size:14px!important;font-weight:850!important;color:#4e5a73!important}.flyer-drop-editor-modern input,.flyer-drop-editor-modern select,.flyer-drop-editor-modern textarea{width:100%!important;border:1px solid #ded2c4!important;border-radius:16px!important;background:#fffdfb!important;padding:14px 15px!important;color:#1f2740!important;font:inherit!important;font-weight:750!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important}.flyer-drop-editor-modern textarea{resize:vertical!important;min-height:88px!important}.flyer-drop-editor-modern ::placeholder{color:#9a9a9a!important;font-weight:700!important}
.flyer-status-pills{display:flex!important;flex-wrap:wrap!important;gap:10px!important}.flyer-status-pill{min-height:40px!important;padding:10px 14px!important;border-radius:999px!important;border:1px solid #d9dfef!important;background:#fff!important;color:#33415f!important;font-size:14px!important;font-weight:950!important;cursor:pointer!important}.flyer-status-pill.active[data-status-value="Offen"]{background:#eef4ff!important;border-color:#cfe0ff!important;color:#1f5fd4!important}.flyer-status-pill.active[data-status-value="Erledigt"]{background:#ecfff3!important;border-color:#bfe6cb!important;color:#127247!important}.flyer-status-pill.active[data-status-value="Hinweis"]{background:#fff6e8!important;border-color:#f0d19b!important;color:#ad6a00!important}.flyer-status-pill.active[data-status-value="Übersprungen"]{background:#f1f3f7!important;border-color:#d8dde7!important;color:#5b667b!important}
.flyer-editor-footer{display:flex!important;justify-content:space-between!important;gap:12px!important;padding:16px 22px 22px!important;border-top:1px solid rgba(230,219,205,.9)!important;background:rgba(255,252,247,.96)!important;position:sticky!important;bottom:0!important}.flyer-editor-footer .ghost,.flyer-editor-footer .primary{flex:1!important;min-height:52px!important;border-radius:16px!important;font-size:16px!important;font-weight:950!important}.flyer-editor-footer .ghost{background:#fff!important;border:1px solid #dfd4c7!important;color:#2b3650!important}.flyer-editor-footer .primary{background:linear-gradient(135deg,#3a6ee8,#2856c8)!important;border:0!important;color:#fff!important}
@media (max-width:620px){.flyer-drop-editor-modern{width:calc(100vw - 14px)!important;max-height:92vh!important;border-radius:24px!important}.flyer-editor-head{padding:18px 18px 14px!important}.flyer-editor-head h2{font-size:24px!important}.flyer-editor-body{padding:14px 18px 6px!important}.flyer-editor-footer{padding:14px 18px 18px!important}.flyer-editor-section{padding:14px!important;border-radius:18px!important}}

/* Flyer editor layout hard fix */
.flyer-drop-editor-backdrop{display:grid!important;place-items:center!important;padding:12px!important}
.flyer-drop-editor-modern{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;width:min(620px,calc(100vw - 24px))!important;max-height:92vh!important;overflow:hidden!important;padding:0!important;margin:0!important;border-radius:26px!important}
.flyer-editor-body{display:grid!important;gap:13px!important;min-height:0!important;overflow:auto!important;padding:14px 18px 8px!important}
.flyer-editor-section{display:grid!important;gap:12px!important;padding:14px!important;border:1px solid #eadfd2!important;border-radius:18px!important;background:rgba(255,255,255,.88)!important}
.flyer-editor-section-title{display:block!important;margin:0!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#7b8397!important}
.flyer-drop-editor-modern label{display:grid!important;gap:6px!important;margin:0!important}.flyer-drop-editor-modern label>span{display:block!important;font-size:13px!important;font-weight:850!important;color:#4e5a73!important}.flyer-drop-editor-modern input,.flyer-drop-editor-modern select,.flyer-drop-editor-modern textarea{box-sizing:border-box!important;width:100%!important;min-height:46px!important;border-radius:14px!important;padding:12px 14px!important;font-size:15px!important}.flyer-drop-editor-modern textarea{min-height:78px!important}
.flyer-status-pills{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.flyer-status-pill{width:100%!important;min-height:40px!important;border-radius:13px!important;padding:9px 10px!important;font-size:13px!important}
.flyer-editor-footer{display:grid!important;grid-template-columns:1fr 1.2fr!important;gap:10px!important;padding:13px 18px 17px!important}

/* Flyer category symbols: readable abbreviations instead of emoji glyphs */
#flyerMap .leaflet-marker-icon.flyer-map-pin{outline:none!important}
.flyer-map-pin .flyer-map-pin-inner span{font-family:Inter,Arial,Helvetica,sans-serif!important;font-size:10.5px!important;font-weight:950!important;letter-spacing:-.04em!important;text-transform:none!important}
.flyer-map-pin.medizin .flyer-map-pin-inner span,.flyer-map-pin.apotheke .flyer-map-pin-inner span,.flyer-map-pin.kita .flyer-map-pin-inner span,.flyer-map-pin.pflege .flyer-map-pin-inner span,.flyer-map-pin.kirche .flyer-map-pin-inner span,.flyer-map-pin.handel .flyer-map-pin-inner span,.flyer-map-pin.sonstiges .flyer-map-pin-inner span{font-size:10px!important;min-width:20px!important;height:20px!important}
.flyer-map-pin.grouped .flyer-map-pin-inner em{width:24px!important;height:20px!important;right:-8px!important;bottom:-6px!important;border-radius:999px!important;font-size:9px!important;font-family:Inter,Arial,Helvetica,sans-serif!important;font-weight:950!important;letter-spacing:-.05em!important}
.flyer-type{font-family:Inter,Arial,Helvetica,sans-serif!important;font-size:10px!important;font-weight:950!important;letter-spacing:-.04em!important}.flyer-map-legend .flyer-type{width:24px!important;height:20px!important;border-radius:8px!important;font-size:9px!important}.flyer-info-head .flyer-type,.flyer-map-group-list .flyer-type,.flyer-review-list .flyer-type{font-size:10px!important}
.flyer-map-pin.done .flyer-map-pin-inner span,.flyer-map-pin.warn .flyer-map-pin-inner span,.flyer-map-pin.skipped .flyer-map-pin-inner span,.flyer-map-pin.selected .flyer-map-pin-inner span{font-size:12px!important;letter-spacing:0!important}

/* Flyer category symbols: icon mode */
.flyer-map-pin .flyer-map-pin-inner span{font-family:Arial,Helvetica,sans-serif!important;font-size:14px!important;font-weight:950!important;letter-spacing:0!important;text-transform:none!important}
.flyer-map-pin.medizin .flyer-map-pin-inner span,.flyer-map-pin.apotheke .flyer-map-pin-inner span,.flyer-map-pin.kita .flyer-map-pin-inner span,.flyer-map-pin.pflege .flyer-map-pin-inner span,.flyer-map-pin.kirche .flyer-map-pin-inner span,.flyer-map-pin.handel .flyer-map-pin-inner span,.flyer-map-pin.sonstiges .flyer-map-pin-inner span{font-size:14px!important;min-width:20px!important;height:20px!important}
.flyer-map-pin.apotheke .flyer-map-pin-inner span{font-size:15px!important}.flyer-map-pin.kita .flyer-map-pin-inner span{font-size:16px!important}.flyer-map-pin.pflege .flyer-map-pin-inner span{font-size:14px!important}.flyer-map-pin.kirche .flyer-map-pin-inner span{font-size:15px!important}.flyer-map-pin.handel .flyer-map-pin-inner span{font-size:13px!important}.flyer-map-pin.sonstiges .flyer-map-pin-inner span{font-size:17px!important}
.flyer-type{font-family:Arial,Helvetica,sans-serif!important;font-size:13px!important;font-weight:950!important;letter-spacing:0!important}.flyer-map-legend .flyer-type{font-size:12px!important}.flyer-map-pin.grouped .flyer-map-pin-inner em{font-family:Arial,Helvetica,sans-serif!important;font-size:13px!important;letter-spacing:0!important}

/* Better symbols for Kita and Salon */
.flyer-map-pin.kita .flyer-map-pin-inner span{font-size:15px!important;font-weight:950!important}
.flyer-map-pin.handel .flyer-map-pin-inner span{font-size:15px!important;font-weight:950!important}
.flyer-type.kita,.flyer-type.handel{font-size:13px!important;font-weight:950!important}
.flyer-map-legend .flyer-type.kita,.flyer-map-legend .flyer-type.handel{font-size:12px!important}

/* Kita / Kindergarten teddy symbol */
.flyer-map-pin.kita .flyer-map-pin-inner span{font-size:13px!important;font-family:"Apple Color Emoji","Segoe UI Emoji",Arial,Helvetica,sans-serif!important;letter-spacing:0!important}
.flyer-type.kita{font-size:13px!important;font-family:"Apple Color Emoji","Segoe UI Emoji",Arial,Helvetica,sans-serif!important}
.flyer-map-legend .flyer-type.kita{font-size:12px!important}

/* Pflege / Soziales support symbol */
.flyer-map-pin.pflege .flyer-map-pin-inner span{font-size:12px!important;font-family:"Apple Color Emoji","Segoe UI Emoji",Arial,Helvetica,sans-serif!important;letter-spacing:0!important}
.flyer-type.pflege{font-size:12px!important;font-family:"Apple Color Emoji","Segoe UI Emoji",Arial,Helvetica,sans-serif!important}
.flyer-map-legend .flyer-type.pflege{font-size:11px!important}

/* Apotheke pill symbol */
.flyer-map-pin.apotheke .flyer-map-pin-inner span{font-size:12px!important;font-family:"Apple Color Emoji","Segoe UI Emoji",Arial,Helvetica,sans-serif!important;letter-spacing:0!important}
.flyer-type.apotheke{font-size:12px!important;font-family:"Apple Color Emoji","Segoe UI Emoji",Arial,Helvetica,sans-serif!important}
.flyer-map-legend .flyer-type.apotheke{font-size:11px!important}

/* Reports / time bookings cleanup */
.admin-time-tools{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important}.admin-time-tools small{color:#657085!important;font-size:12px!important;font-weight:800!important}.admin-time-table-wrap{max-height:620px!important;overflow:auto!important;border:1px solid #eef1f6!important;border-radius:14px!important;background:#fff!important}.admin-time-table{min-width:760px!important}.admin-time-table th{position:sticky!important;top:0!important;z-index:2!important}.admin-time-table td small{display:block!important;margin-top:3px!important;color:#657085!important;font-size:11px!important;font-weight:800!important}.time-actions{display:flex!important;gap:6px!important;white-space:nowrap!important}.time-actions button{min-height:30px!important;border-radius:9px!important;border:1px solid #dbe8ff!important;background:#edf4ff!important;color:#1269e8!important;font-size:11px!important;font-weight:900!important;padding:5px 8px!important}.time-actions button.danger{background:#fff0f2!important;border-color:#ffcbd3!important;color:#b42335!important}.time-editor-modal{max-width:520px!important}.time-editor-backdrop{z-index:100400!important}
@media (min-width:621px){.admin-tab-reports .admin-grid{grid-template-columns:minmax(720px,1fr) 360px!important;align-items:start!important}.admin-tab-reports .admin-panel.admin-wide{grid-row:span 2!important}}

/* Reports desktop layout fix */
@media (min-width:621px){
  .admin-tab-reports .admin-content{overflow:hidden!important}
  .admin-tab-reports .admin-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
  .admin-tab-reports .admin-kpi{min-width:0!important}
  .admin-tab-reports .admin-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:18px!important;align-items:start!important;overflow:hidden!important}
  .admin-tab-reports .admin-panel{min-width:0!important;overflow:hidden!important}
  .admin-tab-reports .admin-panel.admin-wide{grid-row:span 2!important;min-width:0!important}
  .admin-time-tools{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 14px!important}
  .admin-time-table-wrap{max-height:650px!important;overflow:auto!important;overflow-x:hidden!important;border:1px solid #eef1f6!important;border-radius:16px!important;background:#fff!important}
  .admin-time-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important}
  .admin-time-table th,.admin-time-table td{padding:10px 8px!important;vertical-align:top!important}
  .admin-time-table th:nth-child(1),.admin-time-table td:nth-child(1){width:96px!important}
  .admin-time-table th:nth-child(2),.admin-time-table td:nth-child(2){width:108px!important}
  .admin-time-table th:nth-child(3),.admin-time-table td:nth-child(3){width:92px!important}
  .admin-time-table th:nth-child(4),.admin-time-table td:nth-child(4){width:52px!important;text-align:right!important}
  .admin-time-table th:nth-child(6),.admin-time-table td:nth-child(6){width:104px!important;text-align:right!important}
  .admin-time-table td:nth-child(5){word-break:break-word!important}
  .admin-time-table td small{display:block!important;max-width:100%!important;white-space:normal!important;line-height:1.25!important}
  .time-actions{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;justify-items:stretch!important}
  .time-actions button{width:100%!important;min-height:28px!important;padding:4px 7px!important;font-size:10.5px!important}
}
@media (min-width:621px) and (max-width:1280px){
  .admin-tab-reports .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-tab-reports .admin-grid{grid-template-columns:1fr!important}
  .admin-tab-reports .admin-panel.admin-wide{grid-row:auto!important}
}

/* AFH Portal */
.portal-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:22px;border-radius:22px;background:linear-gradient(135deg,#1269e8,#69a8ff);color:#fff;box-shadow:0 18px 42px rgba(18,105,232,.22)}.portal-hero b{display:inline-flex;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.18);font-size:12px}.portal-hero h2{margin:10px 0 6px;font-size:28px}.portal-hero p{margin:0;max-width:760px;color:rgba(255,255,255,.9);font-weight:700}.portal-primary-link{display:inline-flex;align-items:center;justify-content:center;min-width:210px;padding:13px 16px;border-radius:15px;background:#fff;color:#1269e8!important;font-weight:950;text-decoration:none;box-shadow:0 10px 26px rgba(0,0,0,.16)}.portal-primary-link.muted{color:#5c6b82!important;background:rgba(255,255,255,.78)}.portal-grid{align-items:start}.portal-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.portal-link-card{display:flex;flex-direction:column;justify-content:space-between;gap:14px;padding:15px;border:1px solid #e8eef8;border-radius:16px;background:#fbfdff}.portal-link-card span{display:inline-flex;width:max-content;padding:4px 8px;border-radius:999px;background:#edf4ff;color:#1269e8;font-size:11px;font-weight:950}.portal-link-card strong{display:block;margin-top:8px;color:#172033}.portal-link-card small{display:block;margin-top:5px;color:#657085;line-height:1.35}.portal-link-card footer{display:flex;gap:8px}.portal-link-card a,.portal-link-card button,.portal-snippets button{border:0;border-radius:11px;padding:9px 11px;background:#1269e8;color:#fff!important;text-decoration:none;font-weight:950;font-size:12px}.portal-link-card button.danger{background:#fff0f2!important;color:#b42335!important;border:1px solid #ffcbd3}.portal-link-form{display:grid;gap:10px}.portal-link-form label{display:grid;gap:5px;font-size:12px;font-weight:900;color:#43516a}.portal-link-form input,.portal-link-form select,.portal-link-form textarea{width:100%;border:1px solid #dbe4f2;border-radius:12px;padding:10px;font:inherit}.portal-checklist{display:grid;gap:10px}.portal-checklist label{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:12px;background:#f7f9fd;font-weight:850;color:#2f3a4f}.portal-snippets{display:grid;gap:9px}.portal-snippets button{background:#edf4ff;color:#1269e8!important;border:1px solid #dbe8ff;text-align:left}.mobile-portal .mobile-route-button{display:flex;justify-content:center;margin:6px 0 12px;text-decoration:none}@media(max-width:720px){.portal-hero{display:grid;padding:18px}.portal-primary-link{min-width:0}.portal-hero h2{font-size:22px}}

/* Daily kilometer reports */
.daily-km-table-wrap{max-height:420px!important;overflow:auto!important;border:1px solid #eef1f6!important;border-radius:16px!important;background:#fff!important}.daily-km-table{width:100%!important;min-width:720px!important}.daily-km-table th{position:sticky!important;top:0!important;background:#f8fbff!important;z-index:2!important}.daily-km-table td:nth-child(2) b{color:#1269e8!important;font-size:16px!important}.daily-km-table td:nth-child(3){display:grid!important;gap:4px!important}.daily-km-table td:nth-child(3) span{display:inline-flex!important;width:max-content!important;max-width:100%!important;padding:4px 8px!important;border-radius:999px!important;background:#edf4ff!important;color:#1269e8!important;font-size:11px!important;font-weight:900!important}.daily-km-table small{color:#657085!important;font-weight:800!important}.reports-grid .admin-panel.admin-wide:first-child{grid-column:1/-1!important}@media(max-width:720px){.daily-km-table{min-width:620px!important}}

/* Route viewer */
.route-view-button{border:0!important;border-radius:10px!important;padding:7px 9px!important;background:#edf4ff!important;color:#1269e8!important;font-size:11px!important;font-weight:950!important;white-space:nowrap!important}.daily-route-details{display:grid!important;gap:6px!important}.daily-route-details summary{cursor:pointer!important;color:#1269e8!important;font-weight:950!important;font-size:12px!important}.daily-route-details div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:6px!important;padding:7px!important;border-radius:10px!important;background:#f8fbff!important}.driving-route-backdrop{z-index:100500!important}.driving-route-modal{width:min(860px,calc(100vw - 24px))!important;max-height:calc(100vh - 24px)!important;display:grid!important;grid-template-rows:auto minmax(360px,1fr) auto!important;overflow:hidden!important}.driving-route-modal header{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:flex-start!important}.driving-route-modal h2{margin:0!important}.driving-route-modal p{margin:4px 0 0!important;color:#657085!important;font-weight:800!important}.driving-route-modal footer{display:flex!important;justify-content:flex-end!important;padding-top:12px!important}#drivingRouteMap{min-height:420px!important;width:100%!important;border-radius:16px!important;overflow:hidden!important;border:1px solid #e5edf8!important;background:#eef4ff!important}.route-map-empty{display:grid!important;place-items:center!important;text-align:center!important;gap:8px!important;min-height:260px!important;border:1px dashed #cfe0f5!important;border-radius:16px!important;background:#f8fbff!important;color:#526078!important;padding:22px!important}.route-map-empty strong{color:#172033!important}@media(max-width:720px){.driving-route-modal{grid-template-rows:auto minmax(320px,1fr) auto!important}.daily-route-details div{display:grid!important}.route-view-button{width:100%!important}#drivingRouteMap{min-height:360px!important}}

/* Day route viewer */
.day-route-button{background:#1269e8!important;color:#fff!important}.day-route-modal{grid-template-rows:auto minmax(360px,1fr) auto auto!important}.day-route-legend{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:8px!important;margin-top:10px!important;padding:10px!important;border:1px solid #e5edf8!important;border-radius:14px!important;background:#f8fbff!important}.day-route-legend div{display:flex!important;align-items:center!important;gap:8px!important;font-size:12px!important;font-weight:850!important;color:#43516a!important}.day-route-legend b{width:13px!important;height:13px!important;border-radius:999px!important;display:inline-block!important;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(18,105,232,.12)!important}.daily-km-table td:nth-child(5){display:grid!important;gap:6px!important;align-content:start!important}.daily-km-table td:nth-child(5) small{display:block!important;color:#657085!important}@media(max-width:720px){.day-route-modal{grid-template-rows:auto minmax(320px,1fr) auto auto!important}.day-route-legend{grid-template-columns:1fr!important}}

/* GPS route display notes */
.route-source-note{display:inline-flex!important;margin-top:5px!important;padding:4px 8px!important;border-radius:999px!important;background:#edf4ff!important;color:#1269e8!important;font-size:11px!important;font-weight:950!important}

/* Speed and GPS quality */
.gps-speed-mini{display:block!important;margin-top:3px!important;color:#1269e8!important;font-size:11px!important;font-weight:950!important}.gps-quality-panel{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;border-radius:16px!important;border:1px solid #e5edf8!important;background:#f8fbff!important}.gps-quality-panel div{padding:10px!important;border-radius:13px!important;background:#fff!important}.gps-quality-panel strong{display:block!important;color:#172033!important;font-size:18px!important}.gps-quality-panel span{display:block!important;margin-top:3px!important;color:#657085!important;font-size:11px!important;font-weight:900!important}.gps-quality-panel p{grid-column:1/-1!important;margin:0!important;color:#526078!important;font-size:12px!important;font-weight:850!important}.gps-quality-panel.good{border-color:#bdebd5!important;background:#f0fff7!important}.gps-quality-panel.mid{border-color:#fde3a7!important;background:#fff9eb!important}.gps-quality-panel.warn{border-color:#ffcbd3!important;background:#fff5f6!important}.gps-warnings{color:#b42335!important}.daily-route-details div span{display:grid!important;gap:2px!important}.day-route-legend .gps-speed-mini{margin-top:2px!important;color:#526078!important}.driving-route-modal{grid-template-rows:auto auto minmax(300px,1fr) auto!important}.day-route-modal{grid-template-rows:auto minmax(330px,1fr) auto auto!important}@media(max-width:720px){.gps-quality-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important}.gps-quality-panel strong{font-size:15px!important}}

/* Speed colored route segments */
.speed-color-legend{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;margin:8px 0 0!important;padding:9px 10px!important;border:1px solid #e5edf8!important;border-radius:14px!important;background:#f8fbff!important}.speed-color-legend span{display:inline-flex!important;align-items:center!important;gap:5px!important;font-size:11px!important;font-weight:950!important;color:#43516a!important}.speed-color-legend b{width:22px!important;height:6px!important;border-radius:999px!important;display:inline-block!important}.speed-color-legend em{font-style:normal!important;color:#657085!important;font-size:11px!important;font-weight:900!important}

/* Instant route mobile workflow */
.instant-route-card{border:1px solid #dbe8ff!important;background:linear-gradient(180deg,#f8fbff,#ffffff)!important}.instant-route-card.active{border-color:#bdebd5!important;background:linear-gradient(180deg,#f0fff7,#ffffff)!important}.instant-route-card h3{margin-bottom:6px!important}.instant-route-card p{margin:0 0 12px!important;color:#526078!important;font-weight:800!important}.instant-route-card strong{display:block!important;font-size:18px!important;color:#172033!important;margin:4px 0!important}.instant-route-card span{display:block!important;color:#1269e8!important;font-weight:950!important;margin:4px 0 10px!important}.instant-route-card small{display:block!important;color:#657085!important;font-weight:800!important;margin-top:8px!important}.instant-route-sheet form{display:grid!important;gap:12px!important}.instant-route-sheet label{display:grid!important;gap:6px!important;font-size:12px!important;font-weight:950!important;color:#43516a!important}.instant-route-sheet input{width:100%!important;border:1px solid #dbe4f2!important;border-radius:14px!important;padding:13px!important;font:inherit!important}.instant-route-sheet p{margin:0!important;color:#526078!important;font-weight:800!important;line-height:1.4!important}.instant-route-sheet .mobile-route-button{width:100%!important;justify-content:center!important;border:0!important}

/* Instant route map picker */
.instant-map-pick{width:100%!important;border:1px solid #dbe8ff!important;background:#edf4ff!important;color:#1269e8!important;border-radius:14px!important;padding:12px!important;font-weight:950!important}.instant-map-picker-backdrop{z-index:100650!important}.instant-map-picker-sheet{max-height:92vh!important;display:grid!important;grid-template-rows:auto auto minmax(360px,1fr) auto!important}.instant-map-help{padding:9px 11px!important;border-radius:13px!important;background:#edf4ff!important;color:#1269e8!important;font-size:12px!important;font-weight:950!important}#instantRoutePickerMap{min-height:360px!important;width:100%!important;border-radius:18px!important;overflow:hidden!important;border:1px solid #e5edf8!important;background:#eef4ff!important}.instant-picked-point{display:grid!important;gap:7px!important;padding:10px!important;border-radius:14px!important;background:#f0fff7!important;border:1px solid #bdebd5!important}.instant-picked-point[hidden]{display:none!important}.instant-picked-point strong{color:#172033!important}.instant-picked-point span{color:#526078!important;font-weight:850!important}.instant-map-picker-sheet .leaflet-popup-content button{border:0!important;border-radius:10px!important;background:#1269e8!important;color:#fff!important;padding:8px 10px!important;font-weight:900!important;margin-top:6px!important}@media(max-width:720px){.instant-map-picker-sheet{grid-template-rows:auto auto minmax(320px,1fr) auto!important}#instantRoutePickerMap{min-height:340px!important}}

/* Instant route multi point picker */
.instant-selected-list{display:grid!important;gap:6px!important;margin:8px 0!important;max-height:120px!important;overflow:auto!important}.instant-selected-list div{display:grid!important;grid-template-columns:26px 1fr 28px!important;gap:7px!important;align-items:center!important;padding:7px!important;border-radius:11px!important;background:#fff!important;border:1px solid #e5edf8!important}.instant-selected-list b{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:999px!important;background:#1269e8!important;color:#fff!important;font-size:11px!important}.instant-selected-list span{font-size:12px!important;font-weight:900!important;color:#172033!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.instant-selected-list button{border:0!important;border-radius:9px!important;background:#fff0f2!important;color:#b42335!important;font-weight:950!important}.instant-picked-point .mobile-route-button:disabled{opacity:.45!important;filter:grayscale(.4)!important}.instant-map-picker-sheet .leaflet-popup-content button{width:100%!important}.instant-map-help{line-height:1.35!important}

/* Instant route place list */
.instant-map-picker-sheet{grid-template-rows:auto auto auto minmax(300px,1fr) auto!important}.instant-place-panel{display:grid!important;gap:8px!important;padding:10px!important;border-radius:15px!important;background:#fff!important;border:1px solid #e5edf8!important}.instant-place-panel label{display:grid!important;gap:5px!important;font-size:11px!important;font-weight:950!important;color:#43516a!important}.instant-place-panel input{width:100%!important;border:1px solid #dbe4f2!important;border-radius:12px!important;padding:10px!important;font:inherit!important}.instant-place-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:7px!important;max-height:150px!important;overflow:auto!important}.instant-place-list button{display:grid!important;grid-template-columns:28px 1fr 24px!important;align-items:center!important;gap:7px!important;text-align:left!important;border:1px solid #e5edf8!important;border-radius:12px!important;background:#f8fbff!important;padding:8px!important}.instant-place-list b{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:999px!important;background:#edf4ff!important}.instant-place-list strong{display:block!important;color:#172033!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.instant-place-list small{display:block!important;color:#657085!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.instant-place-list em{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:999px!important;background:#1269e8!important;color:#fff!important;font-style:normal!important;font-weight:950!important}.instant-place-list p{margin:0!important;color:#657085!important;font-size:12px!important;font-weight:850!important}@media(max-width:720px){.instant-map-picker-sheet{grid-template-rows:auto auto auto minmax(260px,1fr) auto!important}.instant-place-list{grid-template-columns:1fr!important;max-height:132px!important}}

/* Instant route city planner */
.instant-city-tabs{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important}.instant-city-tabs button{border:1px solid #dbe8ff!important;border-radius:13px!important;background:#f8fbff!important;color:#1269e8!important;padding:10px 6px!important;font-weight:950!important}.instant-city-tabs button.active{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important;box-shadow:0 10px 22px rgba(18,105,232,.18)!important}.instant-place-actions{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:end!important}.instant-place-actions button{border:0!important;border-radius:12px!important;background:#1269e8!important;color:#fff!important;padding:10px 11px!important;font-weight:950!important;white-space:nowrap!important}.instant-map-picker-sheet{grid-template-rows:auto auto auto auto minmax(280px,1fr) auto!important}@media(max-width:720px){.instant-city-tabs button{font-size:12px!important;padding:9px 4px!important}.instant-place-actions{grid-template-columns:1fr!important}.instant-place-actions button{width:100%!important}.instant-map-picker-sheet{grid-template-rows:auto auto auto auto minmax(230px,1fr) auto!important}}

/* Instant route normal planner flow */
.instant-city-sheet{display:grid!important;gap:12px!important}.instant-city-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.instant-city-grid button{min-height:82px!important;border-radius:18px!important}.instant-route-planner-sheet{width:min(980px,calc(100vw - 16px))!important;max-height:96vh!important;padding:0!important;background:#fbf6ee!important;overflow:hidden!important}.instant-route-planner{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:90vh!important;display:grid!important;grid-template-rows:auto auto 1fr auto!important}.instant-route-planner .flyer-map-shell{min-height:0!important;height:100%!important}.instant-route-planner #instantRoutePickerMap{height:100%!important;min-height:420px!important;border-radius:18px!important}.instant-route-planner .instant-place-panel{margin-top:8px!important;padding:8px!important}.instant-route-planner .instant-place-list{max-height:120px!important;grid-template-columns:1fr!important}.instant-route-planner .instant-selected-list{max-height:180px!important;margin-top:8px!important}.instant-route-planner .instant-selected-list p{margin:0!important;padding:8px!important;color:#7a8496!important;font-size:12px!important;font-weight:800!important}.instant-route-planner .panel-actions button[disabled]{opacity:.45!important;filter:grayscale(.35)!important}@media(max-width:720px){.instant-route-planner-sheet{width:100vw!important;max-height:100vh!important;border-radius:0!important}.instant-route-planner{min-height:100vh!important}.instant-route-planner .flyer-map-shell{display:grid!important;grid-template-columns:1fr!important}.instant-route-planner #instantRoutePickerMap{min-height:48vh!important;border-radius:0!important}.instant-route-planner .flyer-map-route{max-height:38vh!important;overflow:auto!important;border-radius:18px 18px 0 0!important}.instant-route-planner .flyer-map-legend{display:none!important}.instant-route-planner>p.muted{display:none!important}}

/* Offline queue reset */
.offline-queue-badge{display:grid!important;grid-template-columns:auto 1fr auto auto!important;gap:8px!important;align-items:center!important}.offline-queue-badge button[data-clear-offline]{background:#fff0f2!important;color:#b42335!important;border:1px solid #ffc6cf!important}@media(max-width:520px){.offline-queue-badge{grid-template-columns:auto 1fr!important}.offline-queue-badge button{grid-column:1/-1!important;width:100%!important}}

/* Improved mobile bottom nav icons */
.app-head nav a[data-mobile-tab="start"] .nav-icon.home-modern,.app-head nav a[data-mobile-tab="flyers"] .nav-icon.flyer-modern{width:23px!important;height:23px!important;color:currentColor!important;filter:drop-shadow(0 2px 3px rgba(23,32,51,.10))!important}.nav-icon.home-modern::before{content:""!important;position:absolute!important;left:4px!important;right:4px!important;bottom:3px!important;height:12px!important;border:2.4px solid currentColor!important;border-top:0!important;border-radius:4px!important;background:linear-gradient(180deg,rgba(255,255,255,.35),transparent)!important}.nav-icon.home-modern::after{content:""!important;position:absolute!important;left:5px!important;top:2px!important;width:13px!important;height:13px!important;border-left:2.4px solid currentColor!important;border-top:2.4px solid currentColor!important;transform:rotate(45deg)!important;border-radius:3px 0 0 0!important}.nav-icon.flyer-modern::before{content:""!important;position:absolute!important;left:3px!important;top:3px!important;width:15px!important;height:17px!important;border:2.3px solid currentColor!important;border-radius:4px!important;background:linear-gradient(180deg,rgba(255,255,255,.4),transparent)!important;box-shadow:4px 3px 0 -1px rgba(18,105,232,.20)!important}.nav-icon.flyer-modern::after{content:""!important;position:absolute!important;left:7px!important;top:8px!important;width:10px!important;height:8px!important;border-top:2px solid currentColor!important;border-bottom:2px solid currentColor!important;box-shadow:0 4px 0 -1px currentColor!important}.nav-icon.portal-modern{border:2px solid currentColor!important;border-radius:4px!important}.nav-icon.portal-modern::before{content:""!important;position:absolute!important;left:2px!important;right:2px!important;top:4px!important;border-top:2px solid currentColor!important}.nav-icon.portal-modern::after{content:""!important;position:absolute!important;right:-2px!important;bottom:-2px!important;width:6px!important;height:6px!important;background:var(--panel,#fff)!important;border-left:2px solid currentColor!important;border-top:2px solid currentColor!important}@media(max-width:620px){.app-head nav a[data-mobile-tab="start"],.app-head nav a[data-mobile-tab="flyers"]{gap:3px!important}.app-head nav a[data-mobile-tab="start"].active .nav-icon.home-modern,.app-head nav a[data-mobile-tab="flyers"].active .nav-icon.flyer-modern{transform:translateY(-1px) scale(1.06)!important}.app-head nav a[data-mobile-tab="start"].active,.app-head nav a[data-mobile-tab="flyers"].active{background:linear-gradient(180deg,#edf4ff,#ffffff)!important}}

/* Professional SVG bottom nav icons */
.app-head nav a .nav-svg-icon{display:grid!important;place-items:center!important;width:28px!important;height:26px!important;color:inherit!important}.app-head nav a .nav-svg-icon svg{width:25px!important;height:25px!important;display:block!important;overflow:visible!important}.app-head nav a .nav-svg-icon path{fill:none!important;stroke:currentColor!important;stroke-width:2.15!important;stroke-linecap:round!important;stroke-linejoin:round!important}.app-head nav a .nav-icon{display:none!important}.app-head nav a[data-mobile-tab="start"] .nav-svg-icon svg{width:26px!important;height:26px!important}.app-head nav a[data-mobile-tab="flyers"] .nav-svg-icon svg{width:25px!important;height:25px!important}.app-head nav a.active .nav-svg-icon{transform:translateY(-1px) scale(1.06)!important;filter:drop-shadow(0 4px 7px rgba(18,105,232,.18))!important}.app-head nav a[data-mobile-tab="start"]::after{content:'Start'!important}.app-head nav a[data-mobile-tab="flyers"]::after{content:'Flyer'!important}.app-head nav a[data-mobile-tab="portal"]::after{content:'Portal'!important}

/* Force visible professional SVG nav icons */
.app-head nav a .nav-svg-icon{display:grid!important;place-items:center!important;width:30px!important;height:28px!important;color:#27324a!important;opacity:1!important;visibility:visible!important;z-index:2!important;position:relative!important}.app-head nav a .nav-svg-icon svg{display:block!important;width:26px!important;height:26px!important;opacity:1!important;visibility:visible!important;overflow:visible!important;color:#27324a!important}.app-head nav a .nav-svg-icon svg path{stroke:#27324a!important;fill:none!important;stroke-width:2.25!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:1!important}.app-head nav a.active .nav-svg-icon,.app-head nav a.active .nav-svg-icon svg{color:#1269e8!important}.app-head nav a.active .nav-svg-icon svg path{stroke:#1269e8!important}.app-head nav a[data-mobile-tab="start"] .nav-svg-icon svg,.app-head nav a[data-mobile-tab="flyers"] .nav-svg-icon svg{width:27px!important;height:27px!important}.app-head nav a[data-mobile-tab="start"] .nav-icon,.app-head nav a[data-mobile-tab="flyers"] .nav-icon,.app-head nav a[data-mobile-tab="portal"] .nav-icon{display:none!important}

/* FINAL OVERRIDE: mobile bottom navigation icons must be visible */
@media(max-width:720px){.app-head nav#mobileNav,.app-head nav{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 4px)!important;z-index:99990!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:auto!important;max-width:430px!important;min-height:56px!important;margin:0 auto!important;padding:5px!important;border:1px solid rgba(219,232,255,.95)!important;border-radius:20px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 18px 42px rgba(23,32,51,.18)!important;backdrop-filter:blur(16px)!important}.app-head nav#mobileNav a[data-mobile-tab],.app-head nav a[data-mobile-tab]{display:grid!important;grid-template-rows:22px 12px!important;place-items:center!important;align-content:center!important;gap:2px!important;min-width:0!important;min-height:42px!important;padding:3px 4px!important;border:1px solid transparent!important;border-radius:14px!important;background:transparent!important;color:#27324a!important;font-size:0!important;line-height:1!important;text-decoration:none!important;opacity:1!important;visibility:visible!important;overflow:visible!important}.app-head nav a[data-mobile-tab].active{color:#1269e8!important;background:linear-gradient(180deg,#edf4ff,#fff)!important;border-color:#dbe8ff!important;box-shadow:0 8px 18px rgba(18,105,232,.12)!important}.app-head nav a[data-mobile-tab] .nav-svg-icon{display:grid!important;grid-row:1!important;place-items:center!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;color:#27324a!important;opacity:1!important;visibility:visible!important;position:relative!important;z-index:3!important;transform:none!important}.app-head nav a[data-mobile-tab].active .nav-svg-icon{color:#1269e8!important;transform:translateY(-1px) scale(1.06)!important}.app-head nav a[data-mobile-tab] .nav-svg-icon svg{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;overflow:visible!important;opacity:1!important;visibility:visible!important}.app-head nav a[data-mobile-tab] .nav-svg-icon svg path{fill:none!important;stroke:#27324a!important;stroke-width:2.25!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important;opacity:1!important}.app-head nav a[data-mobile-tab].active .nav-svg-icon svg path{stroke:#1269e8!important}.app-head nav a[data-mobile-tab] .nav-icon{display:none!important;width:0!important;height:0!important;opacity:0!important}.app-head nav a[data-mobile-tab]::before{content:none!important;display:none!important}.app-head nav a[data-mobile-tab]::after{display:block!important;grid-row:2!important;color:#27324a!important;font-size:10.5px!important;line-height:1!important;font-weight:950!important;opacity:1!important;visibility:visible!important}.app-head nav a[data-mobile-tab].active::after{color:#1269e8!important}.app-head nav a[data-mobile-tab="start"]{order:1!important}.app-head nav a[data-mobile-tab="flyers"]{order:2!important}.app-head nav a[data-mobile-tab="portal"]{order:3!important}.app-head nav a[data-mobile-tab="start"]::after{content:'Start'!important}.app-head nav a[data-mobile-tab="flyers"]::after{content:'Flyer'!important}.app-head nav a[data-mobile-tab="portal"]::after{content:'Portal'!important}}

/* Remove floating plus and Portal from bottom nav */
.mobile-fab-wrap,.mobile-quick-menu{display:none!important}.app-head nav a[data-mobile-tab="portal"]{display:none!important}@media(max-width:720px){.app-head nav#mobileNav,.app-head nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:300px!important}.app-head nav a[data-mobile-tab="start"]{order:1!important}.app-head nav a[data-mobile-tab="flyers"]{order:2!important}.app-head nav a[data-mobile-tab="portal"]{display:none!important}}

/* Remove floating plus and Portal from bottom nav */
.mobile-fab-wrap,.mobile-quick-menu{display:none!important}.app-head nav a[data-mobile-tab="portal"]{display:none!important}@media(max-width:720px){.app-head nav#mobileNav,.app-head nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:300px!important}.app-head nav a[data-mobile-tab="start"]{order:1!important}.app-head nav a[data-mobile-tab="flyers"]{order:2!important}.app-head nav a[data-mobile-tab="portal"]{display:none!important}}

/* Route planning close button */
.flyer-map-panel>header{position:relative!important;padding-right:46px!important}.flyer-route-close-x{position:absolute!important;right:0!important;top:0!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border:1px solid #ffd0d6!important;border-radius:14px!important;background:#fff5f6!important;color:#b42335!important;font-size:24px!important;font-weight:950!important;line-height:1!important;z-index:5!important;box-shadow:0 8px 18px rgba(180,35,53,.10)!important}.flyer-route-close-x:active{transform:scale(.96)!important}@media(max-width:720px){.flyer-map-panel>header{padding-right:44px!important}.flyer-route-close-x{right:0!important;top:0!important;width:40px!important;height:40px!important;border-radius:15px!important;font-size:26px!important}}

/* Location choice back button */
.flyer-location-panel>header{display:flex!important;align-items:flex-start!important;gap:10px!important}.flyer-location-panel>header>div{display:grid!important;gap:3px!important}.flyer-location-back-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:0 12px!important;border:1px solid #dbe8ff!important;border-radius:13px!important;background:#edf4ff!important;color:#1269e8!important;font-size:13px!important;font-weight:950!important;white-space:nowrap!important}.flyer-location-back-button:active{transform:scale(.97)!important}@media(max-width:720px){.flyer-location-panel>header{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important}.flyer-location-back-button{min-height:38px!important;border-radius:14px!important}.flyer-location-panel>header h3{margin:0!important}}

/* 2026-07-01: Google-Maps-Oeffnungszeiten in der Flyer-Routenplanung */
.flyer-map-pin.closed{--pin:#94a3b8!important;--pin-glow:rgba(148,163,184,.28)!important;opacity:.72!important;filter:saturate(.65)!important}
.flyer-map-pin.closing-soon{--pin:#ff9f0a!important;--pin-glow:rgba(255,159,10,.32)!important}
.flyer-type.closed{background:#94a3b8!important;color:#fff!important}
.flyer-type.closing-soon{background:#ff9f0a!important;color:#fff!important}
.flyer-map-info.closed,.flyer-map-group-list button.closed,.flyer-map-route li.closed,.flyer-review-list li.closed{border-color:#cbd5e1!important;background:#f8fafc!important;color:#475569!important}
.flyer-map-info.closing-soon,.flyer-map-group-list button.closing-soon,.flyer-map-route li.closing-soon,.flyer-review-list li.closing-soon{border-color:#ffcf7a!important;background:#fff8e8!important;box-shadow:inset 4px 0 0 #ff9f0a!important}
.flyer-opening-warning{display:block!important;margin-top:3px!important;color:#9c6100!important;font-weight:950!important}
.flyer-map-route li.closed .flyer-opening-warning,.flyer-review-list li.closed small{color:#64748b!important}
.flyer-map-pin.closing-critical{--pin:#e11d2e!important;--pin-glow:rgba(225,29,46,.35)!important}
.flyer-map-pin.closing-final{--pin:#111827!important;--pin-glow:rgba(17,24,39,.38)!important}
.flyer-type.closing-critical{background:#e11d2e!important;color:#fff!important}
.flyer-type.closing-final{background:#111827!important;color:#fff!important}
.flyer-map-info.closing-critical,.flyer-map-group-list button.closing-critical,.flyer-map-route li.closing-critical,.flyer-review-list li.closing-critical{border-color:#ff9aa5!important;background:#fff1f2!important;box-shadow:inset 4px 0 0 #e11d2e!important}
.flyer-map-info.closing-final,.flyer-map-group-list button.closing-final,.flyer-map-route li.closing-final,.flyer-review-list li.closing-final{border-color:#111827!important;background:#f3f4f6!important;box-shadow:inset 4px 0 0 #111827!important}
.closing-critical .flyer-opening-warning{color:#b42335!important}
.closing-final .flyer-opening-warning{color:#111827!important}

/* 2026-07-02: Team-Chat */
.mobile-chat{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;min-height:calc(100vh - 205px)!important;max-height:calc(100vh - 150px)!important;border:1px solid #e5eaf2!important;border-radius:8px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 12px 30px rgba(23,32,51,.08)!important}
.chat-contact-screen{grid-template-rows:auto minmax(0,1fr)!important}
.chat-contact-screen>header,.chat-conversation-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:58px!important;padding:10px 12px!important;border-bottom:1px solid #e8edf4!important;background:#fbfcfe!important}
.chat-contact-screen h2{margin:0!important;color:#172033!important;font-size:18px!important}.chat-contact-screen p{margin:2px 0 0!important;color:#657085!important;font-size:11px!important;font-weight:800!important}
.chat-contact-screen>header>button,.chat-conversation-head>button{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:1px solid #dbe4f2!important;border-radius:7px!important;background:#fff!important;color:#1269e8!important;font-size:22px!important;font-weight:900!important}
.chat-contact-list{overflow:auto!important}.chat-contact-row{position:relative!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:66px!important;padding:9px 12px!important;border:0!important;border-bottom:1px solid #edf0f5!important;border-radius:0!important;background:#fff!important;text-align:left!important;color:#172033!important}
.chat-contact-row>span,.chat-conversation-head>span{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;border-radius:50%!important;background:#edf4ff!important;color:#1269e8!important;font-size:12px!important;font-weight:950!important}.chat-contact-row strong,.chat-contact-row small,.chat-conversation-head strong,.chat-conversation-head small{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.chat-contact-row strong,.chat-conversation-head strong{font-size:13px!important}.chat-contact-row small,.chat-conversation-head small{margin-top:3px!important;color:#657085!important;font-size:10.5px!important;font-weight:750!important}.chat-contact-row time{align-self:start!important;color:#8490a3!important;font-size:9.5px!important}.chat-contact-row>b{position:absolute!important;right:12px!important;bottom:10px!important;display:grid!important;place-items:center!important;min-width:20px!important;height:20px!important;padding:0 5px!important;border-radius:10px!important;background:#1269e8!important;color:#fff!important;font-size:10px!important}
.chat-conversation-head{justify-content:start!important}.chat-conversation-head>button:last-child{margin-left:auto!important}.chat-message-list{display:flex!important;flex-direction:column!important;gap:7px!important;min-height:260px!important;padding:12px!important;overflow-y:auto!important;background:#f6f8fb!important}.chat-message{align-self:flex-start!important;max-width:82%!important;padding:8px 10px!important;border:1px solid #e0e6ef!important;border-radius:8px 8px 8px 2px!important;background:#fff!important}.chat-message.own{align-self:flex-end!important;border-color:#bcd6ff!important;border-radius:8px 8px 2px 8px!important;background:#eaf3ff!important}.chat-message p{margin:0!important;color:#172033!important;font-size:13px!important;line-height:1.35!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}.chat-message small{display:block!important;margin-top:4px!important;color:#738096!important;font-size:9px!important;text-align:right!important}.chat-empty{margin:auto!important;color:#738096!important;font-size:12px!important;font-weight:800!important;text-align:center!important}
.chat-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:8px!important;padding:9px!important;border-top:1px solid #e5eaf2!important;background:#fff!important}.chat-compose textarea{width:100%!important;min-height:42px!important;max-height:100px!important;padding:10px 11px!important;border:1px solid #d7e0ec!important;border-radius:8px!important;background:#fff!important;color:#172033!important;font:inherit!important;font-size:13px!important;resize:none!important}.chat-compose button{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;border-radius:8px!important;background:#1269e8!important;color:#fff!important;font-size:18px!important}.chat-compose button:disabled{opacity:.5!important}
.chat-nav-badge{position:absolute!important;top:-5px!important;right:-8px!important;display:grid!important;place-items:center!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border-radius:9px!important;background:#e11d2e!important;color:#fff!important;font-size:9px!important;font-weight:950!important;line-height:1!important}
@media(max-width:720px){.app-head nav#mobileNav,.app-head nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:430px!important}.app-head nav a[data-mobile-tab="chat"]{display:grid!important;order:3!important}.app-head nav a[data-mobile-tab="chat"]::after{content:'Chat'!important}.mobile-chat{min-height:calc(100dvh - 220px)!important;max-height:calc(100dvh - 170px)!important}}

/* 2026-07-02: Naechstes Flyerziel direkt auf der Startseite */
.flyer-focus-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.flyer-focus-done-form{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:8px!important;padding-top:10px!important;border-top:1px solid #e5edf8!important}
.flyer-focus-done-form label{display:grid!important;gap:4px!important;color:#526078!important;font-size:10.5px!important;font-weight:900!important}
.flyer-focus-done-form label.wide{grid-column:1/-1!important}
.flyer-focus-done-form input{width:100%!important;height:40px!important;min-width:0!important;padding:0 10px!important;border:1px solid #dbe4f2!important;border-radius:8px!important;background:#fff!important;color:#172033!important;font:inherit!important;font-size:12px!important}
@media(max-width:420px){.flyer-focus-done-form{grid-template-columns:78px minmax(0,1fr)!important}.flyer-focus-actions{grid-template-columns:1fr!important}}

/* 2026-07-02: Eigener Standort in der Flyer-Routenplanung */
.flyer-user-location-marker{overflow:visible!important;background:transparent!important;border:0!important}.flyer-user-location-marker>span{position:absolute!important;left:4px!important;top:4px!important;display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border:3px solid #fff!important;border-radius:50%!important;background:#1269e8!important;box-shadow:0 0 0 3px rgba(18,105,232,.24),0 5px 14px rgba(23,32,51,.28)!important}.flyer-user-location-marker i{display:block!important;width:8px!important;height:8px!important;border-radius:50%!important;background:#fff!important}.flyer-user-location-marker>b{position:absolute!important;left:34px!important;top:5px!important;display:block!important;min-width:76px!important;padding:5px 7px!important;border:1px solid #bdd5ff!important;border-radius:6px!important;background:#fff!important;color:#123583!important;box-shadow:0 5px 14px rgba(23,32,51,.16)!important;font-size:10px!important;font-weight:950!important;line-height:1!important;white-space:nowrap!important}.flyer-user-location-marker>span::after{content:''!important;position:absolute!important;inset:-8px!important;border:2px solid rgba(18,105,232,.42)!important;border-radius:50%!important;animation:flyerUserPulse 1.8s ease-out infinite!important}@keyframes flyerUserPulse{0%{transform:scale(.7);opacity:.9}100%{transform:scale(1.45);opacity:0}}
.flyer-locate-control{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;margin:0!important;padding:0!important;border:2px solid rgba(0,0,0,.2)!important;border-radius:4px!important;background:#fff!important;color:#1269e8!important;box-shadow:none!important;font-size:24px!important;font-weight:950!important;line-height:1!important;cursor:pointer!important}.flyer-locate-control:active{background:#edf4ff!important}
#flyerMap{overscroll-behavior:contain!important;touch-action:none!important}

/* 2026-07-06: Leaflet must own one-finger drags on mobile, including active route mode. */
#flyerMap,
#flyerMap.leaflet-container,
body.flyer-route-focus-mode #flyerMap,
body.flyer-route-focus-mode #flyerMap.leaflet-container{
  touch-action:none!important;
  -ms-touch-action:none!important;
  overscroll-behavior:contain!important;
}
.flyer-map-info.planning-compact{display:grid!important;grid-template-columns:24px minmax(80px,auto) minmax(0,1fr)!important;align-items:center!important;gap:7px!important;min-height:34px!important;margin:5px 0!important;padding:5px 7px!important;border:1px solid #cfe0f8!important;border-radius:6px!important;background:#f8fbff!important;box-shadow:none!important;overflow:hidden!important}.flyer-map-info.planning-compact>b{display:grid!important;place-items:center!important;width:22px!important;height:22px!important;border-radius:50%!important;background:#11784f!important;color:#fff!important;font-size:10px!important}.flyer-map-info.planning-compact>strong{min-width:0!important;color:#172033!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.flyer-map-info.planning-compact>span{min-width:0!important;color:#657085!important;font-size:9.5px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
/* Sofort-Route: aktive Zielbearbeitung und Startseiten-Zahlen */
.flyer-today-summary > div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.flyer-today-summary section{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:14px;background:#f2f7ff;border:1px solid #dce9ff}
.flyer-today-summary section strong{font-size:1.65rem;color:#0d55bb}
.flyer-today-summary section span{font-size:.78rem;color:#526078}
.instant-current-target{margin:12px 0;padding:14px;border-radius:15px;background:#fff;border:1px solid #dbe6f6;display:flex;flex-direction:column;gap:4px}
.instant-current-target small{font-weight:800;color:#1269e8;text-transform:uppercase;letter-spacing:.05em}
.instant-current-target strong{font-size:1.15rem;color:#172033}
.instant-current-target p{margin:0;color:#526078}
.instant-current-target em{font-style:normal;font-size:.78rem;color:#49566b}
.instant-target-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.instant-target-actions button{min-height:46px}
.instant-target-actions .primary{grid-column:1/-1}
.instant-session-actions{display:flex;gap:8px;margin-top:12px}
.instant-session-actions button{flex:1}
.instant-no-target{padding:14px;border-radius:12px;background:#fff7df;color:#72520b}
.instant-route-remaining,.flyer-focus-remaining{margin-top:10px;border-top:1px solid #dfe7f3;padding-top:9px}
.instant-route-remaining summary,.flyer-focus-remaining summary{cursor:pointer;font-size:.78rem;font-weight:800;color:#526078}
.instant-route-remaining ol,.flyer-focus-remaining ol{list-style:none;margin:9px 0 0;padding:0;display:grid;gap:6px}
.instant-route-remaining li,.flyer-focus-remaining li{display:flex;align-items:flex-start;gap:8px;padding:8px;border-radius:10px;background:#f7f9fc}
.instant-route-remaining li > b,.flyer-focus-remaining li > b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:#dfeaff;color:#0d55bb;font-size:.72rem}
.instant-route-remaining li span,.flyer-focus-remaining li span{display:flex;flex-direction:column;font-size:.82rem}
.instant-route-remaining li small,.flyer-focus-remaining li small{color:#68758a}
.instant-count-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:7px 0}
.instant-count-presets button{min-height:42px;border:1px solid #b9d2f8;background:#edf5ff;color:#0d55bb;border-radius:10px;font-weight:800}
.instant-flyer-action-form .panel-head p,.flyer-done-editor .panel-head p,.flyer-target-editor .panel-head p{margin:3px 0 0;color:#637087}
@media(max-width:520px){.instant-target-actions{grid-template-columns:1fr}.instant-target-actions .primary{grid-column:auto}.instant-session-actions{flex-direction:column}}
/* Desktop pin editor and daily opening-hours status */
.flyer-hours-auto-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:10px 12px;border:1px solid #cfe1ff;border-radius:12px;background:#f4f8ff;color:#17386d}
.flyer-hours-auto-bar div{display:flex;flex-direction:column;gap:2px}.flyer-hours-auto-bar strong{font-size:13px}.flyer-hours-auto-bar small{font-size:11px;color:#526b91}
.flyer-map-panel.pin-edit-active #flyerMap{outline:3px solid rgba(25,118,210,.18);outline-offset:-3px}
.flyer-map-panel.pin-edit-active .leaflet-marker-icon{cursor:grab!important}.flyer-map-panel.pin-edit-active .leaflet-marker-icon:active{cursor:grabbing!important}
#flyerMap.flyer-pin-place-mode{cursor:crosshair!important;outline:3px solid rgba(29,148,82,.25);outline-offset:-3px}
.flyer-pin-draft-marker .flyer-map-pin-inner{background:#16864b!important;border-color:#fff!important;color:#fff!important;box-shadow:0 4px 14px rgba(12,91,48,.4)}
.flyer-pin-create-form{display:grid;gap:9px;padding:2px}.flyer-pin-create-form>span{font-size:12px;color:#58687f}.flyer-pin-create-form label{display:grid;gap:4px;font-size:11px;font-weight:700;color:#34445d}.flyer-pin-create-form input,.flyer-pin-create-form select,.flyer-pin-create-form textarea{width:100%;box-sizing:border-box;border:1px solid #d5deeb;border-radius:8px;padding:8px;background:#fff;color:#152238;font:inherit}.flyer-pin-create-form>[data-flyer-pin-draft-coords]{font-variant-numeric:tabular-nums;color:#5d6d82}
.flyer-pin-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}
.flyer-pin-confirm{max-width:520px}.flyer-pin-confirm>p{line-height:1.45}.flyer-pin-coordinate-change{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:16px 0;padding:12px;border-radius:12px;background:#f3f6fa}.flyer-pin-coordinate-change span{display:grid;gap:3px}.flyer-pin-coordinate-change small{font-variant-numeric:tabular-nums;color:#516078}.flyer-hours-check-detail{display:block;padding:8px 10px;border-radius:8px;background:#f5f7fa;color:#59677b}
@media(max-width:620px){.flyer-hours-auto-bar{display:none}.flyer-pin-confirm-backdrop{display:none}}

/* AFH FIX 2026-07-03: Sofort-Route-Textfeld kompakter und hochwertiger */
.instant-route-card{
  position:relative!important;
  overflow:hidden!important;
  padding:15px!important;
  border:1px solid rgba(18,105,232,.18)!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(18,105,232,.16),transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#f4f8ff 100%)!important;
  box-shadow:0 16px 34px rgba(18,105,232,.12),0 8px 18px rgba(50,39,25,.06)!important;
}
.instant-route-card::before{
  content:'🚗';
  position:absolute!important;
  right:13px!important;
  top:10px!important;
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:36px!important;
  border-radius:14px!important;
  background:#edf4ff!important;
  box-shadow:inset 0 0 0 1px #dbe8ff!important;
  font-size:18px!important;
}
.instant-route-card h3{
  margin:0 42px 6px 0!important;
  color:#0f347f!important;
  font-size:14px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}
.instant-route-card p{
  max-width:250px!important;
  margin:0 0 12px!important;
  color:#43516a!important;
  font-size:12.5px!important;
  line-height:1.3!important;
  font-weight:850!important;
}
.instant-route-card .mobile-route-button{
  height:40px!important;
  margin:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#0a66e8,#0340c0)!important;
  box-shadow:0 12px 24px rgba(18,105,232,.26)!important;
  font-size:12.5px!important;
  letter-spacing:-.01em!important;
}
.instant-route-card small{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:9px!important;
  color:#6a7487!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
.instant-route-card small::before{
  content:'✓';
  display:grid!important;
  place-items:center!important;
  flex:0 0 16px!important;
  width:16px!important;
  height:16px!important;
  border-radius:999px!important;
  background:#e9fff3!important;
  color:#0b9b63!important;
  font-size:10px!important;
  font-weight:950!important;
}
.instant-route-card.active{
  border-color:rgba(11,155,99,.25)!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(11,155,99,.16),transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#effff7 100%)!important;
}
.instant-route-card.active::before{content:'📍';background:#e9fff3!important;box-shadow:inset 0 0 0 1px #bdebd5!important}

/* AFH FIX 2026-07-03: Flyer-Seite simpler und ruhiger */
.mobile-flyer-workspace,.flyer-layout{gap:8px!important}.flyer-mobile-hero{display:none!important}
.flyer-workspace-nav{margin:0 0 8px!important;padding:3px!important;border-radius:14px!important;border:1px solid #dbe4f2!important;background:#fff!important;box-shadow:none!important}
.flyer-workspace-nav button{height:36px!important;border-radius:11px!important;color:#526078!important;background:transparent!important;font-size:12px!important;box-shadow:none!important}
.flyer-workspace-nav button.active{background:#1269e8!important;color:#fff!important;box-shadow:none!important}
.mobile-flyer-workspace .admin-panel,.flyer-location-panel,.flyer-map-panel,.flyer-routes-panel,.flyer-import-panel,.flyer-route-card,.flyer-mobile-route-card{border:1px solid #e3e9f2!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important}
.mobile-flyer-workspace .admin-panel,.flyer-location-panel,.flyer-map-panel,.flyer-routes-panel,.flyer-import-panel{padding:10px!important}
.flyer-location-panel header,.flyer-map-panel>header,.flyer-routes-panel>header,.flyer-import-panel>header{margin:0 0 8px!important;padding:0!important;border:0!important}
.flyer-location-panel header h3,.flyer-map-panel>header h3,.flyer-routes-panel>header h3,.flyer-import-panel>header h3,.mobile-flyer-workspace .admin-panel h3{color:#172033!important;font-size:15px!important;letter-spacing:0!important}
.flyer-location-panel header small,.flyer-routes-panel header small,.flyer-map-panel small,.flyer-route-card small,.flyer-mobile-route-card small{color:#657085!important;font-size:11px!important;font-weight:800!important}
.flyer-location-grid{gap:8px!important}.flyer-location-grid button{min-height:74px!important;padding:12px!important;border:1px solid #e3e9f2!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.flyer-location-grid strong{color:#172033!important;font-size:15px!important}.flyer-location-grid span{color:#31405c!important;font-size:12px!important}.flyer-location-grid small{color:#657085!important;font-size:10.5px!important}
.flyer-map-panel .panel-actions,.mobile-flyer-workspace .panel-actions{gap:6px!important}
.flyer-map-panel .panel-actions button,.flyer-route-card button,.flyer-route-card footer a,.flyer-mobile-route-actions a,.flyer-mobile-route-actions button,.flyer-show-all,.map-button{min-height:34px!important;height:34px!important;border-radius:10px!important;box-shadow:none!important;font-size:11.5px!important;font-weight:900!important}
.flyer-map-shell{gap:8px!important}#flyerMap{border-radius:14px!important;border:1px solid #dbe4f2!important;box-shadow:none!important}
.flyer-map-route{border:1px solid #e3e9f2!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}.flyer-map-route>strong{color:#172033!important;font-size:13px!important}
.flyer-route-summary{gap:6px!important}.flyer-route-summary div{min-height:40px!important;border:1px solid #dbe4f2!important;border-radius:12px!important;background:#f8fafc!important;box-shadow:none!important}.flyer-route-summary strong{color:#1269e8!important;font-size:14px!important}.flyer-route-summary span{color:#657085!important;font-size:9px!important}
.flyer-route-help,.flyer-map-panel>p.muted,.flyer-import-panel .muted{display:none!important}
.flyer-route-card,.flyer-mobile-route-card{padding:11px!important;gap:8px!important;background:#fff!important}.flyer-route-card header strong,.flyer-mobile-route-card header strong{color:#172033!important;font-size:14px!important;letter-spacing:0!important}
.flyer-route-card header span,.flyer-mobile-route-card header b{min-height:22px!important;border-radius:999px!important;background:#f3f6fb!important;color:#526078!important;font-size:10px!important}
.flyer-route-card p,.flyer-mobile-route-card p{padding:0!important;background:transparent!important;color:#43516a!important;font-size:11.5px!important;line-height:1.3!important}
.flyer-target-list{gap:6px!important}.flyer-target-list li,.mobile-flyer-routes.simple .flyer-target-list li{padding:8px!important;border:1px solid #e3e9f2!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
.flyer-target-list li.target-done{background:#f5fff8!important;border-color:#ccefd9!important}.flyer-target-list li.target-skipped{background:#fffaf0!important;border-color:#f4dfad!important}.flyer-target-list strong{color:#172033!important;font-size:12px!important}.flyer-target-list span,.flyer-target-list small{color:#657085!important;font-size:10px!important}
.flyer-target-actions a,.flyer-target-actions button,.flyer-target-more summary{min-height:30px!important;border-radius:9px!important;box-shadow:none!important}
@media (max-width:620px){
.mobile-flyer-workspace{gap:8px!important}.mobile-flyer-workspace.simple .flyer-workspace-nav{display:grid!important;position:static!important;margin:0 0 8px!important}.mobile-flyer-workspace.simple .flyer-location-panel{width:100%!important;margin:0!important;border-radius:16px!important}.mobile-flyer-workspace.simple .flyer-location-grid button{min-height:72px!important;border-radius:14px!important}
.mobile-flyer-workspace.simple .flyer-map-panel{position:relative!important;inset:auto!important;z-index:auto!important;display:grid!important;padding:8px!important;border-radius:16px!important;border:1px solid #e3e9f2!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.mobile-flyer-workspace.simple .flyer-map-panel>header{position:static!important;display:block!important;pointer-events:auto!important}.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{height:34px!important;min-height:34px!important;border-radius:10px!important;box-shadow:none!important;backdrop-filter:none!important;background:#fff!important}.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen]{display:none!important}.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{background:#1269e8!important;color:#fff!important}
.mobile-flyer-workspace.simple .flyer-map-shell{position:relative!important;inset:auto!important}.mobile-flyer-workspace.simple #flyerMap{position:relative!important;inset:auto!important;height:calc(100dvh - 255px)!important;min-height:360px!important;max-height:560px!important;border-radius:14px!important;border:1px solid #dbe4f2!important}
.mobile-flyer-workspace.simple .flyer-map-route{position:static!important;margin-top:6px!important;pointer-events:auto!important}.mobile-flyer-workspace.simple .flyer-route-summary{width:100%!important;max-width:none!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.mobile-flyer-workspace.simple .flyer-route-summary div{min-height:34px!important;border-radius:10px!important;box-shadow:none!important;background:#f8fafc!important}.mobile-flyer-workspace.simple .flyer-route-summary strong{font-size:12px!important}.mobile-flyer-workspace.simple .flyer-route-summary span{font-size:8px!important}
}

@media (max-width:620px){
  body.mobile-flyer-tab .mobile-fab-wrap{display:none!important}
}

@media (max-width:720px){
  body.instant-route-fullscreen-active{overflow:hidden!important;padding-bottom:0!important}
  .instant-map-picker-backdrop.instant-route-fullscreen{padding:0!important;align-items:stretch!important;background:#fbf6ee!important}
  .instant-map-picker-backdrop.instant-route-fullscreen .instant-route-planner-sheet{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important}
  .instant-map-picker-backdrop.instant-route-fullscreen .instant-route-planner{height:100dvh!important;min-height:100dvh!important;border-radius:0!important}
  .instant-map-picker-backdrop.instant-route-fullscreen .instant-route-planner #instantRoutePickerMap{min-height:52dvh!important;height:100%!important}
}

/* AFH FIX 2026-07-03: Flyer-Tab wieder als sauberer Vollbildmodus */
@media (max-width:620px){
.mobile-flyer-workspace.simple.employee-flyer-workspace{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;gap:0!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#eef4ff!important;box-shadow:none!important;display:block!important;overflow:hidden!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel>header{position:absolute!important;left:12px!important;right:12px!important;top:calc(env(safe-area-inset-top,0px) + 10px)!important;z-index:1002!important;display:block!important;margin:0!important;padding:0!important;background:transparent!important;pointer-events:none!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel>header h3{display:none!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel .panel-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;pointer-events:auto!important;margin:0!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel .panel-actions button{height:42px!important;min-height:42px!important;border-radius:999px!important;padding:0 12px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(219,232,255,.96)!important;color:#172033!important;box-shadow:0 10px 24px rgba(23,32,51,.16)!important;backdrop-filter:blur(12px)!important;font-size:12px!important;font-weight:950!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen]{display:none!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel .panel-actions button[data-flyer-map-create]{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-route-close-x{position:absolute!important;right:0!important;top:48px!important;width:42px!important;height:42px!important;border-radius:999px!important;background:#fff0f2!important;color:#c6283d!important;border:1px solid #ffcbd3!important;box-shadow:0 10px 24px rgba(23,32,51,.13)!important;pointer-events:auto!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-legend,.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel>p.muted{display:none!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-shell{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;overflow:hidden!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-route{position:absolute!important;left:10px!important;right:10px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 92px)!important;z-index:1001!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;max-height:none!important;overflow:visible!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-route>strong,.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-route>small,.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-route ol,.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-route-help,.mobile-flyer-workspace.simple.employee-flyer-workspace #flyerMapInfo{display:none!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-route-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;margin:0 auto!important;pointer-events:auto!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-route-summary div{min-height:42px!important;border:1px solid rgba(219,232,255,.96)!important;border-radius:999px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 10px 24px rgba(23,32,51,.14)!important;backdrop-filter:blur(12px)!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-route-summary strong{font-size:13px!important;color:#1269e8!important}.mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-route-summary span{font-size:8.5px!important;color:#526078!important}
.mobile-flyer-workspace.simple.employee-flyer-workspace .mobile-flyer-routes{display:none!important}
}

/* AFH FIX 2026-07-03: Sofort Route eigene Vollbild-Karte auf Start */
/* Standardmäßig scrollbar (statt overflow:hidden): im mobilen Browser-Tab (mit
   Adressleiste) steht weniger Höhe zur Verfügung als in der installierten PWA, dadurch
   können Ziel-/Stopp-Listen (z. B. .flyer-map-route, .flyer-location-panel) länger als
   der sichtbare Bereich werden. Ohne :has()-Support (ältere mobile Browser) griff der
   Scroll-Override weiter unten sonst nicht. #flyerMap/.flyer-map-shell bleiben über
   eigene, spezifischere overflow:hidden-Regeln unangetastet (kein Scroll auf der
   Leaflet-Kartenfläche selbst, Pan/Zoom-Gesten bleiben Leaflet vorbehalten). */
.instant-route-workspace{position:fixed!important;left:0!important;right:0!important;top:0!important;bottom:86px!important;z-index:35!important;width:100vw!important;max-width:none!important;margin:0!important;padding:calc(env(safe-area-inset-top,0px) + 8px) 8px 8px!important;background:#eef4ff!important;display:block!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}
.instant-route-workspace .flyer-map-panel{position:relative!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:block!important}
.instant-route-workspace .flyer-map-panel>header{position:absolute!important;left:10px!important;right:10px!important;top:10px!important;z-index:1002!important;display:grid!important;gap:8px!important;pointer-events:none!important}
.instant-route-workspace .flyer-map-panel>header h3{display:none!important}
.instant-route-workspace .flyer-route-close-x{display:grid!important;position:absolute!important;right:0!important;top:44px!important;z-index:3!important;width:44px!important;height:44px!important;border-radius:50%!important;background:#fff0f2!important;color:#c42335!important;border:1px solid #ffc6cf!important;box-shadow:0 8px 18px rgba(23,32,51,.16)!important;pointer-events:auto!important}
.instant-route-workspace .panel-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;pointer-events:auto!important}
.instant-route-workspace .panel-actions button{height:42px!important;border-radius:999px!important;background:rgba(255,255,255,.96)!important;border:1px solid #dbe4f2!important;box-shadow:0 10px 22px rgba(23,32,51,.16)!important;font-size:13px!important}
.instant-route-workspace .panel-actions button[data-flyer-map-fullscreen]{display:none!important}
.instant-route-workspace .panel-actions .primary{grid-column:1/-1!important;background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
.instant-route-workspace .flyer-map-legend,.instant-route-workspace .flyer-map-panel>p.muted{display:none!important}
.instant-route-workspace .flyer-map-shell{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;overflow:hidden!important}
.instant-route-workspace #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.instant-route-workspace .flyer-map-route{position:absolute!important;left:8px!important;right:8px!important;bottom:8px!important;z-index:1001!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important}
.instant-route-workspace .flyer-map-route>strong,.instant-route-workspace .flyer-map-route>small,.instant-route-workspace .flyer-map-route ol,.instant-route-workspace .flyer-route-help{display:none!important}
.instant-route-workspace #flyerMapInfo:not(.empty){display:grid!important;position:absolute!important;left:4px!important;right:4px!important;bottom:56px!important;max-height:38vh!important;overflow:auto!important;padding:12px!important;border-radius:18px!important;background:#fff!important;box-shadow:0 18px 44px rgba(23,32,51,.22)!important;pointer-events:auto!important}
.instant-route-workspace #flyerMapInfo.empty{display:none!important}
.instant-route-workspace .flyer-route-summary{display:grid!important;grid-template-columns:repeat(3,1fr)!important;width:100%!important;max-width:none!important;gap:6px!important;pointer-events:auto!important}
.instant-route-workspace .flyer-route-summary div{min-height:40px!important;border-radius:999px!important;background:rgba(255,255,255,.96)!important;border:1px solid #dbe4f2!important;box-shadow:0 10px 24px rgba(23,32,51,.16)!important}
.instant-route-workspace .flyer-route-summary strong{font-size:13px!important;color:#1269e8!important}.instant-route-workspace .flyer-route-summary span{font-size:8.5px!important;color:#526078!important}

/* 2026-07-03: Sofort-Route-Auswahl, Flyer-Uebersicht und mobiler Chat */
.flyer-mobile-statistics{display:grid!important;gap:12px!important;padding:15px!important;background:linear-gradient(145deg,#fff,#f4f8ff)!important}
.flyer-mobile-statistics>header,.flyer-route-suggestions>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.flyer-mobile-statistics h2,.flyer-route-suggestions h3{margin:0!important;color:#172033!important;font-size:20px!important;letter-spacing:-.03em!important}
.flyer-mobile-statistics p,.flyer-route-suggestions p{margin:3px 0 0!important;color:#657085!important;font-size:11px!important;font-weight:800!important}
.flyer-mobile-statistics>header>button{min-height:38px!important;padding:0 13px!important;border:0!important;border-radius:12px!important;background:#1269e8!important;color:#fff!important;font-size:11.5px!important;font-weight:950!important}
.flyer-mobile-stat-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.flyer-mobile-stat-grid>div{display:grid!important;gap:2px!important;min-height:80px!important;padding:11px!important;border:1px solid #dbe6f6!important;border-radius:14px!important;background:rgba(255,255,255,.9)!important}
.flyer-mobile-stat-grid strong{color:#1269e8!important;font-size:22px!important;line-height:1!important}.flyer-mobile-stat-grid span{color:#25324a!important;font-size:11px!important;font-weight:950!important}.flyer-mobile-stat-grid small{color:#748095!important;font-size:9.5px!important;font-weight:800!important}
.flyer-route-suggestions{display:grid!important;gap:10px!important}.flyer-route-suggestions>div{display:grid!important;gap:8px!important}
.flyer-route-suggestion{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:78px!important;padding:11px!important;border:1px solid #dfe7f2!important;border-radius:14px!important;background:#fff!important;color:#172033!important;text-align:left!important}
.flyer-route-suggestion.available{border-color:#bdd5ff!important;background:linear-gradient(135deg,#f7fbff,#fff)!important}.flyer-route-suggestion-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:12px!important;background:#edf4ff!important;font-size:19px!important}.flyer-route-suggestion div{display:grid!important;gap:3px!important;min-width:0!important}.flyer-route-suggestion strong{font-size:13px!important}.flyer-route-suggestion small{color:#526078!important;font-size:10px!important;font-weight:850!important}.flyer-route-suggestion em{color:#11784f!important;font-size:9.5px!important;font-style:normal!important;font-weight:900!important}.flyer-route-suggestion.quiet em{color:#8490a3!important}.flyer-route-suggestion>b{color:#1269e8!important;font-size:24px!important}
.chat-contact-search{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:center!important;gap:4px!important;margin:10px 12px!important;padding:0 10px!important;border:1px solid #dbe4f2!important;border-radius:13px!important;background:#f4f7fb!important}.chat-contact-search>span{color:#657085!important;font-size:21px!important}.chat-contact-search input{width:100%!important;height:42px!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:#172033!important;font:inherit!important;font-size:13px!important}.chat-day-separator{align-self:stretch!important;display:flex!important;align-items:center!important;gap:9px!important;margin:5px 0!important;color:#7a879b!important;font-size:9.5px!important;font-weight:900!important}.chat-day-separator::before,.chat-day-separator::after{content:''!important;flex:1!important;border-top:1px solid #dfe5ee!important}.chat-day-separator span{padding:3px 8px!important;border-radius:999px!important;background:#eef2f7!important;white-space:nowrap!important}

@media(max-width:720px){
  body.mobile-chat-mode{overflow:hidden!important;padding-bottom:0!important;background:#f6f8fb!important}
  body.mobile-chat-mode main{width:100%!important;padding:0!important}
  body.mobile-chat-mode .mobile-app{display:block!important;width:100%!important;max-width:none!important;height:calc(100dvh - 92px)!important;margin:0!important;padding:0!important}
  body.mobile-chat-mode .mobile-top,body.mobile-chat-mode .mobile-welcome,body.mobile-chat-mode .mobile-notification-card,body.mobile-chat-mode .offline-queue-badge{display:none!important}
  body.mobile-chat-mode .mobile-chat{width:100%!important;height:calc(100dvh - 92px)!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  body.mobile-chat-mode .chat-contact-screen{grid-template-rows:auto auto minmax(0,1fr)!important}
  body.mobile-chat-mode .chat-contact-screen>header,body.mobile-chat-mode .chat-conversation-head{min-height:calc(64px + env(safe-area-inset-top,0px))!important;padding:calc(9px + env(safe-area-inset-top,0px)) 12px 9px!important;background:rgba(255,255,255,.97)!important}
  body.mobile-chat-mode .chat-contact-screen h2{font-size:21px!important}
  body.mobile-chat-mode .chat-contact-list{overscroll-behavior:contain!important;padding-bottom:10px!important;background:#fff!important}
  body.mobile-chat-mode .chat-contact-row{min-height:74px!important;padding:10px 14px!important}.chat-contact-row>span,.chat-conversation-head>span{width:44px!important;height:44px!important}.chat-contact-row strong,.chat-conversation-head strong{font-size:14px!important}.chat-contact-row small,.chat-conversation-head small{font-size:11px!important}
  body.mobile-chat-mode .chat-message-list{min-height:0!important;padding:14px 12px 18px!important;overscroll-behavior:contain!important}.chat-message{max-width:86%!important;padding:9px 11px!important;border-radius:15px 15px 15px 5px!important}.chat-message.own{border-radius:15px 15px 5px 15px!important}.chat-message p{font-size:14px!important}
  body.mobile-chat-mode .chat-compose{padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px))!important;background:#fff!important}.chat-compose textarea{border-radius:15px!important}.chat-compose button{border-radius:50%!important}
}

@media(max-width:620px){
  .mobile-flyer-workspace.simple.instant-route-workspace .flyer-map-panel.map-fullscreen-active .flyer-map-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important}
  .mobile-flyer-workspace.simple.instant-route-workspace .flyer-map-panel.map-fullscreen-active #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important}
  .instant-route-workspace:has(.flyer-location-panel){position:fixed!important;inset:0 0 86px!important;height:auto!important;padding:calc(env(safe-area-inset-top,0px) + 14px) 12px 18px!important;overflow:auto!important;background:linear-gradient(180deg,#edf4ff,#fbf6ee)!important}
  .instant-route-workspace .flyer-location-panel{width:100%!important;max-width:520px!important;margin:0 auto!important;padding:14px!important;border-radius:20px!important;background:#fff!important}
  .instant-route-workspace .flyer-location-panel>header{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:10px!important}.instant-route-workspace .flyer-location-back-button{min-height:38px!important;padding:0 11px!important;border:1px solid #dbe4f2!important;border-radius:12px!important;background:#fff!important;color:#1269e8!important;font-weight:900!important}.instant-route-workspace .flyer-location-panel h3{font-size:19px!important}.instant-route-workspace .flyer-location-grid button{min-height:88px!important;background:linear-gradient(135deg,#fff,#f7fbff)!important;border-color:#cfe0f8!important}
  .flyer-map-panel.map-fullscreen-active{padding:0!important;grid-template-rows:1fr!important;background:#eef4ff!important}.flyer-map-panel.map-fullscreen-active>header{position:absolute!important;left:10px!important;right:10px!important;top:calc(env(safe-area-inset-top,0px) + 8px)!important;z-index:1002!important;padding:0!important}.flyer-map-panel.map-fullscreen-active>header h3,.flyer-map-panel.map-fullscreen-active .flyer-map-legend{display:none!important}.flyer-map-panel.map-fullscreen-active .flyer-map-shell{display:block!important;grid-template-columns:none!important;gap:0!important}.flyer-map-panel.map-fullscreen-active #flyerMap{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;border:0!important;border-radius:0!important}.flyer-map-panel.map-fullscreen-active .flyer-map-route{position:absolute!important;left:8px!important;right:8px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 76px)!important;z-index:1001!important;height:auto!important;max-height:44dvh!important;border:0!important;background:transparent!important;pointer-events:none!important}.flyer-map-panel.map-fullscreen-active .flyer-route-summary,.flyer-map-panel.map-fullscreen-active #flyerMapInfo{pointer-events:auto!important}
}

/* AFH FIX 2026-07-03: Punkt-Editor auf Handy */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-panel.pin-edit-active,
  .mobile-flyer-workspace.simple .flyer-map-panel:has(.flyer-pin-create-form){
    padding-bottom:8px!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel:has(.flyer-pin-create-form) .flyer-map-route{
    display:block!important;
    position:static!important;
    margin-top:8px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel:has(.flyer-pin-create-form) #flyerMapInfo{
    display:block!important;
    position:static!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel:has(.flyer-pin-create-form) .flyer-map-route>strong,
  .mobile-flyer-workspace.simple .flyer-map-panel:has(.flyer-pin-create-form) .flyer-map-route>small{
    display:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-pin-create-form{
    display:grid!important;
    gap:8px!important;
    padding:12px!important;
    border:1px solid #dbe4f2!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-pin-create-form strong{
    font-size:15px!important;
    color:#172033!important;
  }
  .mobile-flyer-workspace.simple .flyer-pin-create-form label{
    font-size:11px!important;
    font-weight:900!important;
  }
  .mobile-flyer-workspace.simple .flyer-pin-create-form input,
  .mobile-flyer-workspace.simple .flyer-pin-create-form select,
  .mobile-flyer-workspace.simple .flyer-pin-create-form textarea{
    min-height:38px!important;
    border-radius:10px!important;
    font-size:13px!important;
  }
  .mobile-flyer-workspace.simple .flyer-pin-form-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .mobile-flyer-workspace.simple .flyer-pin-form-actions button{
    height:38px!important;
    border-radius:12px!important;
  }
}

/* AFH FIX 2026-07-03: Punktformular auch in der mobilen Vollbild-Flyerkarte anzeigen */
@media (max-width:620px){
  .mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel:has(.flyer-pin-create-form) .flyer-map-route{
    display:block!important;
    position:absolute!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 92px)!important;
    z-index:1003!important;
    max-height:48dvh!important;
    overflow:auto!important;
    padding:0!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple.employee-flyer-workspace .flyer-map-panel:has(.flyer-pin-create-form) #flyerMapInfo{
    display:block!important;
    position:static!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}

/* Standortaufnahme: KI liefert nur einen prüfbaren Entwurf, nie einen Blindimport. */
.location-capture-backdrop{z-index:100500!important}.location-capture-modal{width:min(620px,calc(100vw - 28px));max-height:min(820px,calc(100dvh - 28px));overflow:auto;border-radius:8px!important}.location-capture-modal [data-location-capture-content] form{display:grid;gap:14px}.location-capture-modal label{display:grid;gap:6px;font-weight:800;color:#25324a}.location-capture-modal input,.location-capture-modal select,.location-capture-modal textarea{width:100%;box-sizing:border-box;border:1px solid #cfd9e8;border-radius:8px;padding:11px;background:#fff;color:#152238;font:inherit}.capture-state{display:flex;align-items:center;gap:10px}.capture-state b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#1269e8;color:#fff}.capture-state span{font-weight:900;color:#17233b}.capture-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capture-file input{position:absolute;opacity:0;pointer-events:none}.capture-file span{display:grid;place-items:center;align-content:center;gap:8px;min-height:110px;border:2px dashed #9db9df;border-radius:8px;background:#f4f8ff;color:#1269e8;text-align:center;font-size:24px;cursor:pointer}.capture-file span b{font-size:14px}.capture-file.gallery span{background:#f4fbf8;border-color:#8fcbb2;color:#147451}.capture-selected-file{display:block;padding:8px 10px;border-radius:8px;background:#f4f6f9;color:#58677c;font-weight:700;overflow-wrap:anywhere}.capture-coordinate{display:flex;justify-content:space-between;gap:12px;padding:11px;border:1px solid #dbe8ff;border-radius:8px;background:#f4f8ff}.capture-coordinate strong{font-variant-numeric:tabular-nums}.capture-duplicates{display:grid;gap:8px}.capture-duplicates article{display:grid;gap:3px;padding:10px;border:1px solid #d7dfeb;border-radius:8px}.capture-duplicates article.likely{border-color:#e7a82f;background:#fff8e8}.capture-duplicates article span,.capture-duplicates article small{color:#5d687b}.capture-clear{padding:10px;border:1px solid #b9e2c8;border-radius:8px;background:#effaf3;color:#176a38;font-weight:800}.location-capture-preview .checkline{grid-template-columns:22px 1fr;align-items:start;font-weight:700}.location-capture-preview .checkline input{width:18px;height:18px;margin:2px 0 0}
.capture-text-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:12px;border:1px solid #cfe0fb;border-radius:8px;background:#f5f9ff}.capture-text-search button{min-height:44px;white-space:nowrap}.capture-divider{display:flex;align-items:center;gap:10px;color:#7a8799;font-size:12px;font-weight:800;text-transform:uppercase}.capture-divider::before,.capture-divider::after{content:'';height:1px;flex:1;background:#dbe2ec}
.location-capture-close{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #dbe2ec;border-radius:50%;background:#fff;color:#24314a;font-size:28px;line-height:1;cursor:pointer}.capture-location-field{padding:12px;border:1px solid #d7e7ff;border-radius:8px;background:#f7faff}.capture-location-field small{color:#64738a;font-weight:600;line-height:1.35}.capture-mode-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid #dbe2ec;border-radius:8px;background:#f2f5f9}.capture-mode-tabs button{min-height:42px;border:0;border-radius:6px;background:transparent;color:#526078;font-weight:900;cursor:pointer}.capture-mode-tabs button.active{background:#fff;color:#1269e8;box-shadow:0 3px 12px rgba(23,32,51,.12)}.capture-mode-panel{display:grid;gap:14px}.capture-mode-panel[hidden]{display:none!important}.capture-privacy{margin:0;padding:10px;border-left:3px solid #86aee8;background:#f5f9ff;color:#526078;font-size:12px;line-height:1.45}.capture-progress{position:relative;display:grid;grid-template-columns:28px 1fr;gap:2px 10px;align-items:center;padding:12px;border:1px solid #cfe0fb;border-radius:8px;background:#f5f9ff}.capture-progress[hidden]{display:none}.capture-progress span{grid-row:1/3;width:22px;height:22px;border:3px solid #cfe0fb;border-top-color:#1269e8;border-radius:50%;animation:capture-spin .8s linear infinite}.capture-progress b{color:#17325c}.capture-progress small{color:#64738a}@keyframes capture-spin{to{transform:rotate(360deg)}}.capture-result-meta{display:flex;flex-wrap:wrap;gap:8px}.capture-result-meta span{padding:7px 9px;border-radius:6px;background:#eef5ff;color:#526078;font-size:12px}.capture-preview-map{height:210px;border:1px solid #d7dfeb;border-radius:8px;overflow:hidden;background:#eef3f7}.capture-source-link{display:inline-flex;align-items:center;min-height:38px;color:#1269e8;font-weight:850;text-decoration:none}.capture-source-link:hover{text-decoration:underline}
@media(max-width:620px){.location-capture-backdrop{align-items:stretch!important;padding:0!important}.location-capture-modal{width:100%;height:100dvh;max-height:none;border-radius:0!important;padding:calc(env(safe-area-inset-top,0px) + 14px) 16px calc(env(safe-area-inset-bottom,0px) + 20px)!important}.location-capture-modal .panel-head{position:sticky;top:0;z-index:2;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;margin:0 0 12px!important;background:#fff;padding:0 0 10px!important}.location-capture-modal .location-capture-close{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;flex:0 0 42px!important}.location-capture-modal .time-two{grid-template-columns:1fr!important}.capture-file span{min-height:120px}.capture-source-grid{grid-template-columns:1fr 1fr}.capture-text-search{grid-template-columns:1fr}.capture-text-search button{width:100%}}
.location-audit-backdrop{z-index:100400!important}.location-audit-modal{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;border-radius:8px!important}.location-audit-summary{display:flex;align-items:baseline;gap:8px;padding:14px;border:1px solid #f1d38b;border-radius:8px;background:#fff8e8}.location-audit-summary strong{font-size:30px;color:#8a5700}.location-audit-list{display:grid;gap:8px;margin:12px 0}.location-audit-list article{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:11px;border:1px solid #d7dfeb;border-radius:8px}.location-audit-list article div{display:grid;gap:3px}.location-audit-list article span,.location-audit-list article small{color:#5d687b}.location-audit-list article button{min-height:40px}
@media(max-width:620px){.location-audit-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.location-audit-list article{grid-template-columns:1fr}.location-audit-list article button{width:100%}}
.license-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.license-kpis div{display:grid;gap:3px;padding:13px;border:1px solid #dbe4f2;border-radius:8px;background:#f7f9fc}.license-kpis strong{font-size:22px;color:#1269e8}.license-kpis span{color:#647086;font-size:12px;font-weight:800}.license-contract-form{display:grid;grid-template-columns:1.4fr .7fr 1fr 1fr auto;gap:8px;align-items:end;margin:12px 0 18px}.license-contract-form label{display:grid;gap:5px;font-size:12px;font-weight:800}.license-contract-form input,.license-contract-form select{width:100%;box-sizing:border-box;min-height:42px;border:1px solid #cfd9e8;border-radius:8px;padding:8px;background:#fff}
@media(max-width:760px){.license-kpis{grid-template-columns:1fr 1fr}.license-contract-form{grid-template-columns:1fr}.license-contract-form button{width:100%}}
.street-progress-modal{width:min(520px,calc(100vw - 28px));border-radius:8px!important}.street-progress-modal>label{display:grid;gap:6px;font-weight:800}.street-progress-modal input{width:100%;box-sizing:border-box;min-height:46px;border:1px solid #cfd9e8;border-radius:8px;padding:10px;font:inherit}.street-progress-history{display:grid;gap:7px;margin:12px 0}.street-progress-history>span{display:grid;gap:2px;padding:9px 11px;border:1px solid #dbe4f2;border-radius:8px;background:#f7f9fc;font-weight:850}.street-progress-history small{color:#647086;font-weight:600}.flyer-street-row:has([data-street-progress])>div>span{color:#875900;font-weight:900}
.flyer-location-capture-action{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:50px!important;margin:12px 0!important;border-radius:8px!important;font-size:15px!important;font-weight:900!important}.flyer-location-capture-action::before{content:'+';display:grid;place-items:center;width:24px;height:24px;margin-right:8px;border:2px solid currentColor;border-radius:50%;font-size:18px;line-height:1}
.flyer-capture-hero-action{display:grid!important;grid-template-columns:44px auto!important;grid-template-rows:auto auto!important;align-items:center!important;justify-content:start!important;width:100%!important;min-height:72px!important;margin:0 0 16px!important;padding:12px 18px!important;text-align:left!important;border-radius:8px!important}.flyer-capture-hero-action>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,.18);font-size:21px}.flyer-capture-hero-action>b{font-size:16px}.flyer-capture-hero-action>small{font-size:12px;font-weight:700;opacity:.82}.flyer-mobile-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.flyer-mobile-head-actions>button{min-height:42px}.flyer-mobile-capture-action{background:#1269e8!important;color:#fff!important;border-color:#1269e8!important}
@media(max-width:620px){.flyer-location-capture-action{position:sticky;top:8px;z-index:25;min-height:54px!important;margin:8px 0 14px!important;box-shadow:0 12px 28px rgba(18,105,232,.24)!important}.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-location-capture-open]{display:grid!important;grid-column:1 / 4!important;grid-row:3!important}.mobile-flyer-workspace.simple .flyer-map-panel .panel-actions:has([data-location-capture-open]){grid-template-rows:48px 48px 48px!important}}
@media(max-width:620px){.flyer-mobile-statistics>header{align-items:flex-start!important}.flyer-mobile-head-actions{display:grid!important;width:100%!important;grid-template-columns:1fr 1fr!important}.flyer-mobile-head-actions>button{width:100%!important;white-space:normal!important}.flyer-capture-hero-action{min-height:64px!important}}
/* Sofort Route: Karte vor Route-planen frei bewegbar 2026-07-07 */
.instant-route-workspace #flyerMap.instant-route-pan-ready,
.instant-route-workspace #flyerMap.instant-route-pan-ready.leaflet-container{
  touch-action:none!important;
  -ms-touch-action:none!important;
  overscroll-behavior:contain!important;
  pointer-events:auto!important;
  cursor:grab!important;
}
.instant-route-workspace #flyerMap.instant-route-pan-ready .leaflet-pane,
.instant-route-workspace #flyerMap.instant-route-pan-ready .leaflet-control-container,
.instant-route-workspace #flyerMap.instant-route-pan-ready .leaflet-marker-pane,
.instant-route-workspace #flyerMap.instant-route-pan-ready .leaflet-overlay-pane{
  pointer-events:auto!important;
}
.instant-route-workspace .flyer-map-shell{touch-action:none!important;overscroll-behavior:contain!important}
.instant-route-workspace .leaflet-container{background:#eef4ff!important}
.instant-route-workspace .leaflet-control-container{z-index:900!important}
/* Flyer-Routenkarte: klickbare Ziel-Kurzinformationen 2026-07-07 */
.route-point-popup{display:grid;gap:6px;min-width:190px;max-width:260px;font-family:Inter,Arial,sans-serif;color:#172033}.route-point-popup strong{font-size:14px;line-height:1.2;color:#123583}.route-point-popup span{font-size:13px;line-height:1.25;color:#263044}.route-point-popup small{font-size:11px;color:#526078;font-weight:800}.route-point-popup em{font-size:11px;color:#6b7280;font-style:normal;background:#f4f7fb;border-radius:9px;padding:6px}.route-point-popup a{display:inline-flex;justify-content:center;align-items:center;margin-top:3px;border-radius:999px;background:#1269e8;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:900;padding:7px 10px}.route-point-number{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;font-size:11px!important;font-weight:1000!important;line-height:1!important;text-shadow:0 1px 2px rgba(0,0,0,.4)!important;pointer-events:none!important}.flyer-route-next-actions .ghost[data-driving-route]{border-color:#bcd2f4!important;color:#123583!important}.flyer-mobile-route-actions button[data-driving-route]{background:#edf4ff!important;color:#123583!important;border-color:#cfe0f8!important}

/* AFH mobile map polish 2026-07-08: clear phone route UI */
@media (max-width:620px){
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active>header{
    left:12px!important;
    right:12px!important;
    top:calc(env(safe-area-inset-top,0px) + 8px)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px!important;
    gap:8px!important;
    align-items:start!important;
    pointer-events:none!important;
  }
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions{
    grid-column:1!important;
    display:grid!important;
    grid-template-columns:0 0 minmax(0,1fr)!important;
    gap:0!important;
    width:100%!important;
    pointer-events:auto!important;
  }
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button:not([data-flyer-map-create]){
    display:none!important;
  }
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-create]{
    grid-column:3!important;
    width:100%!important;
    height:48px!important;
    min-height:48px!important;
    border-radius:999px!important;
    font-size:15px!important;
    font-weight:950!important;
    box-shadow:0 16px 34px rgba(18,105,232,.28)!important;
  }
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-close-x{
    grid-column:2!important;
    display:grid!important;
    place-items:center!important;
    width:50px!important;
    height:50px!important;
    min-height:50px!important;
    padding:0!important;
    border-radius:999px!important;
    border:2px solid rgba(255,198,207,.95)!important;
    background:rgba(255,240,242,.97)!important;
    color:#d9263f!important;
    font-size:30px!important;
    line-height:1!important;
    font-weight:950!important;
    box-shadow:0 12px 26px rgba(23,32,51,.16)!important;
    pointer-events:auto!important;
  }
  body.flyer-route-focus-mode #flyerMap,
  .mobile-flyer-workspace.simple #flyerMap{
    filter:saturate(.92) contrast(.98)!important;
  }
  body.flyer-route-focus-mode .leaflet-pane.leaflet-marker-pane{
    transform:scale(.92)!important;
    transform-origin:center center!important;
  }
  body.flyer-route-focus-mode .flyer-map-pin .flyer-map-pin-inner,
  .mobile-flyer-workspace.simple .flyer-map-pin .flyer-map-pin-inner{
    width:28px!important;
    height:28px!important;
    box-shadow:0 6px 14px var(--pin-glow)!important;
  }
  body.flyer-route-focus-mode .flyer-map-pin.grouped .flyer-map-pin-inner,
  .mobile-flyer-workspace.simple .flyer-map-pin.grouped .flyer-map-pin-inner{
    width:36px!important;
    height:36px!important;
    border-radius:16px!important;
  }
  body.flyer-route-focus-mode .flyer-map-route{
    left:14px!important;
    right:14px!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;
  }
  body.flyer-route-focus-mode .flyer-route-summary,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    gap:8px!important;
  }
  body.flyer-route-focus-mode .flyer-route-summary div,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-summary div{
    min-height:48px!important;
    border-radius:20px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 12px 28px rgba(23,32,51,.16)!important;
  }
  body.flyer-route-focus-mode .flyer-route-summary strong{
    font-size:16px!important;
  }
  body.flyer-route-focus-mode .flyer-route-summary span{
    font-size:9px!important;
    letter-spacing:-.01em!important;
  }
}

/* AFH mobile flyer tab map fix 2026-07-08: normal flyer tab, not only route focus */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-panel>header{
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    top:calc(env(safe-area-inset-top,0px) + 78px)!important;
    z-index:1200!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 52px!important;
    grid-template-rows:48px 48px!important;
    gap:8px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    pointer-events:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel>header h3{
    display:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{
    grid-column:1 / 3!important;
    grid-row:1 / 3!important;
    display:grid!important;
    grid-template-columns:1fr 1fr 52px!important;
    grid-template-rows:48px 48px!important;
    gap:8px!important;
    width:100%!important;
    margin:0!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{
    height:48px!important;
    min-height:48px!important;
    width:100%!important;
    min-width:0!important;
    border-radius:999px!important;
    padding:0 12px!important;
    font-size:14px!important;
    font-weight:950!important;
    box-shadow:0 12px 28px rgba(23,32,51,.16)!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(219,232,255,.95)!important;
    color:#172033!important;
    backdrop-filter:blur(14px)!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-location-back]{
    grid-column:1!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-pin-new]{
    grid-column:2 / 4!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen],
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-clear]{
    display:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{
    grid-column:1 / 3!important;
    grid-row:2!important;
    background:#1269e8!important;
    color:#fff!important;
    border-color:#1269e8!important;
    box-shadow:0 16px 34px rgba(18,105,232,.26)!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .flyer-route-close-x{
    grid-column:3!important;
    grid-row:2!important;
    align-self:center!important;
    justify-self:center!important;
    display:grid!important;
    place-items:center!important;
    width:50px!important;
    height:50px!important;
    min-height:50px!important;
    padding:0!important;
    border-radius:999px!important;
    border:2px solid rgba(255,198,207,.95)!important;
    background:rgba(255,240,242,.98)!important;
    color:#d9263f!important;
    font-size:30px!important;
    line-height:1!important;
    font-weight:950!important;
    box-shadow:0 12px 26px rgba(23,32,51,.16)!important;
    pointer-events:auto!important;
    z-index:2!important;
  }
  .mobile-flyer-workspace.simple #flyerMap{
    height:100vh!important;
    min-height:100vh!important;
    border-radius:0!important;
    border:0!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-shell{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-route{
    left:14px!important;
    right:14px!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 14px)!important;
  }
}

/* AFH mobile flyer tab hard fix 2026-07-08: X gets its own column, route button cannot underlap */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-panel>header{
    left:12px!important;
    right:12px!important;
    top:calc(env(safe-area-inset-top,0px) + 78px)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 58px!important;
    grid-template-rows:48px 52px!important;
    column-gap:10px!important;
    row-gap:8px!important;
    pointer-events:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{
    grid-column:1!important;
    grid-row:1 / 3!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:48px 52px!important;
    gap:8px!important;
    width:100%!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-location-back]{
    grid-column:1!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-pin-new]{
    grid-column:2!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{
    grid-column:1 / 3!important;
    grid-row:2!important;
    height:52px!important;
    min-height:52px!important;
    border-radius:999px!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .flyer-route-close-x{
    grid-column:2!important;
    grid-row:2!important;
    position:relative!important;
    align-self:center!important;
    justify-self:center!important;
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    margin:0!important;
    transform:none!important;
    z-index:5!important;
    pointer-events:auto!important;
  }
}

/* AFH mobile flyer tab compact controls 2026-07-08 */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-panel>header{
    left:14px!important;
    right:14px!important;
    top:calc(env(safe-area-inset-top,0px) + 70px)!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    grid-template-rows:42px 44px!important;
    column-gap:8px!important;
    row-gap:7px!important;
    z-index:1300!important;
    pointer-events:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions{
    grid-column:1!important;
    grid-row:1 / 3!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:42px 44px!important;
    gap:7px!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button{
    height:42px!important;
    min-height:42px!important;
    border-radius:18px!important;
    padding:0 10px!important;
    font-size:13px!important;
    line-height:1!important;
    box-shadow:0 10px 22px rgba(23,32,51,.13)!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-location-back]{
    grid-column:1!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-pin-new]{
    grid-column:2!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create]{
    grid-column:1 / 3!important;
    grid-row:2!important;
    height:44px!important;
    min-height:44px!important;
    border-radius:20px!important;
    font-size:14px!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .flyer-route-close-x{
    grid-column:2!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:center!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    border-radius:16px!important;
    font-size:25px!important;
    box-shadow:0 10px 22px rgba(23,32,51,.12)!important;
    z-index:10!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-route{
    bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;
  }
  .mobile-flyer-workspace.simple .flyer-route-summary{
    width:calc(100vw - 28px)!important;
    max-width:calc(100vw - 28px)!important;
    gap:7px!important;
  }
  .mobile-flyer-workspace.simple .flyer-route-summary div{
    min-height:42px!important;
    border-radius:17px!important;
  }
}
.instant-route-opening{display:inline-block;font-weight:800;font-size:12px;color:#18a058}
.instant-route-opening.opening-closing-soon{color:#ff9f0a}
.instant-route-opening.opening-closing-critical{color:#e11d2e}
.instant-route-opening.opening-closing-final{color:#111827}
.instant-route-opening.opening-closed{color:#94a3b8}
.instant-route-opening.opening-unknown{color:#94a3b8}

/* AFH mobile flyer map controls 2026-07-14 */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-panel>header,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active>header{
    position:absolute!important;
    left:10px!important;
    right:auto!important;
    top:calc(env(safe-area-inset-top,0px) + 10px)!important;
    width:min(352px, calc(100vw - 20px))!important;
    display:grid!important;
    grid-template-columns:minmax(94px,112px) 56px minmax(128px,1fr)!important;
    grid-template-rows:50px 34px!important;
    gap:7px!important;
    align-items:start!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    z-index:1600!important;
    pointer-events:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel>header h3,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active>header h3{
    display:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions{
    grid-column:1 / 4!important;
    grid-row:1 / 3!important;
    display:grid!important;
    grid-template-columns:minmax(94px,112px) 56px minmax(128px,1fr)!important;
    grid-template-rows:50px 34px!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button{
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    border-radius:999px!important;
    padding:0 12px!important;
    white-space:nowrap!important;
    line-height:1!important;
    font-weight:950!important;
    box-shadow:0 10px 24px rgba(23,32,51,.16)!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(219,232,255,.96)!important;
    color:#172033!important;
    backdrop-filter:blur(14px)!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-location-back],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-location-back]{
    display:grid!important;
    place-items:center!important;
    grid-column:1!important;
    grid-row:1!important;
    height:50px!important;
    font-size:14px!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .flyer-route-close-x,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-close-x{
    display:grid!important;
    place-items:center!important;
    grid-column:2!important;
    grid-row:1!important;
    position:relative!important;
    align-self:center!important;
    justify-self:center!important;
    width:56px!important;
    height:56px!important;
    min-width:56px!important;
    min-height:56px!important;
    margin:0!important;
    padding:0!important;
    border-radius:999px!important;
    border:2px solid rgba(255,198,207,.98)!important;
    background:rgba(255,240,242,.98)!important;
    color:#d9263f!important;
    font-size:36px!important;
    font-weight:950!important;
    line-height:1!important;
    box-shadow:0 12px 26px rgba(23,32,51,.18)!important;
    transform:none!important;
    pointer-events:auto!important;
    z-index:5!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-position-show],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-position-show]{
    display:grid!important;
    place-items:center!important;
    grid-column:3!important;
    grid-row:1!important;
    height:50px!important;
    color:#1269e8!important;
    font-size:12px!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-create]{
    display:grid!important;
    place-items:center!important;
    grid-column:1 / 3!important;
    grid-row:2!important;
    justify-self:start!important;
    width:100%!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 11px!important;
    background:#1269e8!important;
    border-color:#1269e8!important;
    color:#fff!important;
    font-size:11px!important;
    box-shadow:0 10px 22px rgba(18,105,232,.22)!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-pin-new],
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-fullscreen],
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-clear],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-pin-new],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-fullscreen],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-clear]{
    display:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .leaflet-control.flyer-locate-control,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .leaflet-control.flyer-locate-control{
    display:none!important;
  }
}

/* AFH mobile flyer map control stack 2026-07-23 */
@media (max-width:620px){
  .mobile-flyer-workspace.simple .flyer-map-controls,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-map-controls{
    display:none!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel>header,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active>header{
    position:absolute!important;
    left:16px!important;
    right:16px!important;
    top:calc(env(safe-area-inset-top,0px) + 42px)!important;
    width:auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.24fr)!important;
    grid-template-rows:42px 46px!important;
    gap:10px!important;
    align-items:stretch!important;
    margin:0!important;
    padding:0!important;
    pointer-events:none!important;
    z-index:1800!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions{
    grid-column:1 / -1!important;
    grid-row:1 / -1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.24fr)!important;
    grid-template-rows:42px 46px!important;
    gap:10px!important;
    width:100%!important;
    margin:0!important;
    pointer-events:auto!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button{
    height:42px!important;
    min-height:42px!important;
    width:100%!important;
    min-width:0!important;
    padding:0 12px!important;
    border-radius:22px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-location-back],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-location-back]{
    grid-column:1!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-position-show],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-position-show]{
    grid-column:2!important;
    grid-row:1!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-flyer-map-create],
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .panel-actions button[data-flyer-map-create]{
    grid-column:1 / -1!important;
    grid-row:2!important;
    justify-self:start!important;
    width:calc(100% - 56px)!important;
    height:46px!important;
    min-height:46px!important;
    border-radius:23px!important;
    padding-right:12px!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-panel .flyer-route-close-x,
  body.flyer-route-focus-mode .flyer-map-panel.route-focus-active .flyer-route-close-x{
    position:absolute!important;
    right:0!important;
    top:52px!important;
    display:grid!important;
    place-items:center!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:0!important;
    border-radius:999px!important;
    font-size:28px!important;
    line-height:1!important;
    z-index:3!important;
    pointer-events:auto!important;
  }
}

/* Flyer point admin menu and Gastro category 2026-07-23 */
.flyer-map-pin.gastro{--pin:#c06516!important;--pin-glow:rgba(192,101,22,.28)!important}
.flyer-type.gastro{background:#c06516!important}
.flyer-map-pin.strassenzug .flyer-map-pin-inner{background:#475569!important}
.flyer-map-pin.auslagestelle .flyer-map-pin-inner{background:#7c5ce8!important}
.flyer-type.strassenzug{background:#475569!important}
.flyer-type.auslagestelle{background:#7c5ce8!important}
.flyer-map-actions button[data-flyer-drop-redone]{
  background:#e9fff3!important;
  border-color:#b9e8cc!important;
  color:#11784f!important;
}
.flyer-map-actions .danger,
.flyer-map-actions button[data-flyer-drop-delete]{
  background:#fff0f2!important;
  border-color:#ffc6cf!important;
  color:#b42335!important;
}
.flyer-symbol-menu{
  grid-column:1 / -1!important;
  display:grid!important;
  gap:7px!important;
}
.flyer-symbol-menu summary{
  display:grid!important;
  place-items:center!important;
  min-height:34px!important;
  border:1px solid #dbe8ff!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#1269e8!important;
  font-size:11px!important;
  font-weight:950!important;
  cursor:pointer!important;
  list-style:none!important;
}
.flyer-symbol-menu summary::-webkit-details-marker{display:none!important}
.flyer-symbol-menu>div{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px!important;
  padding:7px!important;
  border:1px solid #e5edf8!important;
  border-radius:12px!important;
  background:#fff!important;
}
.flyer-symbol-menu button{
  display:grid!important;
  grid-template-columns:22px 1fr!important;
  gap:6px!important;
  align-items:center!important;
  justify-items:start!important;
  min-height:34px!important;
  padding:6px 8px!important;
  text-align:left!important;
  background:#f7fbff!important;
  color:#172033!important;
  border-color:#dbe8ff!important;
}
.flyer-symbol-menu button span{
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:8px!important;
  background:#edf4ff!important;
}
.flyer-symbol-menu button.active{
  background:#e9fff3!important;
  border-color:#b9e8cc!important;
  color:#11784f!important;
}
@media(max-width:620px){
  .mobile-flyer-workspace.simple .flyer-symbol-menu>div{
    grid-template-columns:1fr!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-actions{
    grid-template-columns:1fr 1fr!important;
  }
  .mobile-flyer-workspace.simple .flyer-map-actions button[data-flyer-drop-delete]{
    grid-column:1 / -1!important;
  }
}

/* Hidden AFH care budget module 2026-07-14 */
.care-budget-calculator{
  display:grid;
  gap:16px;
}
.care-budget-form{
  display:grid;
  gap:14px;
}
.care-budget-form footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.care-budget-result{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
}
.care-budget-result>div{
  display:grid;
  gap:5px;
  min-height:96px;
  padding:14px;
  border:1px solid #dbe8ff;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#f7fbff);
}
.care-budget-result span{
  color:#526078;
  font-size:12px;
  font-weight:850;
}
.care-budget-result strong{
  color:#123583;
  font-size:24px;
  font-weight:950;
  line-height:1.05;
}
.care-budget-result small{
  color:#657085;
  font-size:11px;
  font-weight:750;
  line-height:1.35;
}
.care-budget-modal{
  max-width:980px;
}
.care-budget-modal .care-budget-calculator{
  box-shadow:none;
}
.care-budget-scenario-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.care-budget-weekly{
  display:grid;
  gap:8px;
  margin-top:6px;
}
.care-budget-weekly h4{
  margin:0;
  color:#173a9a;
  font-size:12.5px;
}
.care-budget-weekly-table tr.over td,
.care-budget-household-table tr.over td{
  background:#fff0f2;
  color:#b42335;
  font-weight:800;
}
.care-budget-weekly-table tr.under td,
.care-budget-household-table tr.under td{
  background:#fff8ea;
  color:#a76500;
}
.care-budget-weekly-table tr.ok td,
.care-budget-household-table tr.ok td{
  background:#f2fff7;
  color:#11784f;
}
.care-budget-household-modal{
  max-width:900px;
  display:grid;
  gap:14px;
}
.care-budget-household-picker{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:8px;
  max-height:220px;
  overflow-y:auto;
  padding:10px;
  border:1px solid #dbe8ff;
  border-radius:12px;
  background:#f7fbff;
}
.care-budget-household-pick{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:750;
}
.care-budget-household-frequency{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12.5px;
  font-weight:850;
}
.care-budget-household-frequency select{
  padding:6px 10px;
  border:1px solid #dbe8ff;
  border-radius:10px;
}
.household-minutes-input{
  width:64px;
  padding:4px 6px;
  border:1px solid #dbe8ff;
  border-radius:8px;
  font-size:12.5px;
}
.quick-dispo-panel{
  margin-bottom:14px;
}
.quick-dispo-inputs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-bottom:10px;
}
.quick-dispo-inputs label{
  display:grid;
  gap:5px;
  font-size:12px;
  font-weight:850;
  color:#526078;
}
.quick-dispo-inputs select,
.quick-dispo-inputs input{
  padding:8px 10px;
  border:1px solid #dbe8ff;
  border-radius:10px;
  font-size:13px;
}
.quick-dispo-recommendation{
  margin:0 0 10px;
  padding:10px 14px;
  border-radius:12px;
  background:#f2fff7;
  color:#11784f;
  font-size:13px;
  font-weight:750;
}
.quick-dispo-recommendation.over{
  background:#fff0f2;
  color:#b42335;
}
.quick-dispo-recommendation.under{
  background:#fff8ea;
  color:#a76500;
}
.quick-dispo-table tr.over td{
  background:#fff0f2;
  color:#b42335;
  font-weight:800;
}
.quick-dispo-table tr.under td{
  background:#fff8ea;
  color:#a76500;
}
.quick-dispo-table tr.ok td{
  background:#f2fff7;
  color:#11784f;
}
@media(max-width:720px){
  .care-budget-result{
    grid-template-columns:1fr 1fr;
  }
}

/* Flyer map color priority: category colors must not look like completion state. */
.flyer-map-pin.selected .flyer-map-pin-inner{
  background:#1269e8!important;
  box-shadow:0 0 0 4px rgba(18,105,232,.16),0 10px 20px rgba(18,105,232,.26)!important;
}
.flyer-map-pin.done .flyer-map-pin-inner,
.flyer-map-pin.done.auslagestelle .flyer-map-pin-inner,
.flyer-map-pin.done.strassenzug .flyer-map-pin-inner{
  background:#28a745!important;
  box-shadow:0 8px 18px rgba(40,167,69,.28)!important;
}
.flyer-map-pin.warn .flyer-map-pin-inner{
  background:#ff9f0a!important;
  box-shadow:0 8px 18px rgba(255,159,10,.26)!important;
}
.flyer-map-pin.skipped .flyer-map-pin-inner{
  background:#f59e0b!important;
  box-shadow:0 8px 18px rgba(245,158,11,.25)!important;
}
.flyer-type.done,
.flyer-type.done.auslagestelle,
.flyer-type.done.strassenzug{background:#28a745!important}
.flyer-type.warn{background:#ff9f0a!important}
.flyer-type.skipped{background:#f59e0b!important}

.flyer-street-panel{
  display:grid!important;
  gap:10px!important;
  margin-top:12px!important;
  padding:12px!important;
  border:1px solid #dbe4f2!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}
.flyer-street-panel header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:0!important;
  border:0!important;
}
.flyer-street-panel h4{
  margin:0!important;
  color:#172033!important;
  font-size:14px!important;
  letter-spacing:0!important;
}
.flyer-street-panel small{
  display:block!important;
  margin-top:2px!important;
  color:#657085!important;
  font-size:11px!important;
  font-weight:900!important;
}
.flyer-street-list{display:grid!important;gap:8px!important}
.flyer-street-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  padding:10px!important;
  border:1px solid #dbe4f2!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 6px 16px rgba(23,32,51,.045)!important;
}
.flyer-street-row.done{
  border-color:#ccefd9!important;
  background:#f5fff8!important;
}
.flyer-street-row.skipped,
.flyer-street-row.warn{
  border-color:#f4dfad!important;
  background:#fffaf0!important;
}
.flyer-street-row b{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  min-height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#e8edff!important;
  color:#173a9a!important;
  font-size:10px!important;
  font-weight:950!important;
}
.flyer-street-row strong{
  display:block!important;
  margin-top:6px!important;
  color:#172033!important;
  font-size:13px!important;
  line-height:1.18!important;
}
.flyer-street-row span,
.flyer-street-row small{
  display:block!important;
  color:#657085!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1.3!important;
}
.flyer-street-row nav{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(104px,1fr))!important;
  gap:6px!important;
  min-width:230px!important;
}
.flyer-street-row nav a,
.flyer-street-row nav button{
  display:grid!important;
  place-items:center!important;
  min-height:34px!important;
  padding:0 9px!important;
  border:1px solid #dbe8ff!important;
  border-radius:11px!important;
  background:#edf4ff!important;
  color:#1269e8!important;
  font-size:11px!important;
  font-weight:950!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.flyer-street-row nav button[data-flyer-drop-done],
.flyer-street-row nav button[data-flyer-drop-redone]{
  border-color:#b9e8cc!important;
  background:#e9fff3!important;
  color:#11784f!important;
}
.flyer-street-row nav button[data-flyer-drop-skip]{
  border-color:#ffd98b!important;
  background:#fff8e8!important;
  color:#9c6100!important;
}
.flyer-street-row nav button[data-flyer-drop-note]{
  border-color:#dbe4f2!important;
  background:#fff!important;
  color:#31405c!important;
}
.flyer-map-panel.map-fullscreen-active .flyer-street-panel,
body.flyer-route-focus-mode .flyer-street-panel{
  display:none!important;
}
@media(max-width:720px){
  .flyer-street-panel{
    margin-top:10px!important;
    padding:10px!important;
    border-radius:16px!important;
  }
  .flyer-street-row{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }
  .flyer-street-row nav{
    grid-template-columns:1fr 1fr!important;
    min-width:0!important;
  }
  .flyer-street-row nav a,
  .flyer-street-row nav button{
    min-height:38px!important;
    font-size:11.5px!important;
  }
}
@media(max-width:520px){
  .care-budget-result{
    grid-template-columns:1fr;
  }
}
.mobile-care-budget{
  display:grid!important;
  gap:10px!important;
}
.mobile-care-summary{
  display:grid!important;
  gap:10px!important;
}
.mobile-care-summary p{
  margin:0!important;
  color:#657085!important;
  font-size:11.5px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.mobile-care-kpis{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
.mobile-care-kpis div{
  display:grid!important;
  place-items:center!important;
  gap:3px!important;
  min-height:58px!important;
  padding:8px 6px!important;
  border:1px solid #dbe8ff!important;
  border-radius:14px!important;
  background:#fff!important;
}
.mobile-care-kpis strong{
  color:#1269e8!important;
  font-size:13px!important;
  line-height:1.05!important;
  text-align:center!important;
}
.mobile-care-kpis span{
  color:#687080!important;
  font-size:9.5px!important;
  font-weight:900!important;
  text-align:center!important;
}
.mobile-care-budget .care-budget-calculator{
  grid-column:auto!important;
  min-height:0!important;
  padding:13px!important;
  border:1px solid rgba(234,220,205,.9)!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 10px 26px rgba(50,39,25,.075)!important;
}
.mobile-care-budget .care-budget-calculator header{
  display:block!important;
  margin-bottom:8px!important;
  padding-bottom:8px!important;
}
.mobile-care-budget .care-budget-calculator h3{
  font-size:13.5px!important;
}
.mobile-care-budget .time-two{
  grid-template-columns:1fr!important;
}
.mobile-care-budget input,
.mobile-care-budget select{
  width:100%!important;
  min-height:38px!important;
}
.mobile-care-budget .care-budget-form footer button{
  flex:1 1 130px!important;
}
.mobile-care-budget .care-budget-minimal footer{
  display:none!important;
}
.mobile-care-budget .care-budget-result strong{
  font-size:20px!important;
}
.mobile-care-scenarios button.mobile-list-row{
  width:100%!important;
  text-align:left!important;
  cursor:pointer!important;
}
.care-budget-simple .care-budget-form{
  gap:12px!important;
}
.care-budget-minimal{
  gap:0!important;
}
.care-budget-minimal .care-budget-form{
  gap:14px!important;
}
.care-budget-simple-inputs{
  display:grid!important;
  grid-template-columns:1fr 1fr 1fr!important;
  gap:10px!important;
}
.care-budget-mode{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.care-budget-mode label{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:10px 12px!important;
  border:1px solid #dbe8ff!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#27324a!important;
  font-size:13px!important;
  font-weight:950!important;
}
.care-budget-mode input{
  width:auto!important;
  min-height:0!important;
  margin:0!important;
  accent-color:#1269e8!important;
}
.care-budget-form[data-budget-mode="monthly"] .care-budget-remaining-input,
.care-budget-form[data-budget-mode="remaining"] .care-budget-monthly-input{
  display:none!important;
}
.care-budget-form[data-care-level=""] .care-budget-respite-input,
.care-budget-form[data-care-level="1"] .care-budget-respite-input{
  display:none!important;
}
.care-budget-amount-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.care-budget-budget-input{
  display:grid!important;
  gap:8px!important;
  color:#123583!important;
  font-size:13px!important;
  font-weight:950!important;
}
.care-budget-budget-input input,
.care-budget-budget-input select{
  min-height:52px!important;
  padding:0 14px!important;
  border:1px solid #b9d4ff!important;
  border-radius:14px!important;
  background:#f7fbff!important;
  color:#082b79!important;
  font-size:24px!important;
  font-weight:950!important;
}
.care-budget-budget-input select{
  font-size:18px!important;
}
.care-budget-minimal .care-budget-budget-input{
  color:#27324a!important;
}
.care-budget-minimal .care-budget-budget-input input,
.care-budget-minimal .care-budget-budget-input select{
  min-height:58px!important;
  border-color:#dbe8ff!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#172033!important;
  font-size:18px!important;
}
.care-budget-budget-input small{
  color:#657085!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.35!important;
}
.care-budget-settings{
  padding:10px 12px!important;
  border:1px solid #eadccd!important;
  border-radius:14px!important;
  background:#fffdf9!important;
}
.care-budget-settings summary{
  cursor:pointer!important;
  color:#526078!important;
  font-size:12px!important;
  font-weight:900!important;
}
.care-budget-settings .time-two{
  margin-top:10px!important;
}
.care-budget-simple-result{
  grid-template-columns:1fr!important;
}
.care-budget-combined-result{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
}
.care-budget-main-result{
  min-height:86px!important;
  border-color:#b9d4ff!important;
  background:linear-gradient(180deg,#f7fbff,#fff)!important;
}
.care-budget-main-result.quiet,
.care-budget-main-result.muted{
  border-color:#eadccd!important;
  background:#fffdf9!important;
}
.care-budget-main-result.quiet strong,
.care-budget-main-result.muted strong{
  color:#526078!important;
}
.care-plan-heading{
  margin:2px 0 -2px!important;
  color:#123583!important;
  font-size:13px!important;
  font-weight:950!important;
}
.care-budget-answer{
  display:grid!important;
  gap:10px!important;
  padding:14px!important;
  border:1px solid #b9d4ff!important;
  border-radius:14px!important;
  background:#f7fbff!important;
}
.care-budget-answer header,
.care-budget-plan-row{
  display:grid!important;
  gap:4px!important;
}
.care-budget-answer span,
.care-budget-plan-row span{
  color:#526078!important;
  font-size:12px!important;
  font-weight:950!important;
}
.care-budget-answer strong,
.care-budget-plan-row strong{
  color:#123583!important;
  font-size:24px!important;
  font-weight:950!important;
  line-height:1.1!important;
}
.care-budget-answer small,
.care-budget-plan-row small{
  color:#526078!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.35!important;
}
.care-budget-plan-row{
  padding-top:10px!important;
  border-top:1px solid #dbe8ff!important;
}
.care-plan-options{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:10px!important;
}
.care-plan-option{
  display:grid!important;
  gap:4px!important;
  min-height:92px!important;
  padding:13px!important;
  border:1px solid #eadccd!important;
  border-radius:14px!important;
  background:#fffdf9!important;
}
.care-plan-option strong{
  color:#1269e8!important;
  font-size:20px!important;
  line-height:1.05!important;
}
.care-plan-option span{
  color:#172033!important;
  font-size:13px!important;
  font-weight:950!important;
}
.care-plan-option small{
  color:#657085!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.3!important;
}
.care-plan-option.muted{
  opacity:.72!important;
}
.mobile-care-kpis strong{
  overflow-wrap:anywhere!important;
}
@media(max-width:620px){
  .app-head nav a::after{
    content:attr(data-mobile-label)!important;
  }
  .care-budget-mode{
    grid-template-columns:1fr!important;
  }
  .care-budget-simple-inputs{
    grid-template-columns:1fr!important;
  }
  .care-budget-amount-grid{
    grid-template-columns:1fr!important;
  }
  .care-budget-combined-result{
    grid-template-columns:1fr!important;
  }
  .care-plan-options{
    grid-template-columns:1fr!important;
  }
  .care-budget-budget-input input{
    font-size:22px!important;
  }
}


/* Mobile Kundenbudget */
.mobile-care-budget-card{display:grid!important;gap:12px!important}
.mobile-budget-head{display:grid!important;grid-template-columns:auto 1fr!important;gap:10px!important;align-items:start!important}
.mobile-budget-head>span{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:14px!important;background:#edf4ff!important;color:#1269e8!important;font-size:22px!important;font-weight:950!important}
.mobile-budget-head h3{margin:0!important;font-size:17px!important;line-height:1.15!important;color:#123583!important}
.mobile-budget-head p{margin:4px 0 0!important;color:#526078!important;font-size:12px!important;font-weight:800!important;line-height:1.35!important}
.mobile-budget-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.mobile-budget-kpis div{display:grid!important;gap:3px!important;min-height:76px!important;padding:10px!important;border:1px solid #dbe8ff!important;border-radius:16px!important;background:linear-gradient(180deg,#ffffff,#f7fbff)!important}
.mobile-budget-kpis span{color:#657085!important;font-size:10.5px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.02em!important}
.mobile-budget-kpis strong{color:#1269e8!important;font-size:19px!important;line-height:1.05!important;letter-spacing:-.03em!important;word-break:break-word!important}
.mobile-budget-kpis small{color:#526078!important;font-size:10.5px!important;font-weight:800!important;line-height:1.25!important}
.mobile-budget-main-action{width:100%!important;min-height:44px!important;border-radius:15px!important;font-weight:950!important}
.mobile-budget-list{display:grid!important;gap:8px!important}
.mobile-budget-list>strong{font-size:12px!important;color:#172033!important}
.mobile-budget-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;width:100%!important;min-height:58px!important;padding:10px!important;border:1px solid #eadccd!important;border-radius:16px!important;background:#fffdf9!important;text-align:left!important;color:#172033!important}
.mobile-budget-row span{display:grid!important;gap:3px!important;min-width:0!important}
.mobile-budget-row strong{font-size:13px!important;line-height:1.2!important;color:#172033!important;overflow-wrap:anywhere!important}
.mobile-budget-row small{font-size:10.5px!important;line-height:1.25!important;color:#657085!important;font-weight:800!important;overflow-wrap:anywhere!important}
.mobile-budget-row b{display:grid!important;place-items:center!important;min-width:78px!important;min-height:34px!important;padding:0 9px!important;border-radius:999px!important;background:#e9fff3!important;color:#11784f!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}
.mobile-budget-empty{margin:0!important;padding:10px!important;border:1px dashed #dbe8ff!important;border-radius:15px!important;background:#f7fbff!important;color:#526078!important;font-size:12px!important;font-weight:800!important;line-height:1.35!important}
.mobile-budget-note{display:block!important;color:#657085!important;font-size:10.5px!important;font-weight:800!important;line-height:1.35!important}
@media (max-width:380px){.mobile-budget-kpis{grid-template-columns:1fr!important}.mobile-budget-row{grid-template-columns:1fr!important}.mobile-budget-row b{justify-self:start!important}}


/* Mobile Admin-Budget navigation */
@media(max-width:720px){
  .app-head nav#mobileNav:has(a[data-mobile-tab="care"]),.app-head nav:has(a[data-mobile-tab="care"]){grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:520px!important}
  .app-head nav a[data-mobile-tab="care"]{display:grid!important;order:2!important}
  .app-head nav a[data-mobile-tab="flyers"]{order:3!important}
  .app-head nav a[data-mobile-tab="chat"]{order:4!important}
  .app-head nav a[data-mobile-tab="care"]::after{content:'Budget'!important}
}

/* Desktop Übersicht & Bedienbarkeit */
@media (min-width: 721px){
  body:not(.logged-out) main{
    width:min(1480px,calc(100vw - 42px))!important;
    margin:18px auto!important;
  }
  .admin-web{
    max-width:none!important;
    min-height:calc(100vh - 36px)!important;
    border-radius:14px!important;
    overflow:clip!important;
  }
  .admin-topbar{
    position:sticky!important;
    top:0!important;
    z-index:50!important;
    height:72px!important;
    grid-template-columns:minmax(230px,1fr) minmax(280px,430px) 44px minmax(170px,220px) auto!important;
    padding:0 24px!important;
    box-shadow:0 10px 24px rgba(23,32,51,.05)!important;
  }
  .admin-logo span{
    display:grid!important;
    place-items:center!important;
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
    background:#1269e8!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:950!important;
  }
  .admin-logo strong{
    font-size:16px!important;
  }
  .admin-search{
    height:42px!important;
    border-radius:12px!important;
    background:#f7fbff!important;
    border-color:#dbe8ff!important;
  }
  .admin-search input{
    font-size:14px!important;
    font-weight:750!important;
  }
  .admin-layout{
    grid-template-columns:206px minmax(0,1fr)!important;
    min-height:calc(100vh - 108px)!important;
  }
  .admin-sidebar{
    position:sticky!important;
    top:72px!important;
    align-self:start!important;
    height:calc(100vh - 108px)!important;
    overflow:auto!important;
    padding:18px 12px!important;
  }
  .admin-nav{
    min-height:42px!important;
    height:auto!important;
    padding:0 13px!important;
    border-radius:12px!important;
    font-size:13px!important;
  }
  .admin-nav:hover{
    background:#f1f7ff!important;
    color:#1269e8!important;
  }
  .admin-content{
    gap:16px!important;
    padding:24px!important;
    min-width:0!important;
  }
  .admin-heading{
    position:static!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border-bottom:0!important;
    backdrop-filter:none!important;
  }
  .admin-heading h2{
    font-size:24px!important;
  }
  .admin-heading p{
    font-size:12px!important;
  }
  .admin-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:14px!important;
  }
  .admin-kpi{
    min-height:96px!important;
    padding:16px!important;
    border-radius:14px!important;
  }
  .admin-kpi strong{
    font-size:28px!important;
  }
  .admin-kpi b{
    font-size:12px!important;
  }
  .admin-grid{
    grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr)!important;
    gap:16px!important;
  }
  .admin-panel{
    border-radius:14px!important;
    padding:16px!important;
    overflow:auto!important;
  }
  .admin-panel h3{
    font-size:15px!important;
  }
  .admin-panel header{
    min-height:38px!important;
  }
  .admin-table,
  .availability-table{
    min-width:680px!important;
  }
  .admin-panel:has(.admin-table),
  .admin-panel:has(.availability-table){
    overflow:auto!important;
  }
  .admin-table th,
  .admin-table td,
  .availability-table th,
  .availability-table td{
    font-size:12px!important;
    padding:10px 8px!important;
  }
  .admin-search-hidden{
    display:none!important;
  }
  .admin-search-empty{
    margin:0!important;
    padding:14px 16px!important;
    border:1px dashed #bdd5ff!important;
    border-radius:14px!important;
    background:#f7fbff!important;
    color:#526078!important;
    font-size:13px!important;
    font-weight:900!important;
  }
  .flyer-report-panel{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(160px,1fr)) repeat(3,auto)!important;
    gap:10px!important;
    align-items:stretch!important;
    padding:12px!important;
    border:1px solid #dbe8ff!important;
    border-radius:16px!important;
    background:#f7fbff!important;
  }
  .flyer-report-panel>div{
    min-height:58px!important;
    padding:10px 12px!important;
    border:1px solid #e3e9f2!important;
    border-radius:13px!important;
    background:#fff!important;
  }
  .flyer-report-panel strong,
  .flyer-report-panel span,
  .flyer-report-panel small{
    display:block!important;
  }
  .flyer-report-panel strong{
    color:#1269e8!important;
    font-size:24px!important;
    line-height:1!important;
  }
  .flyer-report-panel span{
    margin-top:4px!important;
    color:#172033!important;
    font-size:12px!important;
    font-weight:950!important;
  }
  .flyer-report-panel small{
    margin-top:3px!important;
    color:#657085!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  .flyer-export-link{
    display:grid!important;
    place-items:center!important;
    min-height:58px!important;
    padding:0 14px!important;
    border-radius:13px!important;
    background:#1269e8!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:950!important;
    text-decoration:none!important;
    white-space:nowrap!important;
  }
  .flyer-admin-checks{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:14px!important;
  }
  .flyer-workspace-nav{
    position:sticky!important;
    top:145px!important;
    z-index:30!important;
    width:100%!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    margin:0!important;
    border-radius:14px!important;
    box-shadow:0 10px 22px rgba(23,32,51,.06)!important;
  }
  .flyer-workspace-nav button{
    min-height:44px!important;
    height:auto!important;
    font-size:14px!important;
  }
  .flyer-map-shell{
    grid-template-columns:minmax(0,1fr) minmax(320px,380px)!important;
    min-height:560px!important;
  }
  #flyerMap{
    min-height:560px!important;
  }
  .flyer-map-route{
    max-height:560px!important;
    overflow:auto!important;
  }
  .flyer-target-list li{
    grid-template-columns:minmax(0,1fr) auto!important;
    padding:10px!important;
  }
  .flyer-target-actions{
    min-width:156px!important;
  }
  .flyer-target-list a,
  .flyer-target-actions button{
    min-height:34px!important;
    font-size:11px!important;
  }
}

@media (min-width: 721px) and (max-width: 1100px){
  .admin-topbar{
    grid-template-columns:1fr minmax(220px,1fr) auto!important;
  }
  .admin-icon,
  .admin-user{
    display:none!important;
  }
  .admin-layout{
    grid-template-columns:1fr!important;
  }
  .admin-sidebar{
    position:sticky!important;
    top:72px!important;
    z-index:45!important;
    height:auto!important;
    display:flex!important;
    flex-direction:row!important;
    gap:8px!important;
    overflow:auto!important;
    border-right:0!important;
    border-bottom:1px solid #eef1f6!important;
  }
  .admin-nav{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
  .admin-kpis,
  .flyer-report-panel{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .admin-grid,
  .flyer-admin-checks,
  .flyer-map-shell{
    grid-template-columns:1fr!important;
  }
}

/* Fullscreen-Karte: klare Desktop-/Mobile-Trennung */
body.flyer-map-fullscreen-mode{
  overflow:hidden!important;
}
body.flyer-map-fullscreen-mode main{
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  margin:0!important;
  padding:0!important;
}
body.flyer-map-fullscreen-mode .admin-web{
  width:100vw!important;
  max-width:none!important;
  min-height:100dvh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.flyer-map-fullscreen-mode .admin-topbar,
body.flyer-map-fullscreen-mode .admin-sidebar{
  display:none!important;
}
body.flyer-map-fullscreen-mode .admin-layout{
  display:block!important;
  min-height:100dvh!important;
}
body.flyer-map-fullscreen-mode .admin-content{
  width:100vw!important;
  min-height:100dvh!important;
  padding:0!important;
  overflow:visible!important;
}

@media (min-width:721px){
  .flyer-map-panel.map-fullscreen-active{
    position:fixed!important;
    inset:0!important;
    z-index:2147483000!important;
    width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    padding:16px!important;
    border:0!important;
    border-radius:0!important;
    background:#f7fbff!important;
    display:grid!important;
    grid-template-rows:auto 1fr!important;
    gap:12px!important;
    overflow:hidden!important;
  }
  .flyer-map-panel.map-fullscreen-active>header{
    position:relative!important;
    inset:auto!important;
    z-index:1002!important;
    display:grid!important;
    grid-template-columns:minmax(220px,1fr) auto!important;
    gap:12px!important;
    align-items:center!important;
    padding:10px 12px!important;
    margin:0!important;
    border:1px solid #dbe8ff!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 12px 30px rgba(23,32,51,.10)!important;
    backdrop-filter:blur(12px)!important;
  }
  .flyer-map-panel.map-fullscreen-active>header h3{
    display:block!important;
    margin:0!important;
    font-size:17px!important;
    color:#172033!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    gap:8px!important;
    margin:0!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions button{
    min-height:38px!important;
    border-radius:12px!important;
    padding:0 13px!important;
    font-size:12px!important;
    font-weight:950!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions button[data-flyer-map-fullscreen]{
    background:#172033!important;
    border-color:#172033!important;
    color:#fff!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-route-close-x,
  .flyer-map-panel.map-fullscreen-active .flyer-map-legend,
  .flyer-map-panel.map-fullscreen-active .flyer-map-controls,
  .flyer-map-panel.map-fullscreen-active>p.muted{
    display:none!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-hours-auto-bar{
    display:none!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-map-shell{
    position:relative!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(340px,420px)!important;
    gap:12px!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .flyer-map-panel.map-fullscreen-active #flyerMap{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    border:1px solid #cfe0f8!important;
    border-radius:18px!important;
    box-shadow:0 14px 34px rgba(23,32,51,.12)!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-map-route{
    position:relative!important;
    inset:auto!important;
    z-index:2!important;
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    padding:14px!important;
    border:1px solid #dbe8ff!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 14px 34px rgba(23,32,51,.10)!important;
    overflow:auto!important;
    pointer-events:auto!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-map-route>strong,
  .flyer-map-panel.map-fullscreen-active .flyer-map-route>small,
  .flyer-map-panel.map-fullscreen-active .flyer-map-route ol{
    display:grid!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-route-summary{
    width:auto!important;
    max-width:none!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    pointer-events:auto!important;
  }
  .flyer-map-panel.map-fullscreen-active #flyerMapInfo{
    display:block!important;
    position:static!important;
    max-height:none!important;
    overflow:visible!important;
    pointer-events:auto!important;
  }
}

@media (max-width:720px){
  .flyer-map-panel.map-fullscreen-active{
    position:fixed!important;
    inset:0!important;
    z-index:2147483000!important;
    width:100vw!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#eef4ff!important;
    display:block!important;
    overflow:hidden!important;
  }
  .flyer-map-panel.map-fullscreen-active>header{
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    top:calc(env(safe-area-inset-top,0px) + 12px)!important;
    z-index:1002!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    pointer-events:none!important;
  }
  .flyer-map-panel.map-fullscreen-active>header h3,
  .flyer-map-panel.map-fullscreen-active .flyer-route-close-x,
  .flyer-map-panel.map-fullscreen-active .flyer-map-legend,
  .flyer-map-panel.map-fullscreen-active .flyer-hours-auto-bar,
  .flyer-map-panel.map-fullscreen-active .flyer-map-controls,
  .flyer-map-panel.map-fullscreen-active>p.muted{
    display:none!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    pointer-events:auto!important;
    margin:0!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions button{
    display:none!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions button[data-flyer-location-back],
  .flyer-map-panel.map-fullscreen-active .panel-actions button[data-flyer-map-fullscreen]{
    display:grid!important;
    place-items:center!important;
    min-height:44px!important;
    height:44px!important;
    padding:0 12px!important;
    border-radius:999px!important;
    border:1px solid rgba(219,232,255,.95)!important;
    background:rgba(255,255,255,.96)!important;
    color:#172033!important;
    box-shadow:0 12px 28px rgba(23,32,51,.18)!important;
    backdrop-filter:blur(12px)!important;
    font-size:12px!important;
    font-weight:950!important;
  }
  .flyer-map-panel.map-fullscreen-active .panel-actions button[data-flyer-map-fullscreen]{
    background:#172033!important;
    border-color:#172033!important;
    color:#fff!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-map-shell{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    overflow:hidden!important;
  }
  .flyer-map-panel.map-fullscreen-active #flyerMap{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:none!important;
    border:0!important;
    border-radius:0!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-map-route{
    position:absolute!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 76px)!important;
    z-index:1001!important;
    width:auto!important;
    height:auto!important;
    max-height:42dvh!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
    pointer-events:none!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-map-route>strong,
  .flyer-map-panel.map-fullscreen-active .flyer-map-route>small,
  .flyer-map-panel.map-fullscreen-active .flyer-map-route ol,
  .flyer-map-panel.map-fullscreen-active .flyer-route-help{
    display:none!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-route-summary{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 8px!important;
    pointer-events:auto!important;
  }
  .flyer-map-panel.map-fullscreen-active .flyer-route-summary div{
    min-height:48px!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 12px 28px rgba(23,32,51,.16)!important;
  }
  .flyer-map-panel.map-fullscreen-active #flyerMapInfo{
    display:block!important;
    position:relative!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    max-height:32dvh!important;
    overflow:auto!important;
    pointer-events:auto!important;
  }
  .flyer-map-panel.map-fullscreen-active #flyerMapInfo .flyer-map-info{
    border-radius:22px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 18px 46px rgba(23,32,51,.24)!important;
    backdrop-filter:blur(16px)!important;
  }
  .flyer-map-panel.map-fullscreen-active #flyerMapInfo .flyer-map-info.empty{
    display:none!important;
  }
}

/* Nutzerverwaltung + Einloggen-als-Banner (Flyer-Fokus-Umbau) */
.impersonation-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fef3c7;border:1px solid #f59e0b;color:#92400e;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:.9rem;}
.impersonation-banner button{background:#f59e0b;color:#fff;border:none;border-radius:8px;padding:6px 12px;cursor:pointer;font-weight:600;}
.nutzer-grid{display:flex;flex-direction:column;gap:16px;}
.nutzer-form{display:flex;flex-direction:column;gap:10px;max-width:520px;}
.nutzer-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;}
.nutzer-bezirke-fieldset{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #e2e8f0;border-radius:8px;padding:8px;}
.nutzer-bezirk-check{flex-direction:row!important;align-items:center;gap:6px!important;font-size:.8rem;}
.nutzer-inaktiv{opacity:.5;}
.nutzer-switch{display:inline-flex;align-items:center;gap:4px;font-size:.8rem;}
.nutzer-actions{display:flex;flex-wrap:wrap;gap:6px;}

/* Hierarchische Flyer-Standorte */
.flyer-location-group{grid-column:1/-1!important;display:grid!important;gap:10px!important;padding:12px!important;border:1px solid #dbe8ff!important;border-radius:16px!important;background:#f8fbff!important}
.flyer-location-group-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.flyer-location-group-heading>div{display:grid!important;gap:2px!important}
.flyer-location-group-heading strong{font-size:18px!important;color:#172033!important}
.flyer-location-group-heading span{font-size:10px!important;color:#1269e8!important;text-transform:uppercase!important;font-weight:950!important}
.flyer-location-group-heading small{text-align:right!important}
.flyer-location-subgrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.flyer-route-location-tree{display:grid!important;gap:8px!important}
.flyer-route-location-tree .flyer-location-group{padding:9px!important;border-radius:14px!important}
.flyer-route-location-tree .flyer-location-subgrid{grid-template-columns:1fr!important;gap:6px!important}
.flyer-location-search{display:grid;gap:5px;margin:0 0 12px;color:#526078;font-size:12px;font-weight:850}.flyer-location-search input{width:100%;min-height:44px;padding:0 12px;border:1px solid #d7e7ff;border-radius:8px;background:#fff;color:#172033;font:inherit;font-size:15px}.flyer-location-empty{padding:18px;text-align:center;color:#64738a}
@media (max-width:620px){
  .flyer-location-subgrid{grid-template-columns:1fr!important}
  .flyer-location-group-heading{align-items:flex-start!important}
  .flyer-location-group-heading small{max-width:50%!important}
}

/* Kompakte Startübersicht. Flyerstellen und Aktionen bleiben im Flyerbereich. */
.heute-start-card{gap:14px!important;padding:18px!important;}
.heute-start-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.heute-start-head>div{display:grid;gap:2px;min-width:0;}
.heute-start-head small{color:#617086;font-size:11px;font-weight:800;text-transform:uppercase;}
.heute-start-head h3{margin:0;color:#172033;font-size:20px;}
.heute-start-head>span{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d7e7ff;border-radius:8px;background:#f3f8ff;font-size:20px;flex:0 0 auto;}
.heute-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.heute-stats section{display:grid;align-content:center;gap:3px;min-width:0;min-height:72px;padding:10px;border:1px solid #d7e7ff;border-radius:8px;background:#f7faff;}
.heute-stats strong{color:#1269e8;font-size:24px;line-height:1;}
.heute-stats span{color:#617086;font-size:11px;font-weight:750;line-height:1.25;overflow-wrap:anywhere;}
.heute-open-button{width:100%;min-height:44px;}

/* Hide the mobile info wrapper while it only contains the empty placeholder. */
.mobile-flyer-workspace.simple #flyerMapInfo:has(> .flyer-map-info.empty){display:none!important}

/* Kleiner Tagesabschluss-Banner unterhalb der Heute-Karte: erscheint nur, wenn heute schon
   mindestens eine Flyerstelle vom aktuellen Nutzer erledigt wurde (heuteTagesabschluss()). */
.heute-tagesabschluss-card{background:#eafff2!important;border-color:#b9e8cc!important;padding:12px 14px!important;}
.heute-tagesabschluss-card p{margin:0;font-size:13px;font-weight:700;color:#11784f;line-height:1.4;}

/* Fotoerfassung muss trotz älterer mobiler Karten-Overrides sichtbar bleiben. */
@media(max-width:620px){
  .flyer-location-panel>.flyer-location-capture-action{display:flex!important;position:sticky!important;top:8px!important;z-index:30!important;width:100%!important;min-height:54px!important;margin:8px 0 14px!important;opacity:1!important;visibility:visible!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions button[data-location-capture-open]{display:grid!important;grid-column:1 / 4!important;grid-row:3!important;opacity:1!important;visibility:visible!important}
  .mobile-flyer-workspace.simple .flyer-map-panel .panel-actions:has(button[data-location-capture-open]){grid-template-rows:48px 48px 48px!important;height:auto!important;overflow:visible!important}
}
@media(max-width:620px){
  .flyer-day-planner .flyer-choice-row label{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  .flyer-day-planner .flyer-choice-row label>span{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
  }
}

.license-ai-fields{grid-column:1/-1;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:10px;border:1px solid #cfd9e8;border-radius:8px;padding:14px;margin:5px 0;background:#f7f9fc}.license-ai-fields legend{padding:0 7px;color:#123583;font-weight:850}.license-ai-preview{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.license-ai-preview>div{display:grid;gap:2px;padding:10px;border-radius:7px;background:#fff;border:1px solid #dbe4f2}.license-ai-preview strong{font-size:18px;color:#1269e8}.license-ai-preview span,.license-ai-preview small{color:#647086;font-size:12px;font-weight:700}.license-ai-preview small{grid-column:1/-1}.license-contract-form>button{min-height:42px}
@media(max-width:760px){.license-ai-fields{grid-template-columns:1fr}.license-ai-preview{grid-template-columns:1fr}.license-ai-preview small{grid-column:auto}}

/* Erledigte Kartenpunkte bleiben grün; die Sättigung zeigt den letzten Besuch. */
.flyer-map-pin.done.done-age-fresh .flyer-map-pin-inner,.flyer-type.done.done-age-fresh{background:#128447!important;border-color:#08763b!important;color:#fff!important}
.flyer-map-pin.done.done-age-mid .flyer-map-pin-inner,.flyer-type.done.done-age-mid{background:#62ad55!important;border-color:#438f3d!important;color:#fff!important}
.flyer-map-pin.done.done-age-old .flyer-map-pin-inner,.flyer-type.done.done-age-old{background:#b9dc87!important;border-color:#5d8f39!important;color:#234d20!important;box-shadow:0 0 0 3px rgba(93,143,57,.18),0 8px 18px rgba(35,77,32,.22)!important}
.flyer-open-map-direct{width:100%!important;min-height:50px!important;border:1px solid #b9ccec!important;background:#fff!important;color:#174b91!important;font-weight:900!important}
.flyer-map-mobile-backdrop{z-index:100600!important;align-items:flex-end!important;padding:0!important}
.flyer-map-mobile-sheet{width:100%!important;max-height:82dvh!important;overflow:auto!important;overscroll-behavior:contain;padding:18px 16px calc(env(safe-area-inset-bottom,0px) + 24px)!important;border-radius:18px 18px 0 0!important}
.flyer-map-mobile-sheet>header{position:sticky!important;top:-18px!important;z-index:3!important;background:#fff!important;padding:14px 0 10px!important}
.flyer-map-mobile-sheet>header button{width:42px!important;height:42px!important;border-radius:50%!important}
.flyer-map-mobile-sheet .flyer-map-info{display:grid!important;max-height:none!important;overflow:visible!important;pointer-events:auto!important}
.flyer-map-mobile-sheet .flyer-map-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
.flyer-map-mobile-sheet .flyer-map-actions>*{min-height:48px!important}
.flyer-map-mobile-sheet .flyer-map-actions .danger,.flyer-map-mobile-sheet .flyer-map-actions button[data-flyer-drop-delete]{grid-column:1/-1!important}
.flyer-map-mobile-sheet .flyer-map-group-list button{min-height:58px!important;cursor:pointer!important;pointer-events:auto!important}
.flyer-map-mobile-sheet .flyer-map-group-list button:active{transform:scale(.985)!important;background:#edf4ff!important}

/* ── Redesign 2026 ───────────────────────────────────────────────────────── */
@keyframes afh-gps-pulse{0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,.55)}70%{box-shadow:0 0 0 7px rgba(74,222,128,0)}}

/* Header */
.afh-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}
.afh-header-left{display:flex;align-items:center;gap:10px;min-width:0}
.afh-logo-wrap{position:relative;flex-shrink:0}
.afh-logo-img{width:40px;height:40px;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(18,105,232,.18)}
.afh-greeting{display:flex;flex-direction:column;min-width:0}
.afh-greeting small{font-size:12px;font-weight:500;color:#7a7466}
.afh-greeting h1{margin:0;font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.02em}
.afh-header-actions{display:flex;align-items:center;gap:8px}
.afh-icon-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(18,105,232,.18);border-radius:12px;background:rgba(255,255,255,.80);color:#0a5fe0;box-shadow:0 2px 8px rgba(18,105,232,.10);cursor:pointer}
.afh-avatar{width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,#0a66e8,#0340c0);color:#fff;font-size:13px;font-weight:800;box-shadow:0 2px 10px rgba(18,105,232,.30);cursor:pointer}

/* Route card (blue gradient) */
.afh-route-card{position:relative;display:flex;flex-direction:column;gap:0;border-radius:24px;background:linear-gradient(145deg,#14294f,#081428);color:#fff;box-shadow:0 12px 32px rgba(18,105,232,.36),0 2px 0 rgba(255,255,255,.12) inset;overflow:hidden}
.afh-route-card::before{content:'';pointer-events:none;position:absolute;top:-40px;right:-30px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.14) 0%,transparent 70%)}
.afh-route-body{padding:18px 18px 14px}
.afh-route-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.afh-gps-dot{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25);flex-shrink:0;animation:afh-gps-pulse 2s ease-in-out infinite}
.afh-route-name{font-size:12px;font-weight:600;color:rgba(255,255,255,.70)}
.afh-gps-badge{padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.15);color:rgba(255,255,255,.90);font-size:11px;font-weight:600;white-space:nowrap;border:1px solid rgba(255,255,255,.20)}
.afh-next-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.afh-next-title{margin:2px 0 1px;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.01em}
.afh-next-addr{display:flex;align-items:center;gap:5px;color:rgba(255,255,255,.65);font-size:13px;margin-top:1px}
.afh-progress-row{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}
.afh-progress-row span{color:rgba(255,255,255,.70)}
.afh-progress-row strong{color:#fff;font-weight:700}
.afh-progress-track{height:6px;border-radius:999px;background:rgba(255,255,255,.20);overflow:hidden}
.afh-progress-fill{height:6px;border-radius:999px;background:linear-gradient(90deg,#7fd7ff,#a9f0ff)}
.afh-route-btns{display:flex;flex-direction:column;gap:8px;padding:0 14px 14px}
.afh-btn-primary-ghost{height:52px;display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid rgba(255,255,255,.28);border-radius:14px;background:rgba(255,255,255,.16);color:#fff;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;backdrop-filter:blur(4px)}
.afh-btn-row{display:flex;gap:8px}
.afh-btn-secondary-ghost{flex-grow:1;height:46px;display:flex;align-items:center;justify-content:center;gap:7px;border:1.5px solid rgba(255,255,255,.20);border-radius:12px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.90);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.afh-btn-more{width:46px;height:46px;display:flex;align-items:center;justify-content:center;padding:0;border:1.5px solid rgba(255,255,255,.20);border-radius:12px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.90);cursor:pointer}
.afh-route-more{display:flex;align-items:center;justify-content:space-between;padding:10px 18px 14px;border:0;border-top:1px solid rgba(255,255,255,.12);background:transparent;color:rgba(255,255,255,.75);font-family:inherit;font-size:13px;font-weight:500;cursor:pointer;width:100%}

/* Stats card */
.afh-stats-card{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border-radius:22px;background:rgba(255,255,255,.92);border:1px solid rgba(234,220,205,.80);box-shadow:0 2px 12px rgba(50,39,25,.06)}
.afh-stats-head{display:flex;align-items:baseline;justify-content:space-between}
.afh-stats-head h3{margin:0;font-size:14px;font-weight:700;color:#0d1b33}
.afh-stats-head span{font-size:12px;color:#7a7466;font-weight:500}
.afh-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.afh-stat{display:flex;flex-direction:column;gap:1px}
.afh-stat+.afh-stat{padding-left:14px;border-left:1.5px solid #eee8e0}
.afh-stat strong{font-size:30px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.afh-stat strong.blue{color:#0a5fe0}
.afh-stat span{font-size:12px;color:#7a7466;font-weight:500}

/* Quick tiles */
.afh-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.afh-tile{min-height:80px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:0;padding:14px;border-radius:20px;font-family:inherit;text-align:left;cursor:pointer;position:relative;overflow:hidden}
.afh-tile::before{content:'';position:absolute;top:-10px;right:-10px;width:60px;height:60px;border-radius:50%;background:radial-gradient(circle,rgba(18,105,232,.08) 0%,transparent 70%)}
.afh-tile-light{border:1px solid rgba(234,220,205,.80);background:linear-gradient(145deg,#fff,#faf6f1);color:#0d1b33;box-shadow:0 2px 10px rgba(50,39,25,.06)}
.afh-tile-blue{border:0;background:linear-gradient(145deg,#14294f,#081428);color:#fff;box-shadow:0 8px 20px rgba(18,105,232,.32)}
.afh-tile-blue::before{background:radial-gradient(circle,rgba(255,255,255,.16) 0%,transparent 70%)}
.afh-tile-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;margin-bottom:8px}
.afh-tile-light .afh-tile-icon{background:#edf4ff}
.afh-tile-blue .afh-tile-icon{background:rgba(255,255,255,.18)}
.afh-tile span{font-size:14px;font-weight:700;line-height:1.2}

/* GPS dot */
.heute-gps-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25);flex-shrink:0;animation:afh-gps-pulse 2s ease-in-out infinite;margin-top:4px}

/* Progress bar */
.heute-progress-bar{height:6px;border-radius:999px;background:rgba(255,255,255,.20);overflow:hidden;margin-bottom:14px}
.heute-progress-fill{height:6px;border-radius:999px;background:linear-gradient(90deg,#7fd7ff,#a9f0ff)}

/* Focus card classes */
.mobile-focus-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7a7466;margin-bottom:4px}
.mobile-focus-title{display:block;font-size:19px;font-weight:800;letter-spacing:-.01em;color:#0d1b33}
.mobile-focus-sub{display:block;font-size:13px;color:#617086;margin-top:3px}

/* Heute-Start-Card Redesign */
.heute-start-card{background:linear-gradient(145deg,#14294f,#081428)!important;border:0!important;border-radius:24px!important;color:#fff!important;box-shadow:0 12px 32px rgba(18,105,232,.36)!important;overflow:hidden!important;padding:18px!important}
.heute-start-card .heute-start-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;margin-bottom:14px!important}
.heute-start-card .heute-start-head small{font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:rgba(255,255,255,.55)!important}
.heute-start-card .heute-start-head h3{margin:2px 0 0!important;font-size:20px!important;font-weight:800!important;color:#fff!important}
.heute-start-card .heute-start-head>span{width:10px!important;height:10px!important;border-radius:50%!important;background:#4ade80!important;border:0!important;box-shadow:0 0 0 3px rgba(74,222,128,.25)!important;font-size:0!important;animation:afh-gps-pulse 2s ease-in-out infinite!important;margin-top:6px!important;flex-shrink:0!important}
.heute-start-card .heute-stats{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:0!important;margin-bottom:16px!important;background:transparent!important}
.heute-start-card .heute-stats section{display:flex!important;flex-direction:column!important;gap:2px!important;background:transparent!important;border:0!important;border-radius:0!important;min-height:auto!important;padding:0!important}
.heute-start-card .heute-stats section+section{padding-left:14px!important;border-left:1px solid rgba(255,255,255,.18)!important}
.heute-start-card .heute-stats strong{font-size:30px!important;line-height:1.1!important;font-weight:900!important;color:#fff!important;letter-spacing:-.02em!important;font-variant-numeric:tabular-nums!important}
.heute-start-card .heute-stats span{font-size:12px!important;color:rgba(255,255,255,.65)!important;font-weight:500!important}
.heute-start-card .heute-open-button{width:100%!important;height:50px!important;border:1.5px solid rgba(255,255,255,.28)!important;border-radius:14px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:15px!important;font-weight:700!important;backdrop-filter:blur(4px)!important}

/* Mobile-today-focus Redesign */
.mobile-today-focus{background:linear-gradient(145deg,#fff,#fffaf2)!important;border-radius:22px!important;border:1px solid rgba(230,218,200,.85)!important;box-shadow:0 4px 18px rgba(18,105,232,.08)!important}
.mobile-today-focus>strong{font-size:19px!important;font-weight:800!important;letter-spacing:-.01em!important}
.mobile-today-focus .mobile-today-stats div{border-radius:16px!important;background:linear-gradient(145deg,#fff,#fffaf2)!important;border-color:#e6dac8!important}
.mobile-today-focus .mobile-today-stats b{font-size:18px!important;font-weight:900!important}

/* Instant-route card Redesign */
.instant-route-card{border-radius:22px!important;overflow:hidden!important}
.instant-route-card.active{background:linear-gradient(145deg,#14294f,#081428)!important;border:0!important;color:#fff!important;box-shadow:0 12px 32px rgba(18,105,232,.36)!important}
.instant-route-card.active h2,.instant-route-card.active h3,.instant-route-card.active small{color:rgba(255,255,255,.75)!important}
.instant-route-card.active header{display:flex!important;align-items:center!important;justify-content:space-between!important}
.instant-route-card.active header h2{font-size:20px!important;font-weight:800!important;color:#fff!important}
.instant-route-card.active .instant-current-target strong{font-size:20px!important;font-weight:800!important;color:#fff!important}
.instant-route-card.active .instant-current-target p{color:rgba(255,255,255,.75)!important}

/* Nav Redesign */
@media(max-width:720px){
  .app-head nav a[data-mobile-tab].active{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 4px 12px rgba(18,105,232,.30)!important}
  .app-head nav a[data-mobile-tab].active .nav-svg-icon svg path{stroke:#fff!important}
  .app-head nav a[data-mobile-tab].active::after{color:#fff!important}
  .app-head nav a[data-mobile-tab].active .nav-svg-icon{color:#fff!important}
}

/* ── Redesign 2026 · Kopfzeile, Spruch, Navigation ───────────────────────── */
.mobile-app .afh-header{margin:2px 0 14px!important}
.mobile-app .afh-greeting small{display:block!important;font-size:12px!important;line-height:1.3!important;font-weight:500!important;color:#7a7466!important}
.mobile-app .afh-greeting h1{margin:0!important;font-size:21px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0d1b33!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.mobile-app .afh-header-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-shrink:0!important}
.mobile-app .afh-icon-btn,.mobile-app .afh-avatar{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;margin:0!important;flex:0 0 40px!important}
.mobile-app .afh-avatar{border:0!important;border-radius:50%!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;letter-spacing:.02em!important;box-shadow:0 2px 10px rgba(18,105,232,.30)!important}
.mobile-app .afh-icon-btn{border:1px solid rgba(18,105,232,.18)!important;border-radius:12px!important;background:rgba(255,255,255,.80)!important;color:#0a5fe0!important;box-shadow:0 2px 8px rgba(18,105,232,.10)!important}
.afh-motto{position:relative;margin:0 0 14px!important;padding:13px 16px 13px 20px!important;border:1px solid rgba(230,218,200,.9);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(247,251,255,.92));box-shadow:0 2px 12px rgba(18,105,232,.06);font-size:14px!important;line-height:1.4!important;font-weight:600!important;color:#3f4f68!important}
.afh-motto::before{content:'';position:absolute;left:9px;top:12px;bottom:12px;width:3px;border-radius:99px;background:linear-gradient(180deg,#1a6ff0,#7fd7ff)}
@media(max-width:720px){
  .app-head nav#mobileNav a[data-mobile-tab].active{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 4px 12px rgba(18,105,232,.30)!important}
  .app-head nav#mobileNav a[data-mobile-tab].active .nav-svg-icon,.app-head nav#mobileNav a[data-mobile-tab].active::after{color:#fff!important}
}

/* ── Redesign 2026 · Flyerkarte (Handy) ──────────────────────────────────── */
body.afh-map-open{overflow:hidden!important}
body.afh-map-open .app-head nav,body.afh-map-open .app-head nav#mobileNav{display:none!important}
.afh-map-top svg,.afh-map-sheet svg,.afh-picker svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body #afhMap{position:fixed!important;inset:0!important;z-index:900!important;display:block!important;width:auto!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#eadfce!important;box-shadow:none!important;overflow:hidden!important;transform:none!important;color:#0d1b33!important;font-size:15px!important;line-height:1.4!important}
body #afhMap #flyerMap,body #afhMap #flyerMap.leaflet-container{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:0!important;transform:none!important;background:#eadfce!important}
body #afhMap .leaflet-control-zoom,body #afhMap .flyer-locate-control,body #afhMap .leaflet-control-attribution{display:none!important}

body #afhMap .afh-map-top{position:absolute;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 12px);z-index:5;display:flex;flex-direction:column;gap:10px;pointer-events:none}
body #afhMap .afh-map-bar{display:flex;align-items:center;gap:10px;pointer-events:auto}
body #afhMap .afh-map-round,body #afhMap .afh-map-place{height:44px!important;min-height:44px!important;margin:0!important;border:1px solid rgba(230,218,200,.85)!important;background:rgba(255,255,255,.96)!important;box-shadow:0 4px 16px rgba(23,32,51,.12)!important;font-family:inherit!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer}
body #afhMap .afh-map-round{width:44px!important;min-width:44px!important;flex:0 0 44px!important;padding:0!important;border-radius:50%!important;color:#12264a!important}
body #afhMap .afh-map-place{flex:1 1 auto!important;min-width:0!important;gap:6px!important;padding:0 16px!important;border-radius:999px!important;color:#0d1b33!important;font-size:16px!important;font-weight:800!important}
body #afhMap .afh-map-place span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #afhMap .afh-map-place svg{width:18px;height:18px;stroke:#7a7466;stroke-width:2.4}
body #afhMap .afh-map-chips{display:flex;gap:6px;margin:0 -12px;padding:0 12px 6px;overflow-x:auto;pointer-events:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body #afhMap .afh-map-chips::-webkit-scrollbar{display:none}
body #afhMap .afh-map-chips>span{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 10px;border:1px solid rgba(230,218,200,.8);border-radius:999px;background:rgba(255,255,255,.95);box-shadow:0 2px 10px rgba(23,32,51,.12);font-size:12px;font-weight:700;color:#27324a;white-space:nowrap}
body #afhMap .afh-map-chips .flyer-type{display:inline-block!important;width:9px!important;height:9px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;box-shadow:none!important;font-size:0!important;flex:0 0 9px!important}

body #afhMap .afh-map-sheet{position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;z-index:6!important;display:flex!important;flex-direction:column!important;gap:12px!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:10px 18px calc(env(safe-area-inset-bottom,0px) + 18px)!important;border:0!important;border-radius:26px 26px 0 0!important;background:rgba(255,255,255,.98)!important;box-shadow:0 -6px 32px rgba(23,32,51,.14),0 -1px 0 rgba(230,218,200,.9)!important;overflow:visible!important;transform:none!important}
body #afhMap .afh-sheet-handle{align-self:center;width:36px;height:4px;border-radius:999px;background:linear-gradient(90deg,#e6dac8,#dccdb6)}
body #afhMap .afh-map-osm{position:absolute;left:14px;bottom:calc(100% + 8px);font-size:10px;font-weight:500;color:rgba(23,32,51,.55);text-decoration:none}
body #afhMap .afh-map-fabs{position:absolute;right:14px;bottom:calc(100% + 14px);display:flex;flex-direction:column;gap:10px}
body #afhMap .afh-map-fab{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(145deg,#14294f,#081428)!important;color:#fff!important;box-shadow:0 6px 18px rgba(18,105,232,.38)!important;cursor:pointer}
body #afhMap .afh-map-fab.light{background:rgba(255,255,255,.97)!important;color:#12264a!important;border:1px solid rgba(230,218,200,.9)!important;box-shadow:0 4px 16px rgba(23,32,51,.14)!important}
body #afhMap .afh-map-fab.light.active{background:#12264a!important;color:#fff!important}

body #afhMap .afh-sheet-browse{display:flex;align-items:center;justify-content:space-between;gap:12px}
body #afhMap .afh-sheet-browse h2,body #afhMap .afh-sheet-plan-head h2{margin:0 0 2px!important;font-size:18px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
body #afhMap .afh-sheet-browse p{margin:0!important;font-size:13px!important;color:#7a7466!important;font-weight:500!important}
body #afhMap .afh-sheet-browse p strong{color:#0d1b33;font-weight:700}
body #afhMap .afh-sheet-browse p strong.done{color:#128447}
body #afhMap .afh-sheet-pct{flex:0 0 46px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#15a355 calc(var(--pct)*1%),#efe6d8 0)}
body #afhMap .afh-sheet-pct span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:11px;font-weight:800;color:#0d1b33;font-variant-numeric:tabular-nums}
body #afhMap .afh-sheet-hint{margin:0!important;font-size:12px!important;line-height:1.4!important;color:#8a8272!important;text-align:center!important;font-weight:500!important}
body #afhMap .afh-sheet-actions{display:flex;gap:10px}
body #afhMap .afh-sheet-primary,body #afhMap .afh-sheet-cancel{height:54px!important;min-height:54px!important;margin:0!important;border-radius:16px!important;font-family:inherit!important;font-size:16px!important;font-weight:800!important;letter-spacing:-.01em!important;cursor:pointer;width:auto!important}
body #afhMap .afh-sheet-primary{flex:1 1 auto!important;padding:0 18px!important;border:0!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 6px 18px rgba(18,105,232,.34)!important}
body #afhMap .afh-sheet-primary.route-planning-active{background:#efe6d8!important;color:#7a7466!important;box-shadow:none!important}
body #afhMap .afh-sheet-cancel{flex:0 0 auto!important;padding:0 18px!important;border:1px solid #e6dac8!important;background:#fff!important;color:#27324a!important;box-shadow:none!important;font-weight:700!important}

/* Zustaende: Ansehen (Standard) vs. Route planen (body.flyer-route-focus-mode) */
body #afhMap .afh-sheet-plan-head,body #afhMap .flyer-route-summary,body #afhMap .flyer-route-help,body #afhMap .afh-sheet-list,body #afhMap .afh-sheet-cancel,body #afhMap #flyerMapInfo{display:none!important}
body #afhMap.is-pin #flyerMapInfo{display:block!important;position:static!important;margin:0!important;padding:0!important;max-height:56dvh!important;overflow-y:auto!important;overscroll-behavior:contain;border:0!important;background:transparent!important;box-shadow:none!important}
body #afhMap.is-pin #flyerMapInfo:has(>.flyer-map-info.empty){display:none!important}
body #afhMap.is-pin:has(#flyerPinCreateForm) .afh-sheet-browse,body #afhMap.is-pin:has(#flyerPinCreateForm) .afh-map-chips{display:none!important}
body.flyer-route-focus-mode #afhMap .afh-sheet-browse,body.flyer-route-focus-mode #afhMap .afh-sheet-hint,body.flyer-route-focus-mode #afhMap .afh-sheet-streets,body.flyer-route-focus-mode #afhMap .afh-map-fabs,body.flyer-route-focus-mode #afhMap .afh-map-chips{display:none!important}
body.flyer-route-focus-mode #afhMap .afh-sheet-plan-head{display:block!important}
body.flyer-route-focus-mode #afhMap .afh-sheet-cancel{display:block!important}
body.flyer-route-focus-mode #afhMap #flyerMapInfo{display:block!important;margin:0!important;padding:0!important;max-height:26dvh!important;overflow-y:auto!important;position:static!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.flyer-route-focus-mode #afhMap #flyerMapInfo:has(>.flyer-map-info.empty),body.flyer-route-focus-mode #afhMap #flyerMapInfo:has(>.flyer-map-info.planning-compact){display:none!important}
body.flyer-route-focus-mode #afhMap .flyer-route-summary{position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
body.flyer-route-focus-mode #afhMap .flyer-route-summary div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;min-height:0!important;margin:0!important;padding:10px 12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#f5f8fd!important;box-shadow:none!important}
body.flyer-route-focus-mode #afhMap .flyer-route-summary strong{font-size:20px!important;line-height:1.15!important;font-weight:900!important;letter-spacing:-.02em!important;color:#0d1b33!important;font-variant-numeric:tabular-nums!important}
body.flyer-route-focus-mode #afhMap .flyer-route-summary span{font-size:11px!important;font-weight:600!important;color:#7a7466!important}
body.flyer-route-focus-mode #afhMap .flyer-route-help{display:block!important;position:static!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;font-size:12.5px!important;line-height:1.4!important;font-weight:500!important;color:#617086!important;text-align:left!important}
body.flyer-route-focus-mode #afhMap .afh-sheet-list{display:flex!important;flex-direction:column!important;gap:8px!important;list-style:none!important;margin:0!important;padding:0!important;max-height:19dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
body #afhMap .afh-sheet-list li{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;margin:0!important;padding:8px 10px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
body #afhMap .afh-sheet-list li.empty{display:block!important;padding:12px!important;border-style:dashed!important;background:#fffaf2!important;font-size:13px!important;font-weight:500!important;color:#8a8272!important;text-align:center!important}
body #afhMap .afh-sheet-list li>b.flyer-type{width:30px!important;height:30px!important;min-width:30px!important;display:grid!important;place-items:center!important;border-radius:50%!important;font-size:14px!important;margin:0!important}
body #afhMap .afh-sheet-list li>div{display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0!important}
body #afhMap .afh-sheet-list li strong{font-size:14px!important;font-weight:700!important;color:#0d1b33!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body #afhMap .afh-sheet-list li span{font-size:12px!important;font-weight:500!important;color:#7a7466!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body #afhMap .afh-sheet-list li button{height:32px!important;min-height:32px!important;width:auto!important;margin:0!important;padding:0 12px!important;border:1px solid #e6dac8!important;border-radius:999px!important;background:#fff!important;color:#c4314b!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}

body #afhMap .afh-sheet-streets{border-top:1px solid #f6eee1;padding-top:10px}
body #afhMap .afh-sheet-streets>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;font-size:14px;font-weight:700;color:#0d1b33}
body #afhMap .afh-sheet-streets>summary::-webkit-details-marker{display:none}
body #afhMap .afh-sheet-streets>summary small{font-size:12px;font-weight:600;color:#7a7466}
body #afhMap .afh-sheet-streets>summary small::after{content:' ▾'}
body #afhMap .afh-sheet-streets[open]>summary small::after{content:' ▴'}
body #afhMap .afh-sheet-streets .flyer-street-panel{display:block!important;margin:10px 0 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;max-height:38dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
body #afhMap .afh-sheet-streets .flyer-street-panel>header{display:none!important}

/* ── Redesign 2026 · Standortauswahl (Handy) ─────────────────────────────── */
.afh-picker{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;border:0;background:transparent;color:#0d1b33}
.afh-picker [hidden]{display:none!important}
.afh-picker>header{display:flex;align-items:center;gap:12px}
.afh-picker>header h2{margin:0!important;font-size:20px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0d1b33!important}
.afh-picker>header p{margin:1px 0 0!important;font-size:13px!important;line-height:1.35!important;font-weight:500!important;color:#7a7466!important}
.afh-picker .afh-picker-back{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px!important;padding:0!important;margin:0!important;border:1px solid rgba(230,218,200,.9)!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;color:#12264a!important;box-shadow:0 4px 16px rgba(23,32,51,.10)!important;display:flex!important;align-items:center!important;justify-content:center!important}
.afh-picker .afh-picker-search{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;height:48px!important;margin:0!important;padding:0 16px!important;border:1px solid rgba(230,218,200,.95)!important;border-radius:999px!important;background:#fff!important;box-shadow:0 2px 10px rgba(18,105,232,.06)!important;color:#7a7466!important}
.afh-picker .afh-picker-search svg{width:20px;height:20px}
.afh-picker .afh-picker-search input{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;font-family:inherit!important;font-size:16px!important;font-weight:500!important;color:#0d1b33!important;-webkit-appearance:none;appearance:none}
.afh-picker .afh-picker-search input::placeholder{color:#a39a88;font-weight:500}
.afh-picker .afh-picker-capture{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 16px!important;border:1px dashed #b9ccec!important;border-radius:16px!important;background:rgba(255,255,255,.70)!important;color:#0a5fe0!important;font-family:inherit!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important}
.afh-picker-list{display:flex;flex-direction:column;gap:10px}
.afh-picker .afh-picker-row{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:0!important;margin:0!important;padding:14px!important;border:1px solid rgba(230,218,200,.9)!important;border-radius:20px!important;background:linear-gradient(145deg,#fff,#fffaf2)!important;box-shadow:0 4px 16px rgba(18,105,232,.07)!important;color:#0d1b33!important;font-family:inherit!important;text-align:left!important;cursor:pointer}
.afh-picker .afh-picker-row:active{transform:scale(.985);background:#edf4ff!important}
.afh-picker-pin{flex:0 0 44px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#edf4ff;color:#0a5fe0}
.afh-picker-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.afh-picker .afh-picker-text strong{font-size:16px!important;line-height:1.25!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-picker .afh-picker-text small{font-size:12.5px!important;font-weight:500!important;color:#7a7466!important}
.afh-picker-bar{display:block;height:4px;margin-top:6px;border-radius:99px;background:#efe6d8;overflow:hidden}
.afh-picker-bar i{display:block;height:4px;border-radius:99px;background:linear-gradient(90deg,#15a355,#4fc98a)}
.afh-picker-open{flex:0 0 auto;min-width:40px;display:flex;flex-direction:column;align-items:center;gap:0}
.afh-picker .afh-picker-open b{font-size:20px!important;line-height:1.1!important;font-weight:900!important;color:#0a5fe0!important;font-variant-numeric:tabular-nums}
.afh-picker .afh-picker-open small{font-size:11px!important;font-weight:600!important;color:#7a7466!important}
.afh-picker .afh-picker-open.all-done b{color:#128447!important}
.afh-picker svg.afh-picker-chevron{width:18px;height:18px;stroke:#c2b8a4}
.afh-picker .afh-picker-row.empty .afh-picker-pin{background:#f1f4f8;color:#a39a88}
.afh-picker .afh-picker-row.empty .afh-picker-text strong{color:#617086!important}
.afh-picker-group{padding:14px 14px 4px;border:1px solid rgba(230,218,200,.9);border-radius:22px;background:rgba(255,255,255,.78);box-shadow:0 4px 16px rgba(18,105,232,.06)}
.afh-picker-group>header{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:4px}
.afh-picker .afh-picker-group>header strong{font-size:17px!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
.afh-picker .afh-picker-group>header small{font-size:12px!important;font-weight:600!important;color:#7a7466!important}
.afh-picker-sub{display:flex;flex-direction:column}
.afh-picker .afh-picker-sub .afh-picker-row{padding:12px 0!important;border:0!important;border-top:1px solid #f6eee1!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.afh-picker .afh-picker-sub .afh-picker-row:first-child{border-top:0!important}
.afh-picker .afh-picker-sub .afh-picker-pin{flex-basis:38px;width:38px;height:38px;border-radius:12px}
.afh-picker .afh-picker-sub .afh-picker-text strong{font-size:15px!important}
.afh-picker-empty{margin:0;padding:18px;border:1px dashed #e0d3bf;border-radius:16px;font-size:13px;font-weight:500;color:#7a7466;text-align:center}
body #afhMap .afh-map-sheet,body #afhMap .afh-map-sheet *{pointer-events:auto!important}
body #afhMap .afh-sheet-browse p strong{color:#0d1b33!important;font-weight:700!important}
body #afhMap .afh-sheet-browse p strong.done{color:#128447!important}
body #afhMap .flyer-street-row nav{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:auto!important;max-width:none!important;min-height:0!important;margin:10px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;z-index:auto!important}
.mobile-flyer-workspace.instant-route-workspace>.afh-picker{padding:calc(env(safe-area-inset-top,0px) + 16px) 14px 120px!important}
body.afh-map-open .instant-route-workspace{bottom:0!important;padding:0!important;overflow:hidden!important}
.mobile-flyer-workspace.instant-route-workspace>.afh-picker{padding-bottom:28px!important}

/* Spruch-Karte mit Tulpe und Marienkäfer */
.afh-motto{display:flex!important;align-items:center!important;gap:12px!important}
.afh-motto p{flex:1 1 auto;min-width:0;margin:0!important;font:inherit!important;color:inherit!important}
.afh-motto-deco{flex:0 0 auto;display:flex;align-items:flex-end;gap:2px;font-size:27px;line-height:1;filter:drop-shadow(0 4px 7px rgba(23,32,51,.10))}
.afh-motto-deco i{display:inline-block;font-style:normal;transform-origin:50% 70%;animation:afh-ladybug-wiggle 3.6s ease-in-out infinite}
@keyframes afh-ladybug-wiggle{0%,100%{transform:translateY(0) rotate(-8deg)}25%{transform:translateY(-3px) rotate(6deg)}50%{transform:translateY(0) rotate(-4deg)}75%{transform:translateY(-2px) rotate(8deg)}}
@media (prefers-reduced-motion:reduce){.afh-motto-deco i{animation:none}}

/* ── Redesign 2026 · Nachschliff ─────────────────────────────────────────── */
/* Schmale Displays (320px): Karten duerfen die Spalte nicht aufziehen */
.mobile-app{grid-template-columns:minmax(0,1fr)!important}

/* Laufende Tour: Zielbox, Badge und Restliste waren auf dem blauen Verlauf unlesbar */
.instant-route-card.active::before,.instant-route-card.active::after{display:none!important;content:none!important}
.instant-route-card.active>header{gap:12px!important;margin-bottom:12px!important}
.instant-route-card.active>header small{font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:rgba(255,255,255,.70)!important}
.instant-route-card.active>header>b{flex:0 0 auto!important;padding:5px 11px!important;border:1px solid rgba(255,255,255,.24)!important;border-radius:999px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important;box-shadow:none!important}
.instant-route-card.active .instant-current-target{margin:0 0 12px!important;padding:14px 16px!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:16px!important;background:rgba(255,255,255,.14)!important;box-shadow:none!important}
.instant-route-card.active .instant-current-target strong{display:block!important;color:#fff!important;font-size:20px!important;line-height:1.2!important;font-weight:800!important}
.instant-route-card.active .instant-current-target p{margin:3px 0 0!important;color:rgba(255,255,255,.78)!important;font-size:13px!important;font-weight:500!important}
.instant-route-card.active .instant-current-target span,.instant-route-card.active .instant-current-target em{display:inline-block!important;margin:10px 6px 0 0!important;padding:4px 10px!important;border:0!important;border-radius:999px!important;background:rgba(255,255,255,.92)!important;color:#8a5a00!important;font-size:12px!important;font-weight:700!important;font-style:normal!important}
.instant-route-card.active .instant-target-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important}
.instant-route-card.active .instant-target-actions button{min-height:46px!important;margin:0!important;padding:0 8px!important;border:1.5px solid rgba(255,255,255,.22)!important;border-radius:12px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.instant-route-card.active .instant-target-actions button.primary{grid-column:1/-1!important;min-height:52px!important;border:0!important;border-radius:14px!important;background:#fff!important;color:#0340c0!important;font-size:16px!important;font-weight:800!important;box-shadow:0 6px 18px rgba(8,40,110,.28)!important}
.instant-route-card.active .instant-target-actions button.complete{background:rgba(74,222,128,.26)!important;border-color:rgba(134,239,172,.55)!important;color:#fff!important}
.instant-route-card.active .instant-route-remaining{margin:0 0 12px!important;padding:10px 0 0!important;border:0!important;border-top:1px solid rgba(255,255,255,.16)!important;background:transparent!important}
.instant-route-card.active .instant-route-remaining summary{color:rgba(255,255,255,.85)!important;font-size:13px!important;font-weight:600!important;cursor:pointer}
.instant-route-card.active .instant-route-remaining ol{margin:10px 0 0!important;padding:0!important;list-style:none!important;display:grid!important;gap:6px!important}
.instant-route-card.active .instant-route-remaining li{display:flex!important;align-items:center!important;gap:10px!important;padding:8px 10px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:12px!important;background:rgba(255,255,255,.10)!important}
.instant-route-card.active .instant-route-remaining li b{flex:0 0 24px!important;width:24px!important;height:24px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:rgba(255,255,255,.22)!important;color:#fff!important;font-size:12px!important}
.instant-route-card.active .instant-route-remaining li strong{display:block!important;color:#fff!important;font-size:13px!important;font-weight:700!important}
.instant-route-card.active .instant-route-remaining li small{display:block!important;color:rgba(255,255,255,.70)!important;font-size:12px!important}
.instant-route-card.active .instant-no-target{color:rgba(255,255,255,.85)!important}
.instant-route-card.active .instant-session-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.instant-route-card.active .instant-session-actions button{min-height:44px!important;margin:0!important;padding:0 10px!important;border:1.5px solid rgba(255,255,255,.22)!important;border-radius:12px!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.instant-route-card.active .instant-session-actions button.danger{grid-column:1/-1!important;background:transparent!important;border-color:rgba(255,255,255,.30)!important;color:rgba(255,255,255,.90)!important}

/* Neue Flyerstelle (Handy): Inhalt oben buendig statt ueber die Hoehe verteilt */
@media(max-width:620px){.location-capture-modal{align-content:start!important;grid-auto-rows:max-content!important}}
.instant-route-card.active .instant-route-remaining small::before,.instant-route-card.active .instant-route-remaining small::after{display:none!important;content:none!important}
.instant-route-card.active .instant-current-target span,.instant-route-card.active .instant-current-target em{width:auto!important;max-width:100%!important;justify-self:start!important;align-self:flex-start!important}
/* Navigation: Spalten nach Anzahl der Tabs statt fester Dreierteilung (bei zwei Tabs blieb rechts ein Loch) */
@media(max-width:720px){.app-head nav#mobileNav{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important}}
/* Sehr schmale Displays: Begruessung nicht abschneiden */
@media(max-width:350px){.mobile-app .afh-greeting h1{font-size:17px!important}.mobile-app .afh-header{gap:8px!important}.mobile-app .afh-header-left{gap:8px!important}}

/* ── Redesign 2026 · Flyer-Tab (Handy) ───────────────────────────────────── */
.mobile-flyer-workspace .flyer-day-planner{position:relative!important;display:block!important;margin:0 0 12px!important;padding:18px 16px 0!important;border:0!important;border-radius:24px!important;background:linear-gradient(145deg,#14294f,#081428)!important;color:#fff!important;box-shadow:0 12px 32px rgba(18,105,232,.36),0 2px 0 rgba(255,255,255,.12) inset!important;overflow:hidden!important}
.mobile-flyer-workspace .flyer-day-planner::before{content:''!important;display:block!important;position:absolute!important;top:-40px!important;right:-30px!important;left:auto!important;bottom:auto!important;width:180px!important;height:180px!important;border-radius:50%!important;background:radial-gradient(circle,rgba(255,255,255,.14) 0%,transparent 70%)!important;pointer-events:none!important}
.mobile-flyer-workspace .flyer-day-planner::after{display:none!important;content:none!important}
.mobile-flyer-workspace .flyer-day-planner>header{position:relative!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0 2px 14px!important;padding:0!important;border:0!important;background:transparent!important}
.mobile-flyer-workspace .flyer-day-planner>header small{display:block!important;font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:rgba(255,255,255,.60)!important}
.mobile-flyer-workspace .flyer-day-planner>header h2{margin:2px 0 0!important;font-size:22px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em!important;color:#fff!important}
.mobile-flyer-workspace .flyer-day-planner>header p{margin:3px 0 0!important;font-size:13px!important;line-height:1.35!important;font-weight:500!important;color:rgba(255,255,255,.75)!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-quick-capture{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1.5px solid rgba(255,255,255,.28)!important;border-radius:14px!important;background:rgba(255,255,255,.18)!important;color:#fff!important;font-size:26px!important;line-height:1!important;font-weight:600!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-day-planner form{position:relative!important;display:grid!important;gap:12px!important;margin:0!important;padding:0 2px!important}
.mobile-flyer-workspace .flyer-day-planner form>label{display:grid!important;gap:6px!important;margin:0!important}
.mobile-flyer-workspace .flyer-day-planner form>label>span,.mobile-flyer-workspace .flyer-day-planner legend{margin:0!important;padding:0!important;font-size:11px!important;font-weight:800!important;letter-spacing:.05em!important;text-transform:uppercase!important;color:rgba(255,255,255,.65)!important}
.mobile-flyer-workspace .flyer-day-planner legend{margin-bottom:8px!important}
.mobile-flyer-workspace .flyer-day-planner fieldset{min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.mobile-flyer-workspace .flyer-day-planner select{width:100%!important;height:50px!important;min-height:50px!important;margin:0!important;padding:0 40px 0 14px!important;border:1.5px solid rgba(255,255,255,.28)!important;border-radius:15px!important;background-color:rgba(255,255,255,.16)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:18px!important;color:#fff!important;font-family:inherit!important;font-size:16px!important;font-weight:700!important;box-shadow:none!important;-webkit-appearance:none!important;appearance:none!important}
.mobile-flyer-workspace .flyer-day-planner select option{color:#0d1b33;background:#fff}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row.transport{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row label{position:relative!important;display:block!important;margin:0!important;padding:0!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row input{position:absolute!important;opacity:0!important;width:0!important;height:0!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row span{display:grid!important;place-items:center!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 4px!important;border:1.5px solid rgba(255,255,255,.20)!important;border-radius:13px!important;background:rgba(255,255,255,.12)!important;color:rgba(255,255,255,.88)!important;font-size:13px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row input:checked+span{background:#fff!important;border-color:#fff!important;color:#0340c0!important;box-shadow:0 4px 12px rgba(8,40,110,.22)!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-choice-row input:focus-visible+span{outline:2px solid #fff!important;outline-offset:2px!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-auto-start{width:100%!important;height:54px!important;min-height:54px!important;margin:4px 0 0!important;padding:0 16px!important;border:0!important;border-radius:14px!important;background:#fff!important;color:#0340c0!important;font-family:inherit!important;font-size:16px!important;font-weight:800!important;box-shadow:0 6px 18px rgba(8,40,110,.28)!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-open-map-direct{width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 16px!important;border:1.5px solid rgba(255,255,255,.28)!important;border-radius:14px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font-family:inherit!important;font-size:15px!important;font-weight:700!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-manual-map{position:relative!important;width:100%!important;height:44px!important;min-height:44px!important;margin:4px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:rgba(255,255,255,.85)!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;text-decoration:underline!important;text-underline-offset:3px!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-day-glance{position:relative!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;margin:4px -16px 0!important;padding:12px 16px 14px!important;border:0!important;border-top:1px solid rgba(255,255,255,.14)!important;background:transparent!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-day-glance span{display:flex!important;flex-direction:column!important;align-items:center!important;gap:1px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:rgba(255,255,255,.70)!important;font-size:11px!important;font-weight:500!important;text-align:center!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-day-glance span+span{border-left:1px solid rgba(255,255,255,.18)!important}
.mobile-flyer-workspace .flyer-day-planner .flyer-day-glance strong{display:block!important;font-size:26px!important;line-height:1.1!important;font-weight:900!important;letter-spacing:-.02em!important;color:#fff!important;font-variant-numeric:tabular-nums!important}

/* Gespeicherte Routen */
.mobile-flyer-workspace .mobile-flyer-routes{margin:0!important;padding:16px!important;border:1px solid rgba(230,218,200,.9)!important;border-radius:22px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 4px 18px rgba(18,105,232,.08)!important}
.mobile-flyer-workspace .mobile-flyer-routes>h3{margin:0 0 12px!important;font-size:15px!important;font-weight:800!important;color:#0d1b33!important}
.mobile-flyer-workspace .mobile-flyer-routes .empty-state{margin:0!important;padding:16px!important;border:1px dashed #e0d3bf!important;border-radius:14px!important;background:#fffaf2!important;font-size:13px!important;font-weight:500!important;color:#7a7466!important;text-align:center!important}
.mobile-flyer-workspace .flyer-mobile-route-card{margin:0 0 10px!important;padding:14px!important;border:1px solid #eadfce!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-mobile-route-card:last-child{margin-bottom:0!important}
.mobile-flyer-workspace .flyer-mobile-route-card>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;margin:0 0 8px!important;padding:0!important}
.mobile-flyer-workspace .flyer-mobile-route-card>header strong{display:block!important;font-size:15px!important;line-height:1.25!important;font-weight:800!important;color:#0d1b33!important}
.mobile-flyer-workspace .flyer-mobile-route-card>header span{display:block!important;margin-top:2px!important;font-size:12px!important;font-weight:600!important;color:#617086!important}
.mobile-flyer-workspace .flyer-mobile-route-card>header>b{flex:0 0 auto!important;padding:4px 10px!important;border:0!important;border-radius:999px!important;background:#f3f6fb!important;color:#52607a!important;font-size:11px!important;font-weight:800!important;white-space:nowrap!important}
.mobile-flyer-workspace .flyer-mobile-route-card>header>b.active{background:#eaf3ff!important;color:#0a5fe0!important}
.mobile-flyer-workspace .flyer-mobile-route-card>header>b.paused{background:#fff5e0!important;color:#9a6200!important}
.mobile-flyer-workspace .flyer-mobile-route-card>p{margin:0 0 10px!important;font-size:13px!important;line-height:1.4!important;font-weight:600!important;color:#43516a!important}
.mobile-flyer-workspace .flyer-mobile-route-card>p small{display:block!important;font-size:12px!important;font-weight:500!important;color:#7a7466!important}
.mobile-flyer-workspace .flyer-mobile-route-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important}
.mobile-flyer-workspace .flyer-mobile-route-actions button{height:44px!important;min-height:44px!important;margin:0!important;padding:0 8px!important;border:1px solid #cfe0f8!important;border-radius:12px!important;background:#edf4ff!important;color:#1a3585!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-mobile-route-actions button:first-child{border-color:transparent!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 4px 12px rgba(18,105,232,.28)!important}
.mobile-flyer-workspace .flyer-mobile-route-actions button:nth-child(3){grid-column:1/-1!important;background:#fff!important;border-color:#e6dac8!important;color:#0a5fe0!important}

/* ── Redesign 2026 · Detail-Sheet einer Flyerstelle (Handy) ──────────────── */
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet{padding:8px 18px calc(env(safe-area-inset-bottom,0px) + 18px)!important;border:0!important;border-radius:26px 26px 0 0!important;background:#fff!important;box-shadow:0 -6px 32px rgba(23,32,51,.18)!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet>header{position:sticky!important;top:-8px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 6px!important;padding:14px 0 8px!important;border:0!important;background:#fff!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet>header::before{content:'';position:absolute;left:50%;top:2px;width:36px;height:4px;margin-left:-18px;border-radius:999px;background:linear-gradient(90deg,#e6dac8,#dccdb6)}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet>header h2{margin:0!important;font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:#7a7466!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet>header button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:1px solid #e6dac8!important;border-radius:50%!important;background:#fbf6ee!important;color:#43516a!important;font-size:20px!important;line-height:1!important;box-shadow:none!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet .flyer-map-info{display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet .flyer-map-close{display:none!important}
body .flyer-map-mobile-backdrop .flyer-info-head{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important;padding:0!important}
body .flyer-map-mobile-backdrop .flyer-info-head>.flyer-type{flex:0 0 46px!important;width:46px!important;height:46px!important;min-width:46px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:15px!important;font-size:21px!important}
body .flyer-map-mobile-backdrop .flyer-info-head strong{display:block!important;font-size:19px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
body .flyer-map-mobile-backdrop .flyer-info-head small{display:block!important;margin-top:2px!important;font-size:13px!important;font-weight:600!important;color:#617086!important}
body .flyer-map-mobile-backdrop .flyer-map-info>span{display:block!important;margin:0 0 10px!important;font-size:14px!important;font-weight:500!important;color:#43516a!important}
body .flyer-map-mobile-backdrop .flyer-extra-info{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0 0 14px!important;padding:0!important;border:0!important;background:transparent!important}
body .flyer-map-mobile-backdrop .flyer-extra-info small{display:inline-block!important;margin:0!important;padding:5px 11px!important;border:1px solid #f3dfb4!important;border-radius:999px!important;background:#fff8e8!important;color:#8a5a00!important;font-size:12px!important;font-weight:700!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet .flyer-map-actions{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:4px 0 0!important;padding:0!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>a,body .flyer-map-mobile-backdrop .flyer-map-actions>button,body .flyer-map-mobile-backdrop .flyer-map-actions>details>summary{grid-column:span 2!important;order:2!important;display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 6px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fbf6ee!important;color:#27324a!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;text-align:center!important;box-shadow:none!important;list-style:none!important;cursor:pointer}
body .flyer-map-mobile-backdrop .flyer-map-actions>details>summary::-webkit-details-marker{display:none}
body .flyer-map-mobile-backdrop .flyer-map-actions>a{border-color:#cfe0f8!important;background:#edf4ff!important;color:#0a5fe0!important}
/* Hauptaktion: offen -> "Erledigt", bereits erledigt -> "Erneut erledigt" */
body .flyer-map-mobile-backdrop .flyer-map-info:not(.done) .flyer-map-actions>[data-flyer-drop-done],body .flyer-map-mobile-backdrop .flyer-map-actions>[data-flyer-drop-redone]{grid-column:1/-1!important;order:1!important;height:54px!important;min-height:54px!important;border:0!important;border-radius:16px!important;background:linear-gradient(135deg,#17a85a,#0b7d3e)!important;color:#fff!important;font-size:16px!important;font-weight:800!important;box-shadow:0 6px 18px rgba(11,125,62,.30)!important}
body .flyer-map-mobile-backdrop .flyer-map-info.done .flyer-map-actions>a,body .flyer-map-mobile-backdrop .flyer-map-info.done .flyer-map-actions>[data-flyer-drop-done],body .flyer-map-mobile-backdrop .flyer-map-info.done .flyer-map-actions>[data-flyer-drop-skip],body .flyer-map-mobile-backdrop .flyer-map-info.done .flyer-map-actions>[data-flyer-drop-note]{grid-column:span 3!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>[data-flyer-drop-edit]{grid-column:span 3!important;order:3!important;background:#fff!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>details.flyer-symbol-menu{grid-column:span 3!important;order:3!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>details.flyer-symbol-menu>summary{background:#fff!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>details.flyer-symbol-menu[open]{grid-column:1/-1!important;order:4!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>[data-flyer-drop-delete]{grid-column:1/-1!important;order:5!important;height:40px!important;min-height:40px!important;border:0!important;background:transparent!important;color:#c4314b!important;font-weight:700!important}
/* Mehrere Stellen am selben Ort */
body .flyer-map-mobile-backdrop .flyer-map-info.group>strong,body #afhMap #flyerMapInfo .flyer-map-info.group>strong{display:block!important;font-size:18px!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
body .flyer-map-mobile-backdrop .flyer-map-info.group>small,body #afhMap #flyerMapInfo .flyer-map-info.group>small{display:block!important;margin:2px 0 12px!important;font-size:13px!important;font-weight:500!important;color:#7a7466!important}
body #afhMap #flyerMapInfo .flyer-map-info.group{display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body #afhMap #flyerMapInfo .flyer-map-info.group .flyer-map-close{display:none!important}
body #afhMap #flyerMapInfo .flyer-group-add{width:100%!important;height:44px!important;min-height:44px!important;margin:0 0 10px!important;border:1px solid #cfe0f8!important;border-radius:12px!important;background:#edf4ff!important;color:#0a5fe0!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
body .flyer-map-mobile-backdrop .flyer-map-group-list,body #afhMap #flyerMapInfo .flyer-map-group-list{display:grid!important;gap:8px!important;margin:0!important;padding:0!important;max-height:none!important;overflow:visible!important}
body .flyer-map-mobile-backdrop .flyer-map-group-list button,body #afhMap #flyerMapInfo .flyer-map-group-list button{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:58px!important;margin:0!important;padding:10px 12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;text-align:left!important;box-shadow:none!important}
body #afhMap #flyerMapInfo .flyer-map-group-list button.selected{border-color:#0a5fe0!important;background:#edf4ff!important}
body .flyer-map-mobile-backdrop .flyer-map-group-list .flyer-type,body #afhMap #flyerMapInfo .flyer-map-group-list .flyer-type{flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:12px!important;font-size:16px!important}
body .flyer-map-mobile-backdrop .flyer-map-group-list strong,body #afhMap #flyerMapInfo .flyer-map-group-list strong{display:block!important;font-size:14px!important;font-weight:700!important;color:#0d1b33!important}
body .flyer-map-mobile-backdrop .flyer-map-group-list small,body #afhMap #flyerMapInfo .flyer-map-group-list small{display:block!important;font-size:12px!important;font-weight:500!important;color:#7a7466!important}

/* ── Redesign 2026 · Route prüfen (Handy) ────────────────────────────────── */
@media(max-width:620px){
  body .flyer-route-review-backdrop .flyer-route-review{display:flex!important;flex-direction:column!important;gap:12px!important;padding:18px!important;border:0!important;border-radius:24px!important;background:#fff!important;box-shadow:0 18px 48px rgba(23,32,51,.28)!important}
  body .flyer-route-review>header{display:block!important;margin:0!important;padding:0!important;border:0!important}
  body .flyer-route-review>header h2{margin:0!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0d1b33!important}
  body .flyer-route-review>header p{margin:3px 0 0!important;font-size:13px!important;font-weight:500!important;color:#7a7466!important}
  body .flyer-route-review>header button{display:none!important}
  body .flyer-route-review>label{display:grid!important;gap:6px!important;margin:0!important;font-size:11px!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:#7a7466!important}
  body .flyer-route-review>label input{height:48px!important;min-height:48px!important;margin:0!important;padding:0 14px!important;border:1px solid #e6dac8!important;border-radius:14px!important;background:#fffaf2!important;color:#0d1b33!important;font-size:16px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
  body .flyer-route-review .flyer-review-list{display:grid!important;gap:8px!important;margin:0!important;padding:0!important;list-style:none!important;overflow-y:auto!important}
  body .flyer-route-review .flyer-review-list li{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important;margin:0!important;padding:10px 12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
  body .flyer-route-review .route-review-drag{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid #e6dac8!important;border-radius:10px!important;background:#fbf6ee!important;color:#7a7466!important;font-size:16px!important;box-shadow:none!important}
  body .flyer-route-review .flyer-review-list li>b{width:28px!important;height:28px!important;min-width:28px!important;display:grid!important;place-items:center!important;margin:0!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#14294f,#081428)!important;color:#fff!important;font-size:13px!important;font-weight:800!important}
  body .flyer-route-review .flyer-review-list li strong{display:block!important;font-size:14px!important;font-weight:700!important;color:#0d1b33!important}
  body .flyer-route-review .flyer-review-list li span{display:block!important;font-size:12px!important;font-weight:500!important;color:#7a7466!important}
  body .flyer-route-review .flyer-review-list li small{display:block!important;font-size:12px!important;font-weight:600!important;color:#9a6200!important}
  body .flyer-route-review>footer{display:flex!important;gap:10px!important;margin:4px 0 0!important;padding:0!important;border:0!important;background:transparent!important}
  body .flyer-route-review>footer button{height:52px!important;min-height:52px!important;margin:0!important;border-radius:14px!important;font-family:inherit!important;font-size:16px!important}
  body .flyer-route-review>footer button.ghost{flex:0 0 auto!important;width:auto!important;padding:0 18px!important;border:1px solid #e6dac8!important;background:#fff!important;color:#27324a!important;font-weight:700!important;box-shadow:none!important}
  body .flyer-route-review>footer button.primary{flex:1 1 auto!important;width:auto!important;padding:0 16px!important;border:0!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;font-weight:800!important;box-shadow:0 6px 18px rgba(18,105,232,.34)!important}
}

/* ── Redesign 2026 · Aufgeklappte Route im Flyer-Tab ─────────────────────── */
.mobile-flyer-workspace .flyer-mobile-route-details{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:12px 0 0!important;padding:12px 0 0!important;border:0!important;border-top:1px solid #f6eee1!important;background:transparent!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-list{grid-column:1/-1!important;display:grid!important;gap:8px!important;margin:0 0 4px!important;padding:0!important;list-style:none!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-list li{display:block!important;margin:0!important;padding:12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-list li strong{display:block!important;font-size:14px!important;line-height:1.3!important;font-weight:800!important;color:#0d1b33!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-list li span,.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-list li small{display:block!important;margin-top:1px!important;font-size:12px!important;font-weight:500!important;color:#7a7466!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:10px 0 0!important;padding:0!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions>a,.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0 6px!important;border:1px solid #cfe0f8!important;border-radius:12px!important;background:#edf4ff!important;color:#0a5fe0!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions>button{border-color:#bfe6cf!important;background:#eafaf1!important;color:#0b7d3e!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-more{grid-column:1/-1!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-more>summary{display:block!important;height:auto!important;min-height:0!important;margin:0!important;padding:6px 2px 0!important;border:0!important;background:transparent!important;color:#617086!important;font-size:12px!important;font-weight:700!important;text-align:right!important;list-style:none!important;box-shadow:none!important;cursor:pointer}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-more>summary::-webkit-details-marker{display:none}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-more>summary::after{content:' ▾'}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-more[open]>summary::after{content:' ▴'}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-more>button{display:block!important;width:100%!important;height:40px!important;min-height:40px!important;margin:6px 0 0!important;padding:0 12px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fbf6ee!important;color:#27324a!important;font-family:inherit!important;font-size:13px!important;font-weight:600!important;text-align:left!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-mobile-route-details>.mobile-reactivate-button{height:44px!important;min-height:44px!important;width:auto!important;margin:0!important;padding:0 8px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fbf6ee!important;color:#27324a!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.mobile-flyer-workspace .flyer-mobile-route-details>.mobile-reactivate-button[data-flyer-route-finish]{border-color:#bfe6cf!important;background:#eafaf1!important;color:#0b7d3e!important}
.mobile-flyer-workspace .flyer-mobile-route-details>.mobile-reactivate-button.danger{grid-column:1/-1!important;height:38px!important;min-height:38px!important;border:0!important;background:transparent!important;color:#c4314b!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>details.flyer-symbol-menu{display:block!important;align-self:start!important}
body .flyer-map-mobile-backdrop .flyer-map-actions>details.flyer-symbol-menu>summary{width:100%!important;box-sizing:border-box!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions>a,.mobile-flyer-workspace .flyer-mobile-route-details .flyer-target-actions>button{min-width:0!important;width:auto!important;font-size:12.5px!important;white-space:nowrap!important}

/* ── Straßenzüge auf der Karte ───────────────────────────────────────────── */
body #afhMap .afh-map-chips>.afh-chip-toggle{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:7px!important;width:auto!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0 12px 0 10px!important;border:1px solid rgba(230,218,200,.8)!important;border-radius:999px!important;background:rgba(255,255,255,.95)!important;color:#7a7466!important;font-family:inherit!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important;box-shadow:0 2px 10px rgba(23,32,51,.12)!important;cursor:pointer}
body #afhMap .afh-map-chips>.afh-chip-toggle i{width:16px;height:0;border-top:3px dashed #a39a88;border-radius:2px}
body #afhMap .afh-map-chips>.afh-chip-toggle.on{background:#12264a!important;border-color:#12264a!important;color:#fff!important}
body #afhMap .afh-map-chips>.afh-chip-toggle.on i{border-top:3px solid #7fe0a3}
.afh-street-swatch{flex:0 0 auto;display:block;width:34px;height:0;border-top:5px dotted #5d6b82;border-radius:3px}
.partial>.afh-street-swatch,.partial .afh-street-head .afh-street-swatch{border-top:5px dashed #e39a00}
.skipped>.afh-street-swatch,.skipped .afh-street-head .afh-street-swatch{border-top:5px dotted #b98a2c}
.done>.afh-street-swatch,.done .afh-street-head .afh-street-swatch{border-top:5px solid #128447}
.done.done-age-mid>.afh-street-swatch,.done.done-age-mid .afh-street-head .afh-street-swatch{border-top-color:#5aa84f}
.done.done-age-old>.afh-street-swatch,.done.done-age-old .afh-street-head .afh-street-swatch{border-top-color:#a3cb72}
body #afhMap .afh-street-list{display:grid;gap:6px;margin-top:10px;max-height:34dvh;overflow-y:auto;overscroll-behavior:contain}
body #afhMap .afh-street-row{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:52px!important;margin:0!important;padding:8px 10px 8px 12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;color:#0d1b33!important;font-family:inherit!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
body #afhMap .afh-street-row-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
body #afhMap .afh-street-row strong{font-size:14px!important;font-weight:700!important;color:#0d1b33!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #afhMap .afh-street-row small{font-size:12px!important;font-weight:500!important;color:#7a7466!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #afhMap .afh-street-row svg{width:16px;height:16px;stroke:#c2b8a4}
.afh-street-info{display:block}
.afh-street-head{display:flex;align-items:center;gap:14px;margin:0 0 8px}
.afh-street-head strong{display:block;font-size:20px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:#0d1b33}
.afh-street-head small{display:block;margin-top:2px;font-size:13px;font-weight:600;color:#617086}
.afh-street-address{margin:0 0 10px!important;font-size:14px!important;font-weight:500!important;color:#43516a!important}
.afh-street-notes{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.afh-street-notes small{padding:5px 11px;border:1px solid #f3dfb4;border-radius:999px;background:#fff8e8;color:#8a5a00;font-size:12px;font-weight:700}
.afh-street-noline{margin:0 0 12px!important;padding:10px 12px!important;border:1px dashed #e0d3bf;border-radius:12px;background:#fffaf2;font-size:12.5px!important;line-height:1.4!important;font-weight:500!important;color:#617086!important}
body .afh-street-sheet .afh-street-main{display:block!important;width:100%!important;height:54px!important;min-height:54px!important;margin:4px 0 0!important;padding:0 16px!important;border:0!important;border-radius:16px!important;background:linear-gradient(135deg,#17a85a,#0b7d3e)!important;color:#fff!important;font-family:inherit!important;font-size:16px!important;font-weight:800!important;box-shadow:0 6px 18px rgba(11,125,62,.30)!important}
.afh-street-partial{margin:14px 0 0}
.afh-street-partial>small{display:block;margin-bottom:8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7a7466}
.afh-street-partial>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .afh-street-sheet .afh-street-partial button{height:46px!important;min-height:46px!important;width:auto!important;margin:0!important;padding:0 4px!important;border:1px solid #f0d9a6!important;border-radius:12px!important;background:#fff8e8!important;color:#8a5a00!important;font-family:inherit!important;font-size:12.5px!important;font-weight:700!important;white-space:nowrap!important;box-shadow:none!important}
body .afh-street-sheet .afh-street-partial button.set{border-color:#bfe6cf!important;background:#eafaf1!important;color:#0b7d3e!important;opacity:1!important}
.afh-street-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin:14px 0 0}
.afh-street-actions.line{margin-top:8px}
body .afh-street-sheet .afh-street-actions>a,body .afh-street-sheet .afh-street-actions>button{display:flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:46px!important;min-height:46px!important;margin:0!important;padding:0 6px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fbf6ee!important;color:#27324a!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important}
body .afh-street-sheet .afh-street-actions>a{border-color:#cfe0f8!important;background:#edf4ff!important;color:#0a5fe0!important}
body .afh-street-sheet .afh-street-actions.line>button{background:#fff!important;color:#43516a!important;font-weight:600!important}
/* Linie von Hand setzen */
.afh-street-drawbar{position:fixed;left:12px;right:12px;top:calc(env(safe-area-inset-top,0px) + 12px);z-index:100400;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 10px 10px 16px;border:1px solid rgba(230,218,200,.9);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 8px 28px rgba(23,32,51,.20);font-size:13px;line-height:1.35;font-weight:600;color:#0d1b33}
.afh-street-drawbar>div{display:flex;gap:6px;flex:0 0 auto}
.afh-street-drawbar button{height:40px!important;min-height:40px!important;width:auto!important;margin:0!important;padding:0 14px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fff!important;color:#27324a!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.afh-street-drawbar button.primary{border:0!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important}
.afh-street-drawbar button:disabled{opacity:.45!important}
body.afh-street-drawing #afhMap .afh-map-top,body.afh-street-drawing #afhMap .afh-map-sheet{display:none!important}
body .afh-street-sheet .afh-street-noline{font-weight:500!important;color:#617086!important}
body .afh-street-sheet .afh-street-address{font-weight:500!important;color:#43516a!important}
body .afh-street-sheet .afh-street-partial button{position:static!important;transform:none!important;align-self:stretch!important}
.afh-street-swatch.pick{border-top:5px solid #0a5fe0}
body #afhMap .afh-street-hint{margin:10px 0 0!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important;color:#8a8272!important;text-align:center!important}
/* Langes Druecken auf der Karte soll die Strasse waehlen, nicht Text markieren oder das System-Menue oeffnen */
body #afhMap #flyerMap{-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}

body .afh-street-sheet .afh-street-undo{display:block!important;width:100%!important;height:40px!important;min-height:40px!important;margin:8px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:#617086!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
body .afh-street-sheet .afh-street-undo.danger{margin-top:0!important;color:#c4314b!important}

/* ── Redesign 2026 · Auswertung (Handy) ──────────────────────────────────── */
.afh-rep-hero{position:relative;margin:0 0 12px;padding:18px;border-radius:24px;background:linear-gradient(145deg,#14294f,#081428);color:#fff;box-shadow:0 12px 32px rgba(18,105,232,.36),0 2px 0 rgba(255,255,255,.12) inset;overflow:hidden}
.afh-rep-hero::before{content:'';position:absolute;top:-40px;right:-30px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.14) 0%,transparent 70%);pointer-events:none}
.afh-rep-hero>small{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.60)}
.mobile-app .afh-rep-hero h2{margin:2px 0 16px!important;font-size:21px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#fff!important}
.afh-rep-big{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.afh-rep-big>div{text-align:center;padding:0 4px}
.afh-rep-big>div+div{border-left:1px solid rgba(255,255,255,.18)}
.afh-rep-big strong{display:block;font-size:36px;line-height:1;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#fff}
.afh-rep-big span{display:block;margin-top:4px;font-size:11px;font-weight:500;color:rgba(255,255,255,.70)}
.afh-rep-progress{display:flex;justify-content:space-between;margin-bottom:6px;font-size:12px}
.afh-rep-progress span{color:rgba(255,255,255,.70)}
.afh-rep-progress strong{color:#fff;font-weight:700;font-variant-numeric:tabular-nums}
.afh-rep-track{height:7px;border-radius:999px;background:rgba(255,255,255,.20);overflow:hidden}
.afh-rep-track i{display:block;height:7px;border-radius:999px;background:linear-gradient(90deg,#7fd7ff,#a9f0ff)}
.afh-rep-card{margin:0 0 12px;padding:16px;border:1px solid rgba(230,218,200,.9);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 4px 18px rgba(18,105,232,.08)}
.mobile-app .afh-rep-card h3{margin:0 0 12px!important;font-size:15px!important;font-weight:800!important;color:#0d1b33!important}
.afh-rep-list{display:grid;gap:8px}
.afh-rep-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #eadfce;border-radius:14px;background:#fff}
.afh-rep-row strong,.afh-rep-bezirk strong{display:block;font-size:14px;font-weight:700;color:#0d1b33}
.afh-rep-row span,.afh-rep-bezirk span{display:block;font-size:12px;font-weight:500;color:#7a7466}
.afh-rep-row b{font-size:22px;font-weight:900;color:#0a5fe0;font-variant-numeric:tabular-nums}
.afh-rep-row b.open{color:#d97706}
.afh-rep-bezirk{padding:12px 14px;border:1px solid #eadfce;border-radius:14px;background:#fff}
.afh-rep-bezirk>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.afh-rep-bar{height:6px;margin-top:8px;border-radius:999px;background:#e8eef7;overflow:hidden}
.afh-rep-bar i{display:block;height:6px;border-radius:999px;background:linear-gradient(90deg,#1a6ff0,#0340c0)}
.afh-rep-empty{margin:0;padding:16px;border:1px dashed #e0d3bf;border-radius:14px;font-size:13px;font-weight:500;color:#7a7466;text-align:center}
/* Navigation: Auswertung hatte keine Beschriftung und stand vor "Start" */
.app-head nav#mobileNav a[data-mobile-tab="reports"]::after{content:'Auswertung'!important}
@media(max-width:720px){.app-head nav#mobileNav a[data-mobile-tab="reports"]{order:3!important}.app-head nav#mobileNav a[data-mobile-tab="chat"]{order:4!important}}

/* ── Startseite: "Noch offen" antippbar + Liste ──────────────────────────── */
.heute-start-card .heute-stats section.heute-open-tile{cursor:pointer!important;-webkit-tap-highlight-color:transparent}
.heute-start-card .heute-stats section.heute-open-tile span{color:#fff!important;font-weight:700!important;text-decoration:underline!important;text-decoration-color:rgba(255,255,255,.45)!important;text-underline-offset:3px!important}
.heute-start-card .heute-stats section.heute-open-tile:active{opacity:.7}
body .afh-open-backdrop .afh-open-sheet{max-height:86dvh!important}
.afh-open-summary{margin:0 0 12px!important;font-size:14px!important;font-weight:500!important;color:#617086!important}
.afh-open-summary strong{font-size:22px;font-weight:900;color:#0d1b33;font-variant-numeric:tabular-nums;margin-right:2px}
.afh-open-group{margin:0 0 10px;border:1px solid #eadfce;border-radius:16px;background:#fff;overflow:hidden}
.afh-open-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;list-style:none;cursor:pointer}
.afh-open-group>summary::-webkit-details-marker{display:none}
.afh-open-group>summary strong{font-size:16px;font-weight:800;letter-spacing:-.01em;color:#0d1b33}
.afh-open-group>summary small{font-size:12px;font-weight:700;color:#d97706;white-space:nowrap}
.afh-open-group>summary small::after{content:' ▾';color:#a39a88}
.afh-open-group[open]>summary small::after{content:' ▴'}
body .afh-open-sheet .afh-open-map{display:block!important;width:calc(100% - 28px)!important;height:42px!important;min-height:42px!important;margin:0 14px 8px!important;padding:0 12px!important;border:1px solid #cfe0f8!important;border-radius:12px!important;background:#edf4ff!important;color:#0a5fe0!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
.afh-open-rows{display:grid}
body .afh-open-sheet .afh-open-row{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:56px!important;margin:0!important;padding:9px 14px!important;border:0!important;border-top:1px solid #f6eee1!important;border-radius:0!important;background:#fff!important;color:#0d1b33!important;font-family:inherit!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
body .afh-open-sheet .afh-open-row:active{background:#edf4ff!important}
body .afh-open-sheet .afh-open-row>.flyer-type,.afh-open-street{flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:12px!important;font-size:16px!important}
.afh-open-street{background:#fbf6ee}
.afh-open-street .afh-street-swatch{width:22px}
.afh-open-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
body .afh-open-sheet .afh-open-text strong{font-size:14px!important;font-weight:700!important;color:#0d1b33!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .afh-open-sheet .afh-open-text small{font-size:12px!important;font-weight:500!important;color:#7a7466!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-open-row svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:#c2b8a4;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.afh-open-empty{margin:0;padding:18px;border:1px dashed #e0d3bf;border-radius:14px;font-size:14px;font-weight:500;color:#617086;text-align:center}
.afh-open-group.hinted{background:#fbfcfe}
.afh-open-group.hinted>summary strong{color:#617086}
.afh-open-group.hinted>summary small{color:#7a7466}
.afh-open-hintnote{margin:0!important;padding:0 14px 10px!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important;color:#7a7466!important}

/* Sheets: lange Namen duerfen das Fenster nicht breiter als den Bildschirm machen */
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet{box-sizing:border-box!important;width:100%!important;max-width:min(100vw,460px)!important;grid-template-columns:minmax(0,1fr)!important;overflow-x:hidden!important}
body .flyer-map-mobile-backdrop .flyer-map-mobile-sheet>*{min-width:0!important;max-width:100%!important}
body .flyer-map-mobile-backdrop .flyer-info-head>div,.afh-street-head>div{min-width:0}
body .flyer-map-mobile-backdrop .flyer-info-head strong,.afh-street-head strong{overflow-wrap:anywhere}
.afh-open-rows,.afh-rep-list,body #afhMap .afh-street-list,body .flyer-map-mobile-backdrop .flyer-map-group-list,body #afhMap #flyerMapInfo .flyer-map-group-list{grid-template-columns:minmax(0,1fr)!important}
.afh-open-group{min-width:0;max-width:100%}
body .afh-open-sheet .afh-open-row{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
body .afh-open-sheet .afh-open-map{box-sizing:border-box!important}

/* ── Redesign 2026 · Chat (nur Optik, Aufbau unverändert) ────────────────── */
/* Die neue Kopfzeile ragte im Chat abgeschnitten über den Chat-Kopf */
body.mobile-chat-mode .mobile-app>.afh-header,body.mobile-chat-mode .mobile-app>.afh-motto{display:none!important}
.mobile-chat .chat-message.own{border:0!important;border-radius:16px 5px 16px 16px!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;box-shadow:0 4px 12px rgba(18,105,232,.22)!important}
.mobile-chat .chat-message.own p{color:#fff!important}
.mobile-chat .chat-message.own small{color:rgba(255,255,255,.78)!important}
.mobile-chat .chat-message.received{border:1px solid #eadfce!important;border-radius:5px 16px 16px 16px!important;background:#fff!important;box-shadow:0 2px 8px rgba(23,32,51,.05)!important}
.mobile-chat .chat-message.received small{color:#7a7466!important}
.mobile-chat .chat-message p{font-size:15px!important;line-height:1.45!important;font-weight:500!important}
.mobile-chat .chat-day-separator span{border:0!important;background:#e9eef6!important;color:#617086!important;font-weight:700!important}
.mobile-chat .chat-compose button[type="submit"]{border:0!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 6px 16px rgba(18,105,232,.30)!important}
.mobile-chat .chat-compose textarea{border:1px solid #e6dac8!important;border-radius:18px!important;background:#fffaf2!important;font-size:16px!important;font-weight:500!important;color:#0d1b33!important;box-shadow:none!important}
.mobile-chat .chat-compose textarea:focus{border-color:#0a5fe0!important;background:#fff!important;outline:0!important}
.mobile-chat>header button,.mobile-chat .chat-conversation-head>button{border:1px solid rgba(18,105,232,.18)!important;border-radius:12px!important;background:rgba(255,255,255,.90)!important;color:#0a5fe0!important;box-shadow:0 2px 8px rgba(18,105,232,.10)!important}
.mobile-chat.chat-contact-screen>header h2{font-size:21px!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0d1b33!important}
.mobile-chat.chat-contact-screen>header p{font-size:12px!important;font-weight:600!important;color:#617086!important}
.mobile-chat .chat-contact-search{border:1px solid rgba(230,218,200,.95)!important;border-radius:999px!important;background:#fff!important;box-shadow:0 2px 10px rgba(18,105,232,.06)!important}
.mobile-chat .chat-contact-search input{font-weight:500!important;color:#0d1b33!important}
.mobile-chat .chat-contact-row>span,.mobile-chat .chat-conversation-head>span{background:#edf4ff!important;color:#0a5fe0!important;font-weight:800!important}
.mobile-chat .chat-contact-row:has(>b)>span{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important}
.mobile-chat .chat-contact-row:has(>b) strong{font-weight:800!important}
.mobile-chat .chat-contact-row:has(>b) small{color:#27324a!important;font-weight:600!important}
.mobile-chat .chat-contact-row strong{font-size:15px!important;font-weight:700!important;color:#0d1b33!important}
.mobile-chat .chat-contact-row small{font-size:13px!important;font-weight:500!important;color:#7a7466!important}
.mobile-chat .chat-contact-row time{font-size:11px!important;font-weight:600!important;color:#97a4b4!important}
.mobile-chat .chat-contact-row>b{background:#0a5fe0!important;color:#fff!important;font-weight:800!important}
.mobile-chat .chat-contact-row:active{background:#f3f8ff!important}

/* ── Redesign 2026 · Dialoge und Hinweise am Handy an die neue Optik angleichen ── */
@media(max-width:620px){
  .modal-backdrop>.modal,.modal-backdrop>form.modal,.mobile-detail-backdrop>.mobile-detail-sheet,.modal-backdrop>.mobile-detail-sheet,.pwa-install-card{border-color:rgba(230,218,200,.95)!important;background:#fff!important;box-shadow:0 18px 48px rgba(23,32,51,.22)!important}
  .modal-backdrop .modal input:not([type="checkbox"]):not([type="radio"]),.modal-backdrop .modal select,.modal-backdrop .modal textarea{border-color:#e6dac8!important;background:#fffaf2!important}
  .modal-backdrop .modal input:focus,.modal-backdrop .modal select:focus,.modal-backdrop .modal textarea:focus{border-color:#0a5fe0!important;background:#fff!important;outline:0!important}
  .modal-backdrop .modal .ghost,.mobile-detail-sheet .ghost{border-color:#e6dac8!important;background:#fff!important;color:#27324a!important}
  .pwa-install-card strong{font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
  .pwa-install-card p{font-weight:500!important;color:#617086!important}
  .pwa-install-card>div{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .pwa-install-card button{flex:1 1 auto!important;min-height:44px!important;padding:0 14px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fff!important;color:#27324a!important;font-size:13px!important;font-weight:700!important;white-space:nowrap!important}
  .pwa-install-card button:first-child{border-color:transparent!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important}
  .mobile-app .pwa-inline-card{border:1px solid rgba(230,218,200,.9)!important;border-radius:22px!important;background:linear-gradient(145deg,#fff,#fffaf2)!important;box-shadow:0 4px 18px rgba(18,105,232,.08)!important}
  .mobile-app .instant-route-card:not(.active){border:1px solid rgba(230,218,200,.9)!important;border-radius:22px!important;background:linear-gradient(145deg,#fff,#fffaf2)!important;box-shadow:0 4px 18px rgba(18,105,232,.08)!important}
}
@media(max-width:620px){.flyer-drop-editor-backdrop .flyer-editor-head,.flyer-drop-editor-backdrop .flyer-editor-footer{background:rgba(255,255,255,.97)!important;border-color:#eadfce!important}.flyer-drop-editor-backdrop .modal fieldset,.flyer-drop-editor-backdrop .modal section{border-color:#eadfce!important}}

/* ===== Redesign 2026 · Desktop-Ansicht (Büro/Verwaltung) ===== */
@media (min-width:621px){
html body:not(.logged-out){background:#f8f2e8!important;padding:0!important;color:#0d1b33!important}
html body:not(.logged-out) main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
html body .afh-desk.admin-web{display:grid!important;grid-template-columns:248px minmax(0,1fr)!important;width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f8f2e8!important;box-shadow:none!important;overflow:visible!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important}
/* Seitenleiste */
.afh-desk .afh-desk-side{position:sticky;top:0;align-self:start;height:100vh;box-sizing:border-box;display:flex;flex-direction:column;gap:22px;padding:22px 16px 16px;background:linear-gradient(170deg,#12264a,#081428);color:#fff;overflow-y:auto}
.afh-desk .afh-desk-brand{display:flex;align-items:center;gap:12px;padding:0 6px;color:#fff;text-decoration:none}
.afh-desk .afh-desk-brand img{width:44px;height:44px;box-sizing:border-box;padding:5px;border-radius:14px;background:#fffdf9;object-fit:contain;box-shadow:0 6px 16px rgba(8,40,110,.25)}
.afh-desk .afh-desk-brand strong{display:block;font-size:16px;line-height:1.15;font-weight:800;letter-spacing:-.01em}
.afh-desk .afh-desk-brand small{display:block;margin-top:2px;font-size:12px;font-weight:600;color:rgba(255,255,255,.78)}
.afh-desk .afh-desk-nav{display:flex;flex-direction:column;gap:6px}
html body .afh-desk .afh-desk-nav .admin-nav{display:flex!important;align-items:center!important;gap:12px!important;height:46px!important;padding:0 14px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:rgba(255,255,255,.9)!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important;transition:background .15s}
html body .afh-desk .afh-desk-nav .admin-nav:hover{background:rgba(255,255,255,.14)!important}
html body .afh-desk .afh-desk-nav .admin-nav.active{background:#fffdf9!important;color:#0340c0!important;box-shadow:0 8px 20px rgba(8,40,110,.28)!important}
html body .afh-desk .afh-desk-nav .admin-nav svg{width:21px!important;height:21px!important;flex:0 0 21px;fill:none!important;stroke:currentColor!important;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
html body .afh-desk .afh-desk-nav .admin-nav span{width:auto!important;font-size:14px!important;text-align:left!important}
.afh-desk .afh-desk-nav .admin-support{margin-top:8px!important}
.afh-desk .afh-desk-user{margin-top:auto;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:10px;padding:10px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(255,255,255,.12)}
.afh-desk .afh-desk-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fffdf9;color:#0340c0;font-size:13px;font-weight:800}
.afh-desk .afh-desk-user strong{display:block;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-desk .afh-desk-user small{display:block;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.78)}
html body .afh-desk .afh-desk-user button{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-height:0!important;padding:0!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:12px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;box-shadow:none!important;cursor:pointer}
html body .afh-desk .afh-desk-user button:hover{background:rgba(255,255,255,.26)!important}
.afh-desk .afh-desk-user button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
/* Kopfzeile + Inhalt */
.afh-desk .afh-desk-main{min-width:0;display:flex;flex-direction:column}
.afh-desk .afh-desk-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px clamp(20px,2.4vw,40px);background:rgba(248,242,232,.92);backdrop-filter:blur(10px);border-bottom:1px solid #e6dac8}
.afh-desk .afh-desk-title small{display:block;font-size:12.5px;font-weight:600;color:#687080}
.afh-desk .afh-desk-title h2{margin:2px 0 0;font-size:26px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:#0d1b33}
.afh-desk .afh-desk-search{display:flex;align-items:center;gap:10px;width:min(360px,40%);height:44px;box-sizing:border-box;padding:0 16px;border:1px solid #e6dac8;border-radius:999px;background:#fffdf9;color:#687080;box-shadow:0 2px 10px rgba(18,105,232,.06)}
.afh-desk .afh-desk-search:focus-within{border-color:#0a5fe0;box-shadow:0 0 0 3px rgba(18,105,232,.16)}
.afh-desk .afh-desk-search svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
html body .afh-desk .afh-desk-search input{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font:500 14px Inter,system-ui,sans-serif!important;color:#0d1b33!important}
html body .afh-desk .admin-content{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:18px!important;width:100%!important;max-width:1560px!important;box-sizing:border-box!important;margin:0!important;padding:22px clamp(20px,2.4vw,40px) 40px!important;background:transparent!important;overflow:visible!important}
/* Karten allgemein */
html body .afh-desk .admin-panel{min-height:0!important;padding:20px!important;border:1px solid #e6dac8!important;border-radius:20px!important;background:#fffdf9!important;box-shadow:0 6px 20px rgba(60,44,20,.06)!important}
html body .afh-desk .admin-panel>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 14px!important;padding:0!important;border:0!important}
html body .afh-desk .admin-panel h3{margin:0!important;font-size:16px!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
html body .afh-desk .admin-panel>header a{font-size:13px!important;font-weight:700!important;color:#0a5fe0!important}
html body .afh-desk .admin-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
html body .afh-desk .admin-kpi{position:relative!important;display:flex!important;align-items:center!important;gap:14px!important;min-height:0!important;padding:16px 18px!important;border:1px solid #e6dac8!important;border-radius:20px!important;background:#fffdf9!important;box-shadow:0 6px 20px rgba(60,44,20,.06)!important;overflow:hidden!important}
html body .afh-desk .admin-kpi::before,html body .afh-desk .admin-kpi::after{display:none!important}
html body .afh-desk .admin-kpi>span{display:grid!important;place-items:center!important;flex:0 0 46px!important;width:46px!important;height:46px!important;border-radius:14px!important;background:#edf4ff!important;color:#0a5fe0!important;font-size:20px!important}
html body .afh-desk .admin-kpi:nth-child(3)>span{background:#e7f6ee!important;color:#128447!important}
html body .afh-desk .admin-kpi:nth-child(4)>span{background:#fff4df!important;color:#b45309!important}
.afh-desk .admin-kpi>span svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body .afh-desk .admin-kpi strong{display:block!important;font-size:26px!important;line-height:1.05!important;font-weight:800!important;letter-spacing:-.02em!important;color:#0d1b33!important}
html body .afh-desk .admin-kpi b{display:block!important;margin-top:3px!important;font-size:13px!important;font-weight:700!important;color:#27324a!important}
html body .afh-desk .admin-kpi small{display:block!important;margin-top:2px!important;font-size:12px!important;font-weight:600!important;color:#687080!important}
html body .afh-desk .empty-state{margin:0!important;padding:18px!important;border:1px dashed #e0d3bf!important;border-radius:14px!important;background:#fbf6ee!important;color:#687080!important;font-size:14px!important;font-weight:500!important}
/* Übersicht */
.afh-desk .afh-desk-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 30px;border-radius:26px;background:linear-gradient(145deg,#14294f,#081428);color:#fff;box-shadow:0 14px 34px rgba(8,20,40,.24);overflow:hidden}
.afh-desk .afh-desk-hero-text{min-width:0;max-width:640px}
.afh-desk .afh-desk-hero-text small{display:block;font-size:13px;font-weight:600;color:rgba(255,255,255,.8)}
.afh-desk .afh-desk-hero-text p{margin:6px 0 16px;font-size:21px;line-height:1.35;font-weight:700;letter-spacing:-.01em;text-wrap:balance}
.afh-desk .afh-desk-hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.afh-desk .afh-desk-hero-actions a{display:inline-flex;align-items:center;height:42px;padding:0 18px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:14px;font-weight:700;text-decoration:none}
.afh-desk .afh-desk-hero-actions a.is-main{border-color:#fff;background:#fffdf9;color:#0340c0}
.afh-desk .afh-desk-hero-ring{flex:0 0 132px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:132px;height:132px;margin-right:64px;border-radius:50%;background:radial-gradient(closest-side,#0e2040 78%,transparent 80% 100%),conic-gradient(#2f86ff calc(var(--pct)*1%),rgba(255,255,255,.16) 0)}
.afh-desk .afh-desk-hero-ring strong{font-size:27px;font-weight:800;letter-spacing:-.02em}
.afh-desk .afh-desk-hero-ring span{max-width:92px;font-size:11px;font-weight:600;line-height:1.25;text-align:center;color:rgba(255,255,255,.85)}
.afh-desk .afh-desk-hero .afh-motto-deco{position:absolute;right:22px;bottom:12px;font-size:30px;line-height:1}
.afh-desk .afh-desk-bar{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(0,2fr) 56px;align-items:center;gap:18px;padding:12px 0;border-top:1px solid #f0e7d9}
.afh-desk .afh-desk-bar:first-of-type{border-top:0}
.afh-desk .afh-desk-bar strong{display:block;font-size:14.5px;font-weight:700}
.afh-desk .afh-desk-bar span{display:block;font-size:12.5px;font-weight:500;color:#687080}
.afh-desk .afh-desk-bar i{display:block;height:10px;border-radius:999px;background:#efe6d8;overflow:hidden}
.afh-desk .afh-desk-bar u{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0a66e8,#128447)}
.afh-desk .afh-desk-bar b{font-size:14px;font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
/* Flyer */
.afh-desk .afh-desk-flyerbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
html body .afh-desk .flyer-workspace-nav{display:inline-grid!important;grid-template-columns:repeat(3,minmax(110px,1fr))!important;gap:4px!important;width:auto!important;margin:0!important;padding:4px!important;border:1px solid #e6dac8!important;border-radius:999px!important;background:#fffdf9!important;box-shadow:0 2px 10px rgba(18,105,232,.06)!important;position:static!important}
html body .afh-desk .flyer-workspace-nav button{height:40px!important;min-height:0!important;padding:0 18px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#27324a!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important}
html body .afh-desk .flyer-workspace-nav button.active{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 4px 12px rgba(18,105,232,.28)!important}
html body .afh-desk .flyer-capture-hero-action{display:inline-flex!important;align-items:center!important;gap:9px!important;width:auto!important;height:48px!important;min-height:0!important;margin:0!important;padding:0 20px!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 8px 20px rgba(18,105,232,.28)!important}
html body .afh-desk .flyer-capture-hero-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html body .afh-desk .flyer-capture-hero-action b{font-size:14px!important;font-weight:700!important;color:#fff!important}
html body .afh-desk .flyer-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
.afh-desk .afh-desk-more{border:1px solid #e6dac8;border-radius:20px;background:#fffdf9;box-shadow:0 6px 20px rgba(60,44,20,.06)}
.afh-desk .afh-desk-more>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;cursor:pointer;list-style:none;border-radius:20px}
.afh-desk .afh-desk-more>summary::-webkit-details-marker{display:none}
.afh-desk .afh-desk-more>summary span{font-size:16px;font-weight:800;letter-spacing:-.01em}
.afh-desk .afh-desk-more>summary small{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#687080}
.afh-desk .afh-desk-more>summary small::after{content:"";width:9px;height:9px;border-right:2.4px solid #0a5fe0;border-bottom:2.4px solid #0a5fe0;transform:rotate(45deg);transition:transform .15s}
.afh-desk .afh-desk-more[open]>summary small::after{transform:rotate(-135deg)}
.afh-desk .afh-desk-more[open]>summary{border-bottom:1px solid #f0e7d9;border-radius:20px 20px 0 0}
.afh-desk .afh-desk-more>:not(summary){margin:16px 20px!important}
.afh-desk .afh-desk-more .admin-kpi{box-shadow:none!important;background:#fbf6ee!important}
}
@media (min-width:621px) and (max-width:1100px){
html body .afh-desk.admin-web{grid-template-columns:76px minmax(0,1fr)!important}
.afh-desk .afh-desk-side{padding:18px 10px 12px;align-items:center}
.afh-desk .afh-desk-brand span,.afh-desk .afh-desk-user>div,.afh-desk .afh-desk-user .afh-desk-avatar{display:none}
html body .afh-desk .afh-desk-nav .admin-nav{justify-content:center!important;width:52px!important;padding:0!important}
html body .afh-desk .afh-desk-nav .admin-nav span{display:none!important}
.afh-desk .afh-desk-user{grid-template-columns:40px;padding:6px}
html body .afh-desk .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.afh-desk .afh-desk-hero-ring{margin-right:0}
}
@media (min-width:621px){
html body .afh-desk .afh-desk-nav .admin-nav{width:100%!important;box-sizing:border-box!important;justify-content:flex-start!important}
html body .afh-desk .afh-desk-note{padding:26px!important;color:#687080!important;font-size:15px!important;font-weight:500!important}
/* Standort wählen */
.afh-desk .afh-picker{padding:22px;border:1px solid #e6dac8;border-radius:20px;background:#fffdf9;box-shadow:0 6px 20px rgba(60,44,20,.06)}
.afh-desk .afh-picker>header .afh-picker-back,.afh-desk .afh-picker .afh-picker-capture{display:none!important}
.afh-desk .afh-picker>header h2{font-size:18px!important}
.afh-desk .afh-picker .afh-picker-search{max-width:420px}
.afh-desk .afh-picker-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:start}
.afh-desk .afh-picker-group{grid-column:1/-1}
.afh-desk .afh-picker-sub{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:0 12px}
.afh-desk .afh-picker-row{cursor:pointer}
/* Flyerkarte */
html body .afh-desk .flyer-map-panel{padding:16px!important}
html body .afh-desk .flyer-map-panel>header{flex-wrap:wrap!important;margin:0 0 12px!important}
html body .afh-desk .flyer-map-panel>header h3{flex:1 1 auto!important;font-size:19px!important;text-align:left!important}
html body .afh-desk .flyer-map-panel .flyer-route-close-x{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-height:0!important;padding:0!important;border:1px solid rgba(18,105,232,.18)!important;border-radius:12px!important;background:#fffdf9!important;color:#0a5fe0!important;font-size:0!important;box-shadow:0 2px 8px rgba(18,105,232,.1)!important}
html body .afh-desk .flyer-map-panel .flyer-route-close-x::before{content:"";width:9px;height:9px;margin-left:4px;border-left:2.4px solid currentColor;border-bottom:2.4px solid currentColor;transform:rotate(45deg)}
html body .afh-desk .panel-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
html body .afh-desk .panel-actions button,html body .afh-desk .flyer-hours-auto-bar button{height:38px!important;min-height:0!important;padding:0 14px!important;border:1px solid #e0d3bf!important;border-radius:999px!important;background:#fffdf9!important;color:#27324a!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
html body .afh-desk .panel-actions button:hover{border-color:#0a5fe0!important;color:#0a5fe0!important}
html body .afh-desk .panel-actions button.active{border-color:#0a5fe0!important;background:#edf4ff!important;color:#0340c0!important}
html body .afh-desk .panel-actions button.primary{border:0!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 4px 12px rgba(18,105,232,.28)!important}
html body .afh-desk .panel-actions small{font-size:13px!important;font-weight:600!important;color:#687080!important}
html body .afh-desk .flyer-map-panel [data-flyer-location-back].ghost{display:none!important}
html body .afh-desk .flyer-hours-auto-bar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 10px!important;padding:10px 14px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fbf6ee!important;box-shadow:none!important}
html body .afh-desk .flyer-hours-auto-bar strong{font-size:13.5px!important;font-weight:700!important;color:#0d1b33!important}
html body .afh-desk .flyer-hours-auto-bar small{display:block!important;font-size:12.5px!important;font-weight:500!important;color:#687080!important}
html body .afh-desk .flyer-map-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 340px!important;gap:14px!important;align-items:stretch!important}
html body .afh-desk .flyer-map-panel:not(.map-fullscreen-active) #flyerMap{height:max(480px,calc(100vh - 300px))!important;min-height:0!important;border:1px solid #e6dac8!important;border-radius:18px!important}
html body .afh-desk .flyer-map-panel:not(.map-fullscreen-active) .flyer-map-route{max-height:max(480px,calc(100vh - 300px))!important;box-sizing:border-box!important;overflow-y:auto!important;padding:14px!important;border:1px solid #eadfce!important;border-radius:18px!important;background:#fbf6ee!important;box-shadow:none!important}
html body .afh-desk .flyer-map-route>strong{font-size:16px!important;font-weight:800!important;color:#0d1b33!important}
html body .afh-desk .flyer-map-route>small{font-size:12.5px!important;font-weight:500!important;color:#687080!important}
html body .afh-desk .flyer-map-panel>p.muted{margin:10px 2px 0!important;font-size:13px!important;color:#687080!important}
/* Routen */
html body .afh-desk .flyer-route-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(420px,1fr))!important;gap:14px!important;align-items:start!important}
html body .afh-desk .flyer-route-card{padding:16px!important;border:1px solid #eadfce!important;border-radius:18px!important;background:#fffdf9!important;box-shadow:none!important}
html body .afh-desk .flyer-route-card>header strong{font-size:15.5px!important;font-weight:800!important;color:#0d1b33!important}
html body .afh-desk .flyer-route-card>header small{font-size:12.5px!important;font-weight:500!important;color:#687080!important}
html body .afh-desk .flyer-route-next-step{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:14px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fbf6ee!important}
html body .afh-desk .flyer-route-next-step>div:first-child>*{display:block!important}
html body .afh-desk .flyer-route-next-step strong{font-size:14px!important;font-weight:800!important;color:#0340c0!important}
html body .afh-desk .flyer-route-next-step span,html body .afh-desk .flyer-route-next-step small,html body .afh-desk .flyer-route-next-step p{margin:2px 0 0!important;font-size:13px!important;line-height:1.4!important;font-weight:500!important;color:#687080!important}
html body .afh-desk .flyer-route-next-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html body .afh-desk .flyer-route-next-actions button{width:100%!important;height:40px!important;min-height:0!important;border-radius:12px!important;font-size:13px!important;font-weight:700!important}
/* Tabellen */
html body .afh-desk .admin-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important}
html body .afh-desk .admin-table th{padding:10px 12px!important;border:0!important;border-bottom:1px solid #eadfce!important;background:#fbf6ee!important;color:#687080!important;font-size:12px!important;font-weight:700!important;text-align:left!important;white-space:nowrap}
html body .afh-desk .admin-table th:first-child{border-radius:10px 0 0 10px!important}
html body .afh-desk .admin-table th:last-child{border-radius:0 10px 10px 0!important}
html body .afh-desk .admin-table td{padding:12px!important;border:0!important;border-bottom:1px solid #f0e7d9!important;background:transparent!important;color:#0d1b33!important;font-size:14px!important;font-weight:500!important;vertical-align:middle!important}
html body .afh-desk .admin-table tr:last-child td{border-bottom:0!important}
html body .afh-desk .admin-table td small{font-size:12px!important;color:#687080!important}
html body .afh-desk .admin-table td:not(:first-child),html body .afh-desk .admin-table th:not(:first-child){font-variant-numeric:tabular-nums}
html body .afh-desk .admin-table tr.nutzer-inaktiv td{opacity:.55}
/* Auswertung */
html body .afh-desk .reports-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
html body .afh-desk .reports-grid>*{grid-column:auto!important;min-width:0!important}
html body .afh-desk .reports-grid>.admin-panel:nth-child(n+3){grid-column:1/-1!important}
/* Nutzerverwaltung */
html body .afh-desk .nutzer-grid{display:grid!important;grid-template-columns:380px minmax(0,1fr)!important;gap:18px!important;align-items:start!important}
html body .afh-desk .nutzer-grid>*{grid-column:auto!important;min-width:0!important}
html body .afh-desk .nutzer-grid>.admin-panel:nth-child(n+3){grid-column:1/-1!important}
html body .afh-desk .nutzer-grid>.admin-panel:nth-child(2){overflow-x:auto!important}
html body .afh-desk .nutzer-form{display:flex!important;flex-direction:column!important;gap:12px!important;max-width:none!important}
html body .afh-desk .nutzer-form label{display:flex!important;flex-direction:column!important;gap:5px!important;font-size:13px!important;font-weight:600!important;color:#27324a!important}
html body .afh-desk .nutzer-form input:not([type=checkbox]),html body .afh-desk .nutzer-form select{height:44px!important;box-sizing:border-box!important;padding:0 14px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fffaf2!important;font:500 15px Inter,system-ui,sans-serif!important;color:#0d1b33!important;box-shadow:none!important}
html body .afh-desk .nutzer-form input:focus,html body .afh-desk .nutzer-form select:focus{outline:0!important;border-color:#0a5fe0!important;box-shadow:0 0 0 3px rgba(18,105,232,.16)!important}
html body .afh-desk .nutzer-form fieldset{margin:0!important;padding:10px 12px 12px!important;border:1px solid #eadfce!important;border-radius:14px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px 10px!important}
html body .afh-desk .nutzer-form legend{padding:0 6px!important;font-size:13px!important;font-weight:700!important;color:#27324a!important}
html body .afh-desk .nutzer-form .nutzer-bezirk-check,html body .afh-desk .nutzer-form .nutzer-check,html body .afh-desk .nutzer-switch{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;font-size:13.5px!important;font-weight:500!important;color:#0d1b33!important;white-space:nowrap}
html body .afh-desk input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;margin:0!important;accent-color:#0a5fe0}
html body .afh-desk .nutzer-form button.primary{height:46px!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;font-size:14.5px!important;font-weight:700!important;box-shadow:0 6px 16px rgba(18,105,232,.28)!important}
html body .afh-desk .nutzer-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
html body .afh-desk .nutzer-actions button{height:34px!important;min-height:0!important;padding:0 12px!important;border:1px solid #e0d3bf!important;border-radius:999px!important;background:#fffdf9!important;color:#0a5fe0!important;font-size:12.5px!important;font-weight:700!important;box-shadow:none!important;white-space:nowrap}
}
@media (min-width:621px){
.afh-desk .afh-picker-sub .afh-picker-row{border-top:0!important}
html body .afh-desk .flyer-map-panel .flyer-route-close-x::before{margin:0 0 0 4px}
html body .afh-desk .flyer-map-panel:not(.map-fullscreen-active) #flyerMap{height:max(460px,calc(100vh - 410px))!important}
html body .afh-desk .flyer-map-panel:not(.map-fullscreen-active) .flyer-map-route{max-height:max(460px,calc(100vh - 410px))!important}
html body .afh-desk .flyer-show-all{width:100%!important;height:40px!important;min-height:0!important;margin-top:10px!important;border:1px solid #e0d3bf!important;border-radius:12px!important;background:#fffdf9!important;color:#0a5fe0!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important}
html body .afh-desk .nutzer-grid{grid-template-columns:380px minmax(0,1fr)!important}
html body .afh-desk .nutzer-grid>.admin-panel:nth-child(2){order:-1!important;grid-column:1/-1!important}
html body .afh-desk .nutzer-grid>.admin-panel:nth-child(n+3){grid-column:auto!important}
html body .afh-desk .nutzer-actions{flex-wrap:nowrap!important}
html body .afh-desk .admin-table tr.nutzer-inaktiv td{opacity:1!important;color:#7a8799!important}
}
@media (min-width:621px){
html body .afh-desk .flyer-map-panel:not(.map-fullscreen-active) .flyer-map-shell{min-height:0!important;height:auto!important}
html body .afh-desk .admin-content .reports-grid>.admin-panel.admin-wide:nth-child(-n+2){grid-column:span 1!important;width:auto!important;max-width:none!important}
html body .afh-desk .admin-table td.nutzer-actions{display:table-cell!important;white-space:nowrap!important}
html body .afh-desk .admin-table td.nutzer-actions button{margin:2px 4px 2px 0!important}
}
@media (min-width:621px) and (max-width:1100px){
html body .afh-desk .afh-desk-nav .admin-nav{justify-content:center!important;width:52px!important;padding:0!important}
html body .afh-desk .flyer-map-shell{grid-template-columns:minmax(0,1fr) 300px!important}
html body .afh-desk .reports-grid,html body .afh-desk .nutzer-grid{grid-template-columns:minmax(0,1fr)!important}
html body .afh-desk .admin-content .reports-grid>.admin-panel.admin-wide:nth-child(-n+2){grid-column:1/-1!important}
html body .afh-desk .admin-table td.nutzer-actions{white-space:normal!important}
}
@media (min-width:621px){
html body .afh-desk .reports-grid .admin-table,html body .afh-desk .afh-desk-more .admin-table{min-width:0!important;table-layout:fixed!important}
html body .afh-desk .reports-grid .admin-table th:not(:first-child),html body .afh-desk .reports-grid .admin-table td:not(:first-child){width:110px!important;text-align:right!important}
html body .afh-desk .reports-grid>.admin-panel{overflow:hidden!important}
/* Import */
html body .afh-desk .flyer-import-form{display:flex!important;flex-direction:column!important;gap:12px!important;max-width:520px!important}
html body .afh-desk .flyer-import-form label{display:flex!important;flex-direction:column!important;gap:5px!important;font-size:13px!important;font-weight:600!important;color:#27324a!important}
html body .afh-desk .flyer-import-form label.checkline{flex-direction:row!important;align-items:center!important;gap:8px!important;font-size:14px!important;font-weight:500!important}
html body .afh-desk .flyer-import-form input:not([type=checkbox]),html body .afh-desk .flyer-import-form select{height:44px!important;box-sizing:border-box!important;padding:0 14px!important;border:1px solid #e6dac8!important;border-radius:12px!important;background:#fffaf2!important;font:500 15px Inter,system-ui,sans-serif!important;color:#0d1b33!important;box-shadow:none!important}
html body .afh-desk .flyer-import-form input[type=file]{padding:8px 10px!important;height:auto!important}
html body .afh-desk .flyer-import-form button.primary{height:46px!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;font-size:14.5px!important;font-weight:700!important;box-shadow:0 6px 16px rgba(18,105,232,.28)!important}
html body .afh-desk .flyer-import-form .muted{margin:0!important;font-size:13px!important;line-height:1.45!important;color:#687080!important}
/* Zahlen & Export */
html body .afh-desk .flyer-report-panel{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;padding:14px!important;border:1px solid #eadfce!important;border-radius:16px!important;background:#fbf6ee!important;box-shadow:none!important}
html body .afh-desk .flyer-report-panel>div{flex:0 0 auto!important;min-width:170px!important;min-height:0!important;padding:10px 14px!important;border:1px solid #eadfce!important;border-radius:12px!important;background:#fffdf9!important;box-shadow:none!important}
html body .afh-desk .flyer-report-panel>div strong{font-size:22px!important;font-weight:800!important;color:#0d1b33!important}
html body .afh-desk .flyer-report-panel>div span{font-size:13px!important;font-weight:700!important;color:#27324a!important}
html body .afh-desk .flyer-report-panel>div small{font-size:12px!important;font-weight:500!important;color:#687080!important}
html body .afh-desk .flyer-export-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:40px!important;min-height:0!important;padding:0 16px!important;border:1px solid #e0d3bf!important;border-radius:999px!important;background:#fffdf9!important;color:#0a5fe0!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important}
html body .afh-desk .flyer-export-link:hover{border-color:#0a5fe0!important;background:#edf4ff!important}
html body .afh-desk .flyer-admin-checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:start!important}
html body .afh-desk .flyer-admin-checks>*{padding:16px!important;border:1px solid #eadfce!important;border-radius:16px!important;background:#fffdf9!important;box-shadow:none!important}
html body .afh-desk .flyer-admin-checks h3{margin:0 0 10px!important;font-size:15px!important;font-weight:800!important;color:#0d1b33!important}
html body .afh-desk .flyer-daily-check .flyer-export-link{margin-top:10px!important}
}
@media (min-width:621px){
.afh-desk:has(.flyer-map-panel.map-fullscreen-active) .afh-desk-top,.afh-desk:has(.flyer-map-panel.map-fullscreen-active) .afh-desk-side{display:none!important}
.afh-desk .admin-search-hidden{display:none!important}
}
/* Desktop: KFR-Farben (Navy, Blau, Marienkäfer-Rot) auf dem warmen AFH-Hintergrund */
@media (min-width:621px){
html body .afh-desk .afh-desk-nav .admin-nav{color:rgba(255,255,255,.82)!important}
html body .afh-desk .afh-desk-nav .admin-nav:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
html body .afh-desk .afh-desk-nav .admin-nav.active{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 8px 20px rgba(3,64,192,.45)!important}
.afh-desk .afh-desk-side{border-right:0;box-shadow:inset -1px 0 0 rgba(255,255,255,.06)}
.afh-desk .afh-desk-brand small{color:#6fb4ff}
.afh-desk .afh-desk-user{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.06)}
.afh-desk .afh-desk-avatar{background:linear-gradient(135deg,#0a66e8,#0340c0);color:#fff}
.afh-desk .afh-desk-user small{color:rgba(255,255,255,.62)}
html body .afh-desk .afh-desk-user button{border-color:rgba(255,255,255,.16)!important;background:rgba(255,255,255,.06)!important}
.afh-desk .afh-desk-kfr{display:flex;align-items:center;gap:7px;margin:-10px 6px 0;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.5)}
.afh-desk .afh-desk-kfr::before{content:"";width:7px;height:7px;border-radius:50%;background:#e0241b;box-shadow:0 0 0 3px rgba(224,36,27,.22)}
.afh-desk .afh-desk-kfr b{color:rgba(255,255,255,.8);font-weight:700}
.afh-desk .afh-desk-hero-actions a.is-main{border-color:transparent;background:linear-gradient(135deg,#0a66e8,#0340c0);color:#fff;box-shadow:0 8px 20px rgba(3,64,192,.45)}
.afh-desk .afh-desk-hero-text small{color:#6fb4ff}
.afh-desk .afh-desk-title small{color:#8a7a62}
html body .afh-desk .admin-kpi>span{background:#e8f0ff!important;color:#0a5fe0!important}
html body .afh-desk .admin-kpi:nth-child(4)>span{background:#fdeceb!important;color:#c8201a!important}
html body .afh-desk .admin-table th{background:#f6eee1!important;color:#6b5d48!important}
.afh-desk .afh-picker-row,.afh-desk .afh-picker-group{border-color:#eadfce!important;background:#fffdf9!important;box-shadow:none!important}
.afh-desk .afh-picker .afh-picker-search{border-color:#e6dac8!important;background:#fffaf2!important}
}
@media (min-width:621px) and (max-width:1100px){.afh-desk .afh-desk-kfr{display:none}}
@media (min-width:621px){
/* Die Details stehen am Desktop in der Seitenspalte, die Sprechblase wäre doppelt */
.afh-desk .flyer-map-panel .leaflet-popup:has(.flyer-map-popup){display:none!important}
/* Straßenzüge */
html body .afh-desk .flyer-street-panel{margin-top:14px!important;padding:16px!important;border:1px solid #eadfce!important;border-radius:18px!important;background:#fbf6ee!important;box-shadow:none!important}
html body .afh-desk .flyer-street-panel>header{margin:0 0 10px!important}
html body .afh-desk .flyer-street-panel h4{margin:0!important;font-size:16px!important;font-weight:800!important;color:#0d1b33!important}
html body .afh-desk .flyer-street-panel>header small{font-size:12.5px!important;font-weight:500!important;color:#687080!important}
html body .afh-desk .flyer-street-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
html body .afh-desk .flyer-street-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;min-height:0!important;padding:10px 14px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fffdf9!important;box-shadow:none!important}
html body .afh-desk .flyer-street-row.done{border-color:#bfe3cd!important;background:#f3fbf6!important}
html body .afh-desk .flyer-street-row>div{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:baseline!important;gap:0 10px!important;min-width:0!important}
html body .afh-desk .flyer-street-row>div>b{display:none!important}
html body .afh-desk .flyer-street-row>div>strong{grid-column:1/-1!important;font-size:14.5px!important;font-weight:700!important;color:#0d1b33!important}
html body .afh-desk .flyer-street-row>div>span{font-size:12.5px!important;font-weight:700!important;color:#0a5fe0!important}
html body .afh-desk .flyer-street-row.done>div>span{color:#128447!important}
html body .afh-desk .flyer-street-row>div>small{font-size:12.5px!important;font-weight:500!important;color:#687080!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .afh-desk .flyer-street-row>nav{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:6px!important;width:auto!important}
html body .afh-desk .flyer-street-row>nav>*{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:34px!important;min-height:0!important;padding:0 12px!important;border:1px solid #e0d3bf!important;border-radius:999px!important;background:#fffdf9!important;color:#27324a!important;font-size:12.5px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important;white-space:nowrap!important}
html body .afh-desk .flyer-street-row>nav>*:hover{border-color:#0a5fe0!important;color:#0a5fe0!important}
html body .afh-desk .flyer-street-row>nav>[data-flyer-drop-done]{border-color:transparent!important;background:#128447!important;color:#fff!important}
html body .afh-desk .flyer-street-row.done>nav>[data-flyer-drop-done]{border-color:#e0d3bf!important;background:#fffdf9!important;color:#27324a!important}
}
@media (min-width:621px){
/* Detailkarte der angeklickten Stelle in der Seitenspalte */
html body .afh-desk #flyerMapInfo .flyer-map-info:not(.planning-compact){position:relative!important;display:block!important;margin:10px 0 0!important;padding:14px!important;border:1px solid #eadfce!important;border-radius:16px!important;background:#fffdf9!important;box-shadow:none!important}
html body .afh-desk #flyerMapInfo .flyer-map-info.done:not(.planning-compact){border-color:#bfe3cd!important;background:#f3fbf6!important}
html body .afh-desk #flyerMapInfo .flyer-map-close{position:absolute!important;top:10px!important;right:10px!important;left:auto!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-height:0!important;padding:0!important;border:1px solid #e0d3bf!important;border-radius:50%!important;background:#fffdf9!important;color:#27324a!important;font-size:17px!important;line-height:1!important;box-shadow:none!important}
html body .afh-desk #flyerMapInfo .flyer-info-head{display:flex!important;align-items:center!important;gap:10px!important;margin:0 36px 6px 0!important}
html body .afh-desk #flyerMapInfo .flyer-info-head strong{display:block!important;font-size:15px!important;font-weight:800!important;color:#0d1b33!important}
html body .afh-desk #flyerMapInfo .flyer-info-head small,html body .afh-desk #flyerMapInfo .flyer-map-info>span,html body .afh-desk #flyerMapInfo .flyer-extra-info small{display:block!important;font-size:12.5px!important;font-weight:500!important;line-height:1.4!important;color:#687080!important}
html body .afh-desk #flyerMapInfo .flyer-map-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:12px!important}
html body .afh-desk #flyerMapInfo .flyer-map-actions>a,html body .afh-desk #flyerMapInfo .flyer-map-actions>button,html body .afh-desk #flyerMapInfo .flyer-symbol-menu>summary{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:38px!important;min-height:0!important;box-sizing:border-box!important;margin:0!important;padding:0 10px!important;border:1px solid #e0d3bf!important;border-radius:12px!important;background:#fffdf9!important;color:#27324a!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important;cursor:pointer;list-style:none}
html body .afh-desk #flyerMapInfo .flyer-map-actions>*:hover{border-color:#0a5fe0!important}
html body .afh-desk #flyerMapInfo .flyer-map-actions>a{border-color:transparent!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important}
html body .afh-desk #flyerMapInfo .flyer-map-actions>[data-flyer-drop-done]{border-color:transparent!important;background:#128447!important;color:#fff!important}
html body .afh-desk #flyerMapInfo .flyer-map-info.done .flyer-map-actions>[data-flyer-drop-done]{border-color:#e0d3bf!important;background:#fffdf9!important;color:#27324a!important}
html body .afh-desk #flyerMapInfo .flyer-symbol-menu{grid-column:1/-1!important;margin:0!important}
html body .afh-desk #flyerMapInfo .flyer-map-actions>button.danger{grid-column:1/-1!important;border-color:#f3c9c6!important;background:#fff5f4!important;color:#c8201a!important}
}

/* Handy: KFR-Farben – Blau bleibt Akzent auf Knöpfen */
body #afhMap .afh-map-fab:not(.light){background:linear-gradient(135deg,#0a66e8,#0340c0)!important}
body .flyer-route-review .flyer-review-list li>b{background:linear-gradient(135deg,#0a66e8,#0340c0)!important}

/* ===== Redesign 2026 · Anmeldeseite (KFR-Navy, warme Karte) ===== */
html body.logged-out{background:radial-gradient(circle at 18% 0%,rgba(10,102,232,.34),transparent 42%),radial-gradient(circle at 92% 100%,rgba(10,102,232,.2),transparent 40%),linear-gradient(160deg,#14294f,#081428)!important;background-attachment:fixed!important}
html body.logged-out .login-screen{position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:20px 16px calc(env(safe-area-inset-bottom,0px) + 20px)!important;background:transparent!important;overflow-y:auto!important}
html body.logged-out .login-card{position:relative!important;display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;max-width:400px!important;margin:auto!important;padding:28px 26px 22px!important;border:1px solid #e6dac8!important;border-radius:26px!important;background:#fffdf9!important;box-shadow:0 24px 60px rgba(0,0,0,.38)!important;overflow:hidden!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important}
html body.logged-out .login-card::before{content:"🐞"!important;position:absolute!important;right:18px!important;top:16px!important;transform:rotate(18deg)!important;font-size:24px!important;line-height:1!important;color:inherit!important;opacity:1!important;background:none!important;width:auto!important;height:auto!important}
html body.logged-out .login-card::after{display:none!important}
html body.logged-out .login-logo-img{align-self:center!important;width:92px!important;height:92px!important;margin:0!important;padding:8px!important;box-sizing:border-box!important;border-radius:24px!important;background:#fff!important;object-fit:contain!important;box-shadow:0 6px 18px rgba(60,44,20,.1)!important}
html body.logged-out .login-card h2{margin:4px 0 6px!important;font-size:26px!important;line-height:1.15!important;font-weight:800!important;letter-spacing:-.02em!important;text-align:center!important;color:#0d1b33!important}
html body.logged-out .login-card h2::after{content:"Flyerverteilung planen und abhaken"!important;display:block!important;margin-top:6px!important;font-size:14px!important;font-weight:500!important;letter-spacing:0!important;color:#687080!important}
html body.logged-out .login-card label{display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;font-size:13px!important;font-weight:600!important;color:#27324a!important}
html body.logged-out .login-card input{width:100%!important;height:50px!important;box-sizing:border-box!important;margin:0!important;padding:0 14px!important;border:1px solid #e0d3bf!important;border-radius:14px!important;background:#fff!important;font:500 16px Inter,system-ui,sans-serif!important;color:#0d1b33!important;box-shadow:none!important}
html body.logged-out .login-card input:focus{outline:0!important;border-color:#0a5fe0!important;box-shadow:0 0 0 3px rgba(10,95,224,.18)!important}
html body.logged-out .login-card button.primary{height:52px!important;margin:6px 0 0!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;font:700 16px Inter,system-ui,sans-serif!important;box-shadow:0 8px 20px rgba(3,64,192,.32)!important}
html body.logged-out .login-card .error-text{margin:0!important;min-height:0!important;font-size:13.5px!important;font-weight:600!important;color:#b01c16!important;text-align:center!important}
html body.logged-out .login-card .error-text:empty{display:none!important}
html body.logged-out .login-footnote{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:6px 0 0!important;font-size:12.5px!important;font-weight:600!important;color:#687080!important}
html body.logged-out .login-footnote::before{content:"";width:7px;height:7px;border-radius:50%;background:#e0241b;box-shadow:0 0 0 3px rgba(224,36,27,.18)}
/* Der Installationshinweis darf den Einloggen-Knopf nicht verdecken */
html body.logged-out .pwa-install-card,html body.logged-out .pwa-notification-card{display:none!important}
@media (min-width:621px){html body .afh-desk .flyer-workspace-nav.two{grid-template-columns:repeat(2,minmax(110px,1fr))!important}}
.flyer-workspace-nav.two{grid-template-columns:repeat(2,minmax(0,1fr))!important}

/* ===== Redesign 2026 · Auswertung: Diagramm, Statuskacheln, Aufschlüsselungen ===== */
.afh-an-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.afh-an-card{min-width:0;margin:0;padding:16px;border:1px solid #e6dac8;border-radius:22px;background:#fffdf9;box-shadow:0 6px 20px rgba(60,44,20,.06);color:#0d1b33;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
.afh-an-card>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0;border:0}
html body .afh-an-card h3{margin:0!important;font-size:15.5px!important;line-height:1.25!important;font-weight:800!important;letter-spacing:-.01em!important;color:#0d1b33!important}
.afh-an-readout{margin:0;font-size:12.5px;font-weight:600;color:#5a6475;text-align:right;font-variant-numeric:tabular-nums}
.afh-an-empty{margin:0;padding:16px;border:1px dashed #e0d3bf;border-radius:14px;font-size:13.5px;font-weight:500;color:#5a6475;text-align:center}
/* Tagesdiagramm: eine Farbe, dünne Balken, oben abgerundet */
.afh-an-days{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:2px;height:150px;border-bottom:1px solid #e6dac8}
html body .afh-an-day{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;gap:0!important;min-width:0!important;min-height:0!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:6px 6px 0 0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;font-family:inherit!important}
html body .afh-an-day:hover,html body .afh-an-day:focus-visible{background:#f3ead9!important;outline:0!important}
.afh-an-col{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:100%;min-height:0}
.afh-an-col b{margin-bottom:3px;font-size:11.5px;line-height:1;font-weight:800;color:#0d1b33;font-variant-numeric:tabular-nums}
.afh-an-col i{display:block;width:62%;max-width:22px;border-radius:4px 4px 0 0;background:#0a5fe0}
.afh-an-day.today .afh-an-col i{background:#0340c0}
.afh-an-day small{flex:0 0 auto;height:20px;margin-bottom:-21px;padding-top:5px;font-size:10.5px;line-height:1;font-weight:600;color:#5a6475}
.afh-an-day.today small{font-weight:800;color:#0d1b33}
.afh-an-axis{display:flex;justify-content:space-between;margin:26px 0 0;font-size:11.5px;font-weight:500;color:#5a6475}
.afh-an-table{margin-top:10px}
.afh-an-table>summary{display:inline-flex;align-items:center;min-height:32px;font-size:12.5px;font-weight:700;color:#0a5fe0;cursor:pointer}
.afh-an-table table{width:100%;margin-top:6px;border-collapse:collapse;font-size:13px}
.afh-an-table th,.afh-an-table td{padding:6px 4px;border-bottom:1px solid #f0e7d9;text-align:left;font-weight:500;color:#0d1b33}
.afh-an-table th{font-size:12px;font-weight:700;color:#5a6475}
.afh-an-table td:last-child,.afh-an-table th:last-child{text-align:right;font-variant-numeric:tabular-nums}
/* Statuskacheln: Symbol + Beschriftung, Farbe nie allein */
.afh-an-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.afh-an-tile{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:12px;border:1px solid #eadfce;border-radius:14px;background:#fff}
.afh-an-tile>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f0e7d9;color:#4f5b6d}
.afh-an-tile>span svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.afh-an-tile.done>span{background:#e3f4ea;color:#0f6f3b}
.afh-an-tile.due>span{background:#fdf0d9;color:#9a5a00}
.afh-an-tile.hint>span{background:#fdeceb;color:#b01c16}
.afh-an-tile strong{font-size:22px;line-height:1.1;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.afh-an-tile b{grid-column:2;font-size:13px;line-height:1.25;font-weight:700;color:#27324a}
.afh-an-tile small{grid-column:2;font-size:11.5px;line-height:1.3;font-weight:500;color:#5a6475}
/* Gestapelte Balken je Bezirk / Art */
.afh-an-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px;font-size:12px;font-weight:600;color:#4f5b6d}
.afh-an-legend span{display:inline-flex;align-items:center;gap:6px}
.afh-an-legend i{width:10px;height:10px;border-radius:3px;background:#128447}
.afh-an-legend .due i{background:#d97706}
.afh-an-legend .open i{background:#d9cdb8}
.afh-an-row{padding:10px 0;border-top:1px solid #f0e7d9}
.afh-an-legend+.afh-an-row,.afh-an-card>header+.afh-an-row{border-top:0;padding-top:2px}
.afh-an-rowhead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:baseline;margin-bottom:7px}
.afh-an-rowhead strong{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-an-rowhead span{grid-column:1;grid-row:2;font-size:12px;font-weight:500;color:#5a6475}
.afh-an-rowhead b{grid-column:2;grid-row:1/3;align-self:center;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
.afh-an-rowhead span:empty{display:none}
.afh-an-stack{display:flex;gap:2px;height:10px}
.afh-an-stack i{display:block;flex-basis:0;min-width:4px;height:10px;background:#128447}
.afh-an-stack i:first-child{border-radius:4px 0 0 4px}
.afh-an-stack i:last-child{border-radius:0 4px 4px 0}
.afh-an-stack i:only-child{border-radius:4px}
.afh-an-stack i.due{background:#d97706}
.afh-an-stack i.open{background:#d9cdb8}
.afh-an-single{height:10px;border-radius:4px;background:#f0e7d9}
.afh-an-single i{display:block;height:10px;border-radius:0 4px 4px 0;background:#0a5fe0}
@media (min-width:621px){
.afh-desk .afh-an-top{display:grid;gap:14px}
.afh-desk .afh-an-exports{display:flex;flex-wrap:wrap;gap:8px}
.afh-desk .afh-an-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.afh-desk .afh-an-chartcard{grid-column:1/-1}
.afh-desk .afh-an-card{padding:20px}
.afh-desk .afh-an-days{height:200px;gap:2px}
.afh-desk .afh-an-col i{max-width:24px}
.afh-desk .afh-an-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:621px) and (max-width:1100px){.afh-desk .afh-an-grid{grid-template-columns:minmax(0,1fr)}}
@media (min-width:1101px){
.afh-desk .afh-an-stand,.afh-desk .afh-an-person{grid-column:1/-1}
.afh-desk .afh-an-stand .afh-an-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
.afh-desk .afh-an-person{order:5}
html body .afh-desk .afh-an-top .admin-kpi:nth-child(3)>span{background:#e8f0ff!important;color:#0a5fe0!important}
html body .afh-desk .afh-an-top .admin-kpi:nth-child(4)>span{background:#e7f6ee!important;color:#128447!important}
}
/* Auswertung: Zeitraum-Umschalter, antippbare Kacheln, älteste Stellen */
.afh-an-chartcard>header{align-items:center;margin-bottom:6px}
.afh-an-chartcard .afh-an-readout{margin:0 0 12px;text-align:left}
.afh-an-toggle{display:inline-grid;grid-template-columns:repeat(2,auto);gap:2px;padding:3px;border:1px solid #e6dac8;border-radius:999px;background:#fbf6ee}
html body .afh-an-toggle button{height:38px!important;min-height:0!important;margin:0!important;padding:0 14px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#27324a!important;font:700 12.5px Inter,system-ui,sans-serif!important;box-shadow:none!important;white-space:nowrap}
html body .afh-an-toggle button.active{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 3px 10px rgba(3,64,192,.28)!important}
html body button.afh-an-tile{width:100%!important;min-height:0!important;margin:0!important;text-align:left!important;font-family:inherit!important;color:#0d1b33!important;box-shadow:none!important;cursor:pointer;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;column-gap:10px!important;align-items:center!important;padding:12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important}
html body button.afh-an-tile:hover,html body button.afh-an-tile:focus-visible{border-color:#0a5fe0!important;outline:0!important}
html body button.afh-an-tile strong{font-size:22px!important;line-height:1.1!important;font-weight:800!important;letter-spacing:-.02em!important}
html body button.afh-an-tile b{font-size:13px!important;font-weight:700!important;color:#0a5fe0!important}
html body .afh-an-link{height:auto!important;min-height:36px!important;margin:0!important;padding:0 2px!important;border:0!important;background:transparent!important;color:#0a5fe0!important;font:700 12.5px Inter,system-ui,sans-serif!important;box-shadow:none!important;cursor:pointer;white-space:nowrap}
.afh-an-oldest .afh-open-rows{display:grid;gap:8px}
html body .afh-an-oldrow{display:grid!important;grid-template-columns:48px minmax(0,1fr) 18px!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:56px!important;margin:0!important;padding:8px 12px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;color:#0d1b33!important;text-align:left!important;font-family:inherit!important;box-shadow:none!important;cursor:pointer}
html body .afh-an-oldrow:hover{border-color:#0a5fe0!important}
.afh-an-weeks{display:grid;place-items:center;width:48px;height:40px;border-radius:10px;background:#fdf0d9;color:#7a4700}
.afh-an-weeks b{font-size:16px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.afh-an-weeks small{font-size:9.5px;line-height:1;font-weight:700}
.afh-an-oldrow .afh-open-text strong{display:block;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-an-oldrow .afh-open-text small{display:block;font-size:12px;font-weight:500;color:#5a6475;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-an-oldrow svg{width:16px;height:16px;fill:none;stroke:#a39a88;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:1101px){.afh-desk .afh-an-oldest{grid-column:1/-1;order:6}.afh-desk .afh-an-oldest .afh-open-rows{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}}
/* Auswertung: alles Antippbare */
html body .afh-an-rowbtn{display:block!important;width:100%!important;min-height:0!important;margin:0!important;padding:10px 8px!important;border:0!important;border-top:1px solid #f0e7d9!important;border-radius:10px!important;background:transparent!important;color:#0d1b33!important;text-align:left!important;font-family:inherit!important;box-shadow:none!important;cursor:pointer}
html body .afh-an-rowbtn:hover,html body .afh-an-rowbtn:focus-visible{background:#f8f0e2!important;outline:0!important}
html body .afh-an-legend+.afh-an-rowbtn,html body .afh-an-card>header+.afh-an-rowbtn{border-top:0!important}
.afh-an-rowbtn .afh-an-rowhead strong::after{content:" ›";color:#0a5fe0;font-weight:800}
.afh-an-card .afh-an-row:not(.afh-an-rowbtn){padding-left:8px;padding-right:8px}
.afh-an-axis em{font-style:normal;font-weight:600;color:#0a5fe0}
html body .afh-rep-big>button{display:block!important;min-width:0!important;min-height:0!important;margin:0!important;padding:4px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#fff!important;text-align:center!important;font-family:inherit!important;box-shadow:none!important;cursor:pointer}
html body .afh-rep-big>button+button{border-left:1px solid rgba(255,255,255,.18)!important;border-radius:0 12px 12px 0!important}
html body .afh-rep-big>button:active{background:rgba(255,255,255,.12)!important}
html body .afh-rep-big>button strong{display:block!important;font-size:36px!important;line-height:1!important;font-weight:900!important;letter-spacing:-.03em!important;color:#fff!important}
html body .afh-rep-big>button span{display:block!important;margin-top:4px!important;font-size:11px!important;font-weight:600!important;color:rgba(255,255,255,.82)!important}
html body .afh-desk .admin-kpi.is-link{cursor:pointer;transition:border-color .15s,transform .15s}
html body .afh-desk .admin-kpi.is-link:hover,html body .afh-desk .admin-kpi.is-link:focus-visible{border-color:#0a5fe0!important;outline:0!important;transform:translateY(-1px)}
html body .afh-desk .admin-kpi.is-link b::after{content:" ›";color:#0a5fe0}
.afh-report-sheet .afh-open-group>summary small{min-width:24px;padding:2px 8px;border-radius:999px;background:#f0e7d9;color:#27324a;font-weight:800;text-align:center}
.afh-report-sheet .afh-open-group.due>summary small{background:#fdf0d9;color:#7a4700}
/* Auswertung: Bezirksfilter und Vorwochen-Vergleich */
.afh-an-filter{display:flex;gap:6px;margin:0 0 12px;padding:2px 2px 4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.afh-an-filter::-webkit-scrollbar{display:none}
html body .afh-an-filter button{flex:0 0 auto!important;height:40px!important;min-height:0!important;margin:0!important;padding:0 16px!important;border:1px solid #e0d3bf!important;border-radius:999px!important;background:#fffdf9!important;color:#27324a!important;font:700 13px Inter,system-ui,sans-serif!important;box-shadow:none!important;white-space:nowrap;cursor:pointer}
html body .afh-an-filter button.active{border-color:transparent!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 4px 12px rgba(3,64,192,.28)!important}
html body .afh-rep-big>button em{display:block!important;margin-top:2px!important;font-style:normal!important;font-size:10.5px!important;font-weight:500!important;color:rgba(255,255,255,.7)!important}
@media (min-width:621px){
.afh-desk .afh-an-filter{flex-wrap:wrap;margin:0;overflow:visible}
html body .afh-desk button.afh-desk-bar{width:100%!important;min-height:0!important;margin:0!important;padding:12px 8px!important;border:0!important;border-top:1px solid #f0e7d9!important;border-radius:10px!important;background:transparent!important;color:#0d1b33!important;text-align:left!important;font-family:inherit!important;box-shadow:none!important;cursor:pointer}
html body .afh-desk button.afh-desk-bar:first-of-type{border-top:0!important}
html body .afh-desk button.afh-desk-bar:hover,html body .afh-desk button.afh-desk-bar:focus-visible{background:#f8f0e2!important;outline:0!important}
.afh-desk button.afh-desk-bar strong::after{content:" ›";color:#0a5fe0}
}
/* Diagramm: Beschriftung sitzt über dem Balken und verändert seine Höhe nicht */
.afh-an-col{box-sizing:border-box;padding-top:18px}
.afh-an-col i{position:relative;flex:0 0 auto}
.afh-an-col i b{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);margin:0 0 3px;font-style:normal;white-space:nowrap}

/* ===== Auswertung: Reiter, Flyer-Bereich, Analyse ===== */
.afh-an-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:0 0 12px;padding:4px;border:1px solid #e6dac8;border-radius:999px;background:#fffdf9}
html body .afh-an-tabs button{height:42px!important;min-height:0!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#27324a!important;font:700 13.5px Inter,system-ui,sans-serif!important;box-shadow:none!important;cursor:pointer}
html body .afh-an-tabs button.active{background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 4px 12px rgba(3,64,192,.28)!important}
.afh-an-lead{margin:0 0 12px;font-size:14.5px;line-height:1.45;font-weight:500;color:#27324a}
.afh-an-lead strong{font-weight:800;color:#0d1b33}
.afh-an-foot{margin:10px 0 0;font-size:12px;line-height:1.45;font-weight:500;color:#5a6475}
.afh-an-sub{font-size:12.5px;font-weight:600;color:#5a6475}
.afh-an-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.afh-an-data{width:100%;border-collapse:collapse;font-size:13.5px}
.afh-an-data th{padding:8px 8px;border-bottom:1px solid #e6dac8;font-size:11.5px;font-weight:700;color:#5a6475;text-align:right;white-space:nowrap}
.afh-an-data td{padding:10px 8px;border-bottom:1px solid #f0e7d9;font-weight:600;color:#0d1b33;text-align:right;font-variant-numeric:tabular-nums;vertical-align:top}
.afh-an-data th:first-child,.afh-an-data td:first-child{text-align:left;padding-left:0}
.afh-an-data td:first-child{font-weight:700;white-space:nowrap}
.afh-an-data td small{display:block;margin-top:1px;font-size:11.5px;font-weight:500;color:#5a6475;white-space:normal}
.afh-an-data td:last-child{padding-right:0}
.afh-an-data tr:last-child td{border-bottom:0}
.afh-fly-dot{display:inline-block;width:10px;height:10px;margin-right:7px;border-radius:3px;background:#0a5fe0;vertical-align:baseline}
.afh-fly-dot.sgb5{background:#c2410c}
.afh-fly-dot.familie{background:#7c3aed}
.afh-fly-state{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#27324a;white-space:nowrap}
.afh-fly-state i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e3f4ea;color:#0f6f3b;font-style:normal;font-size:11px;font-weight:900}
.afh-fly-state.soon i{background:#fdf0d9;color:#7a4700}
.afh-fly-state.now i{background:#b01c16;color:#fff}
.afh-fly-state.unknown i{background:#f0e7d9;color:#4f5b6d}
.afh-an-data tr.now td:first-child{color:#8f1711}
.afh-fly-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
html body .afh-fly-actions button{height:46px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:1px solid #e0d3bf!important;border-radius:14px!important;background:#fffdf9!important;color:#27324a!important;font:700 13.5px Inter,system-ui,sans-serif!important;box-shadow:none!important;cursor:pointer}
html body .afh-fly-actions button.is-main{border:0!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;box-shadow:0 6px 16px rgba(3,64,192,.28)!important}
.afh-fly-log{margin:6px 0 0;padding:0;list-style:none}
.afh-fly-log li{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:8px;min-height:44px;border-bottom:1px solid #f0e7d9;font-size:13px;font-weight:500;color:#27324a}
.afh-fly-log b{font-variant-numeric:tabular-nums;font-weight:800}
html body .afh-fly-log button{width:44px!important;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#8f1711!important;font-size:18px!important;box-shadow:none!important;cursor:pointer}
/* Gestapelte Wochenbalken nach Sorte */
.afh-an-stackcol{display:flex!important;flex-direction:column;gap:2px;background:transparent!important;border-radius:0!important}
.afh-an-stackcol u{display:block;flex-basis:0;min-height:3px;background:#0a5fe0;text-decoration:none}
.afh-an-stackcol u.sgb5{background:#c2410c}
.afh-an-stackcol u.familie{background:#7c3aed}
.afh-an-stackcol u:first-child{border-radius:4px 4px 0 0}
.afh-an-legend .afh-fly-dot{margin-right:0}
/* Hinweise "Welcher Flyer wohin" */
.afh-an-tips{display:grid;gap:8px}
html body .afh-an-tip{display:block!important;width:100%!important;min-height:0!important;margin:0!important;padding:12px 14px!important;border:1px solid #eadfce!important;border-left:4px solid #0a5fe0!important;border-radius:12px!important;background:#fff!important;color:#0d1b33!important;text-align:left!important;font-family:inherit!important;box-shadow:none!important}
html body button.afh-an-tip{cursor:pointer}
html body button.afh-an-tip:hover{border-color:#0a5fe0!important}
html body .afh-an-tip.sgb5{border-left-color:#c2410c!important}
html body .afh-an-tip.familie{border-left-color:#7c3aed!important}
html body .afh-an-tip.warn{border-left-color:#d97706!important}
.afh-an-tip strong{display:block;font-size:14px;font-weight:800}
.afh-an-tip span{display:block;margin-top:2px;font-size:12.5px;line-height:1.4;font-weight:500;color:#4f5b6d}
/* Kennzahlen-Dreier */
.afh-an-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
.afh-an-facts>div{padding:12px;border:1px solid #eadfce;border-radius:14px;background:#fff}
.afh-an-facts strong{display:block;font-size:22px;line-height:1.1;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.afh-an-facts span{display:block;margin-top:4px;font-size:11.5px;line-height:1.35;font-weight:500;color:#5a6475}
.afh-an-single.cover i{background:#128447}
/* Heatmap: eine Farbe, hell nach dunkel */
.afh-an-heat{display:grid;gap:3px}
.afh-an-heat-row{display:grid;grid-template-columns:28px repeat(7,minmax(0,1fr));gap:3px;align-items:center}
.afh-an-heat-row>span{font-size:11.5px;font-weight:700;color:#4f5b6d}
.afh-an-heat-row.head small{font-size:10px;font-weight:600;color:#5a6475;text-align:center;white-space:nowrap}
html body .afh-an-cell{display:grid!important;place-items:center!important;height:34px!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:6px!important;background:#f3ecdf!important;box-shadow:none!important;cursor:pointer;font-family:inherit!important}
html body .afh-an-cell.l1{background:#cfe0fb!important}
html body .afh-an-cell.l2{background:#9cc0f6!important}
html body .afh-an-cell.l3{background:#5e97ee!important}
html body .afh-an-cell.l4{background:#2a70e4!important}
html body .afh-an-cell.l5{background:#0340c0!important}
html body .afh-an-cell:hover,html body .afh-an-cell:focus-visible{outline:2px solid #0d1b33!important;outline-offset:1px}
.afh-an-cell b{font-size:11.5px;font-weight:800;color:#fff}
.afh-an-heatkey{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:10px 0 0;font-size:11px;font-weight:600;color:#5a6475}
.afh-an-heatkey i{width:16px;height:10px;border-radius:3px;background:#cfe0fb}
.afh-an-heatkey i.l2{background:#9cc0f6}.afh-an-heatkey i.l3{background:#5e97ee}.afh-an-heatkey i.l4{background:#2a70e4}.afh-an-heatkey i.l5{background:#0340c0}
/* Team-Vergleich: kleine Wochenbalken im selben Maßstab */
.afh-an-teams{display:grid;gap:6px}
html body .afh-an-team{display:grid!important;grid-template-columns:minmax(0,1fr) 108px 44px!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:56px!important;margin:0!important;padding:8px 10px!important;border:1px solid #eadfce!important;border-radius:14px!important;background:#fff!important;color:#0d1b33!important;text-align:left!important;font-family:inherit!important;box-shadow:none!important;cursor:pointer}
html body .afh-an-team:hover{border-color:#0a5fe0!important}
.afh-an-teamname{min-width:0}
.afh-an-teamname strong{display:block;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.afh-an-teamname small{display:block;font-size:11.5px;font-weight:500;color:#5a6475}
.afh-an-spark{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;align-items:end;height:32px;border-bottom:1px solid #e6dac8}
.afh-an-spark i{display:block;border-radius:2px 2px 0 0;background:#0a5fe0}
.afh-an-team>b{font-size:16px;font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
/* Flyer-Kasten an der Stelle */
.afh-fly-box{margin:12px 0;padding:12px;border:1px solid #eadfce;border-radius:14px;background:#fbf6ee;text-align:left}
.afh-fly-head strong{display:block;font-size:13.5px;font-weight:800;color:#0d1b33}
.afh-fly-head small{display:block;margin-top:1px;font-size:11.5px;font-weight:500;color:#5a6475}
html body .afh-fly-reset{display:inline!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#0a5fe0!important;font:700 11.5px Inter,system-ui,sans-serif!important;text-decoration:underline!important;box-shadow:none!important;cursor:pointer}
.afh-fly-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
html body .afh-fly-chip{display:inline-flex!important;align-items:center!important;gap:6px!important;width:auto!important;height:36px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:1px solid #e0d3bf!important;border-radius:999px!important;background:#fffdf9!important;color:#5a6475!important;font:700 12.5px Inter,system-ui,sans-serif!important;box-shadow:none!important;grid-column:auto!important}
html body button.afh-fly-chip{cursor:pointer}
.afh-fly-chip i{width:10px;height:10px;border-radius:3px;border:1.5px solid #a39a88;background:transparent}
html body .afh-fly-chip.active{border-color:#0d1b33!important;color:#0d1b33!important;background:#fff!important}
.afh-fly-chip.active i{border-color:#0a5fe0;background:#0a5fe0}
.afh-fly-chip.sgb5.active i{border-color:#c2410c;background:#c2410c}
.afh-fly-chip.familie.active i{border-color:#7c3aed;background:#7c3aed}
.afh-fly-qtys{display:grid;gap:6px}
.afh-fly-qtys>small{font-size:11.5px;font-weight:700;color:#5a6475}
.afh-fly-qty{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px 44px;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:#0d1b33}
.afh-fly-qty.plan{grid-template-columns:minmax(0,1fr) 44px}
.afh-fly-qty b{text-align:center;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
html body .afh-fly-qty button{width:44px!important;height:40px!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid #e0d3bf!important;border-radius:12px!important;background:#fffdf9!important;color:#0d1b33!important;font-size:18px!important;font-weight:800!important;box-shadow:none!important;cursor:pointer;grid-column:auto!important}
html body .afh-fly-qty button:disabled{opacity:.4;cursor:default}
/* Bestands-Dialog */
.afh-stock-modal{display:grid!important;gap:14px!important;width:min(440px,calc(100vw - 24px))!important;max-width:none!important;padding:18px!important;border:0!important;border-radius:22px!important;background:#fffdf9!important;font-family:Inter,system-ui,sans-serif!important}
.afh-stock-modal fieldset{margin:0;padding:0;border:0}
.afh-stock-modal legend{margin-bottom:6px;padding:0;font-size:13px;font-weight:700;color:#27324a}
.afh-stock-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.afh-stock-opts.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.afh-stock-opt{position:relative;display:block;margin:0}
.afh-stock-opt input{position:absolute;opacity:0;pointer-events:none}
.afh-stock-opt span{display:grid;place-items:center;min-height:46px;padding:4px 8px;border:1px solid #e0d3bf;border-radius:12px;background:#fff;color:#27324a;font-size:13px;font-weight:700;text-align:center;cursor:pointer}
.afh-stock-opt input:checked+span{border-color:#0a5fe0;background:#e8f0ff;color:#0340c0;box-shadow:inset 0 0 0 1px #0a5fe0}
.afh-stock-opt input:focus-visible+span{outline:2px solid #0d1b33;outline-offset:2px}
.afh-stock-amount{display:grid;gap:6px;font-size:13px;font-weight:700;color:#27324a}
html body .afh-stock-amount input{height:50px!important;padding:0 14px!important;border:1px solid #e0d3bf!important;border-radius:14px!important;background:#fff!important;font:600 18px Inter,system-ui,sans-serif!important;color:#0d1b33!important;box-shadow:none!important}
.afh-stock-help{margin:0;font-size:12px;line-height:1.4;color:#5a6475}
html body .afh-stock-modal button.primary{height:50px!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#0a66e8,#0340c0)!important;color:#fff!important;font:700 15px Inter,system-ui,sans-serif!important}
@media (min-width:621px){
.afh-desk .afh-an-tabs{display:inline-grid;grid-template-columns:repeat(3,130px);margin:0;justify-self:start}
.afh-desk .afh-fly-stock,.afh-desk .afh-fly-need{grid-column:auto}
.afh-desk .afh-fly-actions{grid-template-columns:repeat(2,minmax(0,220px))}
html body .afh-desk .afh-an-cell{height:38px!important}
html body .afh-desk .afh-an-team{grid-template-columns:minmax(0,1fr) 220px 56px!important}
}
/* Flyer-Reiter: Nachschliff */
html body .afh-an-data{width:100%!important;min-width:0!important;table-layout:auto!important;border-collapse:collapse!important}
html body .afh-an-data th{padding:8px 6px!important;border:0!important;border-bottom:1px solid #e6dac8!important;background:transparent!important;font-size:11.5px!important;font-weight:700!important;color:#5a6475!important;text-align:right!important;white-space:normal!important}
html body .afh-an-data td{padding:10px 6px!important;border:0!important;border-bottom:1px solid #f0e7d9!important;background:transparent!important;font-size:13.5px!important;text-align:right!important}
html body .afh-an-data th:first-child,html body .afh-an-data td:first-child{text-align:left!important;padding-left:0!important}
html body .afh-an-data tr:last-child td{border-bottom:0!important}
html body .afh-an-table table{min-width:0!important;width:100%!important}
html body .afh-an-table th,html body .afh-an-table td{background:transparent!important}
.afh-an-legend i.afh-fly-dot{background:#0a5fe0}
.afh-an-legend i.afh-fly-dot.sgb5{background:#c2410c}
.afh-an-legend i.afh-fly-dot.familie{background:#7c3aed}
.afh-fly-stockrows{display:grid;gap:8px}
.afh-fly-stockrow{padding:12px;border:1px solid #eadfce;border-radius:14px;background:#fff}
.afh-fly-stockrow.now{border-color:#e3b0ac;background:#fff7f6}
.afh-fly-stockrow.soon{border-color:#eccf9c;background:#fffaf0}
.afh-fly-stockhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.afh-fly-stockhead strong{font-size:14.5px;font-weight:800;color:#0d1b33}
.afh-fly-stockrow dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0}
.afh-fly-stockrow dt{font-size:11.5px;font-weight:600;color:#5a6475}
.afh-fly-stockrow dd{margin:1px 0 0;font-size:17px;line-height:1.2;font-weight:800;color:#0d1b33;font-variant-numeric:tabular-nums}
.afh-fly-stockrow dl>div:last-child dd{font-size:14px;line-height:1.45}
.afh-fly-stockrow>small{display:block;margin-top:8px;font-size:12px;line-height:1.4;font-weight:600;color:#27324a}
.afh-fly-stockrow dl>div:last-child dd.num{font-size:17px;line-height:1.2}
