/* FÜRSORGEWERK TERMINE 1.6.0 RESET */
.termine-reset-shell{
  max-width:1420px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.termine-reset-head{
  background:linear-gradient(135deg,#ffffff,#eef8f7);
  border:1px solid rgba(0,124,128,.12);
  border-radius:26px;
  padding:20px;
  box-shadow:0 12px 28px rgba(15,23,42,.055);
}
.termine-reset-head h2{
  margin:.25rem 0 .35rem;
  color:#006060;
  font-size:clamp(1.7rem,2.2vw,2.45rem);
}
.termine-reset-head p{margin:0;color:#64748b;line-height:1.45;}
.termine-notice,.termine-context{
  border:1px solid rgba(0,124,128,.18);
  border-left:5px solid #006060;
  background:#eef8f7;
  color:#0f172a;
  border-radius:18px;
  padding:13px 15px;
  font-weight:800;
}
.termine-context{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.termine-context strong{color:#006060;}
.termine-reset-tabs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  padding:10px;
}
.termine-reset-tabs button{
  appearance:none;
  text-align:left;
  border:1px solid rgba(15,23,42,.11);
  background:#fff;
  color:#0f172a;
  border-radius:18px;
  padding:14px 15px;
  min-height:78px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.termine-reset-tabs button:hover{
  border-color:#005858;
  background:#eef8f7;
}
.termine-reset-tabs button.active{
  background:linear-gradient(135deg,#006060,#005858);
  border-color:#006060;
  box-shadow:0 14px 30px rgba(0,108,112,.20);
}
.termine-reset-tabs strong{display:block;color:#006060;font-size:1rem;margin-bottom:5px;}
.termine-reset-tabs span{display:block;color:#64748b;font-size:.8rem;line-height:1.3;}
.termine-reset-tabs .active strong,.termine-reset-tabs .active span{color:#fff;}
.termine-filter{
  background:#fff;
  border:1px solid rgba(15,23,42,.09);
  border-radius:20px;
  padding:12px 14px;
}
.termine-filter summary{
  cursor:pointer;
  color:#006060;
  font-weight:900;
}
.termine-filterbar{
  margin-top:12px;
  display:grid;
  grid-template-columns:170px minmax(210px,1fr) minmax(210px,1fr) auto auto;
  gap:10px;
  align-items:end;
}
.termine-filterbar label,.termine-form label,.termine-process-label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:850;
  color:#334155;
  font-size:.86rem;
}
.termine-filterbar input,.termine-filterbar select,
.termine-form input,.termine-form select,.termine-form textarea,
.termine-process-label select{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:11px 12px;
  min-height:48px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.termine-filterbar input:focus,.termine-filterbar select:focus,
.termine-form input:focus,.termine-form select:focus,.termine-form textarea:focus,
.termine-process-label select:focus{
  border-color:#005858;
  box-shadow:0 0 0 4px rgba(0,124,128,.11);
  outline:0;
}
.termine-panel{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:26px;
  padding:18px;
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
.termine-panel-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}
.termine-panel-head h3{
  margin:.1rem 0 .35rem;
  color:#006060;
  font-size:1.35rem;
}
.termine-panel-head span{color:#64748b;font-weight:800;}
.termine-list{display:grid;gap:10px;}
.termine-card{
  appearance:none;
  width:100%;
  text-align:left;
  border:1px solid rgba(15,23,42,.10);
  background:#f8fafc;
  border-radius:18px;
  padding:13px 14px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.termine-card:hover{border-color:#005858;background:#eef8f7;}
.termine-card strong{color:#0f172a;}
.termine-card span{color:#006060;font-weight:850;}
.termine-card small{color:#64748b;line-height:1.35;}
.termine-card.status-offen{border-left:5px solid #f59e0b;}
.termine-card.status-geplant{border-left:5px solid #2563eb;}
.termine-card.status-bestaetigt{border-left:5px solid #16a34a;}
.termine-card.status-erledigt{border-left:5px solid #15803d;}
.termine-card.status-abgesagt,.termine-card.status-ausgefallen{border-left:5px solid #dc2626;}
.termine-tour{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid rgba(15,23,42,.08);
  border-radius:20px;
  padding:10px;
  background:#fff;
}
.termine-empty{
  border:1px dashed rgba(0,124,128,.25);
  background:#f8fafc;
  border-radius:18px;
  padding:16px;
  color:#64748b;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.termine-empty strong{color:#0f172a;}
.termine-plan-grid{display:grid;gap:14px;}
.termine-step{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:14px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:16px;
  background:#f8fafc;
}
.termine-step b{
  width:42px;height:42px;
  border-radius:15px;
  background:#006060;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
}
.termine-step h4{margin:.1rem 0 .75rem;color:#0f172a;}
.termine-template{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
}
.termine-template div{
  border:1px solid rgba(15,23,42,.08);
  border-radius:17px;
  background:#fff;
  padding:12px;
}
.termine-template span{display:block;color:#64748b;font-size:.78rem;font-weight:850;margin-bottom:4px;}
.termine-template strong{display:block;color:#0f172a;line-height:1.25;}
.termine-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.termine-big-btn{min-height:48px;border-radius:15px;padding-inline:16px;font-weight:900;}
.termine-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.termine-form .wide{grid-column:1/-1;}
.termine-form textarea{min-height:92px;resize:vertical;}
.termine-hint{
  margin:14px 0 0;
  border:1px solid rgba(0,124,128,.16);
  background:#eef8f7;
  border-radius:16px;
  padding:12px 13px;
  color:#475569;
  line-height:1.4;
}
.termine-hint strong{color:#006060;}
.termine-validation{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#991b1b;
  border-radius:18px;
  padding:13px 15px;
  margin-bottom:14px;
}
.termine-validation strong{display:block;margin-bottom:6px;}
.termine-validation ul{margin:.3rem 0 0;padding-left:20px;}
.termine-subtabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.termine-subtabs button{
  border:1px solid rgba(15,23,42,.12);
  background:#f8fafc;
  border-radius:999px;
  padding:9px 13px;
  cursor:pointer;
  font-weight:850;
}
@media(max-width:900px){
  .termine-filterbar{grid-template-columns:1fr;}
  .termine-form{grid-template-columns:1fr;}
  .termine-tour{grid-template-columns:1fr;}
  .termine-step{grid-template-columns:1fr;}
}


/* 1.6.1 – UI Prozessoberfläche */
.termine-reset-shell{
  max-width:1440px;
}
.termine-reset-head{
  border-radius:30px;
  padding:24px;
}
.termine-reset-head h2{
  font-size:clamp(1.85rem,2.6vw,2.75rem);
}
.termine-ui-process{
  display:grid;
  grid-template-columns:minmax(300px,1.1fr) minmax(360px,1.7fr);
  gap:14px;
  align-items:stretch;
  background:#ffffff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:28px;
  padding:14px;
  box-shadow:0 12px 28px rgba(15,23,42,.045);
}
.termine-ui-process.employee{
  grid-template-columns:repeat(3,minmax(220px,1fr));
}
.termine-ui-primary{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.termine-ui-secondary{
  display:grid;
  grid-template-columns:repeat(4,minmax(130px,1fr));
  gap:10px;
}
.termine-ui-main-card,
.termine-ui-tool{
  appearance:none;
  border:1px solid rgba(15,23,42,.11);
  background:#f8fafc;
  color:#0f172a;
  text-align:left;
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.termine-ui-main-card{
  min-height:118px;
  border-radius:24px;
  padding:18px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.termine-ui-tool{
  min-height:118px;
  border-radius:22px;
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.termine-ui-main-card:hover,
.termine-ui-tool:hover{
  transform:translateY(-1px);
  border-color:#005858;
  background:#eef8f7;
  box-shadow:0 12px 26px rgba(0,124,128,.10);
}
.termine-ui-main-card.active,
.termine-ui-tool.active{
  background:linear-gradient(135deg,#006060,#005858);
  border-color:#006060;
  box-shadow:0 16px 34px rgba(0,108,112,.22);
}
.termine-ui-main-card.active strong,
.termine-ui-main-card.active small,
.termine-ui-tool.active strong,
.termine-ui-tool.active small{
  color:#fff;
}
.termine-ui-icon{
  width:44px;
  height:44px;
  border-radius:16px;
  background:#e0f2f1;
  color:#006060;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  font-size:1.15rem;
}
.termine-ui-main-card.active .termine-ui-icon{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.termine-ui-main-card strong,
.termine-ui-tool strong{
  display:block;
  color:#006060;
  font-size:1.08rem;
  line-height:1.15;
  margin-bottom:5px;
}
.termine-ui-main-card small,
.termine-ui-tool small{
  display:block;
  color:#64748b;
  font-size:.82rem;
  line-height:1.3;
}
.termine-ui-hint{
  border:1px solid rgba(0,124,128,.16);
  border-left:5px solid #006060;
  background:#eef8f7;
  border-radius:20px;
  padding:13px 15px;
  color:#334155;
  line-height:1.45;
  font-weight:750;
}
.termine-ui-hint strong{
  color:#006060;
}
.termine-filter-closed{
  background:#fff;
  border-radius:20px;
}
.termine-filter-closed summary{
  color:#006060;
  font-weight:950;
}
.termine-panel{
  border-radius:30px;
  padding:22px;
}
.termine-panel-head h3{
  font-size:1.45rem;
}
@media(max-width:1150px){
  .termine-ui-process{
    grid-template-columns:1fr;
  }
  .termine-ui-secondary{
    grid-template-columns:repeat(2,minmax(150px,1fr));
  }
}
@media(max-width:760px){
  .termine-ui-process.employee,
  .termine-ui-secondary{
    grid-template-columns:1fr;
  }
  .termine-ui-main-card{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .termine-ui-tool{
    min-height:auto;
  }
}


/* 1.6.2 – Monatsplan mit direkter Kundenauswahl */
.termine-month-direct{
  display:grid;
  gap:14px;
}
.termine-month-direct .termine-template{
  margin-top:0;
}
.termine-process-label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:900;
  color:#334155;
}
.termine-process-label select{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:11px 12px;
  min-height:50px;
  font:inherit;
  background:#fff;
}


/* 1.6.3 – Terminübersicht: Mitarbeiterkarten / Tages- und Wochenplan */
.termine-overview-switch{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
}
.termine-overview-switch button{
  border:1px solid rgba(15,23,42,.12);
  background:#f8fafc;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  color:#334155;
  cursor:pointer;
}
.termine-overview-switch button.active{
  background:#006060;
  border-color:#006060;
  color:#fff;
}
.termine-date-groups{display:grid;gap:16px;}
.termine-date-group{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:20px;
  padding:14px;
}
.termine-date-group h4{margin:.1rem 0 .8rem;color:#006060;}
.termine-employee-cards,.termine-week-cards{display:grid;gap:12px;}
.termine-employee-card{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.termine-employee-card-head{
  width:100%;
  appearance:none;
  border:0;
  background:#f8fafc;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  text-align:left;
  padding:15px 16px;
  cursor:pointer;
}
.termine-employee-card.open .termine-employee-card-head{background:#eef8f7;}
.termine-employee-card-head strong{display:block;color:#0f172a;font-size:1.05rem;margin-bottom:3px;}
.termine-employee-card-head span{display:block;color:#64748b;font-size:.86rem;}
.termine-employee-card-head em{font-style:normal;color:#006060;font-weight:900;font-size:.82rem;}
.termine-employee-card-body{display:grid;gap:8px;padding:12px 14px 15px;}
.termine-mini{
  appearance:none;
  width:100%;
  text-align:left;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-left:5px solid #2563eb;
  border-radius:16px;
  padding:11px 12px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.termine-mini:hover{border-color:#005858;background:#f8fafc;}
.termine-mini.status-offen{border-left-color:#f59e0b;}
.termine-mini.status-bestaetigt,.termine-mini.status-erledigt{border-left-color:#16a34a;}
.termine-mini.status-abgesagt,.termine-mini.status-ausgefallen{border-left-color:#dc2626;}
.termine-mini strong{color:#0f172a;}
.termine-mini span{color:#006060;font-weight:850;}
.termine-mini small{color:#64748b;}
.termine-week-days{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  padding:12px 14px 15px;
}
.termine-week-day{
  border:1px solid rgba(15,23,42,.10);
  border-radius:17px;
  overflow:hidden;
  background:#fff;
}
.termine-week-day-head{
  width:100%;
  border:0;
  background:#f8fafc;
  padding:11px 12px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  cursor:pointer;
  text-align:left;
}
.termine-week-day-head strong{color:#0f172a;}
.termine-week-day-head span{color:#64748b;font-weight:850;}
.termine-week-day-body{display:grid;gap:7px;padding:10px;}
.termine-month-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-bottom:8px;
}
.termine-month-weekdays strong{
  background:#eef8f7;
  color:#006060;
  border-radius:12px;
  padding:8px;
  text-align:center;
}
.termine-month-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}
.termine-month-cell{
  min-height:110px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:15px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.termine-month-cell.muted{opacity:.45;background:#f8fafc;}
.termine-month-cell>strong{color:#0f172a;font-size:.9rem;}
.termine-month-entry{
  appearance:none;
  border:0;
  border-radius:9px;
  background:#dbeafe;
  color:#1e40af;
  padding:5px 6px;
  text-align:left;
  font-size:.72rem;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.termine-month-entry.status-offen{background:#ffedd5;color:#9a3412;}
.termine-month-entry.status-bestaetigt,.termine-month-entry.status-erledigt{background:#dcfce7;color:#166534;}
.termine-month-entry.status-abgesagt,.termine-month-entry.status-ausgefallen{background:#fee2e2;color:#991b1b;}
.termine-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.termine-modal{
  width:min(620px,92vw);
  max-height:86vh;
  overflow:auto;
  background:#fff;
  border-radius:22px;
  padding:16px;
  box-shadow:0 24px 80px rgba(15,23,42,.30);
}
.termine-modal-head{
  position:sticky;
  top:0;
  z-index:2;
  background:#fff;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
.termine-modal-head h3{margin:.2rem 0;color:#006060;}
.termine-modal-head p{margin:0;color:#64748b;}
.termine-modal-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:9px;
}
.termine-modal-grid div{
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  padding:10px;
}
.termine-modal-grid span{display:block;color:#64748b;font-size:.78rem;font-weight:850;margin-bottom:4px;}
.termine-modal-grid strong{display:block;color:#0f172a;}
@media(max-width:850px){
  .termine-month-grid,.termine-month-weekdays{grid-template-columns:repeat(2,1fr);}
}


/* 1.6.4 – Kalender-/Wochen-/Monatsnavigation */
.termine-overview-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:end;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:12px;
  margin:0 0 16px;
}
.termine-overview-nav label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#334155;
  font-weight:850;
  font-size:.84rem;
}
.termine-overview-nav input{
  border:1px solid rgba(15,23,42,.16);
  border-radius:13px;
  padding:10px 11px;
  min-height:44px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.termine-overview-period{
  min-height:44px;
  border:1px solid rgba(0,124,128,.14);
  background:#eef8f7;
  color:#006060;
  border-radius:14px;
  padding:8px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}
.termine-overview-period strong{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.termine-overview-period span{
  color:#0f172a;
  font-weight:900;
}
.termine-month-day-jump{
  appearance:none;
  width:100%;
  border:0;
  background:transparent;
  color:#0f172a;
  text-align:left;
  padding:0;
  margin:0 0 4px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
}
.termine-month-day-jump strong{
  color:#0f172a;
}
.termine-month-day-jump span{
  color:#006060;
  font-size:.68rem;
  font-weight:900;
  opacity:.85;
}
.termine-month-day-jump:hover span{
  text-decoration:underline;
}
@media(max-width:760px){
  .termine-overview-nav{
    flex-direction:column;
    align-items:stretch;
  }
}


/* 1.6.5 – Mitarbeiter-Rollenansicht */
.termine-testmode-banner{
  border:1px solid rgba(245,158,11,.28);
  border-left:5px solid #f59e0b;
  background:#fffbeb;
  color:#78350f;
  border-radius:18px;
  padding:13px 15px;
  line-height:1.45;
  font-weight:800;
}
.termine-testmode-banner strong{
  color:#92400e;
}
.termine-employee-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
@media(max-width:760px){
  .termine-employee-actions{
    justify-content:flex-start;
  }
}


/* 1.6.6 – Mitarbeiter Tagesnavigation / Monatsansicht */
.termine-employee-day-nav{
  margin-bottom:14px;
}
.termine-employee-month-note{
  border:1px solid rgba(245,158,11,.28);
  border-left:5px solid #f59e0b;
  background:#fffbeb;
  color:#78350f;
  border-radius:16px;
  padding:12px 14px;
  margin:0 0 14px;
  font-weight:800;
}
.termine-employee-month-note strong{color:#92400e;}


/* 1.6.7 – Druckansicht Zeitraum */
.termine-print-range{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  align-items:end;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:14px;
  margin:12px 0 14px;
}
.termine-print-range label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:900;
  color:#334155;
  font-size:.86rem;
}
.termine-print-range input{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  min-height:48px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.termine-print-summary{
  border:1px solid rgba(0,124,128,.16);
  background:#eef8f7;
  color:#006060;
  border-radius:16px;
  padding:11px 13px;
}
.termine-print-summary strong{
  display:block;
  font-size:1.45rem;
  line-height:1;
}
.termine-print-summary span{
  display:block;
  color:#475569;
  font-size:.82rem;
  margin-top:4px;
}


/* 1.6.9 – Druckdatum zuverlässig bedienbar */
.termine-print-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 12px;
}
.termine-print-range input[type="date"]{
  cursor:pointer;
  min-width:160px;
}
.termine-print-range label{
  cursor:pointer;
}
.termine-print-range input[type="date"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  transform:scale(1.15);
}


/* 1.6.10 – Druckart koppelt Zeitraum automatisch */
.termine-print-mode{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
  margin:12px 0;
}
.termine-print-mode label{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  gap:10px;
  align-items:flex-start;
  border:2px solid rgba(15,23,42,.10);
  background:#f8fafc;
  border-radius:17px;
  padding:13px 14px;
  cursor:pointer;
}
.termine-print-mode label.active{
  border-color:#006060;
  background:#eef8f7;
  box-shadow:0 10px 24px rgba(0,108,112,.12);
}
.termine-print-mode input{
  margin-top:4px;
  accent-color:#006060;
}
.termine-print-mode strong{
  display:block;
  color:#0f172a;
  margin-bottom:3px;
}
.termine-print-mode small{
  display:block;
  color:#64748b;
  line-height:1.3;
}
.termine-print-range small{
  color:#64748b;
  font-size:.75rem;
  margin-top:3px;
}


/* 1.6.12 – Druckdatum manuell änderbar, wenn Browser-Kalender nicht öffnet */
.termine-date-manual-btn{
  margin-top:6px;
  min-height:36px;
  border-radius:12px;
  font-size:.82rem;
  font-weight:850;
}
.termine-print-range label{
  align-self:stretch;
}


/* 1.6.13 – Einsatzbestätigung / Übergabe Leistungsnachweis */
.termine-execution-box{
  margin-top:16px;
  border:1px solid rgba(0,124,128,.16);
  background:#f8fafc;
  border-radius:20px;
  padding:15px;
}
.termine-execution-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}
.termine-execution-head h4{
  margin:.1rem 0 .25rem;
  color:#006060;
  font-size:1.1rem;
}
.termine-execution-head p{
  margin:0;
  color:#64748b;
  line-height:1.35;
}
.termine-ln-chip{
  border-radius:999px;
  padding:7px 10px;
  background:#e2e8f0;
  color:#334155;
  font-size:.78rem;
  font-weight:900;
  white-space:nowrap;
}
.termine-ln-chip.ready{
  background:#dcfce7;
  color:#166534;
}
.termine-execution-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.termine-execution-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:850;
  color:#334155;
  font-size:.84rem;
}
.termine-execution-grid input,
.termine-execution-grid select,
.termine-execution-grid textarea{
  border:1px solid rgba(15,23,42,.16);
  border-radius:13px;
  padding:10px 11px;
  font:inherit;
  background:#fff;
}
.termine-execution-grid .wide{
  grid-column:1/-1;
}
.termine-execution-summary{
  margin-top:10px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  color:#334155;
}
@media(max-width:760px){
  .termine-execution-grid{
    grid-template-columns:1fr;
  }
  .termine-execution-head{
    flex-direction:column;
  }
}


/* 1.6.14 – Speichergrund / Validierungsdetails */
.termine-validation{
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#7f1d1d;
  border-radius:18px;
  padding:14px 16px;
  margin-bottom:14px;
}
.termine-validation li{
  margin-bottom:6px;
  line-height:1.35;
}
.termine-suggestions{
  margin-top:10px;
  border-top:1px solid rgba(127,29,29,.18);
  padding-top:10px;
}
.termine-suggestions strong{
  color:#7f1d1d;
}


/* 1.6.15 – Uhrzeit als klares Dropdown */
#terminStart{
  cursor:pointer;
}
.termine-form label small{
  color:#64748b;
  font-size:.74rem;
  margin-top:3px;
}


/* 1.6.16 – Terminakte UI */
.terminakte-shell{
  background:#fff;
}
.terminakte-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}
.terminakte-head h3{
  margin:.25rem 0 .25rem;
  color:#0f172a;
  font-size:1.75rem;
}
.terminakte-head p{
  margin:0;
  color:#64748b;
}
.terminakte-status{
  border-radius:999px;
  padding:9px 13px;
  background:#e2e8f0;
  color:#334155;
  font-weight:900;
  white-space:nowrap;
}
.terminakte-status.status-geplant,
.terminakte-status.status-offen{
  background:#dbeafe;
  color:#1e40af;
}
.terminakte-status.status-erledigt,
.terminakte-status.status-bestaetigt{
  background:#dcfce7;
  color:#166534;
}
.terminakte-status.status-ausgefallen,
.terminakte-status.status-abgesagt{
  background:#fee2e2;
  color:#991b1b;
}
.terminakte-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.95fr);
  gap:18px;
  align-items:start;
}
.terminakte-card{
  border:1px solid rgba(15,23,42,.10);
  border-radius:24px;
  padding:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
.terminakte-card-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}
.terminakte-card-head h4{
  margin:.1rem 0 .2rem;
  color:#006060;
  font-size:1.15rem;
}
.terminakte-card-head p{
  margin:0;
  color:#64748b;
}
.terminakte-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  background:#e0f2f1;
  color:#006060;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.terminakte-icon.shield{
  background:#dbeafe;
  color:#1d4ed8;
}
.terminakte-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.terminakte-ln-box{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
  border-radius:16px;
  padding:11px 12px;
}
.terminakte-ln-box small{
  color:#64748b;
  line-height:1.3;
}
.terminakte-actions-bar{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}
.terminakte-bottom-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.75fr);
  gap:16px;
  margin-top:16px;
}
.terminakte-flow,
.terminakte-warning{
  border:1px solid rgba(15,23,42,.10);
  border-radius:22px;
  padding:16px;
  background:#f8fafc;
}
.terminakte-flow h4,
.terminakte-warning h4{
  margin:.1rem 0 .75rem;
  color:#006060;
}
.terminakte-flow-steps{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:center;
}
.terminakte-flow-steps div{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  padding:12px;
}
.terminakte-flow-steps strong{
  display:block;
  color:#0f172a;
  margin-bottom:4px;
}
.terminakte-flow-steps span{
  display:block;
  color:#64748b;
  font-size:.82rem;
  line-height:1.3;
}
.terminakte-flow-steps em{
  color:#006060;
  font-style:normal;
  font-weight:900;
}
.terminakte-warning{
  background:#fffbeb;
  border-color:rgba(245,158,11,.25);
}
.terminakte-warning h4{
  color:#92400e;
}
.terminakte-warning p{
  margin:.35rem 0;
  color:#78350f;
}
@media(max-width:1050px){
  .terminakte-grid,
  .terminakte-bottom-grid{
    grid-template-columns:1fr;
  }
  .terminakte-form{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .terminakte-head{
    flex-direction:column;
  }
  .terminakte-flow-steps{
    grid-template-columns:1fr;
  }
  .terminakte-flow-steps em{
    display:none;
  }
}


/* 1.6.17 – Mitarbeiterstatus: angekommen / beendet */
.termine-employee-actions{
  align-items:center;
}
.termine-live-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 9px;
  font-size:.78rem;
  font-weight:900;
}
.termine-live-status.pending{background:#f1f5f9;color:#475569;}
.termine-live-status.active{background:#dbeafe;color:#1e40af;}
.termine-live-status.done{background:#dcfce7;color:#166534;}
.termine-live-status.danger{background:#fee2e2;color:#991b1b;}
[data-employee-arrived],
[data-employee-finished]{
  white-space:nowrap;
}


/* 1.6.19 – Admin prüft Leistungsnachweis statt Mitarbeiterstatus zu setzen */
[data-ln-check]{
  white-space:nowrap;
}
.terminakte-ln-box small{
  max-width:420px;
}


/* 1.6.20 – NUR Buttonlogik: einheitliche Mitarbeiteraktionen */
.status-action-btn{
  background:#fff !important;
  color:#006060 !important;
  border:1px solid rgba(0,124,128,.28) !important;
  box-shadow:none !important;
}
.status-action-btn:hover{
  background:#eef8f7 !important;
  border-color:#006060 !important;
}
.termine-status-summary-box{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
}
.termine-status-summary-box div{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:15px;
  padding:10px 11px;
}
.termine-status-summary-box div.set{
  border-color:rgba(22,163,74,.25);
  background:#f0fdf4;
}
.termine-status-summary-box span{
  display:block;
  color:#64748b;
  font-size:.75rem;
  font-weight:850;
  margin-bottom:4px;
}
.termine-status-summary-box strong{
  display:block;
  color:#0f172a;
  font-size:.95rem;
}
.termine-status-summary-box div.set strong{
  color:#166534;
}
.termine-employee-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  align-items:center;
}
.termine-notice{
  animation:fwStatusPulse 1.2s ease-out 1;
}
@keyframes fwStatusPulse{
  0%{transform:scale(.995);box-shadow:0 0 0 0 rgba(0,124,128,.22);}
  45%{transform:scale(1);box-shadow:0 0 0 6px rgba(0,124,128,.10);}
  100%{box-shadow:0 0 0 0 rgba(0,124,128,0);}
}
@media(max-width:760px){
  .termine-status-summary-box{grid-template-columns:1fr;}
  .termine-employee-actions{justify-content:flex-start;}
}


/* 1.6.22 – Statussignal für Mitarbeiterbuttons und Terminanzeigen */
.termine-status-signal{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:5px 9px;
  font-style:normal;
  font-size:.76rem;
  font-weight:950;
  margin-top:5px;
}
.termine-status-signal.pending{background:#f1f5f9;color:#475569;}
.termine-status-signal.arrived{background:#dbeafe;color:#1e40af;}
.termine-status-signal.finished{background:#dcfce7;color:#166534;}
.termine-status-signal.cancelled{background:#ffedd5;color:#9a3412;}
.termine-status-signal.failed{background:#fee2e2;color:#991b1b;}

.status-action-btn.active-arrived{
  background:#dbeafe !important;
  border-color:#2563eb !important;
  color:#1e40af !important;
  font-weight:950 !important;
}
.status-action-btn.active-finished{
  background:#dcfce7 !important;
  border-color:#16a34a !important;
  color:#166534 !important;
  font-weight:950 !important;
}
.status-action-btn.active-cancelled{
  background:#ffedd5 !important;
  border-color:#f97316 !important;
  color:#9a3412 !important;
  font-weight:950 !important;
}
.status-action-btn.active-failed{
  background:#fee2e2 !important;
  border-color:#ef4444 !important;
  color:#991b1b !important;
  font-weight:950 !important;
}
.termine-status-summary-box{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.termine-status-summary-box .wide{
  border-color:rgba(0,124,128,.18);
  background:#eef8f7;
}
.termine-status-summary-box .wide.arrived{background:#dbeafe;border-color:#2563eb;}
.termine-status-summary-box .wide.finished{background:#dcfce7;border-color:#16a34a;}
.termine-status-summary-box .wide.cancelled{background:#ffedd5;border-color:#f97316;}
.termine-status-summary-box .wide.failed{background:#fee2e2;border-color:#ef4444;}
@media(max-width:900px){
  .termine-status-summary-box{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .termine-status-summary-box{grid-template-columns:1fr;}
}


/* 1.6.23 – Mitarbeiterbuttons einheitlich: keine zweite Buttonsprache */
.termine-actions .status-action-btn,
.termine-employee-actions .status-action-btn{
  white-space:nowrap;
}


/* 1.6.26 – Admin-Kontrollsicht Termine */
.termine-control-kpis{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px;
  margin:0 0 16px;
}
.termine-control-kpis div{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  border-radius:17px;
  padding:12px;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
}
.termine-control-kpis span{
  display:block;
  color:#64748b;
  font-size:.78rem;
  font-weight:900;
  margin-bottom:5px;
}
.termine-control-kpis strong{
  display:block;
  color:#0f172a;
  font-size:1.45rem;
  line-height:1;
}
.termine-control-kpis small{
  display:block;
  color:#64748b;
  font-size:.75rem;
  margin-top:5px;
}
.termine-control-kpis .arrived{
  background:#eff6ff;
  border-color:#bfdbfe;
}
.termine-control-kpis .arrived strong{color:#1e40af;}
.termine-control-kpis .finished{
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.termine-control-kpis .finished strong{color:#166534;}
.termine-control-kpis .problem{
  background:#fff7ed;
  border-color:#fed7aa;
}
.termine-control-kpis .problem strong{color:#c2410c;}
.termine-control-kpis .ln{
  background:#eef8f7;
  border-color:rgba(0,124,128,.18);
}
.termine-control-kpis .ln strong{color:#006060;}

.termine-control-badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:5px 9px;
  font-style:normal;
  font-size:.76rem;
  font-weight:950;
  margin-top:5px;
}
.termine-control-badge.pending{background:#f1f5f9;color:#475569;}
.termine-control-badge.arrived{background:#dbeafe;color:#1e40af;}
.termine-control-badge.finished{background:#dcfce7;color:#166534;}
.termine-control-badge.problem{background:#ffedd5;color:#9a3412;}
.termine-control-badge.cancelled{background:#ffedd5;color:#9a3412;}
.termine-control-badge.failed{background:#fee2e2;color:#991b1b;}


/* 1.6.27 – Beendet-Button zuverlässig aus Modal/Seitendetail */
.status-action-btn:focus{
  outline:3px solid rgba(0,124,128,.18);
  outline-offset:2px;
}
.status-action-btn.active-finished{
  background:#dcfce7 !important;
  border-color:#16a34a !important;
  color:#166534 !important;
}


/* 1.6.35 – Terminmodul Uhrzeit HH:MM */
.fw-time-full{
  border:1px solid rgba(15,23,42,.16);
  border-radius:13px;
  padding:10px 11px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.fw-time-full:focus{
  outline:0;
  border-color:#006060;
  box-shadow:0 0 0 3px rgba(0,124,128,.10);
}
.fw-time-full.fw-time-error{
  border-color:#dc2626;
  background:#fff1f2;
}


/* 1.6.36 – Leistungsnachweis-Status im Termin sichtbar */
.termine-ln-status{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:5px 9px;
  font-style:normal;
  font-size:.76rem;
  font-weight:950;
  margin-top:5px;
}
.termine-ln-status.open{
  background:#f1f5f9;
  color:#475569;
}
.termine-ln-status.ready{
  background:#eef8f7;
  color:#006060;
}
.termine-ln-status.transferred{
  background:#dcfce7;
  color:#166534;
}
.termine-ln-status.blocked{
  background:#fee2e2;
  color:#991b1b;
}
.termine-status-summary-box .wide.transferred{
  background:#dcfce7;
  border-color:#16a34a;
}
.termine-status-summary-box .wide.ready{
  background:#eef8f7;
  border-color:rgba(0,124,128,.22);
}
.termine-status-summary-box .wide.open{
  background:#f8fafc;
}
.termine-status-summary-box .wide.blocked{
  background:#fee2e2;
  border-color:#ef4444;
}
.termine-status-summary-box small{
  display:block;
  color:#64748b;
  font-size:.74rem;
  margin-top:4px;
}


/* 1.6.37 – Kundentermine Monatsansicht + Sprung zu blockierten Terminen */
.termine-notice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.termine-notice-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.termine-blocked-list{
  display:grid;
  gap:10px;
}
.termine-blocked-card{
  border:1px solid rgba(245,158,11,.30);
  border-left:5px solid #f59e0b;
  background:#fffbeb;
  border-radius:16px;
  padding:12px 14px;
  display:grid;
  gap:5px;
}
.termine-blocked-card strong{
  color:#92400e;
}
.termine-blocked-card span{
  color:#334155;
  font-weight:850;
}
.termine-blocked-card small{
  color:#78350f;
  line-height:1.35;
}
.termine-blocked-card button{
  width:max-content;
  margin-top:4px;
}


/* 1.6.38 – Alle Termine anzeigen */
.termine-panel-head > button[data-all-appointments]{
  white-space:nowrap;
}


/* 1.6.39 – Monatsplan-Ergebnis */
.termine-plan-result{
  border:1px solid rgba(0,124,128,.16);
  border-left:5px solid #006060;
  background:#f8fffe;
  border-radius:20px;
  padding:14px;
  display:grid;
  gap:12px;
}
.termine-plan-result-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.termine-plan-result-head strong{
  display:block;
  color:#006060;
  font-size:1.05rem;
}
.termine-plan-result-head span{
  display:block;
  color:#475569;
  margin-top:3px;
}
.termine-plan-result-kpis{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:10px;
}
.termine-plan-result-kpis div{
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  border-radius:15px;
  padding:11px;
}
.termine-plan-result-kpis strong{
  display:block;
  color:#0f172a;
  font-size:1.35rem;
}
.termine-plan-result-kpis span{
  color:#64748b;
  font-size:.82rem;
  font-weight:850;
}
.termine-plan-result-kpis .ok{
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.termine-plan-result-kpis .ok strong{color:#166534;}
.termine-plan-result-kpis .warn{
  background:#fffbeb;
  border-color:#fde68a;
}
.termine-plan-result-kpis .warn strong{color:#92400e;}
.termine-plan-result-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.termine-plan-result-details{
  border-top:1px solid rgba(0,124,128,.14);
  padding-top:8px;
}
.termine-plan-result-details summary{
  cursor:pointer;
  color:#006060;
  font-weight:900;
}
.termine-plan-result-details ul{
  margin:8px 0 0;
  padding-left:18px;
  color:#334155;
}
.termine-plan-result-details li{
  margin-bottom:4px;
}


/* 1.6.40 – Admin Filter in Übersicht/Kontrolle */
.termine-admin-filter{
  border:1px solid rgba(0,124,128,.16);
  border-left:5px solid #006060;
  background:#f8fffe;
  border-radius:20px;
  padding:14px;
  margin:0 0 16px;
}
.termine-admin-filter-head{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-bottom:12px;
}
.termine-admin-filter-head strong{
  color:#006060;
  font-size:1.02rem;
}
.termine-admin-filter-head span{
  color:#64748b;
  line-height:1.35;
}
.termine-admin-filter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr)) minmax(220px,auto);
  gap:10px;
  align-items:end;
}
.termine-admin-filter-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#334155;
  font-weight:850;
  font-size:.85rem;
}
.termine-admin-filter-grid select{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:10px 11px;
  min-height:46px;
  font:inherit;
  background:#fff;
}
.termine-admin-filter-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
@media(max-width:1050px){
  .termine-admin-filter-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:700px){
  .termine-admin-filter-grid{
    grid-template-columns:1fr;
  }
}


/* 1.6.41 – Kontrollfenster Übersicht */
.termine-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1200;
}
.termine-control-window{
  width:min(760px,94vw);
  max-height:82vh;
  overflow:auto;
  background:#ffffff;
  border-radius:22px;
  box-shadow:0 30px 80px rgba(15,23,42,.24);
  border:1px solid rgba(0,124,128,.18);
  padding:18px;
}
.termine-control-window-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:16px;
}
.termine-control-window-head h3{
  margin:6px 0 4px;
  color:#0f172a;
}
.termine-control-window-head p{
  margin:0;
  color:#64748b;
  line-height:1.45;
}
.termine-control-window-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:10px;
}
.termine-control-window-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#334155;
  font-weight:800;
  font-size:.9rem;
}
.termine-control-window-grid select{
  border:1px solid rgba(15,23,42,.14);
  border-radius:14px;
  min-height:48px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
}
.termine-control-window-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.termine-control-window-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid rgba(59,130,246,.16);
  color:#334155;
  line-height:1.45;
}
@media (max-width: 700px){
  .termine-control-window{ padding:16px; border-radius:20px; }
  .termine-control-window-head{ flex-direction:column; }
  .termine-control-window-grid{ grid-template-columns:1fr; }
}

@media(max-width:820px){
  .termine-modal{width:min(560px,94vw);max-height:84vh;}
}


/* 1.6.44 – Absage-/Ausfallgrund */
.termine-modal-grid div span + strong{
  overflow-wrap:anywhere;
}


/* 1.6.45 – Ersatztermin nach Absage/Ausfall */
.termine-reason-badge{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:5px 9px;
  font-style:normal;
  font-size:.74rem;
  font-weight:900;
  margin-top:5px;
  background:#fff7ed;
  color:#9a3412;
}
[data-replacement]{
  white-space:nowrap;
}


/* 1.6.46 – Terminfenster Aktionen final */
.termine-modal-head{
  position:sticky;
  top:0;
  z-index:5;
  background:#fff;
  padding-bottom:10px;
}
.termine-modal-head [data-modal-save]{
  white-space:nowrap;
}
.termine-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}


/* 1.6.47 – Grund-Vorlagen für Absage/Ausfall */
.termine-reason-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.46);
  z-index:10020;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.termine-reason-modal{
  width:min(560px,94vw);
  max-height:86vh;
  overflow:auto;
  background:#fff;
  border-radius:22px;
  padding:18px;
  box-shadow:0 28px 90px rgba(15,23,42,.32);
  border:1px solid rgba(15,23,42,.12);
}
.termine-reason-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}
.termine-reason-head h3{
  margin:6px 0 4px;
  color:#0f172a;
}
.termine-reason-head p{
  margin:0;
  color:#64748b;
}
.termine-reason-template-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:8px;
  margin:10px 0 14px;
}
.reason-template-btn{
  text-align:left;
  justify-content:flex-start;
}
.termine-reason-label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#334155;
  font-weight:850;
}
.termine-reason-label textarea{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:10px 12px;
  font:inherit;
  resize:vertical;
}
.termine-reason-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}


/* 1.6.48 – Ersatztermin direkt nach Grund */
[data-replacement]{
  white-space:nowrap;
}


/* 1.6.49 – Ersatztermin freies Datum + Kontakt */
.terminakte-replacement-box{
  margin-top:16px;
  background:#f8fffe;
  border-color:rgba(0,124,128,.18);
}
.termine-replacement-warning{
  border:1px solid rgba(245,158,11,.30);
  border-left:5px solid #f59e0b;
  background:#fffbeb;
  color:#78350f;
  border-radius:15px;
  padding:11px 12px;
  margin:10px 0 12px;
}
.termine-contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 12px;
}
.termine-contact-actions a{
  text-decoration:none;
}
.termine-replacement-grid{
  display:grid;
  grid-template-columns:minmax(220px,.7fr) minmax(260px,1fr);
  gap:12px;
}
.termine-replacement-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:850;
  color:#334155;
}
.termine-replacement-grid select,
.termine-replacement-grid textarea{
  border:1px solid rgba(15,23,42,.16);
  border-radius:14px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
}
@media(max-width:800px){
  .termine-replacement-grid{
    grid-template-columns:1fr;
  }
}


/* 1.6.51 – Rollenfix ohne Abschaltung */
.termine-ui-hint strong{ color:#006060; }
.termine-modal [disabled]{ opacity:.72; cursor:not-allowed; }


/* 1.6.52 – Ersatztermin Bedienklarheit */
.terminakte-replacement-intro{
  border:1px solid rgba(0,124,128,.18);
  border-left:5px solid #006060;
  background:#eef8f7;
  border-radius:18px;
  padding:12px 14px;
  margin:0 0 14px;
  color:#334155;
}
.terminakte-replacement-intro strong{
  display:block;
  color:#006060;
  font-size:1rem;
  margin-bottom:4px;
}
.terminakte-replacement-intro span{
  display:block;
  line-height:1.4;
}
.terminakte-replacement-form-hint{
  color:#64748b;
  font-size:.76rem;
  margin-top:4px;
  line-height:1.3;
}


/* 1.6.53 – Ersatztermin-Formular reduziert */
.terminakte-grid.replacement-only{
  grid-template-columns: minmax(0, 1fr);
}
.terminakte-grid.replacement-only .terminakte-plan{
  max-width: 860px;
}
.terminakte-replacement-save-hint{
  margin-top:12px;
  border:1px solid rgba(0,124,128,.16);
  border-left:5px solid #006060;
  background:#f8fffe;
  color:#334155;
  border-radius:16px;
  padding:11px 12px;
  line-height:1.4;
}
.terminakte-replacement-save-hint strong{
  color:#006060;
}


/* 1.6.54 – Speichern schließt Terminfenster */
.termine-modal-head [data-modal-save]{
  white-space:nowrap;
}
