/* Gemeinsame Formular-Optik (Startseite + Portal): Suchleiste, Felder, eigene Auswahl- und Kalender-Popups */
form.searchbar{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:14px;align-items:end;background:#f1f8f8;border:1px solid #dcebec;border-radius:20px;padding:18px}
.searchbar label,.form-grid label{display:flex;flex-direction:column;gap:7px;color:#24435c;font-weight:700;font-size:.86rem;min-width:0}
.searchbar input:not([type=checkbox]):not([type=hidden]),.form-grid input:not([type=checkbox]):not([type=hidden]):not([type=file]),
.searchbar select,.form-grid select,.form-grid textarea{width:100%;box-sizing:border-box;min-height:50px;padding:0 15px;border:1.5px solid #c5d3dc;border-radius:13px;background:#fff;color:#112b45;font:inherit;font-weight:600;transition:border-color .15s,box-shadow .15s}
.form-grid textarea{padding:12px 15px}
.searchbar input::placeholder,.form-grid input::placeholder{color:#8a9ba8;font-weight:400}
.searchbar input:focus,.form-grid input:focus,.form-grid textarea:focus,.searchbar select:focus{outline:none;border-color:#00aaa2;box-shadow:0 0 0 4px rgba(0,170,162,.18)}
form.searchbar .yellow{min-height:50px;margin:0;white-space:nowrap}

/* Eigene Auswahl (ersetzt das Standard-Dropdown) */
.cs-wrap{position:relative}
.cs-native{display:none}
.cs-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;box-sizing:border-box;min-height:50px;padding:0 15px;border:1.5px solid #c5d3dc;border-radius:13px;background:#fff;color:#112b45;font:inherit;font-weight:600;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.cs-trigger:hover{border-color:#9fb8c6}
.cs-trigger:focus-visible,.cs-wrap.open .cs-trigger{outline:none;border-color:#00aaa2;box-shadow:0 0 0 4px rgba(0,170,162,.18)}
.cs-wrap.cs-error .cs-trigger{border-color:#b3261e;box-shadow:0 0 0 4px rgba(179,38,30,.14)}
.cs-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-placeholder{color:#8a9ba8;font-weight:400}
.cs-ico{flex:none;width:18px;height:18px;color:#00918a;transition:transform .15s}
.cs-wrap.open .cs-ico.chev{transform:rotate(180deg)}
.cs-pop{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:60;background:#fff;border:1px solid #d5e2e9;border-radius:16px;box-shadow:0 18px 44px rgba(11,45,73,.18);padding:8px}
.cs-wrap.open .cs-pop{display:block}
.cs-list{list-style:none;margin:0;min-width:100%;width:max-content;max-width:min(92vw,420px);max-height:320px;overflow:auto;padding:0}
.cs-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:0 12px;border-radius:10px;color:#112b45;font-weight:600;cursor:pointer}
.cs-list li:hover,.cs-list li.act{background:#eaf7f6}
.cs-list li[aria-selected=true]{background:#d9f1ef;color:#005f5a}
.cs-list li[aria-selected=true]::after{content:"✓";font-weight:800}

/* Kalender */
.cal{width:min(320px,86vw);padding:14px}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.cal-title{font-weight:800;color:#112b45}
.cal-nav{width:36px;height:36px;border:0;border-radius:10px;background:#eef4f7;color:#112b45;font-size:1.1rem;cursor:pointer}
.cal-nav:hover:not(:disabled){background:#d9f1ef}
.cal-nav:disabled{opacity:.35;cursor:default}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal-wd{text-align:center;font-size:.72rem;font-weight:800;color:#6a7f8d;padding:4px 0}
.cal-day{aspect-ratio:1;border:0;border-radius:10px;background:transparent;color:#112b45;font:inherit;font-weight:600;cursor:pointer}
.cal-day:hover:not(:disabled){background:#eaf7f6}
.cal-day.today{box-shadow:inset 0 0 0 2px #00aaa2}
.cal-day.sel{background:#00aaa2;color:#fff}
.cal-day:disabled{color:#b8c5ce;cursor:default}
.cal-day.we:not(.sel):not(:disabled){color:#005f5a}
.cal-foot{display:flex;justify-content:space-between;margin-top:10px}
.cal-foot button{border:0;background:transparent;color:#00726c;font:inherit;font-weight:700;cursor:pointer;padding:6px 4px}

@media(max-width:820px){form.searchbar{grid-template-columns:1fr!important;padding:16px}}
.cal-day[aria-pressed="true"]{background:#00aaa2;color:#fff}
.cal-foot{flex-wrap:wrap;gap:4px 8px}
.cal-foot .cal-primary{background:#00aaa2;color:#fff;border-radius:10px;padding:6px 16px}
.cal-hint{margin-top:8px;font-size:.78rem;color:#6a7f8d;line-height:1.35}
.cal-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.cal-chip{border:0;border-radius:999px;background:#d9f1ef;color:#00524d;font:inherit;font-size:.82rem;font-weight:700;padding:4px 10px;cursor:pointer}
.cal-chip:hover{background:#c2e8e4}
