
.ubskc-card{background:#fff;border:1px solid #e6e6e6;border-radius:12px;padding:16px;margin:14px 0;box-shadow:0 1px 2px rgba(0,0,0,.04);font-family:inherit}
.ubskc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.ubskc-tile{background:#fff;border:1px solid #e6e6e6;border-radius:14px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ubskc-title{font-weight:700;font-size:16px;margin-bottom:4px}
.ubskc-sub{color:#333;font-size:13px}
.ubskc-muted{color:#666;font-size:13px}
.ubskc-meta{margin:10px 0;font-size:13px;line-height:1.5}
.ubskc-notes{margin:10px 0;font-size:13px;color:#333}
.ubskc-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.ubskc-btn{display:inline-block;border:0;border-radius:10px;padding:10px 12px;cursor:pointer;text-decoration:none;background:#f2c94c;color:#111;font-weight:700;font-size:14px}
.ubskc-btn:hover{filter:brightness(.98)}
.ubskc-btn-secondary{background:#eef2f7}
.ubskc-btn-danger{background:#ffdddd}
.ubskc-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}
.ubskc-modal-content{background:#fff;border-radius:14px;max-width:520px;width:100%;box-shadow:0 12px 30px rgba(0,0,0,.25);overflow:hidden}
.ubskc-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee}
.ubskc-modal-title{font-weight:800}
.ubskc-modal-close{border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer}
.ubskc-modal-body{padding:16px}
.ubskc-modal-body label{display:block;margin:10px 0;font-size:13px}
.ubskc-modal-body input{width:100%;padding:10px;border:1px solid #ddd;border-radius:10px}
.ubskc-modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.ubskc-msg{margin-top:12px;padding:10px;border-radius:10px;background:#eef2f7}

/* Briefing direkt beim Posten */
.ubskc-briefing{margin-top:10px;border:1px solid #eee;border-radius:12px;overflow:hidden}
.ubskc-briefing-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:0;background:#f7f7f7;cursor:pointer;font-weight:700}
.ubskc-briefing-icon{opacity:.7}
.ubskc-briefing-panel{padding:10px 12px;background:#fff}
.ubskc-briefing-title{font-weight:800;margin-bottom:8px}
.ubskc-briefing-body{font-size:13px;line-height:1.55;color:#222}
.ubskc-briefing-empty{margin-top:10px;padding:10px 12px;border:1px dashed #ddd;border-radius:12px;color:#666;font-size:13px}

.ubskc-badge{display:inline-block;margin-top:10px;padding:6px 10px;border-radius:999px;background:#eef2f7;color:#111;font-weight:700;font-size:12px}
.ubskc-search{display:block;margin-top:10px}
.ubskc-search input{margin-top:6px;width:100%;padding:10px;border:1px solid #ddd;border-radius:10px}
.ubskc-free{margin-top:8px;padding:10px 12px;border-radius:12px;background:#fff3c4;border:1px solid #f1d36a;font-weight:800;display:flex;gap:6px;align-items:baseline}
.ubskc-free-num{font-size:18px}
.ubskc-day-groups{display:flex;flex-direction:column;gap:14px}
.ubskc-day-title{font-weight:900;margin:4px 0 10px 2px}

/* Accordion (Schichtliste nach Posten) */
.ubskc-accordion{display:flex;flex-direction:column;gap:10px}
.ubskc-acc-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid #e6e6e6;cursor:pointer;font-weight:900}
.ubskc-acc-title{display:flex;align-items:center;gap:6px}
.ubskc-acc-free{font-weight:900}
.ubskc-acc-free-num{font-size:16px}
.ubskc-acc-icon{opacity:.75}
.ubskc-acc-panel{margin-top:8px}
.ubskc-free-badge{display:inline-flex;align-items:baseline;gap:6px;padding:8px 10px;border-radius:12px;border:1px solid rgba(0,0,0,.06);font-weight:900;margin-top:6px}
.ubskc-free-badge .ubskc-free-num{font-size:16px}
.ubskc-free-red{background:#ffe4e4}
.ubskc-free-yellow{background:#fff3c4}
.ubskc-free-green{background:#e7f7ea}

/* Header: Plätze frei sauber rechts ausrichten */
.ubskc-acc-header{position:relative}
.ubskc-acc-title{flex:1;justify-content:flex-start}
.ubskc-acc-free{min-width:140px;text-align:right;white-space:nowrap}
.ubskc-acc-icon{min-width:22px;text-align:right}

/* CSS-only Accordion */
.ubskc-acc-check{position:absolute;opacity:0;pointer-events:none}
.ubskc-acc-panel{display:none;margin-top:8px}
.ubskc-acc-check:checked + .ubskc-acc-header .ubskc-acc-icon{transform:rotate(180deg)}
.ubskc-acc-check:checked + .ubskc-acc-header + .ubskc-acc-panel{display:block}
.ubskc-acc-icon{transition:transform .15s ease}

/* Header: Plätze frei rechts */
.ubskc-acc-title{flex:1;justify-content:flex-start}
.ubskc-acc-free{min-width:140px;text-align:right;white-space:nowrap}
.ubskc-acc-icon{min-width:22px;text-align:right}

/* Pfeil-Animation */
.ubskc-acc-icon{
  display:inline-block;
  transition:transform .2s ease;
  transform-origin:center;
}
.ubskc-acc-check:checked + .ubskc-acc-header .ubskc-acc-icon{
  transform:rotate(180deg);
}

/* Modal (CSS-only) */
.ubskc-modal-check{position:absolute;opacity:0;pointer-events:none}
.ubskc-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:999999;padding:20px}
.ubskc-modal-inner{max-width:520px;margin:40px auto;background:#fff;border-radius:16px;padding:14px;border:1px solid #e6e6e6}
.ubskc-modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.ubskc-modal-title{font-weight:900}
.ubskc-modal-close{cursor:pointer;font-size:22px;line-height:1;padding:6px 10px;border-radius:10px;border:1px solid #e6e6e6}
.ubskc-form-row{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.ubskc-form-row input{padding:10px 12px;border-radius:12px;border:1px solid #e6e6e6}
.ubskc-modal-check:checked + label + .ubskc-modal{display:block}
.ubskc-alert{margin-top:10px;padding:10px 12px;border-radius:12px;border:1px solid #e6e6e6;font-weight:700}
.ubskc-alert-ok{background:#e7f7ea}
.ubskc-alert-err{background:#ffe4e4}

/* Eintragen ohne JS (Details/Summary) */
.ubskc-signup-details{margin-top:10px}
.ubskc-btn-summary{list-style:none}
.ubskc-btn-summary::-webkit-details-marker{display:none}
.ubskc-signup-details[open] .ubskc-btn-summary{opacity:.95}
.ubskc-form{margin-top:10px}
.ubskc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ubskc-form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}
.ubskc-form-grid input{padding:10px 12px;border:1px solid #e6e6e6;border-radius:12px}
.ubskc-btn-primary{width:100%;margin-top:10px}
@media (max-width:640px){.ubskc-form-grid{grid-template-columns:1fr}}
/* Briefing Details */
.ubskc-briefing{margin-top:10px}
.ubskc-briefing-toggle{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;border:1px solid #e6e6e6;font-weight:900}
.ubskc-briefing-toggle::-webkit-details-marker{display:none}
.ubskc-briefing[open] .ubskc-briefing-icon{transform:rotate(180deg)}
.ubskc-briefing-icon{display:inline-block;transition:transform .2s ease}
.ubskc-briefing-panel{margin-top:10px}

.ubskc-inline-form{display:inline}
