/* Gemeinsame CATS-Grundgestaltung, für die Raumübersicht integriert. */
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-regular.ttf') format('truetype');
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-bold.ttf') format('truetype');
}
body.room-page {
  --room-red: #cc0130;
  --room-red-hover: #ad0028;
  --room-ink: #222;
  --room-text: #6a6d71;
  --room-border: #d8dbdd;
  --room-button-border: 1px solid rgb(0 0 0 / 20%);
  --room-button-underline: inset 0 -2px #424242;
  --room-control-size: 14px;
  --room-section-size: 17px;
  --room-group-size: 15px;
  --bs-body-font-family: Roboto, Helvetica, Arial, sans-serif;
  --bs-body-color: #6a6d71;
  --bs-body-bg: #fff;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--room-text);
  background: #fff;
}
.room-request h1 {
  color: var(--room-ink);
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
  margin: 0 0 24px;
}
.room-request header { margin-bottom: 40px !important; }
.room-request .lead { color: var(--room-ink); font-size: 18px; line-height: 1.5; font-weight: 400; }
.room-request p { margin-bottom: 20px; }
.room-request a { color: var(--room-red); text-decoration: none; }
.room-request a:hover, .room-request a:focus { color: var(--room-red-hover); }
.room-masthead .masthead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.room-masthead :is(.cats-home-link, #languageToggle) {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding: 5px 14px;
  font-size: var(--room-control-size);
  line-height: 1.4;
  white-space: nowrap;
}
.room-masthead #languageToggle {
  inline-size: 6rem;
}
.room-request .room-masthead .cats-home-link {
  inline-size: 10rem;
  border: 1px solid #222222;
  background: #222222;
  color: #f2f5f6;
}
@media print { .masthead-actions { display: none !important; } }
.room-masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-bottom: 28px; margin-bottom: 36px !important; border-bottom: 1px solid var(--room-border); }
.room-logo-link { display: block; flex: 0 1 520px; max-width: 100%; }
.room-logo { display: block; width: 100%; height: auto; }
.room-request{padding-inline:20px}
@media(min-width:768px){.room-request{padding-inline:40px}}

*{box-sizing:border-box}body{margin:0}.room-request{max-width:1280px;margin:auto;padding-top:40px;padding-bottom:28px}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #596167;background:#fff;color:#222;padding:9px 17px}button:hover{background:#f2f5f6}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #cc0130;outline-offset:3px}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:.06em}.room-request header{max-width:none;width:100%}.room-request h1{font-size:clamp(32px,5vw,56px);margin-bottom:24px}.filters{border:1px solid #d8dbdd;border-top:3px solid #cc0130;padding:24px;margin-bottom:12px;background:#f6f8f8}h2{color:#222;font-size:22px;margin:0 0 18px}label>span{display:block;color:#222;margin-bottom:6px}.search-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px}input[type=search],select{width:100%;min-height:48px;border:1px solid #657078;border-radius:0;background:#fff;padding:10px;color:#222}fieldset{border:0;margin:22px 0;padding:0}legend{color:#222;font-weight:700}.filter-help{font-size:13px;margin:0 0 12px!important}.checks{display:flex;flex-wrap:wrap;gap:10px 20px}.checks label{display:flex;align-items:center;gap:7px;color:#333;min-height:32px}input[type=checkbox]{width:18px;height:18px;accent-color:#cc0130}.result-bar{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;min-width:650px}th{background:#f2f5f6;color:#222;font-size:14px}th,td{padding:16px 12px;border-bottom:1px solid #d8dbdd;vertical-align:top}th button{border:0;padding:0;background:none;text-align:left;font-weight:700}th button::after{content:' ↕';color:#73777a}th[aria-sort=ascending] button::after{content:' ↑'}th[aria-sort=descending] button::after{content:' ↓'}.room-name{font-weight:700;color:#222}.institution{display:inline-block;border-left:3px solid #cc0130;padding-left:8px;font-size:13px}td:last-child button{padding:5px 10px;font-size:13px}.detail-cell{background:#fafbfb;padding:24px}.details-content{display:grid;grid-template-columns:minmax(0,320px) 1fr;gap:28px}.details-content img{width:100%;height:auto;max-height:260px;object-fit:contain;object-position:left}.details-content p{margin:0 0 12px}.notes{white-space:pre-wrap}.muted,footer{font-size:13px;color:#6a6d71}footer{border-top:1px solid #d8dbdd;margin-top:40px;padding-top:20px}.error{color:#ad0028}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{display:block;padding:12px}.empty{text-align:center;padding:35px}button[aria-expanded=true]{background:#cc0130;color:white;border-color:#cc0130}@media(max-width:700px){.search-grid{grid-template-columns:1fr}.room-request{padding-top:24px}.filters{padding:18px}.details-content{grid-template-columns:1fr}.room-logo-link{flex-basis:100%}.result-bar{display:block}th,td{padding:12px 8px}}@media print{.filters,.room-language,#languageToggle,td:last-child,th:last-child{display:none}.room-request{max-width:none;padding:0}table{min-width:0}}

