/* Raumplanung 1.0. Fachlayouts ergänzen MKB Web CI 1.0.0. */
.rr-loading {margin-top:42px}
.rr-entry {display:grid;grid-template-columns:minmax(300px, .85fr) minmax(0,1.15fr);gap:65px;align-items:center;margin:55px 0 10px}
.rr-access {width:100%;max-width:470px}
.rr-access form {max-width:410px;margin-top:30px}
.rr-access form .mkb-button {width:100%;justify-content:space-between}
.rr-model {margin:0;min-width:0}
.rr-model img {display:block;width:100%;height:clamp(390px,39vw,550px);object-fit:cover}
.rr-projectbar,.rr-section-head,.rr-dialog-head,.rr-dialog-foot,.rr-switch-row,.rr-item-heading,.rr-actions {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.rr-projectbar {margin:28px 0 0}
.rr-switch {font:inherit;background:transparent;border:0;padding:4px 0;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.rr-switch span:first-child,.rr-section-head>a,.rr-section-head>span,.rr-toggle {font-size:15px}
.rr-switch span:first-child {color:var(--mkb-muted);margin-right:12px}
.rr-switch span:last-child {margin-left:8px;font-size:16px}
.rr-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid #aaa;padding:28px 0;margin:6px 0 42px}
.rr-metrics a {border-right:1px solid #ddd;padding:0 25px;text-decoration:none;display:grid;align-content:start;gap:10px}
.rr-metrics a:first-child {padding-left:0}
.rr-metrics a:last-child {border:0}
.rr-metrics a:hover span,.rr-preview-room:hover strong,.rr-room-tile:hover .rr-tile-head strong,.rr-task-line:hover strong {text-decoration:underline;text-underline-offset:4px}
.rr-metrics strong {font-size:clamp(23px,3.2vw,40px);line-height:1.1;overflow-wrap:anywhere;font-weight:500}
.rr-metrics span {font-size:15px}
.rr-overview,.rr-board {display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:65px}
.rr-section-head {padding-bottom:16px;border-bottom:1px solid #555;margin-bottom:14px;align-items:baseline}
.rr-section-head h2 {margin:0}
.rr-task-line,.rr-preview-room,.rr-room-tile {font:inherit;color:inherit;background:transparent;border:0;cursor:pointer;text-align:left;min-width:0}
.rr-task-line {display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;padding:15px 0;border-bottom:1px solid #ddd}
.rr-task-line strong,.rr-preview-room strong {display:block;font-weight:500}
.rr-task-line small,.rr-preview-room small,.rr-room-tile small,.rr-source,.rr-item small,.rr-target small {display:block;color:var(--mkb-muted);font-size:14px}
.rr-task-line small {margin-bottom:4px}
.rr-preview-rooms {display:grid;grid-template-columns:1fr 1fr;gap:20px}
.rr-preview-room {padding:0}
.rr-preview-room img,.rr-tile-image {background:#f3f3f1;border:1px solid #ddd;display:block;width:100%;height:115px}
.rr-preview-room img,.rr-tile-image img {object-fit:contain}
.rr-preview-room>span {display:block;padding:8px 0}
.rr-room-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 25px}
.rr-room-tile {padding:0 0 16px;border-bottom:1px solid #ccc}
.rr-tile-image {height:155px}
.rr-tile-image img {display:block;width:100%;height:100%}
.rr-tile-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:12px 0 3px}
.rr-tile-head strong {font-size:23px;font-weight:500}
.rr-tile-name {display:block}
.rr-segment {display:inline-flex;max-width:100%;flex-wrap:wrap;border-bottom:1px solid #aaa}
.rr-segment button {font:inherit;font-size:16px;background:transparent;color:inherit;border:0;border-bottom:2px solid transparent;padding:10px 16px;cursor:pointer}
.rr-segment button[aria-pressed=true] {border-color:#000;font-weight:500}
.rr-ref {font:inherit;color:inherit;background:#f0f0f0;border:0;padding:5px 9px;margin:2px 0;cursor:pointer}
.rr-ref:hover {text-decoration:underline}
.rr-move-table td:first-child {max-width:410px}
.rr-move-table td:nth-child(2),.rr-move-table td:nth-child(3) {min-width:100px}
.rr-dialog {font-family:MKBMaison,Arial,sans-serif;color:var(--mkb-ink);font-size:18px;border:1px solid #999;padding:32px;width:650px;max-width:calc(100vw - 36px);max-height:calc(100dvh - 48px);overflow:auto;background:white}
.rr-dialog::backdrop {background:rgb(0 0 0 / .28)}
.rr-dialog-head {border-bottom:1px solid #aaa;margin-bottom:25px;padding-bottom:16px}
.rr-dialog-head h2 {margin:0}
.rr-dialog-foot {justify-content:flex-end;border-top:1px solid #ccc;padding-top:22px}
.rr-dialog-foot>[data-delete] {margin-right:auto}
.rr-confirm {max-width:min(470px,calc(100vw - 36px))}
.rr-wide {grid-column:1/-1}
.rr-picker {margin-bottom:25px}
.rr-picker>a {display:flex;gap:15px;justify-content:space-between;align-items:baseline;padding:16px 0;border-bottom:1px solid #ccc;text-decoration:none}
.rr-picker small {color:var(--mkb-muted)}
.rr-check-field {margin:0 0 22px;min-width:0;border:0;padding:0}
.rr-check-field legend,.rr-search-label {font-size:16px;padding:0;margin-bottom:8px}
.rr-check-field details {background:var(--mkb-field);padding:12px 13px}
.rr-check-field summary {cursor:pointer}
.rr-search-label {display:block;margin-top:18px}
.rr-search-label input {display:block;width:100%;padding:8px;font:inherit;border:1px solid #999}
.rr-options {max-height:180px;overflow:auto;padding:0 4px}
.rr-options .mkb-check {margin:10px 0}
.rr-plan-link {display:block;margin-bottom:20px;font-size:15px}
.rr-plan-link img {display:block;margin-bottom:7px;max-height:320px;width:100%;object-fit:contain;background:#f3f3f1}
.rr-compare {display:grid;grid-template-columns:1fr 1fr;border-block:1px solid #aaa;padding:16px 0;margin:0 0 20px;gap:20px}
.rr-compare small,.rr-compare strong {display:block}
.rr-compare small {color:#626262;font-size:15px;margin-bottom:8px}
.rr-compare strong {font-weight:500}
.rr-board {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
.rr-inventory {display:grid;gap:12px}
.rr-item {border-left:2px solid #999;background:#f3f3f1;padding:16px 18px;cursor:grab}
.rr-item-heading {justify-content:flex-start;flex-wrap:nowrap;gap:12px}
.rr-item-heading strong {overflow-wrap:anywhere}
.rr-item-heading span:last-child {margin-left:auto;white-space:nowrap}
.rr-grip {color:#626262}
.rr-item small {margin:8px 0}
.rr-item p {margin:8px 0}
.rr-item-actions {display:flex;gap:20px}
.rr-targets {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rr-target {border:1px dashed #999;padding:15px;min-height:82px;overflow-wrap:anywhere}
.rr-target span {font-size:15px}
.rr-target small {margin-top:8px}
.rr-target.rr-over {background:#ececec;outline:2px solid #333;outline-offset:-2px}
.rr-dragging {opacity:.55}
.rr-toggle {display:flex;align-items:center;gap:8px}
.rr-toggle input {width:18px;height:18px;accent-color:black}
.rr-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#feedback .mkb-notice {display:flex;justify-content:space-between;align-items:center;gap:16px}
#view,#editor {overflow-wrap:anywhere}
@media(max-width:1100px) {
  .rr-entry,.rr-overview,.rr-board {gap:35px}
}
@media(max-width:800px) {
  .rr-overview,.rr-board {grid-template-columns:1fr}
  .rr-room-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .rr-entry {grid-template-columns:minmax(265px,.9fr) minmax(0,1fr);gap:25px}
  .rr-model img {height:390px}
  .rr-metrics a {padding:0 15px}
}
@media(max-width:639px) {
  .rr-entry {grid-template-columns:1fr;margin-top:35px}
  .rr-access,.rr-access form {max-width:none}
  .rr-model img {height:auto;aspect-ratio:2/1}
  .rr-metrics {grid-template-columns:1fr 1fr;gap:20px 0;padding:20px 0;margin-bottom:30px}
  .rr-metrics a:nth-child(even) {border:0}
  .rr-metrics a:nth-child(odd) {padding-left:0}
  .rr-projectbar {gap:6px 15px}
  .rr-dialog {padding:20px}
  .rr-preview-rooms,.rr-room-grid {gap:20px 12px}
  .rr-tile-image {height:105px}
  .rr-tile-head {display:block}
  .rr-targets {grid-template-columns:1fr}
}
@media(max-width:360px) {
  .rr-room-grid {grid-template-columns:1fr}
}
