/* CareSpirit Geschäftskunden-Portal — Tablet-optimiert */
:root{
	--g:#009345; --gd:#006837; --gs:#e7f6ee; --ink:#13241b; --muted:#5b6b62;
	--line:#e3e8e5; --bg:#f4f8f5; --white:#fff; --danger:#d4351c; --r:16px;
	--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box;}
.csbp-body{margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;}
.csbp-app{min-height:100dvh;}
.csbp-screen{display:none;min-height:100dvh;padding:24px;}
/* Screens mit gruenem Marken-Band: Band laeuft randlos ueber die volle Breite (Innenabstand macht der Inhalt). */
.csbp-screen[data-screen="users"],.csbp-screen[data-screen="hub"],.csbp-screen[data-screen="bookings"],.csbp-screen[data-screen="manage"],.csbp-screen[data-screen="dash"]{padding:0;}
.csbp-hub-band{border-radius:0 0 26px 26px;}
.csbp-screen.is-active{display:flex;flex-direction:column;}
/* hidden-Attribut muss Komponenten-display (flex/grid) schlagen, sonst klappen Formulare nicht ein */
.csbp-app [hidden]{display:none!important;}

/* Spinner */
.csbp-screen[data-screen="loading"].is-active{align-items:center;justify-content:center;}
.csbp-spinner{width:42px;height:42px;border:4px solid var(--gs);border-top-color:var(--g);border-radius:50%;animation:csbp-spin .8s linear infinite;}
@keyframes csbp-spin{to{transform:rotate(360deg);}}

/* Karte (Login / PIN) */
.csbp-screen[data-screen="login"].is-active,
.csbp-screen[data-screen="pin"].is-active{align-items:center;justify-content:center;}
.csbp-card{background:var(--white);border-radius:var(--r);box-shadow:0 12px 40px rgba(0,55,28,.1);padding:34px 30px;width:100%;max-width:420px;}
.csbp-logo{font-weight:800;font-size:22px;color:var(--gd);text-align:center;margin-bottom:8px;}
.csbp-logo-img{display:block;height:46px;width:auto;max-width:78%;margin:0 auto 18px;object-fit:contain;}
.csbp-card h1{font-size:22px;margin:0 0 6px;text-align:center;}
.csbp-sub{color:var(--muted);font-size:14.5px;text-align:center;margin:0 0 22px;}
.csbp-card label{display:block;font-size:13.5px;font-weight:600;margin:14px 0 6px;color:#2a3a31;}
.csbp-card input{width:100%;font-size:17px;padding:14px;border:2px solid var(--line);border-radius:11px;outline:none;font-family:inherit;transition:.15s;}
.csbp-card input:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(0,147,69,.12);}
.csbp-btn{width:100%;margin-top:22px;background:var(--g);color:#fff;border:0;border-radius:12px;padding:15px;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit;transition:.15s;}
.csbp-btn:hover{background:var(--gd);}
.csbp-btn[disabled]{opacity:.5;cursor:wait;}
.csbp-btn-lg{font-size:18px;padding:18px 26px;width:auto;}
.csbp-error{color:var(--danger);font-size:14px;font-weight:600;margin-top:14px;}
.csbp-link{background:none;border:0;color:var(--muted);font-weight:600;font-size:14px;cursor:pointer;font-family:inherit;text-decoration:underline;}
.csbp-link:hover{color:var(--ink);}
.csbp-back{display:inline-block;margin-bottom:10px;text-decoration:none;}

/* Nutzer-Auswahl */
.csbp-head{display:flex;align-items:center;justify-content:space-between;max-width:900px;margin:8px auto 22px;width:100%;}
.csbp-head h1{font-size:24px;margin:0;}
.csbp-user-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px;max-width:900px;margin:0 auto;width:100%;}
.csbp-user{background:var(--white);border:2px solid var(--line);border-radius:var(--r);padding:22px 16px;cursor:pointer;text-align:center;transition:.15s;display:flex;flex-direction:column;align-items:center;gap:10px;font-family:inherit;color:inherit;}
.csbp-user:hover{border-color:var(--g);transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,55,28,.08);}
.csbp-avatar{width:62px;height:62px;border-radius:50%;background:var(--gs);color:var(--gd);display:grid;place-items:center;font-size:24px;font-weight:800;}
.csbp-user-name{font-weight:700;font-size:16px;}
.csbp-user-role{font-size:12px;color:var(--muted);}
.csbp-user-pin{font-size:11px;color:var(--g);font-weight:700;}