/* Institutsfarben: Originalpalette der bisherigen Raumübersicht. */
:root{--cats-color-list:#FFDD7A;--hcts-color-list:#A1CBCB;--ife-color-list:#C5E4A7;--sai-color-list:#EACAA1;--zo-color-list:#D4BFD4}
.institute-cats{--institute-color:var(--cats-color-list)}
.institute-hcts{--institute-color:var(--hcts-color-list)}
.institute-ife{--institute-color:var(--ife-color-list)}
.institute-sai{--institute-color:var(--sai-color-list)}
.institute-zo{--institute-color:var(--zo-color-list)}
.institute-other{--institute-color:#d8dbdd}
.room-row .room-name{border-left:12px solid var(--institute-color);padding-left:16px;box-shadow:inset 1px 0 #bbb;white-space:nowrap}
.room-row:hover{background:#f6f8f8}
.institute-group th{background:#f6f8f8;border:1px solid #d8dbdd;padding:12px 16px;font-size:var(--room-group-size);letter-spacing:.02em;box-shadow:none}
.photo-trigger{display:block;max-width:100%;padding:5px;border:1px solid #c6cbce;background:white;cursor:zoom-in}
.photo-trigger:hover{border-color:var(--room-red)}
.photo-open{overflow:hidden}
#photo-dialog{position:fixed;inset:0;width:fit-content;max-width:94vw;max-height:94dvh;margin:auto;padding:18px;border:0;background:#fff;box-shadow:0 12px 60px #0008;color:#222;font-family:Roboto,Helvetica,Arial,sans-serif}
#photo-dialog::backdrop{background:rgb(0 0 0 / 82%)}
.photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px}
.photo-toolbar p{margin:0;font-weight:700}
#photo-close{background:#cc0130;border-color:#cc0130;color:white;flex-shrink:0}
#photo-close:hover{background:#ad0028}
#photo-full{display:block;max-width:100%;max-height:calc(94dvh - 110px);width:auto;height:auto;object-fit:contain;margin:auto}
#photo-full[hidden]{display:none}
@media(max-width:700px){#photo-dialog{padding:12px}.photo-toolbar{gap:10px;font-size:14px}.room-row .room-name{border-left-width:10px;padding-left:12px}}

/* Gerade Farbstreifen ohne die abgeschrägte Verbindung kollabierter Ränder. */
.room-row .room-name{border-left:0;box-shadow:inset 12px 0 var(--institute-color);padding-left:24px}
.room-row{background:#fff;cursor:pointer}
.room-row:hover{background:#f2f5f6}
.room-row .details-toggle{width:9em;min-width:9em;max-width:9em;white-space:nowrap;text-align:center}
@media(max-width:700px){.room-row .room-name{border-left:0;box-shadow:inset 10px 0 var(--institute-color);padding-left:20px}}

/* Die Spaltenbreiten sind unabhängig vom Inhalt ausgeklappter Details. */
html{scrollbar-gutter:stable}
.rooms-table{table-layout:fixed;min-width:720px;overflow-anchor:none}
.col-room{width:165px}.col-places{width:85px}.col-size{width:120px}.col-details{width:145px}
.rooms-table th,.rooms-table td{overflow-wrap:anywhere}
.rooms-table .room-name{overflow-wrap:normal}
.rooms-table .detail-cell{padding:24px;background:#f6f8f9}
.details-content{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:28px;width:100%;min-width:0;align-items:start}
.details-content.details-no-photo{grid-template-columns:minmax(0,1fr)}
.details-content>*{min-width:0}
.detail-photo{margin:0}
.rooms-table .photo-trigger{width:100%;padding:0;border:1px solid #d8dbdd;background:white;text-align:left;overflow:hidden;font-size:14px}
.details-content .photo-trigger img{display:block;width:100%;height:auto;aspect-ratio:4/3;max-height:none;object-fit:cover}
.details-content .photo-trigger img[hidden]{display:none}
.photo-enlarge{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;color:#cc0130;background:white}
.detail-photo figcaption{font-size:12px;color:#6a6d71;margin-top:8px}
.detail-heading{font-size:18px;line-height:1.4;color:#222;margin:0 0 16px}
.detail-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.room-request .detail-link{display:flex;align-items:center;gap:12px;min-width:0;padding:16px;border:1px solid #d8dbdd;background:#fff;color:#222;text-decoration:none}
.room-request .detail-link:hover{border-color:#cc0130;background:#fff;color:#cc0130}
.detail-icon{display:block;flex:0 0 22px;width:22px;height:22px;color:#cc0130}
.detail-link-text{display:flex;flex:1;flex-direction:column;min-width:0;gap:4px;line-height:1.45}
.detail-link-text strong{font-size:15px}
.detail-link-description{font-size:12px;color:#6a6d71}
.detail-link>.detail-icon:last-child{width:15px;height:15px;flex-basis:15px;color:#6a6d71}
.detail-notes{margin-top:16px;padding:16px 18px;border:1px solid #d8dbdd;background:#fff;min-width:0}
.detail-notes h4{display:flex;align-items:center;gap:10px;margin:0 0 10px;color:#222;font-size:15px}
.details-content .notes{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
@media(max-width:1000px){.detail-links{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.rooms-table .detail-cell{padding:18px}.details-content{grid-template-columns:minmax(0,1fr);gap:20px}.detail-photo{max-width:320px}.detail-links{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Sortierzeile ohne Hintergrundfläche. */
.rooms-table thead th,.rooms-table thead th button,.rooms-table thead th button:hover{background:transparent}

#results > #status:empty { display: none; }

#filters button[type="reset"] {
  background: var(--room-red);
  border-color: var(--room-red);
  color: #fff;
}
#filters button[type="reset"]:hover {
  background: var(--room-red-hover);
  border-color: var(--room-red-hover);
}

.back-link{display:inline-block;border-bottom:1px solid currentColor}

/* Institutsfarben für Kartenflächen und Direktlinks. */
[data-inst="sg"]{--building-color:#FFDD7A}
[data-inst="hcts"]{--building-color:#A1CBCB}
[data-inst="ife"]{--building-color:#C5E4A7}
[data-inst="sai"]{--building-color:#EACAA1}
[data-inst="zo"]{--building-color:#D4BFD4}
.room-request footer p{margin:0}
.room-request footer p+p:not(:empty){margin-top:6px}
.room-request footer p:empty{display:none}

.room-request :is(button, input, select),
.room-request .rooms-table,
.room-request .rooms-table thead th {
  font-size: var(--room-control-size);
}
