:root{--bh-blue:#0b4f8a;--bh-blue-dark:#073b68;--bh-yellow:#ffd200;--bh-bg:#eef3f7;--bh-text:#17212b;--bh-muted:#627180;--bh-border:#dce4eb}body:has(.bh-dp-login-shell),body:has(.bh-dp-portal-shell){margin:0;background:var(--bh-bg);font-family:Arial,Helvetica,sans-serif;color:var(--bh-text)}body:has(.bh-dp-login-shell) header,body:has(.bh-dp-login-shell) footer,body:has(.bh-dp-portal-shell) header.site-header,body:has(.bh-dp-portal-shell) footer.site-footer{display:none}.bh-dp-login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(145deg,var(--bh-blue-dark),var(--bh-blue) 60%,#1474b8)}.bh-dp-login-card{width:min(430px,100%);background:#fff;border-radius:18px;padding:38px;box-shadow:0 24px 70px rgba(0,0,0,.25);box-sizing:border-box}.bh-dp-brand-mark,.bh-dp-mini-mark{display:flex;align-items:center;justify-content:center;background:var(--bh-yellow);color:var(--bh-blue-dark);font-weight:800}.bh-dp-brand-mark{width:72px;height:72px;border-radius:16px;font-size:26px;margin:0 auto 20px}.bh-dp-login-card h1{text-align:center;margin:0;font-size:30px;color:var(--bh-blue-dark)}.bh-dp-subtitle{text-align:center;color:var(--bh-muted);line-height:1.5;margin:10px 0 26px}.bh-dp-login-card label{display:block;font-weight:700;margin-bottom:7px}.bh-dp-login-card input[type=text],.bh-dp-login-card input[type=password]{width:100%;height:48px;border:1px solid #bdcbd6;border-radius:8px;padding:0 13px;box-sizing:border-box;font-size:16px}.bh-dp-login-card .login-remember label{font-weight:400;display:flex;gap:8px;align-items:center}.bh-dp-login-card .login-submit input,.bh-dp-primary{width:100%;min-height:48px;border:0;border-radius:8px;background:var(--bh-blue);color:#fff;font-weight:700;font-size:16px;cursor:pointer;text-decoration:none;display:flex;align-items:center;justify-content:center}.bh-dp-login-card .login-submit input:hover,.bh-dp-primary:hover{background:var(--bh-blue-dark);color:#fff}.bh-dp-login-help{text-align:center;margin:18px 0 0}.bh-dp-login-help a{color:var(--bh-blue)}.bh-dp-alert{background:#fff3cd;border:1px solid #ffe69c;padding:11px;border-radius:8px;margin-bottom:18px}.bh-dp-portal-shell{min-height:100vh;background:var(--bh-bg)}.bh-dp-topbar{height:76px;padding:0 34px;background:var(--bh-blue-dark);color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 10px rgba(0,0,0,.16)}.bh-dp-topbar-brand,.bh-dp-user{display:flex;align-items:center;gap:14px}.bh-dp-mini-mark{width:44px;height:44px;border-radius:10px;font-size:17px}.bh-dp-topbar-brand strong{display:block;font-size:19px}.bh-dp-topbar-brand small{display:block;opacity:.75;margin-top:2px}.bh-dp-user a{background:rgba(255,255,255,.12);color:#fff;text-decoration:none;padding:9px 13px;border-radius:7px}.bh-dp-main{width:min(1420px,calc(100% - 40px));margin:0 auto;padding:32px 0 45px}.bh-dp-welcome{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.bh-dp-welcome h1{margin:0;color:var(--bh-blue-dark);font-size:30px}.bh-dp-welcome p{margin:7px 0 0;color:var(--bh-muted)}.bh-dp-date{background:#fff;border:1px solid var(--bh-border);padding:9px 13px;border-radius:8px;color:var(--bh-muted)}.bh-dp-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.bh-dp-kpi{background:#fff;border:1px solid var(--bh-border);border-left:5px solid var(--bh-yellow);border-radius:10px;padding:19px 22px;box-shadow:0 3px 12px rgba(23,33,43,.05)}.bh-dp-kpi strong{display:block;font-size:29px;color:var(--bh-blue-dark)}.bh-dp-kpi span{display:block;color:var(--bh-muted);margin-top:4px}.bh-dp-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.bh-dp-portal-tile{min-height:150px;display:flex;align-items:flex-start;gap:17px;background:#fff;border:1px solid var(--bh-border);border-radius:12px;padding:24px;color:var(--bh-text);text-decoration:none;box-shadow:0 4px 16px rgba(23,33,43,.06);transition:.18s;box-sizing:border-box;position:relative}.bh-dp-portal-tile:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(23,33,43,.11);border-color:#a7c1d6;color:var(--bh-text)}.bh-dp-portal-tile>.dashicons:first-child{width:48px;height:48px;line-height:48px;font-size:28px;border-radius:11px;background:#eaf3fa;color:var(--bh-blue);flex:0 0 48px}.bh-dp-portal-tile h2{margin:1px 25px 8px 0;font-size:20px;color:var(--bh-blue-dark)}.bh-dp-portal-tile p{margin:0;color:var(--bh-muted);line-height:1.5}.bh-dp-arrow{position:absolute;right:18px;top:22px;color:#98a8b5}.bh-dp-footer{text-align:center;color:#70808e;padding:18px;border-top:1px solid var(--bh-border);background:#fff}@media(max-width:900px){.bh-dp-kpi-grid{grid-template-columns:repeat(2,1fr)}.bh-dp-tile-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.bh-dp-login-card{padding:28px 22px}.bh-dp-topbar{height:auto;padding:14px 16px;align-items:flex-start}.bh-dp-user{flex-direction:column;align-items:flex-end;gap:7px}.bh-dp-topbar-brand small,.bh-dp-user span{display:none}.bh-dp-main{width:calc(100% - 24px);padding-top:22px}.bh-dp-welcome{display:block}.bh-dp-date{display:inline-block;margin-top:13px}.bh-dp-kpi-grid,.bh-dp-tile-grid{grid-template-columns:1fr}.bh-dp-portal-tile{min-height:auto}}

/* v0.1.2: gleich große Portal-Kacheln */
.bh-dp-tile-grid{grid-auto-rows:1fr;align-items:stretch}
.bh-dp-portal-tile{height:190px;min-height:190px}
.bh-dp-portal-tile>div{min-width:0}
@media(max-width:620px){.bh-dp-portal-tile{height:170px;min-height:170px}}

/* v0.1.3: reduziertes Dashboard mit exakt drei gleich großen Kacheln */
.bh-dp-three-tiles{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1200px;margin:36px auto 0}
.bh-dp-three-tiles .bh-dp-portal-tile{height:220px;min-height:220px;align-items:center}
.bh-dp-three-tiles .bh-dp-portal-tile>.dashicons:first-child{width:58px;height:58px;line-height:58px;font-size:32px;flex-basis:58px}
@media(max-width:900px){.bh-dp-three-tiles{grid-template-columns:1fr}.bh-dp-three-tiles .bh-dp-portal-tile{height:170px;min-height:170px}}

/* v0.1.4: echte Frontend-Bereiche, ohne wp-admin Weiterleitung */
.bh-dp-frontend-content .bh-dp-admin-topbar{display:none!important}
.bh-dp-frontend-content{width:100%}
.bh-dp-frontend-content .wrap.bh-dp{margin:0}
.bh-dp-frontend-content h1{color:var(--bh-blue-dark)}
body:has(.bh-dp-portal-shell) #wpadminbar{display:none!important}
html:has(.bh-dp-portal-shell){margin-top:0!important}

/* v0.1.5: vollständig eigenständiges Portal ohne Theme-Einflüsse */
html,body.bh-dp-standalone{margin:0!important;padding:0!important;width:100%!important;min-height:100%!important;background:var(--bh-bg)!important}
body.bh-dp-standalone{font-family:Arial,Helvetica,sans-serif!important;color:var(--bh-text)!important;font-size:16px!important;line-height:1.4!important}
body.bh-dp-standalone *{box-sizing:border-box}
body.bh-dp-standalone .bh-dp-portal-shell,
body.bh-dp-standalone .bh-dp-login-shell{width:100%!important;max-width:none!important;margin:0!important}
body.bh-dp-standalone .bh-dp-main{width:min(1280px,calc(100% - 48px))!important;max-width:1280px!important;margin:0 auto!important;padding:36px 0 48px!important}
body.bh-dp-standalone .bh-dp-welcome{width:100%!important;margin:0 0 28px!important}
body.bh-dp-standalone .bh-dp-welcome h1{font-size:30px!important;line-height:1.2!important;margin:0!important;padding:0!important;font-weight:700!important}
body.bh-dp-standalone .bh-dp-welcome p{font-size:17px!important;line-height:1.5!important;margin:8px 0 0!important;padding:0!important}
body.bh-dp-standalone .bh-dp-three-tiles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;width:100%!important;max-width:none!important;margin:0!important;align-items:stretch!important}
body.bh-dp-standalone .bh-dp-portal-tile{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;width:100%!important;height:250px!important;min-height:250px!important;margin:0!important;padding:28px!important;border-radius:14px!important;text-align:left!important;overflow:hidden!important}
body.bh-dp-standalone .bh-dp-portal-tile>.dashicons:first-child{display:flex!important;align-items:center!important;justify-content:center!important;margin:0 0 20px!important}
body.bh-dp-standalone .bh-dp-portal-tile>div{width:100%!important;min-width:0!important}
body.bh-dp-standalone .bh-dp-portal-tile h2{font-size:23px!important;line-height:1.25!important;margin:0 36px 10px 0!important;padding:0!important;font-weight:700!important}
body.bh-dp-standalone .bh-dp-portal-tile p{font-size:16px!important;line-height:1.55!important;margin:0!important;padding:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
body.bh-dp-standalone .bh-dp-footer{margin:0!important;width:100%!important}
@media(max-width:900px){body.bh-dp-standalone .bh-dp-three-tiles{grid-template-columns:1fr!important}body.bh-dp-standalone .bh-dp-portal-tile{height:auto!important;min-height:180px!important}}
@media(max-width:620px){body.bh-dp-standalone .bh-dp-main{width:calc(100% - 24px)!important;padding-top:24px!important}body.bh-dp-standalone .bh-dp-topbar{padding:14px 16px!important}}

/* v0.1.6: Rollen, Administration und direkter Portal-Einstieg */
.bh-dp-user .bh-dp-admin-button{background:var(--bh-yellow)!important;color:var(--bh-blue-dark)!important;font-weight:700!important}
.bh-dp-user .bh-dp-admin-button:hover{filter:brightness(.96)}
@media(max-width:700px){.bh-dp-user .bh-dp-admin-button{padding:8px 10px!important}}
/* v0.1.10: übersichtlicher, responsiver Dienstplan-Filter */
.bh-dp-plan-filter{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  align-items:end!important;
  gap:18px 16px!important;
  padding:22px!important;
  margin-bottom:22px!important;
  border-radius:12px!important;
}
.bh-dp-plan-filter label{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;margin:0!important}
.bh-dp-plan-filter label:nth-of-type(1),
.bh-dp-plan-filter label:nth-of-type(2),
.bh-dp-plan-filter label:nth-of-type(3),
.bh-dp-plan-filter label:nth-of-type(4){grid-column:span 3}
.bh-dp-plan-filter label:nth-of-type(5){grid-column:span 3}
.bh-dp-plan-filter label:nth-of-type(6){grid-column:span 4}
.bh-dp-plan-filter label:nth-of-type(7){grid-column:span 5}
.bh-dp-plan-filter label span{font-weight:700!important;color:#173b5c!important;font-size:13px!important;line-height:1.2!important}
.bh-dp-plan-filter select,.bh-dp-plan-filter input{
  display:block!important;
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 13px!important;
  border:1px solid #b9c8d5!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#17212b!important;
  font-size:15px!important;
  line-height:44px!important;
  box-shadow:none!important;
}
.bh-dp-plan-filter select:focus,.bh-dp-plan-filter input:focus{border-color:var(--bh-blue)!important;box-shadow:0 0 0 3px rgba(11,79,138,.12)!important;outline:0!important}
@media(max-width:1050px){
  .bh-dp-plan-filter label:nth-of-type(n){grid-column:span 6}
  .bh-dp-plan-filter label:nth-of-type(7){grid-column:span 12}
}
@media(max-width:650px){
  .bh-dp-plan-filter{grid-template-columns:1fr!important;gap:14px!important;padding:16px!important}
  .bh-dp-plan-filter label:nth-of-type(n){grid-column:1!important}
}

/* Dienstplan-Ansicht v0.1.11 */
.bh-dp-frontend-content .bh-scroll {
  margin-top: 24px;
  padding: 0;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 61, 99, .07);
}
.bh-dp-frontend-content .bh-scroll table {
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.bh-dp-frontend-content .bh-scroll th,
.bh-dp-frontend-content .bh-scroll td {
  padding: 13px 14px;
  vertical-align: middle;
  white-space: nowrap;
}
.bh-dp-frontend-content .bh-scroll thead th {
  background: #f3f7fb;
  border-bottom: 1px solid #d8e1ea;
}
.bh-dp-frontend-content .bh-scroll tbody tr:not(:last-child) td {
  border-bottom: 1px solid #edf1f5;
}
.bh-dp-absence {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.bh-dp-absence small {
  color: #5d6d7e;
  font-size: 12px;
  font-weight: 400;
}


/* v0.1.13: Wochenenden, Feiertage und Stundenabrechnung */
.bh-dp-day-saturday > td { background: #fff7e6 !important; }
.bh-dp-day-sunday > td { background: #ffecec !important; }
.bh-dp-day-holiday > td { background: #ffe2e2 !important; font-weight: 600; }
.bh-dp-holiday-name { display:block; margin-top:4px; font-size:11px; line-height:1.25; color:#a21d1d; font-weight:700; }
.bh-dp-hours-kpis { margin: 24px 0; }
.bh-dp-hours-table { margin-top: 24px; }
.bh-dp-hours-table td, .bh-dp-hours-table th { white-space: nowrap; }