/* PIN */
.csbp-card-pin{max-width:340px;text-align:center;}
.csbp-pin-dots{display:flex;justify-content:center;gap:16px;margin:18px 0;}
.csbp-pin-dots span{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);transition:.15s;}
.csbp-pin-dots span.is-filled{background:var(--g);border-color:var(--g);}
.csbp-numpad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px;}
.csbp-numpad button{padding:18px 0;font-size:22px;font-weight:600;background:var(--white);border:2px solid var(--line);border-radius:12px;cursor:pointer;font-family:inherit;transition:.1s;}
.csbp-numpad button:hover{border-color:var(--g);}
.csbp-numpad button:active{background:var(--gs);}
.csbp-np-empty{visibility:hidden;}
.csbp-np-del{color:var(--muted);}

/* Dashboard */
.csbp-screen[data-screen="users"],.csbp-screen[data-screen="hub"],.csbp-screen[data-screen="bookings"],.csbp-screen[data-screen="manage"]{padding:0;}
.csbp-topbar{display:flex;align-items:center;justify-content:space-between;background:var(--white);border-bottom:1px solid var(--line);padding:14px 20px;position:sticky;top:0;z-index:5;}
.csbp-company{font-weight:800;color:var(--gd);font-size:17px;}
.csbp-userchip{display:inline-flex;align-items:center;gap:8px;background:var(--gs);color:var(--gd);border:0;border-radius:99px;padding:8px 14px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;}
.csbp-userchip:hover{background:#d8f0e3;}
.csbp-main{max-width:900px;margin:0 auto;padding:24px 20px 60px;width:100%;}
.csbp-actions{margin-bottom:22px;}
.csbp-bookings{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:8px;}
.csbp-empty{padding:40px 16px;text-align:center;color:var(--muted);}
.csbp-table{width:100%;border-collapse:collapse;}
.csbp-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:10px 12px;border-bottom:2px solid var(--line);}
.csbp-table td{padding:12px;border-bottom:1px solid var(--line);font-size:14.5px;vertical-align:top;}
.csbp-table tr:last-child td{border-bottom:0;}
.csbp-muted{color:var(--muted);font-size:12px;}
.csbp-badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;}
.csbp-badge-neu{background:#eef2f7;color:#3a4a63;}
.csbp-badge-bestaetigt,.csbp-badge-bestätigt{background:var(--gs);color:var(--gd);}
.csbp-badge-unterwegs{background:#fff4e0;color:#9a6b00;}
.csbp-badge-erledigt{background:#e8f7ee;color:#127a3d;}
.csbp-badge-storniert{background:#fde8e6;color:var(--danger);}
.csbp-cancel{display:inline-block;margin-top:8px;color:var(--danger);background:#fff;border:1.5px solid #f3cdc8;border-radius:8px;padding:4px 11px;font-size:12.5px;font-weight:700;text-decoration:none;cursor:pointer;font-family:inherit;line-height:1.5;}
.csbp-cancel:hover{background:#fde8e6;border-color:var(--danger);}

/* Verwaltung (Phase 4) */
.csbp-topbar-actions{display:flex;align-items:center;gap:10px;}
.csbp-topbar-spacer{width:40px;display:inline-block;}
.csbp-iconbtn{background:var(--gs);color:var(--gd);border:0;border-radius:99px;padding:8px 14px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;}
.csbp-iconbtn:hover{background:#d8f0e3;}
.csbp-btn-sm{width:auto;margin:0 0 14px;padding:11px 18px;font-size:14.5px;}
.csbp-tabs{display:flex;gap:8px;margin-bottom:18px;background:#eef3ef;padding:5px;border-radius:12px;}
.csbp-tab{flex:1;padding:11px;border:0;background:transparent;border-radius:9px;font-weight:700;font-size:14.5px;color:var(--muted);cursor:pointer;font-family:inherit;}
.csbp-tab.is-active{background:var(--white);color:var(--gd);box-shadow:0 2px 8px rgba(0,55,28,.08);}
.csbp-hint{color:var(--muted);font-size:13.5px;line-height:1.5;margin:0 0 14px;}
.csbp-mlist{display:flex;flex-direction:column;gap:12px;}
.csbp-mrow{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:14px 16px;}
.csbp-mrow.is-off{opacity:.62;}
.csbp-mrow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.csbp-mrow-head strong{font-size:15.5px;}
.csbp-tag{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11.5px;font-weight:700;background:#eef2f7;color:#3a4a63;vertical-align:middle;}
.csbp-tag-admin{background:var(--gs);color:var(--gd);}
.csbp-tag-off{background:#fde8e6;color:var(--danger);}
.csbp-mform{margin-top:14px;border-top:1px solid var(--line);padding-top:14px;display:flex;flex-direction:column;}
.csbp-mform label{font-size:13px;font-weight:600;color:#2a3a31;margin:10px 0 5px;}
.csbp-mform input:not([type=checkbox]),.csbp-mform select{width:100%;font-size:16px;padding:12px;border:2px solid var(--line);border-radius:10px;outline:none;font-family:inherit;box-sizing:border-box;}
.csbp-mform input:not([type=checkbox]):focus,.csbp-mform select:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(0,147,69,.12);}
.csbp-mform input:focus,.csbp-mform select:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(0,147,69,.12);}
.csbp-row2{display:flex;gap:10px;}
.csbp-row2>div{flex:1;min-width:0;}
.csbp-check2{flex-direction:row!important;align-items:center;gap:8px;font-weight:600;margin-top:14px!important;}
.csbp-check2 input{width:20px;height:20px;}
.csbp-mform-actions{display:flex;align-items:center;gap:14px;margin-top:16px;}
.csbp-mform-actions .csbp-btn-sm{margin:0;}
.csbp-merr{color:var(--danger);font-size:13.5px;font-weight:600;margin-top:10px;}
.csbp-danger{color:var(--danger);}

/* Nutzer-Auswahl: Willkommen zurück + Selbst-Tag */
.csbp-head-col{flex-wrap:wrap;gap:10px;}
.csbp-users-company{font-size:13px;font-weight:700;color:var(--g);margin-bottom:2px;}
.csbp-tag-self{background:#fff4e0;color:#9a6b00;}
.csbp-mrow-note{margin-top:8px;font-size:12.5px;color:var(--muted);}

/* ============================================================
   HUB-REDESIGN — Marken-Band + Hierarchie-Karten (App-kohärent)
   Grün bleibt das Web-Marken-Grün #009345 (var --g/--gd) für
   Konsistenz mit Wizard + Website; Soft-Bubbles im App-Ton.
   ============================================================ */
/* Lokale Hub-Tokens (additiv) */
:root{
  --hub-soft:#e7f3ec;
  --hub-shadow:0 6px 20px rgba(0,40,20,.06);
  --hub-shadow-lift:0 12px 26px rgba(0,40,20,.12);
  --hub-shadow-hero:0 10px 28px rgba(0,147,69,.22);
  --hub-card-r:18px;
}

/* (a) GRÜNES MARKEN-BAND — abgerundete UNTERE Ecken, schwebt über dem Inhalt */
.csbp-hub-band{
  background:var(--g);
  background-image:linear-gradient(180deg,var(--g) 0%,var(--gd) 150%);
  color:#fff;
  border-radius:0 0 26px 26px;
  padding-bottom:30px;
  box-shadow:0 10px 30px rgba(0,40,20,.10);
  position:sticky;top:0;z-index:20;
}
/* Schlankes Band für Unterscreens (Fahrten/Verwaltung) — gleiche Sprache, ohne Begrüßung */
.csbp-band-slim{border-radius:0 0 22px 22px;padding-bottom:14px;}
.csbp-topbar-onband{
  background:transparent;
  border-bottom:0;
  position:static;
  padding:15px 20px 6px;
  max-width:900px;margin:0 auto;width:100%;box-sizing:border-box;
}
.csbp-brandmark{display:inline-flex;align-items:center;gap:10px;min-width:0;}
.csbp-brandbadge{
  /* Einheitlicher Topbar-Look (Referenz: Management-Konsole .csm-top) */
  width:32px;height:32px;flex:0 0 auto;border-radius:9px;
  background:#fff;color:var(--gd);
  display:grid;place-items:center;
  font-weight:800;font-size:13px;letter-spacing:.02em;
  box-shadow:0 2px 8px rgba(0,30,15,.18);
  overflow:hidden;
}
.csbp-brandlogo{width:100%;height:100%;object-fit:contain;border-radius:10px;display:block;}
.csbp-topbar-onband .csbp-company{
  color:#fff;font-weight:800;font-size:17px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.csbp-topbar-onband .csbp-userchip{
  background:none;color:rgba(255,255,255,.92);
  border-radius:0;padding:8px 4px;
  font-weight:600;font-size:14px;text-decoration:underline;
}
.csbp-topbar-onband .csbp-userchip:hover{background:none;color:#fff;}
.csbp-band-inner{padding:8px 20px 0;max-width:900px;margin:0 auto;width:100%;box-sizing:border-box;}
.csbp-band-pill{
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,255,255,.18);color:#fff;
  border-radius:999px;padding:6px 13px;
  font-size:13px;font-weight:700;margin-bottom:14px;
}
.csbp-hub-band .csbp-hub-greet{
  margin:0;color:#fff;
  font-size:29px;line-height:1.15;font-weight:800;letter-spacing:-.01em;
}
.csbp-band-sub{
  margin:8px 0 0;color:rgba(255,255,255,.88);
  font-size:15px;line-height:1.45;
}

/* (d) Sektions-Label */
.csbp-hub-label{
  margin:2px 2px 12px;
  font-size:12px;font-weight:800;
  text-transform:uppercase;letter-spacing:.09em;color:var(--muted);
}

/* KARTEN-LISTE (1 pro Reihe, mobile-first) */
.csbp-hub-grid{display:grid;grid-template-columns:1fr;gap:14px;}
.csbp-hub-tile{
  display:flex;align-items:center;gap:16px;
  text-align:left;width:100%;
  background:var(--white);
  border:1px solid transparent;
  border-radius:var(--hub-card-r);
  padding:18px;min-height:78px;
  cursor:pointer;font-family:inherit;color:inherit;
  box-shadow:var(--hub-shadow);
  -webkit-tap-highlight-color:transparent;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.csbp-hub-tile:hover{
  transform:translateY(-2px);
  box-shadow:var(--hub-shadow-lift);
  border-color:var(--gs);
}
.csbp-hub-tile:active{transform:translateY(0);}
.csbp-hub-tile:focus-visible{
  outline:none;border-color:var(--g);
  box-shadow:0 0 0 4px rgba(0,147,69,.15),var(--hub-shadow);
}

/* (c) Soft-grüne Kreis-Bubble ums Emoji — der zentrale „fertig"-Anker */
.csbp-hub-ico{
  flex:0 0 auto;
  width:54px;height:54px;border-radius:50%;
  background:var(--hub-soft);
  display:grid;place-items:center;
  font-size:26px;line-height:1;
}
.csbp-hub-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.csbp-hub-tile strong{font-size:17px;font-weight:800;color:var(--ink);}
.csbp-hub-sub{font-size:13.5px;color:var(--muted);line-height:1.3;}
.csbp-hub-chev{
  flex:0 0 auto;margin-left:auto;color:var(--g);
  font-size:26px;font-weight:700;line-height:1;
  opacity:.55;transition:opacity .15s,transform .15s;
}
.csbp-hub-tile:hover .csbp-hub-chev{opacity:1;transform:translateX(2px);}

/* PRIMÄRKARTE: gefüllt grün, App-Hero-Look */
.csbp-hub-tile-primary{
  background:linear-gradient(135deg,var(--g) 0%,var(--gd) 100%);
  border-color:transparent;
  box-shadow:var(--hub-shadow-hero);
  min-height:88px;padding:20px 18px;
}
.csbp-hub-tile-primary:hover{box-shadow:0 14px 32px rgba(0,147,69,.30);}
.csbp-hub-tile-primary .csbp-hub-ico{
  width:56px;height:56px;font-size:27px;
  background:rgba(255,255,255,.18);
}
.csbp-hub-tile-primary .csbp-hub-body strong{color:#fff;font-size:18px;}
.csbp-hub-tile-primary .csbp-hub-sub{color:rgba(255,255,255,.85);}
.csbp-hub-tile-primary .csbp-hub-chev{color:rgba(255,255,255,.9);opacity:.85;}
.csbp-hub-tile-primary:focus-visible{
  border-color:transparent;
  box-shadow:0 0 0 4px rgba(255,255,255,.55),var(--hub-shadow-hero);
}

/* Admin-Karte: ruhig weiß, Bubble minimal markiert */
.csbp-hub-tile-admin{background:var(--white);}
.csbp-hub-tile-admin .csbp-hub-ico{
  box-shadow:inset 0 0 0 1.5px rgba(0,147,69,.18);
}

/* (e) dezente Abschlusszeile */
.csbp-hub-foot{
  margin:22px 2px 0;text-align:center;
  font-size:12px;color:var(--muted);
}

/* HANDY: Band & Karten kompakter, Touch-Targets bleiben groß */
@media (max-width:560px){
  .csbp-hub-band{border-radius:0 0 22px 22px;padding-bottom:26px;}
  .csbp-topbar-onband{padding:14px 15px 4px;}
  .csbp-band-inner{padding:6px 16px 0;}
  .csbp-hub-band .csbp-hub-greet{font-size:25px;}
  .csbp-band-sub{font-size:14px;}
  .csbp-hub-tile{padding:15px 14px;gap:13px;min-height:72px;}
  .csbp-hub-tile-primary{min-height:82px;padding:18px 15px;}
  .csbp-hub-ico{width:48px;height:48px;font-size:23px;}
  .csbp-hub-tile-primary .csbp-hub-ico{width:50px;height:50px;}
  .csbp-hub-tile strong{font-size:16px;}
}
@media (prefers-reduced-motion:reduce){
  .csbp-hub-tile,.csbp-hub-chev{transition:none;}
  .csbp-hub-tile:hover{transform:none;}
}
.csbp-topbar-btn{margin:0;width:auto;}

/* In-Page-Dialog (statt Browser-Popups) */
.csbp-modal{position:fixed;inset:0;z-index:50;background:rgba(16,33,26,.55);display:flex;align-items:center;justify-content:center;padding:20px;}
.csbp-modal[hidden]{display:none;}
.csbp-modal-card{background:var(--white);border-radius:16px;max-width:420px;width:100%;padding:24px;box-shadow:0 20px 60px rgba(0,40,20,.3);}
.csbp-modal-card h3{margin:0 0 8px;font-size:18px;}
.csbp-modal-card p{margin:0 0 14px;color:var(--muted);font-size:14.5px;line-height:1.5;}
.csbp-modal-input{width:100%;font-size:16px;padding:12px;border:2px solid var(--line);border-radius:10px;outline:none;font-family:inherit;resize:vertical;}
.csbp-modal-input:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(0,147,69,.12);}
.csbp-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:18px;}
.csbp-modal-actions .csbp-btn-sm{margin:0;}
.csbp-btn-danger{background:var(--danger)!important;}
.csbp-btn-danger:hover{background:#b22d17!important;}

/* Klarer Bearbeiten-Button in der Verwaltung */
.csbp-edit-btn{background:var(--gs);color:var(--gd);border:0;border-radius:9px;padding:8px 14px;font-size:13.5px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap;}
.csbp-edit-btn:hover{background:#d8f0e3;}

/* Persistente Navigations-Tableiste (unten) */
.csbp-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:4px;background:var(--white);border-top:1px solid var(--line);box-shadow:0 -3px 16px rgba(0,55,28,.07);padding:6px 8px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px));}
.csbp-tabbtn{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;padding:8px 4px;font-family:inherit;font-size:11.5px;font-weight:700;color:var(--muted);cursor:pointer;border-radius:11px;}
.csbp-tabbtn .ico{font-size:21px;line-height:1;}
.csbp-tabbtn.is-active{color:var(--gd);background:var(--gs);}
.csbp-tabbtn{position:relative;}
.csbp-news-dot{position:absolute;top:6px;right:calc(50% - 20px);width:8px;height:8px;border-radius:50%;background:var(--danger);}
.csbp-news-dot[hidden]{display:none;}

/* In-App-Hinweis-Banner (Status-Änderungen; Kiosk-tauglich) */
.csbp-toast{position:fixed;left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:50;display:flex;align-items:center;gap:11px;max-width:560px;margin:0 auto;background:var(--ink);color:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 14px 36px rgba(0,30,15,.34);animation:csbpToastIn .28s ease;}
.csbp-toast[hidden]{display:none;}
.csbp-toast-ico{font-size:19px;flex:0 0 auto;}
.csbp-toast-msg{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.35;}
.csbp-toast-go{flex:0 0 auto;background:var(--g);color:#fff;border:0;border-radius:9px;padding:9px 13px;font-size:13.5px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap;}
.csbp-toast-go:hover{background:#00a44d;}
.csbp-toast-x{flex:0 0 auto;background:none;border:0;color:rgba(255,255,255,.7);font-size:22px;line-height:1;cursor:pointer;padding:0 2px;}
.csbp-toast-x:hover{color:#fff;}
@keyframes csbpToastIn{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:translateY(0);}}
@media (prefers-reduced-motion:reduce){.csbp-toast{animation:none;}}
/* Fahrer-Chip in der B2B-Buchungsliste */
.csbp-driver{display:inline-block;font-size:12px;font-weight:700;color:var(--gd);background:var(--gs);border-radius:99px;padding:1px 9px;margin-top:3px;}
/* Platz lassen, damit Inhalt nicht hinter der Tableiste verschwindet */
.csbp-screen[data-screen="hub"] .csbp-main,
.csbp-screen[data-screen="bookings"] .csbp-main,
.csbp-screen[data-screen="manage"] .csbp-main{padding-bottom:92px;}

/* Rechtslinks-Footer (überall erreichbar) */
.csbp-legal{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;padding:20px 16px calc(96px + env(safe-area-inset-bottom,0px));}
.csbp-legal a{color:var(--muted);font-size:12.5px;text-decoration:none;}
.csbp-legal a:hover{color:var(--gd);text-decoration:underline;}

/* Aktions-Buttons (Bearbeiten/Löschen) in Verwaltungs-Karten */
.csbp-mrow-btns{display:flex;gap:10px;flex-shrink:0;align-items:flex-start;}

/* Handy-Optimierung (Admins nutzen das Portal/den App-Login am Smartphone) */
@media (max-width:560px){
	.csbp-screen{padding:16px;}
	.csbp-topbar{padding:11px 13px;}
	.csbp-company{font-size:15px;}
	.csbp-userchip,.csbp-iconbtn{padding:8px 12px;font-size:13px;}
	.csbp-topbar-actions{gap:7px;}
	.csbp-main{padding:18px 13px 64px;}
	.csbp-actions .csbp-btn-lg{width:100%;}
	.csbp-card{padding:26px 20px;}
	.csbp-user-grid{grid-template-columns:1fr 1fr;gap:12px;}
	.csbp-table{font-size:13.5px;}
	.csbp-table th{padding:8px 6px;font-size:11px;}
	.csbp-table td{padding:10px 6px;}
	.csbp-head h1{font-size:20px;}
}
@media (max-width:380px){
	.csbp-user-grid{grid-template-columns:1fr;}
	.csbp-table th:nth-child(3),.csbp-table td:nth-child(3){display:none;}
}

/* ===== Standort-Suche (Nominatim) im Verwaltungs-Formular ===== */
.csbp-opt{font-weight:500;color:var(--muted);font-size:12.5px;}
.csbp-locsearch{position:relative;margin-bottom:4px;}
.csbp-locsearch input[type=search]{width:100%;font-size:16px;font-family:inherit;color:var(--ink);background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.2-4.2'/%3E%3C/svg%3E") no-repeat 15px 50%;background-size:19px;padding:13px 16px 13px 46px;border:2px solid var(--line);border-radius:13px;outline:none;-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s;}
.csbp-locsearch input[type=search]::placeholder{color:#9aa8a0;}
.csbp-locsearch input[type=search]:focus{border-color:var(--g);box-shadow:0 0 0 4px rgba(0,147,69,.12);}
.csbp-locsearch input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;height:16px;width:16px;background:var(--line);border-radius:50%;cursor:pointer;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/12px no-repeat;}
.csbp-locsearch-res{position:absolute;left:0;right:0;top:calc(100% + 6px);background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px rgba(0,55,28,.18);z-index:30;max-height:300px;overflow-y:auto;overflow-x:hidden;padding:5px;}
.csbp-search-item{display:flex;align-items:flex-start;gap:11px;width:100%;text-align:left;background:none;border:0;border-radius:10px;padding:10px 11px;cursor:pointer;font-family:inherit;transition:background .12s;}
.csbp-search-item:hover,.csbp-search-item:focus{background:var(--gs);outline:none;}
.csbp-si-pin{flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:var(--gs);color:var(--gd);display:grid;place-items:center;font-size:14px;margin-top:1px;}
.csbp-search-item:hover .csbp-si-pin{background:#fff;}
.csbp-si-tx{min-width:0;display:flex;flex-direction:column;gap:1px;}
.csbp-si-name{font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.csbp-si-addr{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.csbp-search-info{padding:14px;font-size:13.5px;color:var(--muted);text-align:center;}

/* ===== Phase 7b: Passwort vergessen / Konto ===== */
.csbp-forgot-link { display: block; margin: 14px auto 0; text-align: center; background: none; border: 0; color: var(--g, #009345); font-size: 14px; cursor: pointer; text-decoration: underline; }
.csbp-ok { background: #e7f6ee; border: 1px solid #bfe3cf; color: #1a6b3f; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0; }
.csbp-warn-txt { color: #b45309; }
.csbp-backfill-toggle { display: inline-block; margin-left: 12px; background: none; border: 0; color: #6b7a72; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.csbp-backfill-form { margin: 10px 0 16px; background: #fff; border: 1px solid #e3ebe4; border-radius: 12px; padding: 14px; }
.csbp-credit { text-align: center; font-size: 12px; color: #8a978f; padding: 4px 0 18px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.csbp-credit img { height: 15px; width: auto; display: block; opacity: .85; }
