.banden {
  --bd-ink: #16372e;
  --bd-muted: #4e655c;
  --bd-edge: #d2ded5;
  color: var(--bd-ink);
  width: min(100%, 1380px);
  margin-inline: auto;
  text-align: left;
}
.banden *, .banden *::before, .banden *::after { box-sizing: border-box; }
.banden [hidden] { display: none !important; }
.bd-header { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem; margin-bottom: 1.2rem; }
.bd-header-actions { display: flex; align-items: end; gap: .8rem; flex-wrap: wrap; }
.bd-header-actions a { color: #275e4a; font-size: .9rem; padding: .55rem 0; }
.banden h1, .banden h2, .banden h3, .banden p { margin: 0; }
.banden h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; }
.banden .bd-kicker { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #49665a; margin: 0 0 .45rem; }
.banden .bd-summary { color: var(--bd-muted); margin-top: .7rem; }
.banden label { display: grid; gap: .28rem; font-size: .82rem; color: var(--bd-muted); font-weight: 650; }
.banden input, .banden select, .banden button { font: inherit; color: inherit; }
.banden input, .banden select { min-width: 0; padding: .55rem .7rem; border: 1px solid #b9c9bf; border-radius: .45rem; background: white; }
.banden button { cursor: pointer; }
.banden :focus-visible { outline: 3px solid #006b75; outline-offset: 2px; }
.banden .bd-note { background: #fff5d7; color: #62450b; padding: .7rem .9rem; border-left: 3px solid #b58822; margin-bottom: 1rem; }
.bd-controls { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin: 1.15rem 0 .6rem; }
.bd-controls label:first-child { min-width: min(100%, 12rem); flex: 1 1 14rem; }
.bd-switch { display: inline-flex; align-self: end; height: 2.45rem; padding: 3px; border: 1px solid var(--bd-edge); background: #ecf2ed; border-radius: .5rem; }
.bd-switch button { padding: 0 .85rem; border: 0; border-radius: .32rem; background: transparent; }
.bd-switch button[aria-pressed=true] { color: white; background: var(--bd-ink); }
.bd-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(215px, 28%); gap: .9rem; align-items: start; }
.bd-main, .bd-detail { border: 1px solid var(--bd-edge); border-radius: .85rem; background: #fff; }
.bd-main { padding: .9rem; min-width: 0; }
.bd-detail { padding: 1.1rem; position: sticky; top: 1rem; }
.bd-detail h2 { font-size: 1.4rem; margin: 0 0 .55rem; }
.bd-detail > p:not(.bd-kicker) { font-size: .94rem; color: var(--bd-muted); }
.bd-notice:not(:empty) { border-left: 3px solid #419580; margin: .7rem 0; background: #e4f1ec; padding: .65rem; }
.bd-legend { display: flex; gap: .5rem 1.1rem; flex-wrap: wrap; margin-bottom: .85rem; }
.bd-legend span { display: inline-flex; align-items: center; gap: .35rem; font-size: .77rem; }
.bd-dot { width: .7rem; height: .7rem; border-radius: .2rem; border: 1px solid; }
.bd-free { background: #fff; border-color: #a3b2a9 !important; color: #374d42 !important; }
.bd-reserved { background: #ffebbb; border-color: #bc8123 !important; color: #664200 !important; }
.bd-confirmed { background: #d9ebdf; border-color: #6c9d80 !important; color: #1b5135 !important; }
.bd-wish { background: #dae8fc; border-color: #7294c3 !important; color: #274978 !important; }
.bd-scroll { overflow-x: auto; }
.bd-map { min-width: 480px; display: grid; grid-template-columns: auto minmax(120px,1fr) auto; grid-template-areas: "h h h" "n n n" "w i e" "s s s" "a a a"; gap: .38rem; padding: .55rem; background: #f8faf7; border-radius: .65rem; border: 1px solid #dce4db; }
.bd-sector { min-width: 0; }
.bd-sector h3 { font-family: inherit; font-size: .69rem; font-weight: 650; letter-spacing: .025em; margin-bottom: .22rem; color: #52635b; text-align: center; }
.bd-sector-verleih { grid-area: h; padding-bottom: .35rem; border-bottom: 1px dashed #cbd9d0; }
.bd-sector-nord { grid-area: n; }
.bd-sector-sued { grid-area: s; }
.bd-sector-west { grid-area: w; }
.bd-sector-ost { grid-area: e; }
.bd-sector-zugang { grid-area: a; border-top: 1px dashed #cbd9d0; padding-top: .35rem; }
.bd-lanes, .bd-lane { display: grid; gap: 3px; }
.bd-lane { display: flex; }
.bd-sector-west .bd-lanes, .bd-sector-ost .bd-lanes { display: flex; }
.bd-sector-west .bd-lane, .bd-sector-ost .bd-lane { width: 3.35rem; flex-direction: column; }
.bd-field { flex: 1 1 0; min-width: 0; min-height: 1.55rem; border: 1px solid; border-radius: .24rem; font-size: .68rem !important; line-height: 1.1; font-weight: 650 !important; padding: .18rem .12rem; box-shadow: none; }
.bd-field:disabled { opacity: .2; cursor: default; }
.bd-field[aria-pressed=true], .bd-list-item[aria-pressed=true] { outline: 2px solid #0a655d; outline-offset: -2px; }
.bd-sector-verleih .bd-lanes { max-width: 76%; margin: auto; grid-template-columns: repeat(2,1fr); }
.bd-sector-zugang .bd-lanes { max-width: 76%; margin: auto; grid-template-columns: repeat(2,1fr); }
.bd-ice { grid-area: i; border: 2px solid #b1c9c9; background: #e4f2f2; border-radius: 1.5rem; color: #426b70; display: grid; align-content: center; justify-items: center; gap: .27rem; }
.bd-ice strong { font-size: 1.15rem; }
.bd-ice span { font-size: .74rem; }
.banden .bd-source { margin-top: .7rem; font-size: .75rem; color: var(--bd-muted); }
.bd-list { display: grid; gap: .26rem; }
.bd-list-item { display: grid; grid-template-columns: 4.1rem minmax(0,1fr) auto; align-items: center; gap: .6rem; text-align: left; border: 1px solid #dce5de; border-radius: .35rem; padding: .5rem .65rem; background: #fbfcfa; }
.bd-badge { display: inline-flex; border: 1px solid; border-radius: .3rem; padding: .12rem .4rem; font-size: .72rem; font-weight: 650; }
.bd-detail .bd-data { margin: 1rem 0 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: .45rem .6rem; font-size: .85rem; }
.bd-data dt { color: var(--bd-muted); }
.bd-data dd { margin: 0; overflow-wrap: anywhere; }
.bd-actions { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--bd-edge); display: grid; gap: .5rem; }
.bd-actions button { padding: .57rem .7rem; border-radius: .4rem; border: 1px solid #b5c9ba; }
.bd-actions button:disabled { opacity: .5; }
.bd-action { background: var(--bd-ink); color: white !important; }
.bd-secondary { background: #eff5f0; }
.bd-danger { color: #813f2d !important; background: #fff; border-color: #d5b5aa !important; }
.banden .bd-empty { padding: 2rem 1rem; }
@media(max-width:880px) {
  .bd-workspace { grid-template-columns: 1fr; }
  .bd-detail { position: static; }
  .bd-header { flex-wrap: wrap; }
}
@media(max-width:500px) {
  .bd-main { padding: .55rem; }
  .bd-list-item { grid-template-columns: 3.6rem minmax(0,1fr) auto; gap: .3rem; padding: .4rem; }
  .bd-controls { gap: .45rem; }
  .bd-controls label:first-child { flex-basis: 100%; }
}
