.details-content{align-items:end}
.floor-plan-overview{margin-block:24px}
#floor-plan-heading,
#room-list-heading{
  margin-bottom:10px;
  padding-bottom:6px;
  border-bottom:1px solid var(--room-border);
}
#filter-title{
  font-size:var(--room-section-size);
}
.floor-plan-teaser{
  display:grid;
  grid-template-columns:auto auto auto;
  width:fit-content;
  max-width:100%;
  align-items:stretch;
  gap:8px;
}
.floor-plan-preview,.floor-plan-navigation{
  border:1px solid #d8dbdd;
}
.floor-plan-preview{
  display:grid;
  place-items:center;
  padding:6px;
  background:#fff;
}
.floor-plan-preview img{display:block;width:112px;height:auto}
.floor-plan-navigation{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  padding:8px 10px;
  background:#f6f8f8;
}
.floor-plan-shortcuts{
  display:grid;
  grid-template-columns:repeat(4,7.5rem);
  gap:6px;
  list-style:none;
  padding:0;
  margin:0;
}
.room-request .floor-plan-shortcuts a{
  display:grid;
  place-items:center;
  min-height:36px;
  height:100%;
  padding:4px;
  text-align:center;
  background:var(--building-color,#fff);
  border:var(--room-button-border);
  color:var(--shortcut-text,#222);
  font-size:var(--room-control-size);
  font-weight:700;
  text-decoration:none;
}
.floor-plan-shortcuts .campus-shortcut{
  --building-color:var(--room-red);
  --shortcut-text:#fff;
}
.room-request .floor-plan-shortcuts a:is(:hover,:focus-visible){
  border-color:#424242;
  box-shadow:var(--room-button-underline);
}
.floor-plan-all{align-self:center;justify-self:start;margin-inline:6px}
@media(max-width:700px){
  .floor-plan-teaser{grid-template-columns:auto minmax(0,1fr)}
  .floor-plan-shortcuts{grid-template-columns:repeat(2,minmax(0,7.5rem))}
  .floor-plan-all{grid-column:1 / -1;margin:0}
  .floor-plan-preview img{width:clamp(58px,20vw,112px)}
  .room-request .floor-plan-shortcuts a{font-size:clamp(11px,3.45vw,14px)}
}

/* Schmale Raumliste mit Platz für mehrzeilige Details. */
.room-detail-summary{display:none}
@media screen and (max-width: 820px){
  .rooms-table{min-width:0}
  .rooms-table .col-room{width:25%}
  .rooms-table .col-places{width:13%}
  .rooms-table .col-size{width:17%}
  .rooms-table .col-details{width:18%}
  .rooms-table .room-name{white-space:normal;overflow-wrap:anywhere}
  .room-row .details-toggle{width:auto;min-width:0;max-width:100%;white-space:normal}
}
@media screen and (max-width: 700px){
  .rooms-table .details-content,
  .rooms-table .detail-links{grid-template-columns:minmax(0,1fr)}
  .rooms-table .detail-photo{max-width:none}
  .rooms-table .detail-link-text,
  .rooms-table .detail-notes{overflow-wrap:anywhere}
}
@media screen and (max-width: 540px){
  .rooms-table colgroup,
  .rooms-table thead th:nth-child(n+2):nth-child(-n+4),
  .rooms-table .room-row td:nth-child(n+2):nth-child(-n+4){display:none}
  .rooms-table thead th:last-child{width:6.75rem}
  .rooms-table .room-row td:last-child{text-align:right}
  .rooms-table .detail-cell{padding:12px}
  .room-detail-summary{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    margin:0 0 12px;
  }
  .room-detail-summary div{
    padding:10px 12px;
    border:1px solid var(--room-border);
    background:#fff;
  }
  .room-detail-summary dt{font-weight:700;color:var(--room-ink)}
  .room-detail-summary dd{margin:0;overflow-wrap:anywhere}
}

.search-grid > button{justify-self:start}
#equipment-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px}
#equipment-toggle::before{content:'+' / '';font-size:20px;line-height:1;color:var(--room-red)}
#equipment-toggle[aria-expanded=true]{background:#f2f5f6;color:var(--room-ink);border-color:#596167}
#equipment-toggle[aria-expanded=true]::before{content:'−' / ''}
#equipment-options{grid-column:1 / -1;min-inline-size:0;margin:0;padding:0}
@media screen and (min-width: 900px){
  .search-grid{
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) max-content max-content;
    align-items:end;
    gap:12px;
  }
  .search-grid input[type=search],
  .search-grid select,
  .search-grid > button,
  #equipment-toggle{min-height:38px;padding:6px 10px}
  .search-grid > .filter-reset{grid-column:5;grid-row:1}
  #equipment-options{grid-row:2}
}
