/*
  Terminlotse production.css – optimierte Arbeitsversion
  Basis: V27_49
  Ziel: gleiche Optik, weniger Wiederholungen, bessere Wartbarkeit.
*/
:root{
  --bg:#0a0d14;
  --bg-2:#0f1420;
  --bg-3:#141b28;
  --panel:rgba(20,26,38,.82);
  --panel-2:rgba(26,33,47,.92);
  --surface:#111723;
  --surface-2:#171f2c;
  --surface-3:#1b2432;
  --surface-soft:rgba(255,255,255,.035);
  --text:#f5f7fb;
  --muted:#9aa6b8;
  --muted-2:#7f8a9b;
  --line:var(--tl-white-08);
  --line-strong:rgba(255,255,255,.13);
  --accent:#7aa2ff;
  --accent-strong:#5b8cff;
  --accent-soft:rgba(122,162,255,.16);
  --ok:#8db3ff;
  --warn:#ff8f86;
  --free:#7aa2ff;
  --booked:#8d98ab;
  --gray:#5e6878;
  --shadow:0 20px 50px rgba(0,0,0,.34);
  --radius-xl:28px;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --tl-white-03:rgba(255,255,255,.03);
  --tl-white-04:rgba(255,255,255,.04);
  --tl-white-05:rgba(255,255,255,.05);
  --tl-white-06:rgba(255,255,255,.06);
  --tl-white-08:rgba(255,255,255,.08);
  --tl-white-10:rgba(255,255,255,.10);
  --tl-white-12:rgba(255,255,255,.12);
  --tl-blue:#7aa2ff;
  --tl-blue-strong:#5f9dff;
  --tl-hover-light:#ffffff;
  --tl-hover-text:#111827;
  --tl-hover-muted:#4b5563;
  --tl-calendar-line:rgba(122,162,255,.18);
  --tl-calendar-line-soft:rgba(255,255,255,.055);
  --tl-clickable-ring:rgba(122,162,255,.48);
  --tl-clickable-glow:rgba(122,162,255,.18);
}
html[data-theme="light"]{
  --bg:#eef2f7;
  --bg-2:#f5f7fb;
  --bg-3:#ffffff;
  --panel:rgba(255,255,255,.86);
  --panel-2:rgba(255,255,255,.96);
  --surface:#ffffff;
  --surface-2:#f7f9fc;
  --surface-3:#edf2f8;
  --surface-soft:rgba(15,23,42,.03);
  --text:#111827;
  --muted:#667085;
  --muted-2:#8892a3;
  --line:rgba(17,24,39,.08);
  --line-strong:rgba(17,24,39,.14);
  --accent:#4f7df0;
  --accent-strong:#3d69dc;
  --accent-soft:rgba(79,125,240,.12);
  --ok:#4f7df0;
  --warn:#d96d62;
  --free:#4f7df0;
  --booked:#98a2b3;
  --gray:#a3acba;
  --shadow:0 20px 48px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  min-height:100vh;
  background:
    radial-gradient(circle at top center, rgba(96,129,214,.12), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(127,145,182,.08), transparent 18%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 45%,var(--bg-3) 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  letter-spacing:-.01em;
}
a{color:var(--accent);text-decoration:none}
a:hover{opacity:.92}
.wrapper{max-width:1480px;margin:0 auto;padding:32px 24px 48px}
.topbar,.panel,.form-card,.modal-box{
  background:linear-gradient(180deg,var(--panel) 0%, var(--panel-2) 100%);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:22px 26px;margin-bottom:22px;border-radius:var(--radius-xl)
}
.brand{font-size:30px;font-weight:700;letter-spacing:-.03em}
.subbrand,.small-muted,.group-meta,.provider-meta{font-size:13px;line-height:1.45;color:var(--muted)}
.panel{padding:24px;border-radius:var(--radius-lg)}
.form-card{max-width:820px;margin:34px auto;padding:28px;border-radius:var(--radius-xl)}
.modal-box{max-width:860px;margin:34px auto;overflow:hidden;border-radius:30px}
.modal-head{padding:18px 22px;background:linear-gradient(180deg,rgba(122,162,255,.15),rgba(122,162,255,.06));border-bottom:1px solid var(--line)}
.modal-body{padding:24px}
h1,h2,h3{margin:0 0 14px;letter-spacing:-.03em}
h1{font-size:clamp(30px,4vw,52px);font-weight:700}
h2{font-size:24px;font-weight:650}
h3{font-size:18px;font-weight:650}
p{line-height:1.6;color:var(--text)}
label{display:block;margin:0 0 8px;color:var(--muted);font-size:13px;font-weight:600}
input,select,textarea{
  width:100%;padding:15px 16px;border-radius:16px;border:1px solid var(--line);
  background:linear-gradient(180deg,var(--surface),var(--surface-2));color:var(--text);
  font-size:15px;outline:none;transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input::placeholder,textarea::placeholder{color:var(--muted-2);opacity:1}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
textarea{resize:vertical;min-height:110px}
.btn,button{
  appearance:none;border:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:16px;padding:13px 20px;font-size:14px;font-weight:650;letter-spacing:-.01em;cursor:pointer;
  background:linear-gradient(180deg,var(--accent),var(--accent-strong));color:#fff;
  box-shadow:0 14px 30px rgba(31,62,143,.22);transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn:hover,button:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(31,62,143,.28)}
.btn:active,button:active{transform:translateY(0)}
.btn.secondary,.btn.light{background:linear-gradient(180deg,var(--surface-3),var(--surface-2));color:var(--text);border:1px solid var(--line);box-shadow:none}
.btn.warn{background:linear-gradient(180deg,#8c5f64,#73474b);color:#fff;box-shadow:none}
.actions-row,.bulk-toolbar,.inline-form{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.inline-form input,.inline-form select{width:auto;min-width:150px}
.grid-2{display:grid;grid-template-columns:330px 1fr;gap:22px}
.settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .full{grid-column:1/-1}
.form-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px}
.back-link{font-weight:600;color:var(--muted)}
.notice{
  padding:14px 16px;border-radius:18px;margin-bottom:18px;border:1px solid var(--line);background:var(--tl-white-03)
}
.notice.ok{background:rgba(122,162,255,.12);border-color:rgba(122,162,255,.22)}
.notice.error{background:rgba(168,72,72,.16);border-color:rgba(217,109,98,.26)}
.helper-box,.series-summary-box{
  padding:15px 16px;border-radius:18px;background:var(--surface-soft);border:1px solid var(--line);color:var(--muted);line-height:1.55
}
.group-card,.provider-card,.dashboard-card,.booking-slot-card,.booking-appointment-card,.booking-capacity-card{
  display:block;border-radius:22px;border:1px solid var(--line);background:linear-gradient(180deg,var(--surface-soft),rgba(255,255,255,.015));
  padding:18px;box-shadow:inset 0 1px 0 var(--tl-white-03)
}
.group-card,.provider-card{margin-bottom:14px;transition:border-color .16s ease, transform .16s ease, background .16s ease}
.group-card:hover,.provider-card:hover{border-color:var(--line-strong);transform:translateY(-1px)}
.group-card.active,.provider-card.active{border-color:rgba(122,162,255,.38);background:linear-gradient(180deg,rgba(122,162,255,.10),rgba(255,255,255,.02))}
.group-card-head,.booking-capacity-head,.day-slot-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.group-name,.provider-name,.day-slot-title{font-size:20px;font-weight:650;letter-spacing:-.02em}
.group-icon{font-size:18px;color:var(--muted)}
.provider-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.badge,.slot-pill{
  display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:650;
  border:1px solid var(--line);background:var(--tl-white-04);color:var(--muted)
}
.badge-blue{background:rgba(122,162,255,.12);color:var(--accent);border-color:rgba(122,162,255,.25)}
.badge-green{background:var(--tl-white-06);color:var(--text);border-color:var(--line)}
.legend{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;color:var(--muted);font-size:13px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;vertical-align:middle}
.dot.free,.dot.now{background:var(--accent)} .dot.booked{background:var(--booked)} .dot.gray{background:var(--gray)}
.calendar-shell{padding:0;overflow:auto}
.calendar-weekbar{padding:18px 22px;border-bottom:1px solid var(--line);font-size:14px;font-weight:650;color:var(--muted);background:linear-gradient(180deg,var(--tl-white-03),rgba(255,255,255,.01))}
.calendar-head{display:grid;grid-template-columns:82px repeat(7,minmax(170px,1fr));border-bottom:1px solid var(--line)}
.calendar-head .cell{padding:16px 10px;text-align:center;background:transparent;border-right:1px solid var(--line)}
.calendar-head .cell:last-child{border-right:none}
.calendar-head .time-label-top{background:transparent}
.day-name{font-size:17px;font-weight:650;margin-bottom:4px}
.day-date{font-size:13px;color:var(--muted)}
.free-times-box{margin-top:12px;padding:12px;border-radius:18px;background:var(--tl-white-03);border:1px solid var(--line);text-align:center;min-height:84px}
.free-times-box strong,.free-count-label,.free-times-meta{font-size:12px;color:var(--muted)}
.free-count{font-size:30px;font-weight:700;color:var(--accent);line-height:1.05}
.calendar-grid{position:relative;display:grid;grid-template-columns:82px repeat(7,minmax(170px,1fr));height:720px}
.time-col,.day-col{position:relative;border-right:1px solid var(--line)}
.time-col{background:rgba(255,255,255,.015)}
.day-col{background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.012))}
.hour-label,.hour-line{position:absolute;left:0;right:0;height:60px;border-bottom:1px solid var(--line)}
.hour-label{padding:8px 10px;color:var(--text);font-size:15px;font-weight:650;letter-spacing:-.02em}
.quarter-label{display:none}
.quarter-line{display:none}
.block{position:absolute;left:10px;padding:0;border-radius:12px;color:#fff;overflow:visible;border:none;box-shadow:none;z-index:2;width:96px;max-width:calc(100% - 22px)}
.block.free-slot{background:transparent}
.block.booked{background:linear-gradient(180deg,rgba(110,120,139,.82),rgba(92,101,117,.84));padding:10px 12px;border:1px solid var(--tl-white-08);box-shadow:0 10px 26px rgba(0,0,0,.12)}
.block.gray-slot,.block.holiday-slot{background:linear-gradient(180deg,rgba(100,109,122,.70),rgba(84,92,104,.78));padding:10px 12px;border:1px solid var(--tl-white-08);box-shadow:0 10px 26px rgba(0,0,0,.12)}
.block-time{font-size:12px;opacity:.92;margin-top:4px}
.block a.overlay-link{position:absolute;inset:0}
.now-line{position:absolute;left:0;right:0;height:2px;background:var(--accent);z-index:20;box-shadow:0 0 12px rgba(122,162,255,.45)}
.now-tag{position:absolute;right:8px;top:-12px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px}
.tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.tab-btn{padding:10px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);cursor:pointer;font-weight:650}
.tab-btn.active{background:rgba(122,162,255,.12);border-color:rgba(122,162,255,.26);color:var(--text)}
.tab-panel{display:none}.tab-panel.active{display:block}
.table{width:100%;border-collapse:separate;border-spacing:0;margin-top:18px;overflow:hidden}
.table th,.table td{padding:14px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.table tr:hover td{background:rgba(255,255,255,.018)}
.empty,.series-empty{padding:20px;color:var(--muted)}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dashboard-card{min-height:120px;display:flex;flex-direction:column;justify-content:space-between}
.dashboard-label{font-size:13px;color:var(--muted);font-weight:600}
.dashboard-value{font-size:clamp(22px,3vw,36px);font-weight:700;letter-spacing:-.04em}
.time-choice-grid,.day-slot-group{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.time-choice,.day-slot-group .booking-slot-card{display:block;padding:16px;border-radius:18px;background:linear-gradient(180deg,var(--surface),var(--surface-2));border:1px solid var(--line);color:var(--text);font-weight:650}
.time-choice:hover{border-color:rgba(122,162,255,.3)}
.booking-slot-card,.booking-appointment-card{margin-bottom:12px}
.booking-slot-time{font-size:30px;font-weight:700;letter-spacing:-.04em;margin-bottom:6px}
.booking-slot-meta,.booking-slot-summary,.booking-appointment-main,.booking-capacity-note,.day-slot-meta,.appt-no,.capacity-note{font-size:13px;color:var(--muted);line-height:1.5}
.booking-group{display:flex;flex-direction:column;gap:14px}
.booking-appointment-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.capacity-meter{height:10px;border-radius:999px;background:var(--tl-white-08);overflow:hidden;border:1px solid var(--line);margin:12px 0}
.capacity-meter.large{height:12px}
.capacity-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--accent),#9cc0ff)}
.checkbox-cell{width:40px}.checkbox-cell input{width:auto}
.required{color:#ff9e93}
@media (max-width:1160px){.grid-2{grid-template-columns:1fr}.dashboard-grid,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){
  .wrapper{padding:20px 14px 34px}
  .topbar,.panel,.form-card{border-radius:22px}
  .calendar-grid,.calendar-head{min-width:1320px}
  .calendar-shell{overflow:auto}
  .settings-grid,.form-grid,.time-choice-grid,.day-slot-group,.dashboard-grid{grid-template-columns:1fr}
  .form-actions{flex-direction:column;align-items:stretch}
  .topbar{padding:18px;align-items:flex-start;flex-direction:column}
  h1{font-size:36px}
}

.slot-pill.free{background:rgba(122,162,255,.12);color:var(--accent);border-color:rgba(122,162,255,.28)}
.slot-pill.booked{background:rgba(141,152,171,.16);color:#c8d0dc;border-color:rgba(141,152,171,.25)}
.slot-pill.full{background:rgba(217,109,98,.16);color:#ffb0a8;border-color:rgba(217,109,98,.28)}
.slot-pill.limited{background:rgba(245,158,11,.14);color:#ffc76e;border-color:rgba(245,158,11,.28)}
.slot-pill.group{background:rgba(168,85,247,.14);color:#d0a8ff;border-color:rgba(168,85,247,.28)}
.slot-pill.cancelled{background:rgba(148,163,184,.14);color:#cbd5e1;border-color:rgba(148,163,184,.24)}
.slot-pill.single{background:var(--tl-white-05);color:var(--text)}
.day-status-cell{position:relative}
.free-times-box.full{border-color:rgba(217,109,98,.24)}
.free-times-box.limited{border-color:rgba(245,158,11,.24)}
.free-times-box.today,.free-times-box.free{border-color:rgba(122,162,255,.22)}
.block.slot-state-group{background:linear-gradient(180deg,rgba(138,92,212,.82),rgba(108,74,177,.82))}
.block.slot-state-limited{background:linear-gradient(180deg,rgba(215,147,64,.82),rgba(183,116,32,.84))}
.block.slot-state-full{background:linear-gradient(180deg,rgba(176,95,90,.82),rgba(145,73,68,.84))}
.booking-slot-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.slot-compact-card{height:100%;padding:4px 10px;border-radius:10px;background:linear-gradient(180deg,rgba(122,162,255,.78),rgba(92,128,209,.74));border:1px solid var(--tl-white-10);box-shadow:0 8px 18px rgba(0,0,0,.14);display:flex;align-items:center;justify-content:flex-start;transition:transform .18s ease, box-shadow .18s ease, filter .18s ease}
.block.free-slot:hover{z-index:30}
.block.free-slot:hover .slot-compact-card{transform:translateY(-1px);box-shadow:0 16px 30px rgba(0,0,0,.18);filter:brightness(1.03)}
.block-title{font-size:12px;font-weight:700;line-height:1;letter-spacing:-.01em}
.slot-hovercard{position:absolute;left:calc(100% + 14px);top:50%;transform:translateY(-50%) scale(.98);width:280px;padding:18px 20px;border-radius:22px;background:var(--tl-hover-light);color:#2c3448;border:1px solid rgba(163,177,204,.30);box-shadow:0 20px 50px rgba(5,10,25,.34);opacity:0;pointer-events:none;transition:opacity .18s ease, transform .18s ease;z-index:80}
.slot-hovercard::before{content:"";position:absolute;left:-9px;top:50%;width:18px;height:18px;background:var(--tl-hover-light);border-left:1px solid rgba(163,177,204,.30);border-bottom:1px solid rgba(163,177,204,.30);transform:translateY(-50%) rotate(45deg)}
.block.free-slot:hover .slot-hovercard{opacity:1;transform:translateY(-50%) scale(1)}
.slot-hover-time{font-size:16px;font-weight:750;line-height:1.15;margin-bottom:6px}
.slot-hover-title{font-size:17px;font-weight:500;line-height:1.2;margin-bottom:8px}
.slot-hover-range{font-size:13px;color:#66708a;padding-bottom:14px;border-bottom:1px solid rgba(157,170,196,.18)}
.slot-hover-seats{font-size:14px;font-weight:500;padding:14px 0 10px;color:#394158}
.slot-hover-status{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin-bottom:14px}
.slot-hover-status::before{content:"";width:10px;height:10px;border-radius:999px;background:#7aa2ff;box-shadow:0 0 0 4px rgba(122,162,255,.16)}
.slot-hover-status-limited::before{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.16)}
.slot-hover-status-full::before{background:#d96d62;box-shadow:0 0 0 4px rgba(217,109,98,.16)}
.slot-hover-status-group::before{background:#a855f7;box-shadow:0 0 0 4px rgba(168,85,247,.16)}
.slot-hover-meta{display:flex;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid rgba(157,170,196,.18);font-size:12px;color:#6e7690}
.block.slot-state-group .slot-compact-card{background:linear-gradient(180deg,rgba(138,92,212,.82),rgba(108,74,177,.82))}
.block.slot-state-limited .slot-compact-card{background:linear-gradient(180deg,rgba(215,147,64,.82),rgba(183,116,32,.84))}
.block.slot-state-full .slot-compact-card{background:linear-gradient(180deg,rgba(176,95,90,.82),rgba(145,73,68,.84))}
@media (max-width:860px){.slot-hovercard{display:none}}


select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(45deg,transparent 50%, var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 22px) calc(50% - 3px),calc(100% - 16px) calc(50% - 3px);background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:42px}
select option{background:var(--surface-2);color:var(--text)}
select option:checked{background:var(--accent-strong);color:#fff}
html[data-theme="dark"] select, html:not([data-theme="light"]) select{color-scheme:dark}
html[data-theme="light"] select{color-scheme:light}
.booking-status-pending{margin-top:10px}

.block.free-slot:hover{z-index:60}
.block.free-slot:hover .slot-hovercard{opacity:1;transform:translateY(-50%) scale(1)}
.day-col:last-child .slot-hovercard,.day-col:nth-last-child(2) .slot-hovercard{left:auto;right:calc(100% + 14px)}
.day-col:last-child .slot-hovercard::before,.day-col:nth-last-child(2) .slot-hovercard::before{left:auto;right:-9px;transform:translateY(-50%) rotate(225deg)}

/* V27_49 Änderungen */
.time-small, .timeline-small { display:none !important; }
.slot { height:60px !important; }


/* V27_49: 7-Tage-Wochenreihe Mo-So */
.calendar-head .cell:nth-child(7),
.calendar-head .cell:nth-child(8){
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
}

.calendar-grid .day-col:nth-child(7),
.calendar-grid .day-col:nth-child(8){
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.014));
}

.free-times-box{
  min-height: 96px;
}

.block{
  width: calc(100% - 20px);
  max-width: none;
}

@media (max-width: 1460px){
  .calendar-shell{overflow:auto}
  .calendar-grid,.calendar-head{min-width:1320px}
}


/* V27_49 Apple-Style Wochenansicht */
:root{
  --tl-time-col: 58px;
  --tl-day-gap: 0px;
  --tl-day-radius: 18px;
  --tl-head-pad-y: 10px;
  --tl-head-pad-x: 8px;
  --tl-slot-radius: 12px;
}

.calendar-shell{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto;
}

.calendar-head,
.calendar-grid{
  width: 100%;
  min-width: 0 !important;
}

.calendar-head{
  display: grid;
  grid-template-columns: var(--tl-time-col) repeat(7, minmax(0,1fr)) !important;
}

.calendar-grid{
  display: grid;
  grid-template-columns: var(--tl-time-col) repeat(7, minmax(0,1fr)) !important;
}

.calendar-head .cell{
  padding: var(--tl-head-pad-y) var(--tl-head-pad-x) 8px !important;
}

.calendar-head .cell h3,
.calendar-head .cell .day-title,
.calendar-head .cell strong{
  font-size: 15px !important;
  line-height: 1.12 !important;
  margin: 0 0 4px 0 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.calendar-head .cell .day-date,
.calendar-head .cell .sub,
.calendar-head .cell small{
  font-size: 11px !important;
  line-height: 1.2 !important;
  opacity: .78 !important;
}

.free-times-box{
  min-height: auto !important;
  height: auto !important;
  padding: 4px 6px 2px !important;
  margin: 6px 6px 10px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

.free-times-box *{
  line-height: 1.2 !important;
}

.free-times-box .label,
.free-times-box .title,
.free-times-box .heading{
  display: none !important;
}

.free-times-box .big-number,
.free-times-box .free-number,
.free-times-box .count{
  display: inline !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #95b5ff !important;
  margin: 0 !important;
}

.free-times-box .meta,
.free-times-box .subline,
.free-times-box .small{
  display: inline !important;
  font-size: 11px !important;
  opacity: .82 !important;
  margin-left: 4px !important;
}

.free-times-box br{
  display: none !important;
}

.free-times-box::before{
  content: "";
  display: none !important;
}

.time-col,
.calendar-grid .time-col,
.calendar-grid .times{
  width: var(--tl-time-col) !important;
  min-width: var(--tl-time-col) !important;
}

.time-col .hour,
.calendar-grid .hour{
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.time-col .half,
.time-col .quarter,
.time-col .small,
.calendar-grid .half,
.calendar-grid .quarter{
  font-size: 9px !important;
  opacity: .45 !important;
}

.calendar-grid .day-col{
  min-width: 0 !important;
}

.block,
.slot,
.calendar-slot{
  width: calc(100% - 12px) !important;
  max-width: none !important;
  margin-left: 6px !important;
  margin-right: 6px !important;
  min-height: 34px !important;
  height: 44px !important;
  padding: 8px 12px !important;
  border-radius: var(--tl-slot-radius) !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  box-shadow: 0 8px 22px rgba(77,119,214,.20) !important;
}

.calendar-head .cell:nth-child(7),
.calendar-head .cell:nth-child(8),
.calendar-grid .day-col:nth-child(7),
.calendar-grid .day-col:nth-child(8){
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.010));
}

.calendar-shell::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

.calendar-shell::-webkit-scrollbar-thumb{
  background: var(--tl-white-12);
  border-radius: 999px;
}

@media (max-width: 1280px){
  :root{
    --tl-time-col: 54px;
  }
  .calendar-head .cell h3,
  .calendar-head .cell .day-title,
  .calendar-head .cell strong{
    font-size: 14px !important;
  }
  .block,
  .slot,
  .calendar-slot{
    font-size: 12px !important;
    height: 42px !important;
  }
}


/* V27_49 Slot Design Verbesserungen */

/* Standard Slot (mehrere Plätze frei) */
.block,
.slot,
.calendar-slot{
  background: linear-gradient(180deg,#3f6fd1,#2f5bc0);
  border: none !important;
}

/* Nur noch 1 Platz frei */
.slot.last,
.block.last{
  background: linear-gradient(90deg,#3f6fd1 0%, #f4b400 100%);
  color:#fff;
}

/* Hover Info */
.tooltip-free{
  font-weight:700;
  color:#4da3ff;
  font-size:18px;
}

/* Entferne alte gelbe Umrandung */
.slot.warning,
.block.warning{
  border:none !important;
  box-shadow: none !important;
}

/* Entferne untere Meta Infos */
.tooltip-meta,
.tooltip-footer{
  display:none !important;
}


/* V27_49 Topbar like Apple/Outlook */
.week-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-bottom:1px solid var(--tl-white-08);
  background:linear-gradient(180deg, rgba(8,15,30,.92), rgba(8,15,30,.82));
  backdrop-filter: blur(10px);
}
.week-toolbar-left,
.week-toolbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.week-nav-group,
.view-switch{
  display:inline-flex;
  align-items:center;
  gap:0;
  background:var(--tl-white-04);
  border:1px solid var(--tl-white-10);
  border-radius:14px;
  overflow:hidden;
  box-shadow: inset 0 1px 0 var(--tl-white-03);
}
.wt-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:#dce6ff;
  padding:11px 14px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  min-width:44px;
}
.wt-btn + .wt-btn{
  border-left:1px solid var(--tl-white-08);
}
.wt-btn.active{
  background:rgba(79,130,255,.16);
  color:#8fb8ff;
}
.wt-btn:hover{
  background:var(--tl-white-06);
}
.week-title{
  display:flex;
  align-items:center;
  gap:12px;
  color:#f3f7ff;
  font-size:17px;
  font-weight:700;
  letter-spacing:-.01em;
}
.week-title .muted{
  color:#c6d0e3;
  font-weight:600;
}
.week-title .calendar-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  opacity:.9;
}
@media (max-width: 980px){
  .week-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .week-toolbar-left,
  .week-toolbar-right{
    justify-content:space-between;
    flex-wrap:wrap;
  }
}



/* V27_49 Kompakte Tageszeile wie Referenzbild */
.calendar-head{
  border-top: 1px solid var(--tl-white-05);
  border-bottom: 1px solid var(--tl-white-08);
  background: linear-gradient(180deg, rgba(13,23,40,.94), rgba(11,20,35,.92));
}

.calendar-head .cell{
  min-height: 82px !important;
  padding: 12px 10px 10px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--tl-white-08);
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.calendar-head .cell:first-child{
  background: rgba(255,255,255,.01) !important;
}

.calendar-head .cell h3,
.calendar-head .cell .day-title,
.calendar-head .cell strong{
  font-size: 14px !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
  color: #f3f7ff !important;
}

.calendar-head .cell .day-date,
.calendar-head .cell small,
.calendar-head .cell .sub{
  font-size: 11px !important;
  color: rgba(220,230,246,.78) !important;
  margin: 0 0 10px 0 !important;
  display: block !important;
}

.free-times-box,
.compact-day-summary{
  min-height: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  text-align: center !important;
}

.free-times-box .label,
.free-times-box .title,
.free-times-box .heading{
  display: none !important;
}

.free-times-box .big-number,
.free-times-box .free-number,
.free-times-box .count{
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #6ea8ff !important;
  display: inline !important;
  margin: 0 !important;
}

.free-times-box .meta,
.free-times-box .subline,
.free-times-box .small{
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: rgba(224,232,245,.72) !important;
  display: inline !important;
  margin: 0 !important;
}

.free-times-box br{
  display: none !important;
}

.calendar-head .cell .day-summary-line{
  font-size: 12px;
  color: rgba(224,232,245,.72);
}

.calendar-head .cell .day-summary-line .free-accent{
  color: var(--tl-blue);
  font-weight: 700;
}

/* falls alte große Karten noch im DOM bleiben */
.calendar-head .free-times-box{
  transform: none !important;
}

.calendar-shell{
  overflow-x: hidden !important;
}


/* V27_49 echte Woche / Tag / Monat Logik */
.provider-filters{display:flex;gap:12px;flex-wrap:wrap}
.provider-filters label{display:flex;flex-direction:column;gap:6px;color:#cfd8ea;font-size:13px}
.provider-filters select{min-width:220px;padding:10px 12px;border-radius:12px;background:var(--tl-white-04);border:1px solid rgba(255,255,255,.1);color:#eef4ff}
.public-top-grid{display:flex;justify-content:space-between;gap:14px;margin-bottom:12px}
.week-toolbar a.wt-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.calendar-head.view-day,.calendar-grid.view-day{grid-template-columns:58px minmax(0,1fr) !important}
.calendar-head.view-week,.calendar-grid.view-week{grid-template-columns:58px repeat(7,minmax(0,1fr)) !important}

.free-times-meta-inline{font-size:12px;color:rgba(224,232,245,.72)}
.free-times-meta-inline .free-accent{color:var(--tl-blue);font-weight:700}

.month-grid-wrap{margin-top:10px}
.month-grid-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--tl-white-06);border:1px solid var(--tl-white-08);border-bottom:0;border-radius:18px 18px 0 0;overflow:hidden}
.month-head-cell{padding:12px 10px;background:var(--tl-white-03);text-align:center;font-weight:700;color:#eaf1ff}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--tl-white-06);border:1px solid var(--tl-white-08);border-top:0;border-radius:0 0 18px 18px;overflow:hidden}
.month-day-card{min-height:130px;background:linear-gradient(180deg, rgba(16,28,46,.96), rgba(12,21,36,.94));padding:12px;text-decoration:none;color:#eef4ff;display:flex;flex-direction:column;gap:10px}
.month-day-card:hover{background:linear-gradient(180deg, rgba(23,39,65,.98), rgba(15,26,45,.96))}
.month-day-card.is-muted{opacity:.58}
.month-day-card.is-today{outline:1px solid rgba(95,161,255,.65)}
.month-day-top{display:flex;align-items:center;justify-content:space-between}
.month-day-name{font-size:12px;color:#bfcce3}
.month-day-num{font-size:20px;font-weight:700}
.month-day-stats{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#d7e1f2}
.month-day-stats strong{color:var(--tl-blue)}

.slot-last-seat .slot-compact-card,
.slot-last-seat{
  background: linear-gradient(90deg,#3f6fd1 0%, #f4b400 100%) !important;
  border:none !important;
}
.slot-hover-seats{font-size:18px;font-weight:800;color:#4da3ff}
.slot-hover-meta,.tooltip-meta,.tooltip-footer{display:none !important}

@media (max-width:1100px){
  .month-grid,.month-grid-head{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* V27_49 Öffentlicher Bereich: Boxen statt Dropdowns */
.public-selector-shell{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
}
.public-selector-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.public-selector-label{
  font-size:13px;
  font-weight:700;
  color:#dbe6fb;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.selector-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.selector-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 16px;
  min-height:74px;
  border-radius:16px;
  text-decoration:none;
  color:#eef4ff;
  background:linear-gradient(180deg, rgba(18,30,50,.96), rgba(13,23,40,.94));
  border:1px solid var(--tl-white-08);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
  cursor:pointer;
}
.selector-card:hover{
  transform:translateY(-1px);
  border-color:rgba(95,161,255,.45);
  background:linear-gradient(180deg, rgba(23,39,65,.98), rgba(15,26,45,.96));
}
.selector-card.active{
  border-color:rgba(95,161,255,.7);
  box-shadow:0 0 0 1px rgba(95,161,255,.25), 0 10px 28px rgba(0,0,0,.22);
}
.selector-card-title{
  font-size:15px;
  font-weight:700;
  line-height:1.2;
}
.selector-card-meta{
  font-size:12px;
  color:#b7c6df;
}
.lock-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  background:var(--tl-white-06);
  border:1px solid var(--tl-white-08);
  color:#e8efff;
}
.password-modal[hidden]{display:none !important}
.password-modal{
  position:fixed;
  inset:0;
  z-index:3000;
}
.password-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,18,.68);
  backdrop-filter:blur(6px);
}
.password-modal-dialog{
  position:relative;
  width:min(460px, calc(100% - 24px));
  margin:8vh auto 0;
  padding:20px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(247,249,253,.98), rgba(239,243,250,.98));
  color:#162033;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.password-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.password-modal-eyebrow{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6d7d99;
}
.password-modal-head h3{
  margin:4px 0 0;
  font-size:26px;
  line-height:1.1;
}
.password-close{
  border:0;
  background:transparent;
  font-size:34px;
  line-height:1;
  color:#7e8798;
  cursor:pointer;
}
.password-modal-text{
  margin:0 0 14px;
  color:#536179;
}
.password-field-label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:700;
  color:#33415c;
}
.password-field{
  width:100%;
  border:1px solid rgba(52,73,102,.18);
  background:#fff;
  border-radius:14px;
  padding:13px 14px;
  font-size:15px;
  color:#142033;
  box-sizing:border-box;
}
.password-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
}
.secondary-btn{
  background:rgba(18,30,50,.08) !important;
  color:#22314e !important;
}
.password-modal-hint{
  margin-top:12px;
  font-size:12px;
  color:#6a7893;
}
@media (max-width:760px){
  .selector-card-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .selector-card-grid{grid-template-columns:1fr}
  .password-modal-dialog{margin-top:4vh;padding:16px}
}


/* V27_49 echte Passwortprüfung */
.selector-card-empty{
  opacity:.82;
  pointer-events:none;
}
.password-error{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(194,62,62,.10);
  color:#a12828;
  border:1px solid rgba(194,62,62,.22);
  font-size:14px;
  font-weight:600;
}


/* V27_49 Sichtbarkeit aller Kacheln */
.public-lock-notice{
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tl-white-05);
  border: 1px solid rgba(255,255,255,.09);
  color: #dfe8f8;
  font-size: 14px;
}


/* V27_49 Feiertage im öffentlichen Kalender */
.holiday-indicator{position:relative;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:8px;border-radius:999px;background:radial-gradient(circle at 50% 42%,rgba(255,201,77,.18) 0%,rgba(255,179,56,.13) 48%,rgba(255,170,40,.09) 100%);color:#f4c24c;font-size:12px;font-weight:800;line-height:1;border:1px solid rgba(245,189,74,.60);box-shadow:0 0 0 1px rgba(255,198,76,.10) inset,0 0 14px rgba(245,182,64,.22),0 6px 18px rgba(0,0,0,.24);cursor:help;flex:0 0 auto;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.holiday-indicator::after{content:"";position:absolute;inset:3px;border-radius:999px;background:radial-gradient(circle at 50% 35%,rgba(255,220,120,.18),rgba(255,188,67,.05) 70%,rgba(255,179,56,0) 100%);pointer-events:none}
.holiday-indicator:hover{transform:translateY(-1px) scale(1.03);filter:brightness(1.04);box-shadow:0 0 0 1px rgba(255,198,76,.14) inset,0 0 18px rgba(245,182,64,.30),0 10px 24px rgba(0,0,0,.28);z-index:80}
.holiday-hovercard{position:absolute;left:calc(100% + 14px);top:50%;transform:translateY(-50%) scale(.98);width:280px;padding:18px 20px;border-radius:22px;background:var(--tl-hover-light);color:#2c3448;border:1px solid rgba(163,177,204,.30);box-shadow:0 20px 50px rgba(5,10,25,.34);opacity:0;pointer-events:none;transition:opacity .18s ease, transform .18s ease;z-index:90;text-align:left}
.holiday-hovercard::before{content:"";position:absolute;left:-9px;top:50%;width:18px;height:18px;background:var(--tl-hover-light);border-left:1px solid rgba(163,177,204,.30);border-bottom:1px solid rgba(163,177,204,.30);transform:translateY(-50%) rotate(45deg)}
.holiday-indicator:hover .holiday-hovercard{opacity:1;transform:translateY(-50%) scale(1)}
.day-col:last-child .holiday-hovercard,.day-status-cell:last-child .holiday-hovercard{left:auto;right:calc(100% + 14px)}
.day-col:last-child .holiday-hovercard::before,.day-status-cell:last-child .holiday-hovercard::before{left:auto;right:-9px;transform:translateY(-50%) rotate(225deg)}
@media (max-width:860px){.holiday-hovercard{display:none}}


.tl-input-with-counter{display:flex;flex-direction:column;gap:4px}.char-counter{font-size:11px;color:rgba(255,255,255,.45);display:block}.char-counter.limit-warn{color:rgba(255,200,120,.9)}.char-counter.limit-max{color:rgba(255,130,130,.95)}


/* Production cleanup V27_49 */
.day-name{display:inline-flex;align-items:center;gap:6px;}


.quicknav-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.quicknav-card{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:128px;padding:18px 18px 20px;border-radius:22px;border:1px solid var(--line);background:linear-gradient(180deg,var(--surface-soft),rgba(255,255,255,.02));color:var(--text);text-decoration:none;box-shadow:inset 0 1px 0 var(--tl-white-03);transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.quicknav-card:hover{transform:translateY(-1px);border-color:rgba(122,162,255,.30);background:linear-gradient(180deg,rgba(122,162,255,.11),var(--tl-white-03));box-shadow:0 16px 28px rgba(0,0,0,.16)}
.quicknav-title{font-size:20px;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.quicknav-copy{font-size:13px;line-height:1.55;color:var(--muted)}
.quicknav-panel{scroll-margin-top:24px}
#kalendereinstellungen,#verfuegbarkeiten,#serienueberblick,#verfuegbarkeitenliste,#gebuchtetermine,#tenant-einstellungen,#gruppe-neu,#gruppen-csv,#users-csv,#kalender-neu,#gruppen-verwalten,#benutzer-verwalten{scroll-margin-top:24px}


.section-back-row{display:flex;align-items:center;gap:10px;margin:18px 0 0}
.section-back-row .btn{min-width:auto}
.section-page-title{font-size:28px;font-weight:800;letter-spacing:-.03em;color:var(--text)}

/* V27_49 Freitextfelder */
.custom-fields-builder,
.custom-booking-fields {
  border: 1px solid var(--tl-white-08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.035);
}
.custom-fields-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* V27_49 Termin-Hover und Detailansicht */
.booking-appointment-card-interactive {
  position: relative;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.booking-appointment-card-interactive:hover,
.booking-appointment-card-interactive:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 190, 90, .28);
  box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 0 0 1px rgba(255,190,90,.08) inset;
}
.appointment-hover-card {
  position: absolute;
  left: 18px;
  top: calc(100% - 6px);
  z-index: 80;
  width: min(340px, calc(100vw - 48px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(28,34,48,.97), rgba(15,20,31,.97));
  box-shadow: 0 24px 70px rgba(0,0,0,.44), inset 0 1px 0 var(--tl-white-05);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .14s ease, transform .14s ease;
}
.booking-appointment-card-interactive:hover .appointment-hover-card,
.booking-appointment-card-interactive:focus-within .appointment-hover-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.appointment-hover-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.appointment-hover-line {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.appointment-hover-line.muted { color: rgba(255,255,255,.42); }
.appointment-hover-sep {
  height: 1px;
  margin: 10px 0;
  background: var(--tl-white-08);
}
.appointment-hover-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
}
.appointment-hover-kv span { color: var(--muted); }
.appointment-hover-kv strong { color: var(--text); font-weight: 700; text-align: right; }
.tl-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.54);
  backdrop-filter: blur(12px);
}
.tl-detail-overlay.open { display: flex; }
.tl-detail-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid var(--tl-white-12);
  background: linear-gradient(180deg, rgba(25,31,45,.98), rgba(12,17,27,.98));
  box-shadow: 0 34px 110px rgba(0,0,0,.52), inset 0 1px 0 var(--tl-white-05);
  padding: 24px;
}
.tl-detail-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--tl-white-10);
  background: var(--tl-white-06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tl-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-right: 36px;
}
.tl-detail-eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.tl-detail-head h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.03em;
}
.tl-detail-time {
  margin-top: 8px;
  color: var(--muted);
}
.tl-detail-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--tl-white-08);
  background: rgba(255,255,255,.035);
}
.tl-detail-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: -.01em;
}
.tl-detail-kv { display: grid; gap: 8px; }
.tl-detail-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tl-white-06);
}
.tl-detail-kv-row:last-child { border-bottom: 0; }
.tl-detail-kv-row span { color: var(--muted); }
.tl-detail-kv-row strong { color: var(--text); text-align: right; }
.tl-detail-note,
.tl-detail-empty {
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .appointment-hover-card { display: none; }
  .tl-detail-overlay { padding: 12px; align-items: flex-end; }
  .tl-detail-modal { max-height: 88vh; border-radius: 24px 24px 0 0; }
  .tl-detail-kv-row { flex-direction: column; gap: 3px; }
  .tl-detail-kv-row strong { text-align: left; }
}

/* V27_49 Kunden-Kalenderansichten */
.week-view-toggle{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.customer-month-grid{padding:16px}
.month-day-card{cursor:pointer;text-decoration:none}
.block.booking-appointment-card-interactive{cursor:pointer}
.block.booking-appointment-card-interactive:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.28)}
.slot-hovercard .small-muted{font-size:11px;line-height:1.35;color:rgba(255,255,255,.58)}
@media(max-width:900px){.week-toolbar{gap:12px;align-items:flex-start}.week-view-toggle{justify-content:flex-start}}

/* V27_49 Hovercard Lesbarkeit: helle Karte nutzt dunkle Schrift */
.slot-hovercard .appointment-hover-title{color:#20283a !important;font-weight:850;}
.slot-hovercard .appointment-hover-line{color:#30394d !important;}
.slot-hovercard .appointment-hover-line.muted{color:#657089 !important;}
.slot-hovercard .appointment-hover-kv{color:#30394d !important;}
.slot-hovercard .appointment-hover-kv span{color:#657089 !important;}
.slot-hovercard .appointment-hover-kv strong{color:#20283a !important;}
.slot-hovercard .appointment-hover-sep{background:rgba(35,45,66,.14) !important;}

/* V27_49 Kundenbereich-Kalender: Toolbar optisch wie öffentlicher Bereich */
#kundenkalender .week-toolbar-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end;}
#kundenkalender .view-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#kundenkalender .week-toolbar .wt-btn{text-decoration:none;}
@media(max-width:900px){#kundenkalender .week-toolbar-right{justify-content:flex-start;}}
/* V27_49 Lesbarkeit Hover, Freitextfelder, Monats-Frei-Anzeige */
.slot-hovercard .appointment-hover-title,
.slot-hovercard .appointment-hover-line,
.slot-hovercard .appointment-hover-line.muted,
.slot-hovercard .appointment-hover-kv span,
.slot-hovercard .small-muted {
  color:#2f3748 !important;
  opacity:1 !important;
}
.slot-hovercard .appointment-hover-kv strong { color:#111827 !important; }
.slot-hovercard .appointment-hover-sep { background:rgba(80,95,125,.18) !important; }
.slot-hovercard .appointment-hover-title { font-weight:800; }
.slot-hovercard .small-muted { font-size:12px; line-height:1.4; }
.custom-fields-builder .custom-field-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:8px}
.custom-fields-builder .custom-field-row.is-hidden{display:none}
.custom-required-toggle{display:flex!important;align-items:center;gap:7px;font-size:12px!important;color:var(--muted)!important;white-space:nowrap;margin:0!important}
.custom-required-toggle input{width:auto!important;margin:0}
.custom-field-add{margin-top:10px;min-width:auto}
.month-day-stats strong{font-size:18px;font-weight:850;letter-spacing:-.02em;color:var(--tl-blue);line-height:1}
.month-day-stats div:first-child{font-size:14px;font-weight:750;color:#dbeafe}
.month-day-stats div:first-child strong{display:inline-block;margin-right:3px}
.customer-month-grid .month-day-stats strong{font-size:18px}

/* V27_49 kompakte Teilnehmer-/Zusatzangaben */
.slot-hovercard .appointment-hover-title{color:#172033 !important;font-weight:900;font-size:14px;margin-top:8px;}
.slot-hovercard .appointment-hover-subtitle{color:#39445c !important;font-size:12px;font-weight:800;margin:0 0 6px;}
.slot-hovercard .appointment-hover-line{color:#3a455e !important;}
.slot-hovercard .appointment-hover-line.muted{color:#68748d !important;}
.slot-hovercard .appointment-hover-kv{display:grid;grid-template-columns:minmax(84px,1fr) minmax(70px,1fr);gap:8px;align-items:center;padding:5px 0;border-bottom:1px solid rgba(50,65,95,.08);color:#20283a !important;}
.slot-hovercard .appointment-hover-kv:last-child{border-bottom:0;}
.slot-hovercard .appointment-hover-kv span{color:#657089 !important;font-weight:650;}
.slot-hovercard .appointment-hover-kv strong{color:#182236 !important;font-weight:850;text-align:right;}
.tl-detail-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;}
.tl-detail-summary-card{border:1px solid var(--tl-white-08);background:rgba(255,255,255,.045);border-radius:18px;padding:14px;}
.tl-detail-summary-card span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px;}
.tl-detail-summary-card strong{display:block;color:var(--text);font-size:16px;letter-spacing:-.01em;}
.tl-detail-section .tl-detail-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.tl-detail-section .tl-detail-kv-row{border:1px solid var(--tl-white-08);background:rgba(255,255,255,.035);border-radius:14px;padding:10px 12px;}
.tl-detail-section .tl-detail-kv-row span{font-size:12px;font-weight:650;}
.tl-detail-section .tl-detail-kv-row strong{font-size:14px;}
@media(max-width:720px){.tl-detail-summary,.tl-detail-section .tl-detail-kv{grid-template-columns:1fr;}}

/* V27_49 Teilnehmerliste / Anwesenheit */
.tl-table-wrap{overflow:auto;border:1px solid var(--tl-white-12);border-radius:18px;background:rgba(15,23,42,.55);}
.tl-participant-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;}
.tl-participant-table th,.tl-participant-table td{padding:12px 14px;border-bottom:1px solid var(--tl-white-08);text-align:left;vertical-align:middle;}
.tl-participant-table th{font-size:12px;color:rgba(226,232,240,.75);font-weight:800;text-transform:uppercase;letter-spacing:.04em;background:var(--tl-white-04);}
.tl-participant-table td{color:#f8fafc;font-size:14px;}
.tl-participant-table tr:last-child td{border-bottom:0;}
.tl-attendance-form{display:flex;flex-wrap:wrap;gap:6px;margin:0;}
.tl-status-btn{border:1px solid rgba(148,163,184,.25);background:var(--tl-white-06);color:#cbd5e1;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer;}
.tl-status-btn:hover{background:rgba(96,165,250,.14);color:#fff;}
.tl-status-btn.active{background:linear-gradient(135deg,rgba(96,165,250,.9),rgba(37,99,235,.75));border-color:rgba(147,197,253,.75);color:white;box-shadow:0 8px 22px rgba(37,99,235,.25);}
.appointment-hover-card,.slot-hovercard{color:#172033;}
.appointment-hover-person{font-weight:900;color:#111827;margin-bottom:4px;}
.appointment-hover-line,.appointment-hover-subtitle,.appointment-hover-kv span{color:#334155!important;}
.appointment-hover-kv strong{color:#111827!important;}

/* V27_49 Detail-Popup Tabellenstruktur ohne internen Schieberegler */
.tl-detail-modal{
  width:min(1180px,calc(100vw - 56px)) !important;
  max-height:none !important;
  overflow:visible !important;
  padding:26px !important;
}
.tl-table-clean{
  margin-top:16px;
  border:1px solid var(--tl-white-12);
  border-radius:20px;
  background:rgba(15,23,42,.55);
  overflow:visible;
}
.tl-participant-table-clean{
  width:100%;
  min-width:0 !important;
  table-layout:fixed;
}
.tl-participant-table-clean th:nth-child(1){width:20%;}
.tl-participant-table-clean th:nth-child(2){width:20%;}
.tl-participant-table-clean th:nth-child(3){width:34%;}
.tl-participant-table-clean th:nth-child(4){width:26%;}
.tl-participant-table-clean th,
.tl-participant-table-clean td{
  padding:14px 16px;
  vertical-align:top;
  white-space:normal;
}
.tl-name-cell strong{font-size:15px;color:#f8fafc;}
.tl-extra-list{display:grid;gap:7px;}
.tl-extra-row{
  display:grid;
  grid-template-columns:minmax(92px,.75fr) minmax(80px,1fr);
  gap:10px;
  align-items:center;
  padding:7px 9px;
  border-radius:12px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.07);
}
.tl-extra-row span{color:#aeb9cb;font-size:12px;font-weight:800;}
.tl-extra-row strong{color:#fff;font-size:13px;text-align:right;overflow-wrap:anywhere;}
.tl-empty-dash{color:#7d899d;}
.tl-status-cell{white-space:nowrap;}
.tl-attendance-form{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  align-items:center;
  justify-content:flex-start;
}
.tl-status-btn{
  white-space:nowrap;
  padding:7px 9px;
  font-size:11px;
}
@media(max-width:900px){
  .tl-detail-modal{width:calc(100vw - 24px)!important;overflow:auto!important;max-height:90vh!important;}
  .tl-participant-table-clean,.tl-participant-table-clean tbody,.tl-participant-table-clean tr,.tl-participant-table-clean td{display:block;width:100%;}
  .tl-participant-table-clean thead{display:none;}
  .tl-participant-table-clean tr{padding:12px;border-bottom:1px solid var(--tl-white-08);}
  .tl-participant-table-clean td{padding:7px 0;border:0;}
}

/* V27_49 Teilnehmer-Detailseite statt Popup + Statusbuttons stabil */
.tl-attendance-page .tl-detail-head{margin-bottom:14px;}
.tl-attendance-page .tl-table-clean{overflow:visible;}
.tl-status-cell{min-width:360px;}
.tl-attendance-form{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:7px!important;align-items:center!important;justify-content:flex-start!important;}
.tl-status-btn{display:inline-flex!important;align-items:center;justify-content:center;min-width:auto;line-height:1.1;}
.tl-participant-table-clean th:nth-child(1){width:18%;}
.tl-participant-table-clean th:nth-child(2){width:16%;}
.tl-participant-table-clean th:nth-child(3){width:30%;}
.tl-participant-table-clean th:nth-child(4){width:36%;}
@media(max-width:980px){
  .tl-status-cell{min-width:0;}
  .tl-attendance-form{flex-wrap:wrap!important;}
}

/* V27_49 UI marker */

/* V27_49 UI-Korrekturen: lesbare Hoverkarten, Kalenderlinien, Toolbar-Rahmen, blaue Schnellzugriff-Überschriften */
:root{
  --tl-white-03: rgba(255,255,255,.03);
  --tl-white-04: rgba(255,255,255,.04);
  --tl-white-05: rgba(255,255,255,.05);
  --tl-white-06: rgba(255,255,255,.06);
  --tl-white-08: rgba(255,255,255,.08);
  --tl-white-10: rgba(255,255,255,.10);
  --tl-white-12: rgba(255,255,255,.12);
  --tl-blue: #6ea8ff;
  --tl-blue-strong: #8bbaff;
  --tl-hover-light: #f7f9fd;
  --tl-hover-text: #172033;
  --tl-hover-muted: #536078;
  --tl-calendar-line: rgba(255,255,255,.105);
  --tl-calendar-line-soft: rgba(255,255,255,.07);
}

/* Hover-Menüs wieder hell und überall lesbar */
.appointment-hover-card,
.slot-hovercard,
.holiday-hovercard{
  background: linear-gradient(180deg,#ffffff 0%,#f4f7fc 100%) !important;
  color: var(--tl-hover-text) !important;
  border: 1px solid rgba(94,111,140,.22) !important;
  box-shadow: 0 22px 58px rgba(4,10,24,.35), inset 0 1px 0 rgba(255,255,255,.85) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.appointment-hover-card::before,
.slot-hovercard::before,
.holiday-hovercard::before{
  background:#ffffff !important;
  border-color: rgba(94,111,140,.22) !important;
}
.appointment-hover-card *,
.slot-hovercard *,
.holiday-hovercard *{color: var(--tl-hover-text) !important;}
.appointment-hover-title,.slot-hover-title,.slot-hover-time{color:#101827 !important;font-weight:800 !important;}
.appointment-hover-line,.appointment-hover-line.muted,.slot-hover-range,.slot-hover-meta,.slot-hovercard .small-muted,.holiday-hovercard .small-muted{color: var(--tl-hover-muted) !important;}
.appointment-hover-sep,.slot-hover-meta,.slot-hover-range{border-color: rgba(82,98,128,.16) !important;}
.appointment-hover-kv span{color:#667086 !important;}
.appointment-hover-kv strong{color:#111827 !important;}
.slot-hover-seats{color:#2563eb !important;}

/* Kalenderübersichten: klare Linienstruktur zurückholen */
.calendar-shell{
  border:1px solid var(--tl-calendar-line) !important;
  border-radius:22px !important;
  background:rgba(8,15,30,.42) !important;
  overflow:hidden !important;
}
.calendar-head{border-top:0 !important;border-bottom:1px solid var(--tl-calendar-line) !important;}
.calendar-head .cell{border-right:1px solid var(--tl-calendar-line) !important;border-bottom:1px solid var(--tl-calendar-line-soft) !important;}
.calendar-head .cell:last-child{border-right:0 !important;}
.calendar-grid .time-col,.calendar-grid .day-col,.time-col,.day-col{border-right:1px solid var(--tl-calendar-line) !important;}
.calendar-grid .day-col:last-child{border-right:0 !important;}
.calendar-grid .day-col{
  background-image:repeating-linear-gradient(to bottom,rgba(255,255,255,.055) 0,rgba(255,255,255,.055) 1px,transparent 1px,transparent 60px),linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,.010)) !important;
}
.calendar-grid .time-col{background-image:repeating-linear-gradient(to bottom,rgba(255,255,255,.045) 0,rgba(255,255,255,.045) 1px,transparent 1px,transparent 60px) !important;}
.month-grid-head,.month-grid{gap:1px !important;background:var(--tl-calendar-line) !important;border-color:var(--tl-calendar-line) !important;}
.month-head-cell,.month-day-card{box-shadow:inset 0 0 0 1px rgba(255,255,255,.015) !important;}

/* Toolbar: Rahmen um Pfeile, Heute, Zeitraum und Tag/Woche/Monat */
.week-toolbar{
  border:1px solid var(--tl-calendar-line) !important;
  border-radius:22px 22px 0 0 !important;
  border-bottom:1px solid var(--tl-calendar-line) !important;
  margin-bottom:0 !important;
}
.week-nav-group,.view-switch{
  border:1px solid rgba(122,162,255,.24) !important;
  background:rgba(255,255,255,.045) !important;
  border-radius:16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wt-btn{border:1px solid transparent !important;color:#e5edff !important;}
.wt-btn + .wt-btn{border-left:1px solid rgba(122,162,255,.18) !important;}
.wt-btn:hover{background:rgba(122,162,255,.12) !important;opacity:1 !important;}
.wt-btn.active{background:linear-gradient(180deg,rgba(122,162,255,.28),rgba(122,162,255,.14)) !important;color:#ffffff !important;box-shadow:inset 0 0 0 1px rgba(122,162,255,.26) !important;}
.week-title{
  padding:10px 14px !important;
  border:1px solid rgba(122,162,255,.20) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.035) !important;
  color:#f2f6ff !important;
}
.week-title .muted{color:rgba(218,228,245,.72) !important;}

/* Schnellzugriff: Überschriften blau hervorheben */
.quicknav-title,.quicknav-card .quicknav-title{color:var(--tl-blue-strong) !important;}
.quicknav-card:hover .quicknav-title{color:#b3ccff !important;}
.quicknav-card{border-color:rgba(255,255,255,.10) !important;}
.quicknav-card:hover{border-color:rgba(122,162,255,.34) !important;}

@media(max-width:900px){
  .week-toolbar{border-radius:20px !important;}
  .week-title{width:100%;}
  .calendar-shell{border-radius:18px !important;}
}

/* V27_49 Standard: klickbare Elemente mit dezentem hellblauem Rahmen/Glow */
:is(.quicknav-card,.btn,button,.wt-btn,.month-day-card,.calendar-slot,.block.free-slot,.time-choice,.group-card,.provider-card,.attendance-status-btn,a.card-link):is(:hover,:focus-visible){
  border-color:var(--tl-clickable-ring) !important;
  box-shadow:0 0 0 3px var(--tl-clickable-glow), 0 14px 34px rgba(11,22,48,.22) !important;
  outline:none !important;
}
.quicknav-card:is(:hover,:focus-visible),
.month-day-card:is(:hover,:focus-visible),
.calendar-slot:is(:hover,:focus-visible),
.block.free-slot:is(:hover,:focus-visible),
.time-choice:is(:hover,:focus-visible){
  transform:translateY(-1px);
}
:is(.quicknav-card,.month-day-card,.calendar-slot,.block.free-slot,.time-choice,.group-card,.provider-card){
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

/* V27_49 Monatsübersicht: freie Slots schneller erfassbar */
.month-day-stats div:first-child{
  display:flex !important;
  align-items:baseline !important;
  gap:5px !important;
  color:#dbeafe !important;
  font-size:14px !important;
  font-weight:750 !important;
}
.month-day-stats div:first-child strong,
.customer-month-grid .month-day-stats div:first-child strong{
  color:var(--tl-blue-strong) !important;
  font-size:22px !important;
  font-weight:900 !important;
  letter-spacing:-.03em !important;
  line-height:1 !important;
  text-shadow:0 0 14px rgba(122,162,255,.20) !important;
}
.month-day-stats div:first-child span,
.month-day-stats div:first-child em{
  color:#dbeafe !important;
  font-style:normal !important;
  font-size:14px !important;
  font-weight:750 !important;
}
@media(max-width:760px){
  .month-day-stats div:first-child strong,
  .customer-month-grid .month-day-stats div:first-child strong{font-size:20px !important;}
}

/* V27_49 Termindetail responsive: keine horizontale Scrollbar */
html, body { max-width: 100%; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
.tl-attendance-page,
.tl-detail-modal,
.tl-detail-card-list,
.tl-appointment-detail-card,
.tl-detail-content-grid,
.tl-detail-mini-card,
.tl-detail-actions-panel,
.tl-detail-action-grid,
.tl-detail-status-area { max-width: 100%; min-width: 0; box-sizing: border-box; }
.tl-attendance-page { overflow: visible; }
.tl-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; min-width:0; }
.tl-detail-head > * { min-width:0; }
.tl-detail-head h3 { overflow-wrap:anywhere; }
.tl-detail-card-list { display:grid; gap:16px; width:100%; }
.tl-appointment-detail-card { border:1px solid var(--tl-white-12); background:linear-gradient(180deg, rgba(15,23,42,.78), rgba(15,23,42,.56)); border-radius:24px; padding:18px; box-shadow:0 18px 44px rgba(0,0,0,.22); overflow:hidden; }
.tl-appointment-detail-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; min-width:0; }
.tl-appointment-title-wrap { min-width:0; }
.tl-appointment-title-wrap h3 { margin:3px 0 4px; color:#f8fafc; font-size:22px; letter-spacing:-.025em; overflow-wrap:anywhere; }
.tl-detail-badges { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; min-width:0; }
.tl-status-badge { display:inline-flex; align-items:center; max-width:100%; border:1px solid rgba(148,163,184,.24); background:rgba(255,255,255,.06); color:#dbeafe; border-radius:999px; padding:7px 10px; font-size:12px; font-weight:850; white-space:normal; overflow-wrap:anywhere; }
.tl-status-badge-group { border-color:rgba(96,165,250,.34); background:rgba(37,99,235,.16); color:#bfdbfe; }
.tl-detail-content-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin-top:16px; }
.tl-detail-extra-card { grid-column:1 / -1; }
.tl-detail-mini-card { border:1px solid var(--tl-white-08); background:rgba(255,255,255,.045); border-radius:18px; padding:14px; overflow:hidden; }
.tl-detail-mini-card h4 { margin:0 0 10px; color:#e2e8f0; font-size:14px; letter-spacing:-.01em; }
.tl-detail-kv-list { display:grid; gap:8px; }
.tl-detail-kv-line { display:grid; grid-template-columns:minmax(110px,.42fr) minmax(0,1fr); gap:10px; align-items:start; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.035); border-radius:14px; padding:9px 10px; min-width:0; }
.tl-detail-kv-line span { color:#aeb9cb; font-size:12px; font-weight:800; min-width:0; }
.tl-detail-kv-line strong { color:#fff; font-size:13px; text-align:right; min-width:0; overflow-wrap:anywhere; word-break:break-word; }
.tl-detail-actions-panel { display:grid; gap:12px; margin-top:14px; padding-top:14px; border-top:1px solid var(--tl-white-08); }
.tl-detail-actions-title { color:#aeb9cb; font-size:12px; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
.tl-detail-action-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px; align-items:stretch; }
.tl-detail-action-grid .btn { width:100%; justify-content:center; text-align:center; white-space:normal; }
.tl-detail-status-area { display:grid; gap:8px; }
.tl-detail-status-area .tl-attendance-form { display:flex!important; flex-wrap:wrap!important; gap:8px!important; min-width:0; }
.tl-detail-status-area .tl-status-btn { white-space:normal!important; min-width:0; overflow-wrap:anywhere; }
@media(max-width:760px){
  .tl-appointment-detail-card{padding:14px;border-radius:20px;}
  .tl-detail-content-grid{grid-template-columns:1fr;}
  .tl-detail-kv-line{grid-template-columns:1fr;gap:4px;}
  .tl-detail-kv-line strong{text-align:left;}
  .tl-detail-badges{justify-content:flex-start;}
}

/* V27_49: Kalender-Kontextkopf im Backend */
.calendar-context-header {
  margin: 0 0 14px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
}
.calendar-context-main { display:flex; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.calendar-context-badge {
  display:inline-flex; align-items:center; border-radius:999px; padding:6px 10px;
  font-size:12px; font-weight:700; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.12);
}
.calendar-context-title { font-size:20px; font-weight:800; letter-spacing:-.02em; }
.calendar-context-subtitle, .calendar-context-extra { margin-top:3px; color:var(--muted); font-size:13px; }
.calendar-owner-switch { margin: 0 0 14px 0; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.calendar-owner-switch label { margin:0; font-size:13px; color:var(--muted); }
.calendar-owner-switch select { width:auto; min-width:240px; }

/* V27_49 Terminanzeige: Terminnummer und private Termine ohne Hover-Menü */
.tl-appointment-number,.appt-no{font-weight:850;font-size:1.08em;letter-spacing:.01em;}
.tl-appointment-number{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);}
.tl-private-no-hover .appointment-hover-card{display:none!important;}
.tl-private-no-hover .slot-hovercard{display:none!important;}

/* V29_ICON: Kalender-Icon-System */
.tl-cal-icon{--tl-cal-ring:#2f80ed;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:999px;background:var(--tl-cal-ring);padding:4px;flex:0 0 auto;box-shadow:0 8px 22px rgba(0,0,0,.22)}
.tl-cal-icon-inner{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:999px;background:#fff;color:#050505}
.tl-cal-icon svg{width:22px;height:22px;display:block;color:#050505}
.tl-cal-icon-context{width:52px;height:52px;padding:5px}
.tl-cal-icon-context svg{width:27px;height:27px}
.tl-icon-inline-preview{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--muted);font-size:13px}
.tl-icon-modal{position:fixed;inset:0;background:rgba(0,0,0,.68);display:none;align-items:flex-start;justify-content:center;z-index:9999;padding:28px 18px 18px;overflow:auto;box-sizing:border-box}
.tl-icon-modal.open{display:flex}
.tl-icon-modal-card{width:min(720px,96vw);max-height:calc(100vh - 56px);overflow:auto;margin:0 auto 18px;background:var(--card,#101827);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:22px;box-shadow:0 22px 70px rgba(0,0,0,.45)}
.tl-icon-modal-card h2{margin:0 0 16px}
.tl-icon-modal-section{margin-top:18px}
.tl-icon-modal-section h3{margin:0 0 10px;font-size:15px;color:var(--muted)}
.tl-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:10px}
.tl-icon-choice{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);border-radius:18px;min-height:58px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:8px}
.tl-icon-choice.active{border-color:var(--tl-cal-ring,#2f80ed);box-shadow:0 0 0 3px color-mix(in srgb,var(--tl-cal-ring,#2f80ed) 35%,transparent)}
.tl-icon-choice .tl-cal-icon{width:42px;height:42px;box-shadow:none}
.tl-color-grid{display:flex;gap:10px;flex-wrap:wrap}
.tl-color-choice{width:34px;height:34px;border-radius:999px;border:2px solid rgba(255,255,255,.28);background:var(--tl-cal-ring);cursor:pointer}
.tl-color-choice.active{outline:3px solid rgba(255,255,255,.85);outline-offset:3px}
.tl-icon-live-preview{display:flex;align-items:center;justify-content:center;min-height:78px;background:rgba(255,255,255,.04);border-radius:18px;border:1px solid rgba(255,255,255,.1)}
.tl-icon-live-preview .tl-cal-icon{width:68px;height:68px;padding:6px}
.tl-icon-live-preview .tl-cal-icon svg{width:34px;height:34px}
.tl-icon-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.calendar-context-main{align-items:center}
.tl-cal-icon img{width:22px;height:22px;object-fit:contain;display:block;filter:grayscale(1) brightness(0);mix-blend-mode:multiply}
.tl-icon-live-preview .tl-cal-icon img{width:34px;height:34px}
.tl-upload-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.tl-upload-row input[type=file]{max-width:260px}.selector-card-title .tl-cal-icon{width:34px;height:34px;padding:3px;box-shadow:none}.selector-card-title .tl-cal-icon svg,.selector-card-title .tl-cal-icon img{width:18px;height:18px}.selector-card-title{display:flex;gap:10px;align-items:center}


/* V112_UI: Login-Aktionen in einer Reihe und Admin-Header linksbündig */
.login-actions-row{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-top:18px}
.login-actions-row button,.login-actions-row .btn{flex:1 1 0;min-width:0;white-space:nowrap;text-align:center;justify-content:center}
.admin-top-actions{justify-content:flex-start;align-items:flex-start;width:100%;margin-top:14px}
.quicknav-card{justify-content:flex-start !important;align-items:flex-start}
.quicknav-title{display:block;min-height:52px;line-height:1.25}
.quicknav-copy{display:block}
@media (max-width:640px){.login-actions-row{flex-wrap:wrap}.login-actions-row button,.login-actions-row .btn{flex:1 1 100%}}

/* V114_UI: Gruppenkalender-Ersteller-Checkbox neben der Überschrift */
.tl-create-group-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:8px 0 14px}
.tl-create-group-header h2{margin:0;padding-top:4px}
.tl-creator-participates-box{max-width:360px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);border-radius:14px;padding:9px 11px;font-size:13px;line-height:1.25}
.tl-creator-participates-box label{display:flex;align-items:center;gap:7px;margin:0;color:var(--text,#fff);font-weight:700}
.tl-creator-participates-box small{display:block;margin-top:5px;font-size:11px;line-height:1.25;color:var(--muted,rgba(255,255,255,.68))}

/* V114_UI: native Kalender-/Uhrzeit-Icons im gesamten Programm weiß darstellen */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator{filter:invert(1) brightness(2);opacity:.95;cursor:pointer}
input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"],input[type="week"]{color-scheme:dark}
@media (max-width:720px){.tl-create-group-header{display:block}.tl-creator-participates-box{max-width:none;margin-top:10px}}

/* V138: Öffentliche Gruppenkalender-Bestätigung */
.tl-public-confirm-card { max-width: 760px; }
.tl-booking-summary { margin: 18px 0; padding: 18px; border: 1px solid var(--border, #d9e2ef); border-radius: 16px; background: var(--panel-soft, #f8fbff); }
.tl-booking-summary h2 { margin: 0 0 8px; font-size: 1.15rem; }
.tl-public-booking-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.tl-inline-change-form { margin: 0; display: inline-flex; }
.tl-inline-change-form button { white-space: nowrap; }
@media (max-width: 720px) { .tl-public-booking-actions, .tl-inline-change-form, .tl-public-booking-actions .btn, .tl-public-booking-actions button { width: 100%; } }

/* V140: Öffentliche Gruppentermin-Bestätigung lesbar im dunklen Terminlotse-Theme */
.tl-public-confirm-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  color: var(--text);
  border: 1px solid var(--line);
}
.tl-public-confirm-card h1,
.tl-public-confirm-card h2,
.tl-public-confirm-card h3,
.tl-public-confirm-card p,
.tl-public-confirm-card strong {
  color: var(--text);
}
.tl-public-confirm-card .small-muted {
  color: rgba(245,247,251,.78);
}
.tl-public-confirm-card .notice.ok {
  color: #f5f7fb;
  background: rgba(122,162,255,.16);
  border-color: rgba(122,162,255,.32);
}
.tl-booking-summary {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(122,162,255,.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17,23,35,.96), rgba(23,31,44,.96));
  color: #f5f7fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.tl-booking-summary h2 {
  color: #ffffff;
}
.tl-booking-summary p,
.tl-booking-summary strong {
  color: #f5f7fb;
}
.tl-booking-summary .small-muted {
  color: rgba(245,247,251,.82);
}

/* V142: Buchungsbestätigung im Gruppenkalender wieder hell, aber mit schwarzer lesbarer Schrift */
.tl-public-confirm-card .tl-booking-summary {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,.18) !important;
  box-shadow: 0 10px 24px rgba(15,23,42,.12) !important;
}
.tl-public-confirm-card .tl-booking-summary h2,
.tl-public-confirm-card .tl-booking-summary p,
.tl-public-confirm-card .tl-booking-summary strong,
.tl-public-confirm-card .tl-booking-summary .small-muted {
  color: #111827 !important;
}


/* V143: Terminbuchungsbestätigung sicher lesbar - weißer Kasten, schwarze Schrift */
.tl-public-confirm-card .tl-booking-summary,
.tl-public-confirm-card .tl-booking-summary *,
.form-card .tl-booking-summary,
.form-card .tl-booking-summary * {
  color: #000000 !important;
  text-shadow: none !important;
}
.tl-public-confirm-card .tl-booking-summary,
.form-card .tl-booking-summary {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.22) !important;
}
.tl-public-confirm-card .tl-booking-summary h2,
.tl-public-confirm-card .tl-booking-summary p,
.tl-public-confirm-card .tl-booking-summary strong,
.tl-public-confirm-card .tl-booking-summary .small-muted {
  color: #000000 !important;
}

/* V144: attendance_detail.php an Admin-Standard angepasst */
.tl-attendance-admin-head{margin-bottom:18px;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;}
.tl-attendance-admin-head h1{margin:4px 0 8px;font-size:clamp(28px,3vw,42px);}
.tl-attendance-history{margin-top:18px;}
.tl-attendance-page{margin-top:18px;}
.tl-attendance-page .tl-detail-head{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:16px;}
@media(max-width:760px){.tl-attendance-admin-head{display:block}.tl-attendance-page{padding:16px}}

/* V145: Anwesenheits- und Export-Aktionen oben über dem Terminblock */
.tl-attendance-actionbar{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0 0 18px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}
.tl-attendance-actionitem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.tl-attendance-actionmeta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
}
.tl-attendance-actionbuttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.tl-attendance-actionbuttons form,
.tl-attendance-actionbuttons .inline-form{
  display:inline-flex;
  margin:0;
}
.tl-attendance-page .tl-status-cell{display:none;}
@media(max-width:760px){
  .tl-attendance-actionitem{align-items:flex-start;}
  .tl-attendance-actionbuttons{justify-content:flex-start;}
}


/* V146: Teilnehmerdetail - Zuweisungsdaten entfernt, Aktionen sauber oben ausgerichtet */
.tl-attendance-actionitem{
  align-items:flex-start;
  flex-direction:column;
  gap:12px;
}
.tl-attendance-actionmeta{
  width:100%;
  padding-bottom:10px;
  margin-bottom:2px;
  border-bottom:1px solid var(--line);
}
.tl-attendance-actionbuttons{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.tl-attendance-statusbuttons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.tl-attendance-statusbuttons .tl-attendance-form{
  margin:0!important;
}
.tl-attendance-export-btn{
  margin-left:auto;
  white-space:nowrap;
}
.tl-participant-table-clean th:nth-child(1){width:18%;}
.tl-participant-table-clean th:nth-child(2){width:22%;}
.tl-participant-table-clean th:nth-child(3){width:30%;}
.tl-participant-table-clean th:nth-child(4){width:30%;}
@media(max-width:760px){
  .tl-attendance-export-btn{margin-left:0;}
  .tl-attendance-actionbuttons{justify-content:flex-start;}
}


/* V148: Teilnehmerdetail - Terminnummer/Name mit Abstand, Export rechts in gleicher Aktionszeile */
.tl-attendance-actionitem{
  align-items:stretch;
  flex-direction:column;
  gap:14px;
}
.tl-attendance-actionmeta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  width:100%;
  padding-bottom:14px;
  margin-bottom:0;
  border-bottom:1px solid var(--line);
}
.tl-attendance-actionmeta .tl-appointment-number{
  display:inline-flex;
  width:max-content;
}
.tl-attendance-actionmeta strong{
  display:block;
  line-height:1.25;
}
.tl-attendance-actionbuttons{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:nowrap;
}
.tl-attendance-statusbuttons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.tl-attendance-export-btn{
  margin-left:auto!important;
  width:auto!important;
  flex:0 0 auto;
  white-space:nowrap;
}
@media(max-width:760px){
  .tl-attendance-actionbuttons{flex-wrap:wrap;justify-content:flex-start;}
  .tl-attendance-export-btn{margin-left:0!important;}
}


/* V149: Kalenderansicht - Gruppentermine mit teilweiser Belegung als rot/blauer Fortschrittsbalken */
.block.slot-state-partial .slot-compact-card{
  background:linear-gradient(90deg,rgba(176,95,90,.92) 0 var(--tl-booked-pct,50%),rgba(53,111,205,.88) var(--tl-booked-pct,50%) 100%) !important;
  border:1px solid rgba(255,255,255,.14);
}
.block.slot-state-full .slot-compact-card{
  background:linear-gradient(180deg,rgba(176,95,90,.92),rgba(145,73,68,.92)) !important;
}
.block.slot-state-partial .slot-hover-status{
  background:rgba(53,111,205,.16);
  color:#dbeafe;
  border-color:rgba(96,165,250,.28);
}

/* V150: Admin-Kalender: Terminserien einklappbar und Gruppenslot-Belegung deutlicher */
.tl-series-accordion{padding:0!important;overflow:hidden;}
.tl-series-accordion-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:18px 20px;font-weight:800;color:var(--text,#eef4ff);list-style:none;}
.tl-series-accordion-summary::-webkit-details-marker{display:none;}
.tl-series-accordion-summary::after{content:'▾';font-size:16px;opacity:.8;transition:transform .18s ease;}
.tl-series-accordion[open] .tl-series-accordion-summary::after{transform:rotate(180deg);}
.tl-series-accordion-body{padding:0 20px 20px;}
.block.slot-state-partial .slot-compact-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg,
    rgba(178,61,68,.96) 0%,
    rgba(178,61,68,.96) var(--tl-booked-pct,0%),
    rgba(65,111,205,.92) var(--tl-booked-pct,0%),
    rgba(65,111,205,.92) 100%) !important;
  border-color:rgba(255,255,255,.20)!important;
}
.block.slot-state-partial .slot-compact-card .block-title,
.block.slot-state-partial .slot-compact-card .small-muted{position:relative;z-index:2;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.35);}


/* V151: Meine Terminserien als aufklappbare Zweispalten-Tabelle */
.tl-series-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.tl-series-column{border:1px solid var(--border,#d8e1ef);border-radius:16px;padding:16px;background:var(--panel-soft,rgba(255,255,255,.04));}
.tl-series-column h3{margin:0 0 12px;font-size:16px;}
.tl-series-table-row{display:grid;grid-template-columns:1.3fr .9fr;gap:12px;align-items:start;padding:12px 0;border-top:1px solid var(--border,#d8e1ef);}
.tl-series-table-row:first-of-type{border-top:0;padding-top:0;}
@media (max-width:900px){.tl-series-two-columns{grid-template-columns:1fr}.tl-series-table-row{grid-template-columns:1fr}}

/* V154: Meine Terminserien - Akkordeon-Optik nach Mockup Version 3 */
.tl-my-series-v154{border-radius:22px;box-shadow:0 18px 50px rgba(15,23,42,.08);}
.tl-my-series-v154 .tl-series-accordion-summary{background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,252,.82));border-bottom:1px solid var(--border,#d8e1ef);}
.tl-series-summary-counts{display:inline-flex;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:800;color:var(--muted,#64748b)}
.tl-series-summary-counts span{border:1px solid var(--border,#d8e1ef);border-radius:999px;padding:5px 10px;background:rgba(255,255,255,.72)}
.tl-series-accordion-columns{gap:12px;}
.tl-my-series-v154 .tl-series-column{padding:0;overflow:hidden;border-radius:18px;background:rgba(255,255,255,.82);}
.tl-series-column-accepted{border-color:rgba(34,197,94,.28)!important;background:linear-gradient(180deg,rgba(240,253,244,.92),rgba(255,255,255,.82))!important;}
.tl-series-column-declined{border-color:rgba(239,68,68,.25)!important;background:linear-gradient(180deg,rgba(254,242,242,.92),rgba(255,255,255,.82))!important;}
.tl-series-column-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border,#d8e1ef)}
.tl-series-column-head>div{display:flex;align-items:center;gap:10px;min-width:0}.tl-series-column-head h3{margin:0;font-size:15px;line-height:1.2}.tl-series-head-icon{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;font-weight:900;background:#fff}.tl-series-column-accepted .tl-series-head-icon{color:#15803d;border:1px solid rgba(34,197,94,.35)}.tl-series-column-declined .tl-series-head-icon{color:#b91c1c;border:1px solid rgba(239,68,68,.35)}
.tl-series-count-badge{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#fff;border:1px solid var(--border,#d8e1ef);font-weight:900;font-size:13px}.tl-series-card-stack{display:grid;gap:10px;padding:12px}.tl-series-empty-state{margin:12px;padding:16px;border-radius:14px;border:1px dashed var(--border,#d8e1ef);color:var(--muted,#64748b);background:rgba(255,255,255,.62)}
.tl-series-mini-card{border:1px solid rgba(148,163,184,.22);border-radius:14px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.05);overflow:hidden}.tl-series-mini-card summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 16px}.tl-series-mini-card summary::-webkit-details-marker{display:none}.tl-series-mini-title{font-weight:850;color:var(--text,#0f172a)}.tl-series-mini-chevron{transition:transform .18s ease;opacity:.72}.tl-series-mini-card[open] .tl-series-mini-chevron{transform:rotate(180deg)}.tl-series-mini-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px 16px}.tl-series-mini-body div{border-top:1px solid rgba(148,163,184,.18);padding-top:10px}.tl-series-mini-body span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#64748b);font-weight:800;margin-bottom:3px}.tl-series-mini-body strong{font-size:13px}.tl-series-mini-card-accepted{border-left:3px solid #22c55e}.tl-series-mini-card-declined{border-left:3px solid #ef4444}@media (max-width:700px){.tl-series-mini-body{grid-template-columns:1fr}.tl-series-summary-counts{display:none}}

/* V155: Meine Terminserien - dunkler Zweispalten-Akkordeon-Aufbau wie Mockup Version 3 */
.tl-my-series-v155{
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(18,24,36,.96),rgba(14,19,29,.96))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 20px 54px rgba(0,0,0,.32)!important;
  overflow:hidden!important;
}
.tl-my-series-v155 .tl-series-accordion-summary{
  min-height:64px;
  padding:18px 22px!important;
  background:linear-gradient(180deg,rgba(30,39,55,.98),rgba(20,27,40,.98))!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  color:#f7f9ff!important;
}
.tl-my-series-v155 .tl-series-accordion-summary > span:first-child{
  font-size:20px;
  font-weight:850;
  letter-spacing:-.03em;
}
.tl-my-series-v155 .tl-series-summary-counts{gap:10px!important;white-space:nowrap;}
.tl-my-series-v155 .tl-series-summary-counts span{
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  color:#c9d3e6!important;
}
.tl-my-series-v155 .tl-series-accordion-body{padding:16px!important;}
.tl-my-series-v155 .tl-series-two-columns{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
}
.tl-my-series-v155 .tl-series-column{
  padding:0!important;
  min-height:160px;
  overflow:hidden!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,rgba(23,31,44,.96),rgba(17,23,35,.96))!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
.tl-my-series-v155 .tl-series-column-accepted{
  border-color:rgba(74,222,128,.28)!important;
  background:linear-gradient(180deg,rgba(18,39,31,.95),rgba(17,24,36,.96))!important;
}
.tl-my-series-v155 .tl-series-column-declined{
  border-color:rgba(248,113,113,.30)!important;
  background:linear-gradient(180deg,rgba(45,24,28,.95),rgba(17,24,36,.96))!important;
}
.tl-my-series-v155 .tl-series-column-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:15px 16px!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
}
.tl-my-series-v155 .tl-series-column-head h3{
  margin:0!important;
  color:#f7f9ff!important;
  font-size:18px!important;
  font-weight:850!important;
}
.tl-my-series-v155 .tl-series-head-icon{
  width:26px!important;height:26px!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}
.tl-my-series-v155 .tl-series-column-accepted .tl-series-head-icon{color:#86efac!important;}
.tl-my-series-v155 .tl-series-column-declined .tl-series-head-icon{color:#fca5a5!important;}
.tl-my-series-v155 .tl-series-count-badge{
  min-width:30px!important;height:28px!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.13)!important;
  color:#f8fafc!important;
}
.tl-my-series-v155 .tl-series-card-stack{display:grid!important;gap:10px!important;padding:12px!important;}
.tl-my-series-v155 .tl-series-mini-card{
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.035))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
  overflow:hidden!important;
}
.tl-my-series-v155 .tl-series-mini-card-accepted{border-left:3px solid #4ade80!important;}
.tl-my-series-v155 .tl-series-mini-card-declined{border-left:3px solid #f87171!important;}
.tl-my-series-v155 .tl-series-mini-card summary{
  min-height:58px;
  padding:15px 16px!important;
  color:#f8fafc!important;
}
.tl-my-series-v155 .tl-series-mini-title{color:#f8fafc!important;font-weight:800!important;}
.tl-my-series-v155 .tl-series-mini-chevron{color:#cbd5e1!important;font-size:16px!important;}
.tl-my-series-v155 .tl-series-mini-card[open] .tl-series-mini-chevron{transform:rotate(180deg)!important;}
.tl-my-series-v155 .tl-series-mini-body{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:0 16px 16px!important;
}
.tl-my-series-v155 .tl-series-mini-body div{
  padding-top:10px!important;
  border-top:1px solid rgba(255,255,255,.10)!important;
}
.tl-my-series-v155 .tl-series-mini-body span{color:#9aa6b8!important;}
.tl-my-series-v155 .tl-series-mini-body strong{color:#eef4ff!important;font-weight:750!important;}
.tl-my-series-v155 .tl-series-empty-state{
  margin:12px!important;
  padding:16px!important;
  border-radius:14px!important;
  border:1px dashed rgba(255,255,255,.16)!important;
  color:#aab6c8!important;
  background:rgba(255,255,255,.035)!important;
}
html[data-theme="light"] .tl-my-series-v155{
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.96))!important;
  border-color:rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .tl-my-series-v155 .tl-series-accordion-summary{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.94))!important;
  color:#0f172a!important;
  border-bottom-color:rgba(15,23,42,.08)!important;
}
html[data-theme="light"] .tl-my-series-v155 .tl-series-accordion-summary > span:first-child,
html[data-theme="light"] .tl-my-series-v155 .tl-series-column-head h3,
html[data-theme="light"] .tl-my-series-v155 .tl-series-mini-title,
html[data-theme="light"] .tl-my-series-v155 .tl-series-mini-body strong{color:#0f172a!important;}
html[data-theme="light"] .tl-my-series-v155 .tl-series-summary-counts span,
html[data-theme="light"] .tl-my-series-v155 .tl-series-count-badge{background:#fff!important;border-color:rgba(15,23,42,.10)!important;color:#475569!important;}
html[data-theme="light"] .tl-my-series-v155 .tl-series-column{background:#fff!important;border-color:rgba(15,23,42,.08)!important;}
html[data-theme="light"] .tl-my-series-v155 .tl-series-column-accepted{background:linear-gradient(180deg,rgba(240,253,244,.92),#fff)!important;border-color:rgba(34,197,94,.25)!important;}
html[data-theme="light"] .tl-my-series-v155 .tl-series-column-declined{background:linear-gradient(180deg,rgba(254,242,242,.92),#fff)!important;border-color:rgba(239,68,68,.24)!important;}
html[data-theme="light"] .tl-my-series-v155 .tl-series-mini-card{background:#fff!important;border-color:rgba(15,23,42,.08)!important;box-shadow:0 10px 26px rgba(15,23,42,.06)!important;}
@media (max-width:900px){.tl-my-series-v155 .tl-series-two-columns{grid-template-columns:1fr!important}.tl-my-series-v155 .tl-series-summary-counts{display:none!important}}
@media (max-width:620px){.tl-my-series-v155 .tl-series-mini-body{grid-template-columns:1fr!important}.tl-my-series-v155 .tl-series-column-head h3{font-size:16px!important}}

/* V156: attendance_detail.php - Vorschlag 1, kompakt & strukturiert im dunklen Admin-Design */
.tl-attendance-v156{display:block;}
.tl-attendance-v156-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025));box-shadow:0 18px 44px rgba(0,0,0,.16);}
.tl-attendance-v156-title{display:flex;align-items:center;gap:14px;min-width:0;}
.tl-attendance-v156-icon{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:rgba(96,165,250,.16);border:1px solid rgba(96,165,250,.30);color:#93c5fd;font-size:22px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);}
.tl-attendance-v156-title h3{margin:2px 0 4px;font-size:20px;line-height:1.15;color:var(--text);}
.tl-attendance-v156-title p{margin:0;color:var(--muted);font-size:13px;}
.tl-attendance-v156-pdf{white-space:nowrap;}
.tl-attendance-v156-stats{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) repeat(2,minmax(180px,.8fr));gap:12px;margin:14px 0 18px;}
.tl-attendance-v156-stat{min-height:76px;border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.04);}
.tl-attendance-v156-stat span{font-size:13px;font-weight:850;color:#dbe5f4;}
.tl-attendance-v156-stat strong{font-size:26px;line-height:1;color:#fff;}
.tl-attendance-v156-stat.is-present{background:linear-gradient(135deg,rgba(34,197,94,.14),rgba(255,255,255,.035));border-color:rgba(34,197,94,.32);}
.tl-attendance-v156-stat.is-absent{background:linear-gradient(135deg,rgba(245,158,11,.13),rgba(255,255,255,.035));border-color:rgba(245,158,11,.34);}
.tl-attendance-v156-stat.is-late{background:linear-gradient(135deg,rgba(59,130,246,.16),rgba(255,255,255,.035));border-color:rgba(96,165,250,.34);}
.tl-attendance-v156-cal{height:76px;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:16px!important;white-space:normal;text-align:center;}
.tl-attendance-v156-tablewrap{border-radius:18px;margin-top:0;overflow:hidden;background:rgba(15,23,42,.62);}
.tl-attendance-v156-table{table-layout:fixed;min-width:980px;}
.tl-attendance-v156-table th:nth-child(1){width:52%;}.tl-attendance-v156-table th:nth-child(2){width:24%;}.tl-attendance-v156-table th:nth-child(3){width:24%;}
.tl-attendance-v156-table tr:hover td{background:rgba(255,255,255,.025);}
.tl-attendance-v156-person{display:flex;align-items:flex-start;gap:12px;min-width:0;}
.tl-attendance-v156-person strong,.tl-attendance-v156-person small{display:block;}
.tl-attendance-v156-person .tl-appointment-number{margin:0 0 6px;}
.tl-attendance-v156-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(96,165,250,.16);border:1px solid rgba(96,165,250,.30);color:#bfdbfe;font-weight:900;font-size:13px;letter-spacing:.02em;}
.tl-attendance-v156-status{display:grid;gap:8px;align-content:start;}
.tl-attendance-v156-badge{width:max-content;display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;border:1px solid var(--line);}
.tl-attendance-v156-badge.is-present{color:#bbf7d0;background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.30);}.tl-attendance-v156-badge.is-absent{color:#fde68a;background:rgba(245,158,11,.15);border-color:rgba(245,158,11,.30);}.tl-attendance-v156-badge.is-late{color:#bfdbfe;background:rgba(59,130,246,.18);border-color:rgba(96,165,250,.34);}
.tl-attendance-v156-status .tl-attendance-form{display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
.tl-attendance-v156-status .tl-status-btn{padding:6px 8px;font-size:10px;}
.tl-attendance-v156-table .tl-extra-row{grid-template-columns:1fr;gap:3px;}.tl-attendance-v156-table .tl-extra-row strong{text-align:left;}
@media(max-width:980px){.tl-attendance-v156-stats{grid-template-columns:1fr 1fr}.tl-attendance-v156-cal{height:auto;min-height:58px}.tl-attendance-v156-table{min-width:0}.tl-attendance-v156-table,.tl-attendance-v156-table tbody,.tl-attendance-v156-table tr,.tl-attendance-v156-table td{display:block;width:100%;}.tl-attendance-v156-table thead{display:none}.tl-attendance-v156-table tr{padding:12px;border-bottom:1px solid var(--line)}.tl-attendance-v156-table td{border:0!important;padding:8px 6px!important}.tl-attendance-v156-head{align-items:flex-start;flex-direction:column}.tl-attendance-v156-pdf{width:100%}}
@media(max-width:560px){.tl-attendance-v156-stats{grid-template-columns:1fr}.tl-attendance-v156-title{align-items:flex-start}.tl-attendance-v156-icon{width:42px;height:42px}}

/* V158: attendance_detail.php - Sticky Header & direkter Inline-Statuswechsel */
.tl-attendance-sticky-header{position:sticky;top:0;z-index:50;backdrop-filter:blur(16px);background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,41,59,.88));border:1px solid rgba(148,163,184,.18);box-shadow:0 18px 48px rgba(0,0,0,.28);}
.tl-attendance-inline-form{align-items:center;}
.tl-attendance-inline-form .tl-status-btn{cursor:pointer;transition:transform .14s ease,background .14s ease,border-color .14s ease,opacity .14s ease;}
.tl-attendance-inline-form .tl-status-btn:hover{transform:translateY(-1px);}
.tl-attendance-inline-form .tl-status-btn:disabled{opacity:.58;cursor:wait;}
.tl-inline-save-state{min-height:16px;display:inline-flex;align-items:center;color:var(--muted);font-size:11px;font-weight:800;padding-left:2px;}
.tl-attendance-page{margin-top:14px;}
.tl-attendance-history{margin-top:14px;}
@media(max-width:760px){.tl-attendance-sticky-header{top:0;border-radius:0 0 18px 18px}.tl-attendance-sticky-header .actions-row{width:100%;justify-content:flex-start;overflow:auto;padding-bottom:2px}}

/* V159 attendance detail: history button instead of duplicate PDF export */
.tl-attendance-v156-history-btn{height:76px;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:16px!important;white-space:normal;text-align:center;cursor:pointer;}
.tl-attendance-history-all{margin-top:18px;scroll-margin-top:110px;}
.tl-attendance-history-all[hidden]{display:none!important;}
.tl-attendance-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line);}
.tl-attendance-history-head h2{margin:3px 0 4px;color:var(--text);}
.tl-attendance-history-item{border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.035);padding:14px;margin-top:12px;}
.tl-attendance-history-item h3{margin:0 0 10px;font-size:16px;color:var(--text);display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.tl-attendance-history-item h3 span{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 8px;background:rgba(255,255,255,.04);}
@media(max-width:980px){.tl-attendance-v156-history-btn{height:auto;min-height:58px;width:100%;}.tl-attendance-history-all{scroll-margin-top:80px;}}


/* V160 attendance detail: Teilnahme-Export restored, status display simplified to active buttons only */
.tl-attendance-v156-status .tl-attendance-inline-form{margin-top:0;}
.tl-attendance-v156-status .tl-status-btn.active{box-shadow:0 0 0 2px rgba(59,130,246,.32);}
.tl-attendance-v156-stats .tl-attendance-v156-cal{white-space:nowrap;}


/* V161 attendance detail: Historie-Button als letzte Zeile unter der Teilnehmerliste */
.tl-attendance-v161-history-bottom{display:flex;justify-content:flex-end;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);}
.tl-attendance-v161-history-bottom .tl-attendance-v156-history-btn{min-width:150px;}
@media(max-width:700px){.tl-attendance-v161-history-bottom{justify-content:stretch}.tl-attendance-v161-history-bottom .tl-attendance-v156-history-btn{width:100%;}}

/* V163: Status direkt in der Namenszeile + Export-Buttons nebeneinander */
.tl-attendance-v163-person-body{min-width:0;flex:1;}
.tl-attendance-v163-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px;}
.tl-attendance-v163-name-row strong{margin-right:6px;}
.tl-attendance-v163-status-inline{display:flex;align-items:center;gap:6px;min-width:0;}
.tl-attendance-v163-status-inline .tl-attendance-inline-form{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px!important;margin:0!important;}
.tl-attendance-v163-status-inline .tl-status-btn{padding:6px 9px;font-size:10px;line-height:1.1;}
.tl-attendance-v163-status-inline .tl-inline-save-state{font-size:11px;color:var(--muted);min-width:72px;}
@media(max-width:980px){.tl-attendance-v156-stats{grid-template-columns:1fr 1fr}.tl-attendance-v163-name-row{align-items:flex-start}.tl-attendance-v163-status-inline{width:100%;margin-top:4px}}
@media(max-width:560px){.tl-attendance-v156-stats{grid-template-columns:1fr}.tl-attendance-v163-status-inline .tl-status-btn{flex:1 1 auto}}

/* V164: PDF-Icon fuer Teilnehmer exportieren, Export-Buttons in korrekter Reihenfolge. */

/* V165: Status-UI Version 3 - eigener Statusbereich rechts mit kompakten Icon-Schaltflächen. */
.tl-attendance-v165-table{table-layout:fixed;min-width:1040px;}
.tl-attendance-v165-table th:nth-child(1){width:32%;}
.tl-attendance-v165-table th:nth-child(2){width:25%;}
.tl-attendance-v165-table th:nth-child(3){width:22%;}
.tl-attendance-v165-table th:nth-child(4){width:21%;text-align:center;}
.tl-attendance-v165-table td{vertical-align:middle;}
.tl-attendance-v165-person .tl-attendance-v163-name-row{margin-bottom:5px;}
.tl-attendance-v165-status-cell{border-left:1px solid rgba(148,163,184,.18)!important;background:linear-gradient(90deg,rgba(15,23,42,.34),rgba(15,23,42,.12));}
.tl-attendance-v165-status-module{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;}
.tl-attendance-v165-status-module>span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#aeb9c9;white-space:nowrap;}
.tl-attendance-v165-icon-form{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;margin:0!important;flex-wrap:nowrap!important;}
.tl-attendance-v165-icon-form .tl-status-icon-btn{width:42px;height:34px;min-width:42px;padding:0!important;border-radius:14px;font-size:18px;font-weight:950;line-height:1;background:rgba(255,255,255,.045);border:1px solid rgba(148,163,184,.22);color:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);}
.tl-attendance-v165-icon-form .tl-status-icon-btn:hover{transform:translateY(-1px);background:rgba(96,165,250,.12);border-color:rgba(96,165,250,.34);color:#fff;}
.tl-attendance-v165-icon-form .tl-status-icon-btn.is-present.active{background:linear-gradient(135deg,rgba(34,197,94,.74),rgba(22,101,52,.58));border-color:rgba(134,239,172,.55);color:#dcfce7;box-shadow:0 8px 24px rgba(34,197,94,.18),0 0 0 2px rgba(34,197,94,.18);}
.tl-attendance-v165-icon-form .tl-status-icon-btn.is-absent.active{background:linear-gradient(135deg,rgba(245,158,11,.78),rgba(146,64,14,.56));border-color:rgba(253,186,116,.55);color:#fff7ed;box-shadow:0 8px 24px rgba(245,158,11,.18),0 0 0 2px rgba(245,158,11,.16);}
.tl-attendance-v165-icon-form .tl-status-icon-btn.is-late.active{background:linear-gradient(135deg,rgba(96,165,250,.95),rgba(37,99,235,.75));border-color:rgba(147,197,253,.70);color:#fff;box-shadow:0 8px 24px rgba(37,99,235,.26),0 0 0 2px rgba(59,130,246,.22);}
.tl-attendance-v165-icon-form .tl-inline-save-state{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
@media(max-width:980px){.tl-attendance-v165-table{min-width:0}.tl-attendance-v165-table thead{display:none}.tl-attendance-v165-table,.tl-attendance-v165-table tbody,.tl-attendance-v165-table tr,.tl-attendance-v165-table td{display:block;width:100%;}.tl-attendance-v165-status-cell{border-left:0!important;border-top:1px solid rgba(148,163,184,.18)!important;margin-top:8px;border-radius:14px;background:rgba(15,23,42,.36)!important}.tl-attendance-v165-status-module{justify-content:space-between}.tl-attendance-v165-icon-form .tl-status-icon-btn{flex:1 1 auto;min-width:54px}}

/* V169: Privatkalender - gebuchte Termine im Kalender nur mit Termin-ID anzeigen */
.tl-private-calendar-id-only{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:26px;padding:4px 0}.tl-private-calendar-id-only .tl-appointment-number{font-size:13px;font-weight:900;letter-spacing:.02em;line-height:1;white-space:nowrap}

/* V170: Teilgebucht-Info im Privatkalender-Hover */
.slot-hover-status-partial {
  border-color: rgba(96, 165, 250, .45);
  background: rgba(37, 99, 235, .16);
  color: #bfdbfe;
}


/* V171: Teilgebuchte Privatkalender-Slots zeigen wieder Hover-Informationen */
.block.slot-state-partial .slot-hovercard{display:block!important;}
.block.slot-state-partial:hover .slot-hovercard,
.block.slot-state-partial:focus-within .slot-hovercard{opacity:1;transform:translateY(-50%) scale(1);}


/* V172: Privatkalender-Buchungen im Kalender einheitlich mit Uhrzeit + Termin-ID anzeigen */
.tl-private-calendar-booked-compact{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:100%;
  min-height:26px;
  padding:4px 8px;
}
.tl-private-calendar-booked-compact .tl-private-booking-time{
  font-weight:900;
  font-size:13px;
  line-height:1;
  color:rgba(255,255,255,.96);
  white-space:nowrap;
}
.tl-private-calendar-booked-compact .tl-appointment-number{
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  line-height:1;
  white-space:nowrap;
}

/* V173: Tagesansicht Hover-Menue mittig im sichtbaren Bereich anzeigen */
.calendar-grid.view-day .slot-hovercard{
  position:fixed !important;
  left:50% !important;
  top:50% !important;
  right:auto !important;
  width:min(360px, calc(100vw - 48px)) !important;
  max-height:calc(100vh - 80px) !important;
  overflow:auto !important;
  transform:translate(-50%,-50%) scale(.98) !important;
  z-index:9999 !important;
}
.calendar-grid.view-day .slot-hovercard::before{
  display:none !important;
}
.calendar-grid.view-day .block.free-slot:hover .slot-hovercard,
.calendar-grid.view-day .block.free-slot:focus-within .slot-hovercard{
  opacity:1 !important;
  transform:translate(-50%,-50%) scale(1) !important;
}
.calendar-grid.view-day .day-col:last-child .slot-hovercard,
.calendar-grid.view-day .day-col:nth-last-child(2) .slot-hovercard{
  left:50% !important;
  right:auto !important;
}


/* V177: Meine Terminserien - UI 3 Klartext-Spalten ohne zweite Aufklapp-Ebene */
.tl-my-series-v177 .tl-series-accordion-body{padding:18px!important;}
.tl-my-series-v177 .tl-series-two-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:18px!important;}
.tl-my-series-v177 .tl-series-column-head h3{font-size:18px!important;}
.tl-my-series-v177 .tl-series-card-stack{gap:12px!important;padding:14px!important;}
.tl-my-series-v177 .tl-series-readable-card{display:block!important;padding:16px 18px!important;line-height:1.25!important;}
.tl-my-series-v177 .tl-series-readable-title{font-size:15px!important;font-weight:900!important;color:#f8fafc!important;margin-bottom:7px!important;}
.tl-my-series-v177 .tl-series-readable-meta{font-size:14px!important;font-weight:800!important;color:#dbeafe!important;margin-bottom:7px!important;}
.tl-my-series-v177 .tl-series-readable-date,
.tl-my-series-v177 .tl-series-readable-time{font-size:14px!important;font-weight:750!important;color:#cbd5e1!important;margin-top:4px!important;}
html[data-theme="light"] .tl-my-series-v177 .tl-series-readable-title{color:#0f172a!important;}
html[data-theme="light"] .tl-my-series-v177 .tl-series-readable-meta{color:#334155!important;}
html[data-theme="light"] .tl-my-series-v177 .tl-series-readable-date,
html[data-theme="light"] .tl-my-series-v177 .tl-series-readable-time{color:#475569!important;}
@media (max-width:900px){.tl-my-series-v177 .tl-series-two-columns{grid-template-columns:1fr!important;}}


/* V184: Gruppenkalender-Serien Aktion sichtbar und kompakt */
.tl-series-action-cell{min-width:220px;vertical-align:middle;text-align:right;}
.tl-series-action-stack{display:flex;flex-direction:column;align-items:flex-end;gap:10px;width:100%;}
.tl-series-free-cancel-form{margin:0;display:block;width:100%;}
.tl-series-free-cancel-btn{display:inline-flex !important;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:190px;width:100%;max-width:240px;min-height:52px;padding:10px 14px;line-height:1.15;white-space:normal;text-align:center;border-radius:14px;}
.tl-series-free-cancel-btn small{font-size:12px;opacity:.9;font-weight:700;}
@media (max-width: 900px){.tl-series-action-cell{text-align:left;min-width:180px}.tl-series-action-stack{align-items:stretch}.tl-series-free-cancel-btn{max-width:none}}

/* V186: Einheitliche Terminlotse Popups statt Browser-/Localhost-Dialoge */
.tl-ui-popup-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.72);display:flex;align-items:center;justify-content:center;z-index:99999;padding:22px;backdrop-filter:blur(6px)}
.tl-ui-popup-backdrop[hidden]{display:none!important}
.tl-ui-popup-card{width:min(520px,100%);background:#151c2b;border:1px solid rgba(148,163,184,.22);box-shadow:0 24px 80px rgba(0,0,0,.45);border-radius:22px;color:#f8fafc;padding:24px}
.tl-ui-popup-title{font-size:20px;font-weight:800;margin-bottom:10px}
.tl-ui-popup-message{font-size:16px;line-height:1.45;color:#e5e7eb;white-space:pre-wrap}
.tl-ui-popup-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}
.tl-ui-popup-actions button{min-width:120px}


/* V200: Privatkalender-Zeitpositionen fixieren.
   Slots werden in admin.php minutenbasiert per inline top/height gesetzt;
   diese Regeln verhindern, dass alte Hover-/Margin-/Transform-Regeln Termine vertikal verschieben. */
#kundenkalender .calendar-grid .day-col .block.free-slot{
  margin-top:0!important;
  margin-bottom:0!important;
  transform:none!important;
  transition:box-shadow .18s ease, filter .18s ease!important;
}
#kundenkalender .calendar-grid .day-col .block.free-slot:hover,
#kundenkalender .calendar-grid .day-col .block.free-slot:focus-within{
  transform:none!important;
}
#kundenkalender .calendar-grid .day-col .block.free-slot .slot-compact-card{
  transform:none!important;
}
#kundenkalender .calendar-grid .day-col .block.free-slot:hover .slot-compact-card,
#kundenkalender .calendar-grid .day-col .block.free-slot:focus-within .slot-compact-card{
  transform:none!important;
}


/* V201: Privatkalender-Zeitposition final gegen alte globale Slot-Regeln absichern. */
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed{
  position:absolute !important;
  top:var(--tl-slot-top) !important;
  height:var(--tl-slot-height) !important;
  bottom:auto !important;
  margin-top:0 !important;
  transform:none !important;
  overflow:visible !important;
}
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed:hover,
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed:focus-within{
  transform:none !important;
  z-index:80 !important;
}
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed .slot-hovercard{
  display:block !important;
}
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed:hover .slot-hovercard,
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed:focus-within .slot-hovercard{
  opacity:1 !important;
}

/* V202: Privatkalender gebuchte Termine exakt an Startzeit setzen.
   Gebuchte/zugewiesene Slots werden als kompakter 44px-Termin gezeigt, damit 12:00-13:00 nicht den 13:00-Termin optisch überlagert. */
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed.booking-appointment-card-interactive{
  top:var(--tl-slot-top) !important;
  height:var(--tl-slot-height) !important;
  min-height:var(--tl-slot-height) !important;
  bottom:auto !important;
  transform:none !important;
  z-index:20 !important;
}
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed.booking-appointment-card-interactive:hover,
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed.booking-appointment-card-interactive:focus-within{
  z-index:90 !important;
  transform:none !important;
}
#kundenkalender .calendar-grid .day-col > .block.free-slot.tl-time-fixed.booking-appointment-card-interactive .slot-compact-card{
  height:100% !important;
  min-height:0 !important;
  align-items:center !important;
  transform:none !important;
}

/* V204: attendance_detail Hinweise und Aktionen als kompakte Karten */
.tl-attendance-notes-actions-panel{
  margin-top:18px;
  padding:24px 26px;
}
.tl-attendance-notes-actions-panel > h2{
  margin:0 0 10px;
  font-size:26px;
}
.tl-attendance-notes-actions-panel > .small-muted{
  margin:0 0 18px;
}
.tl-attendance-notes-action-card{
  display:grid;
  grid-template-columns:minmax(260px,1.08fr) minmax(260px,.96fr) minmax(240px,.9fr);
  gap:18px;
  align-items:stretch;
  margin:18px 0 0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.tl-attendance-note-card{
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px 22px;
  box-shadow:0 18px 48px rgba(0,0,0,.18);
  min-height:170px;
}
.tl-attendance-note-card label,
.tl-attendance-actions-title{
  display:block;
  margin:0 0 12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
}
.tl-attendance-note-card label span{
  color:var(--muted);
  font-weight:800;
}
.tl-attendance-note-card textarea{
  width:100%;
  min-height:112px;
  resize:vertical;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(10,16,29,.45);
  color:var(--text);
  padding:12px 14px;
  line-height:1.35;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.tl-attendance-mail-check{
  display:flex!important;
  align-items:center;
  gap:10px;
  margin-top:14px!important;
  text-transform:none!important;
  letter-spacing:0!important;
  font-weight:800!important;
  color:var(--muted)!important;
}
.tl-attendance-mail-check input{
  width:auto!important;
  min-width:16px;
  margin:0;
}
.tl-attendance-note-card-actions{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.tl-attendance-cancel-btn,
.tl-attendance-save-note-btn{
  width:100%;
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
}
.tl-attendance-cancel-btn{
  background:transparent!important;
  color:#ff6b6b!important;
  border:2px solid rgba(255,88,88,.9)!important;
  box-shadow:none!important;
}
.tl-attendance-save-note-btn{
  border:0;
  color:#fff;
  background:linear-gradient(135deg, var(--accent), #6d8cff);
  box-shadow:0 14px 30px rgba(59,130,246,.25);
  cursor:pointer;
}
.tl-attendance-action-context{
  margin-top:auto;
  line-height:1.45;
}
@media(max-width:1100px){
  .tl-attendance-notes-action-card{grid-template-columns:1fr;}
}

/* V208 Blitztermin UI5: Vorschlag 5 – weiche Apple-like Pill mit hellrotem Glossy-Rand */
.selector-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;}
.selector-card-main{min-width:0;flex:1 1 auto;}
.selector-card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;}
/* V209 Blitztermin: Dark-UI Focus Pulse ohne weißen Hintergrund */
.tl-blitz-btn{position:relative;isolation:isolate;overflow:visible;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 16px;border:1.6px solid rgba(255,77,84,.88);border-radius:999px;background:transparent!important;color:#ff686d!important;font-weight:850;text-decoration:none!important;letter-spacing:.01em;text-shadow:0 0 10px rgba(255,77,84,.22);box-shadow:0 0 0 1px rgba(255,77,84,.14),0 0 10px rgba(255,45,54,.22),0 0 24px rgba(255,45,54,.13),inset 0 0 10px rgba(255,77,84,.07);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease,filter .16s ease;cursor:pointer;white-space:nowrap;}
.tl-blitz-btn::before{content:"";position:absolute;inset:-8px;border-radius:999px;background:radial-gradient(circle at center,rgba(255,55,64,.20),rgba(255,55,64,.08) 46%,transparent 72%);opacity:.72;pointer-events:none;z-index:-1;transition:opacity .16s ease,transform .16s ease;}
.tl-blitz-btn::after{content:"";position:absolute;inset:2px;border-radius:999px;border:1px solid rgba(255,150,154,.18);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,0));pointer-events:none;}
.tl-blitz-btn:hover,.tl-blitz-btn:focus{transform:translateY(-1px);border-color:rgba(255,105,111,.98);color:#ff7d82!important;box-shadow:0 0 0 1px rgba(255,105,111,.22),0 0 14px rgba(255,60,70,.34),0 0 34px rgba(255,60,70,.24),inset 0 0 13px rgba(255,105,111,.11);filter:saturate(1.08);outline:none;}
.tl-blitz-btn:hover::before,.tl-blitz-btn:focus::before{opacity:1;transform:scale(1.03);}
.tl-blitz-btn:active{transform:translateY(0);box-shadow:0 0 0 1px rgba(255,77,84,.18),0 0 8px rgba(255,45,54,.22),inset 0 0 16px rgba(255,45,54,.13);}
.tl-blitz-card-btn{flex:0 0 auto;align-self:center;margin:0;min-height:48px;padding:8px 16px;border-width:1.6px;font-size:.86rem;line-height:1;}
.tl-blitz-card-btn-locked{opacity:.55;filter:saturate(.75);cursor:not-allowed;}
@media (prefers-reduced-motion:no-preference){.tl-blitz-btn{animation:tlBlitzFocusPulse 2.6s ease-in-out infinite;}@keyframes tlBlitzFocusPulse{0%,100%{box-shadow:0 0 0 1px rgba(255,77,84,.14),0 0 10px rgba(255,45,54,.20),0 0 22px rgba(255,45,54,.12),inset 0 0 10px rgba(255,77,84,.07);}50%{box-shadow:0 0 0 1px rgba(255,105,111,.22),0 0 16px rgba(255,60,70,.33),0 0 36px rgba(255,60,70,.20),inset 0 0 12px rgba(255,105,111,.10);}}}
@media (max-width:760px){.selector-card-head{align-items:center;gap:10px;}.tl-blitz-card-btn{min-width:48px;padding:8px 13px;font-size:.84rem;}}



.auth-logo{height:36px;width:auto;display:block;margin:0 0 18px}

/* Topbar-Menüs (Verwaltung / Konto) */
.tl-menu{position:relative;display:inline-block}
.tl-menu>summary{list-style:none;cursor:pointer;user-select:none;display:inline-flex;align-items:center;justify-content:center}
.tl-menu>summary::-webkit-details-marker{display:none}
.tl-menu>summary::marker{content:""}
.tl-caret{margin-left:7px;font-size:11px;opacity:.7;transition:transform .15s ease}
.tl-menu[open]>summary .tl-caret{transform:rotate(180deg)}
.tl-menu-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:70;min-width:220px;display:flex;flex-direction:column;gap:2px;padding:8px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);box-shadow:0 20px 44px rgba(0,0,0,.5)}
.tl-menu-pop a{display:block;padding:9px 12px;border-radius:9px;color:var(--text);text-decoration:none;font-size:14px;white-space:nowrap}
.tl-menu-pop a:hover{background:var(--surface-soft)}
.tl-menu-pop .tl-menu-sep{height:1px;margin:6px 4px;background:var(--line)}
.tl-menu-pop a.danger{color:#f87171}
.tl-menu-pop a.danger:hover{background:rgba(248,113,113,.14)}
@media (max-width:720px){
  .tl-menu{width:100%}
  .tl-menu>summary{width:100%}
  .tl-menu-pop{position:static;right:auto;top:auto;min-width:0;margin-top:4px;box-shadow:none}
}

/* Demnächst-Übersicht (Kundenbereich-Landing) */
.tl-up-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tl-up-list{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.tl-up-item{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.tl-up-when{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.tl-up-date{font-weight:600}
.tl-up-time{color:var(--muted,#94a3b8);font-variant-numeric:tabular-nums}
.tl-up-who{text-align:right}
@media (max-width:560px){.tl-up-item{flex-direction:column;gap:4px}.tl-up-who{text-align:left}}

/* Globaler App-Footer (Impressum/Datenschutz auf allen Tenant-Seiten) */
.tl-app-footer{border-top:1px solid var(--line);margin-top:44px;padding:22px 24px 32px}
.tl-app-footer-in{max-width:1480px;margin:0 auto;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;color:var(--muted);font-size:13px}
.tl-app-footer-in a{color:var(--muted);text-decoration:none;font-weight:500}
.tl-app-footer-in a:hover{color:var(--text)}
.tl-app-footer-in span[aria-hidden]{opacity:.4}
.tl-app-footer-cpy{margin-left:auto}
@media (max-width:520px){.tl-app-footer-cpy{margin-left:0;width:100%}}

/* Kundenbereich – flüssigere Navigation (V267) */
.topbar{position:sticky;top:10px;z-index:40;background:var(--panel);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 30px rgba(0,0,0,.20)}
a.brand{text-decoration:none;color:inherit;transition:opacity .15s ease}
a.brand:hover{opacity:.75}
html{scroll-behavior:smooth}
:target{scroll-margin-top:96px}
#kundenkalender,#offene-teilnahmen{scroll-margin-top:96px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Dezente Info-Icons / Tooltips (V273) */
.tl-info{position:relative;display:inline-flex;vertical-align:middle;margin-left:6px;cursor:help;outline:none}
.tl-info-dot{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;border:1px solid var(--line-strong);color:var(--muted);font-size:10px;font-weight:700;font-style:normal;font-family:Georgia,"Times New Roman",serif;line-height:1;transition:color .15s,border-color .15s}
.tl-info:hover .tl-info-dot,.tl-info:focus .tl-info-dot,.tl-info:focus-within .tl-info-dot,.tl-info.open .tl-info-dot{color:var(--accent);border-color:var(--accent)}
.tl-info-bubble{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);z-index:80;width:max-content;max-width:260px;padding:10px 12px;border-radius:10px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:0 14px 34px rgba(0,0,0,.5);color:var(--text);font-size:12.5px;font-weight:400;font-style:normal;line-height:1.5;text-align:left;white-space:normal;opacity:0;visibility:hidden;transition:opacity .12s ease;pointer-events:none}
.tl-info:hover .tl-info-bubble,.tl-info:focus .tl-info-bubble,.tl-info:focus-within .tl-info-bubble,.tl-info.open .tl-info-bubble{opacity:1;visibility:visible;pointer-events:auto}
.tl-info-bubble::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--surface)}
.tl-info-more{display:inline-block;margin-top:7px;color:var(--accent);font-weight:600;text-decoration:none}
.tl-info-more:hover{text-decoration:underline}
@media (max-width:560px){.tl-info-bubble{left:auto;right:-4px;transform:none;max-width:min(78vw,240px)}.tl-info-bubble::after{left:auto;right:10px;transform:none}}

/* Dezenter Hilfe-Button in der Kopfleiste */
.tl-help-btn{width:34px;padding-left:0;padding-right:0;text-align:center;font-weight:700;font-size:15px;border-radius:50%!important}

/* Datenschutzhinweis am Buchungsformular (Art. 13) */
.tl-book-privacy{margin:2px 0 6px}
.tl-book-privacy p{color:var(--muted);font-size:12.5px;line-height:1.5;margin:0}
.tl-book-privacy a{color:var(--accent);font-weight:600}

/* Zwischenüberschrift im Dropdown-Menü */
.tl-menu-label{padding:8px 12px 3px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.tl-menu-label:first-child{padding-top:4px}

/* Unter-Reiter innerhalb eines Bereichs (z. B. Verfügbarkeiten) */
.kb-subtabs{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 2px}
.kb-subtabs a{padding:8px 15px;border-radius:999px;border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);font-size:13.5px;font-weight:600;text-decoration:none}
.kb-subtabs a:hover{color:var(--text);border-color:var(--line-strong)}
.kb-subtabs a.active{background:rgba(122,162,255,.16);border-color:var(--accent);color:var(--accent)}

/* Durchgängiges Primärmenü (Bereichs-Reiter) */
.kb-nav{display:flex;gap:2px;flex-wrap:nowrap;overflow-x:auto;margin:12px 0 22px;border-bottom:1px solid var(--line);scrollbar-width:none}
.kb-nav::-webkit-scrollbar{display:none}
.kb-nav a{position:relative;padding:10px 16px;color:var(--muted);font-size:14.5px;font-weight:600;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;border-radius:8px 8px 0 0;margin-bottom:-1px;transition:color .12s,background .12s}
.kb-nav a:hover{color:var(--text);background:rgba(122,162,255,.06)}
.kb-nav a.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:700}
@media (max-width:560px){.kb-nav a{padding:9px 13px;font-size:14px}}

/* Powered-by-Hinweis (Free-/Trial-Tarif ohne eigenes Branding) */
.tl-powered{text-align:center;padding:14px 10px 20px;font-size:12px;color:var(--muted)}
.tl-powered a{color:var(--accent);font-weight:600;text-decoration:none}
