:root {
  --grund: #f3f1ec;
  --flaeche: #ffffff;
  --tinte: #1f1e1c;
  --leise: #6d6a64;
  --linie: #dedad2;
  --akzent: #2f7a68;
  --akzent-hell: #e3efeb;
  --gefahr: #a8442f;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--tinte);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--grund); display: flex; flex-direction: column; overflow: hidden; }
[hidden] { display: none !important; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 6px; padding: 5px 10px; line-height: 1.3; }
button:hover { border-color: #bdb8ae; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
select, input[type=text], input[type=number] { border: 1px solid var(--linie); border-radius: 6px; padding: 5px 7px; background: var(--flaeche); min-width: 0; width: 100%; }
input[type=color] { width: 30px; height: 28px; padding: 0; border: 1px solid var(--linie); border-radius: 6px; background: none; flex: none; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--akzent); }
input[type=checkbox] { accent-color: var(--akzent); }
h2 { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin: 16px 0 8px; display: flex; justify-content: space-between; }
h2 span { letter-spacing: 0; text-transform: none; font-weight: 400; }
h2:first-child { margin-top: 4px; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: 16px; padding: 8px 14px; background: var(--flaeche); border-bottom: 1px solid var(--linie); flex: none; }
.marke { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.marke strong { font-size: 15px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marke span { color: var(--leise); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1000; }
.kopfrechts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.trenner { width: 1px; height: 18px; background: var(--linie); margin: 0 4px; }
.segment { display: inline-flex; border: 1px solid var(--linie); border-radius: 7px; background: var(--grund); padding: 2px; gap: 2px; }
.segment button { border: 0; background: none; padding: 4px 11px; border-radius: 5px; white-space: nowrap; }
.segment button.on { background: var(--flaeche); box-shadow: 0 1px 2px rgba(0,0,0,.14); font-weight: 600; }
.segment.voll { display: flex; }
.segment.voll button { flex: 1; }
.mehr { position: relative; }
.mehr summary { list-style: none; cursor: pointer; border: 1px solid var(--linie); border-radius: 6px; padding: 5px 9px; background: var(--flaeche); white-space: nowrap; }
.mehr summary::-webkit-details-marker { display: none; }
.menue { position: absolute; right: 0; top: calc(100% + 6px); background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; display: grid; gap: 4px; z-index: 30; width: max-content; }
.menue button { border: 0; text-align: left; }
.menue button:hover { background: var(--grund); }
.wohnungswahl .menue, .versionswahl .menue { left: 0; right: auto; min-width: 220px; }
.versionswahl summary { color: var(--akzent); font-weight: 600; }
.kopf:not(.mitweg) #versionTitel { max-width: 18em; overflow: hidden; text-overflow: ellipsis; }   /* lange Versionsnamen: „…“ statt Umbruch (Knöpfe der Kopfzeile brechen nicht um) */
.wohnungliste { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.wohnungliste button.on { font-weight: 600; }
.menue hr { border: 0; border-top: 1px solid var(--linie); margin: 2px 0; width: 100%; }
.menue button.gefahr { color: var(--gefahr); }

/* Aufbau */
.werk { flex: 1; display: flex; min-height: 0; }
.seite { width: 276px; flex: none; background: var(--flaeche); border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-height: 0; }
.reiterleiste { display: flex; border-bottom: 1px solid var(--linie); flex: none; }
.reiterleiste button { flex: 1; border: 0; border-radius: 0; background: none; padding: 9px 0; color: var(--leise); border-bottom: 2px solid transparent; }
.reiterleiste button.on { color: var(--tinte); font-weight: 600; border-bottom-color: var(--akzent); }
.reiter { padding: 12px; overflow-y: auto; flex: 1; min-height: 0; }
.buehne { flex: 1; display: flex; min-width: 0; }
.feld2d, .feld3d { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.feld3d { border-left: 1px solid var(--linie); background: #cfdde8; }
.buehne[data-mode="2d"] .feld3d { display: none; }
.buehne[data-mode="3d"] .feld2d { display: none; }
.buehne[data-mode="3d"] .feld3d { border-left: 0; }
#gl { width: 100%; height: 100%; display: block; touch-action: none; }
.feld3d[data-modus="rundgang"] #gl { cursor: grab; }
.lade { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #3f4d57; }
.leiste { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; pointer-events: none; }
.leiste > * { pointer-events: auto; }
.leiste .segment, .leiste > button, .leiste > select, .leiste > .haken { background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.leiste > .haken { padding: 5px 9px; border-radius: 6px; }
.leiste > select { width: auto; }
.tipp { position: absolute; left: 10px; bottom: 8px; margin: 0; max-width: calc(100% - 20px); color: var(--leise); background: rgba(255,255,255,.82); padding: 4px 8px; border-radius: 6px; font-size: 12px; pointer-events: none; }
.feld3d .tipp { color: #26313a; }
.feld3d[data-modus="uebersicht"] .nur-rundgang, .feld3d[data-modus="rundgang"] .nur-uebersicht { display: none; }

/* Katalog und Liste */
.katalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.katgruppe { margin-bottom: 8px; }
.katgruppe > summary { cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--leise); padding: 4px 0 6px; list-style-position: inside; }
.katgruppe > summary:hover { color: var(--tinte); }
.kachel { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; font-size: 11px; line-height: 1.2; }
.kachel svg { width: 26px; height: 26px; fill: none; stroke: var(--tinte); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.kachel:hover { border-color: var(--akzent); background: var(--akzent-hell); }
.liste { display: grid; gap: 1px; }
.listkopf { font-size: 11px; color: var(--leise); margin: 8px 2px 2px; display: flex; justify-content: space-between; }
.zeile { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 5px; padding: 4px 6px; text-align: left; width: 100%; }
.zeile:hover { background: var(--grund); }
.zeile.on { background: var(--akzent-hell); }
.zeile i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); flex: none; }
.zeile .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .m { color: var(--leise); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Felder */
.feld { display: grid; gap: 3px; margin-bottom: 9px; min-width: 0; }
.feld > span { font-size: 11px; color: var(--leise); }
.reihe3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.farbwahl { display: flex; gap: 7px; align-items: flex-start; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatches button { width: 18px; height: 18px; padding: 0; border-radius: 4px; border: 1px solid rgba(0,0,0,.22); }
.swatches button:hover { transform: scale(1.15); }
.haken { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.hakenreihe { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 10px; }
.knoepfe { display: flex; gap: 4px; }
.knoepfe button { flex: 1; padding: 4px 0; }
.aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.aktionen button { flex: 1; white-space: nowrap; }
.gefahr { color: var(--gefahr); }
.regler { display: grid; gap: 2px; margin-bottom: 10px; }
.regler span { display: flex; justify-content: space-between; }
.regler output { color: var(--leise); font-variant-numeric: tabular-nums; }
.hinweis { color: var(--leise); font-size: 11.5px; margin: -4px 0 10px; line-height: 1.4; }
#reiter-licht .haken { display: flex; margin-bottom: 8px; }

/* Räume */
.raum { border: 1px solid var(--linie); border-radius: var(--radius); margin-bottom: 6px; padding: 0 10px; }
.raum[open] { padding-bottom: 10px; }
.raum summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; }
.raum summary::-webkit-details-marker { display: none; }
.raum summary i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.2); flex: none; }
.raum .rn { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raum .rf { color: var(--leise); font-size: 11px; white-space: nowrap; }

/* Eigenschaften */
.eigenschaften { position: absolute; right: 10px; top: 52px; width: 262px; max-height: calc(100% - 96px); overflow-y: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 10px 12px 12px; z-index: 5; }
.pkopf { display: flex; gap: 6px; margin-bottom: 10px; }
.pkopf .name { font-weight: 600; }
.pkopf .x { border: 0; font-size: 17px; line-height: 1; padding: 2px 7px; color: var(--leise); }

/* Grundriss */
#plan { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; background: #ebe8e1; cursor: grab; }
#plan[data-tool="messen"] { cursor: crosshair; }
#plan * { vector-effect: non-scaling-stroke; }
.floor { stroke: none; opacity: .5; }
.wall { fill: #3b3936; stroke: #3b3936; stroke-width: .5px; }
.wall.neu { fill: #6a4a40; stroke: #6a4a40; }
.pane { fill: #9fc3d6; stroke: none; }
.pane.eingang { fill: #8a6a4a; }
.fixed { fill: #dcd8cf; stroke: #8d897f; stroke-width: 1px; }
.heiz { fill: #7fa7c2; stroke: none; opacity: .8; }
.doorlines { fill: none; stroke: #6f6b64; stroke-width: 1px; }
.archlines { fill: none; stroke: #b0563c; stroke-width: 1px; stroke-dasharray: 4 3; opacity: .85; }
.item { cursor: move; }
.item.locked { cursor: default; }
.item .body { stroke: rgba(0,0,0,.6); stroke-width: 1px; }
.item.t-teppich .body { stroke: rgba(0,0,0,.3); stroke-dasharray: 3 2; fill-opacity: .8; }
/* hängende Möbel (Hängeschrank, Spiegelschrank, Wandregal): im Grundriss gestrichelt und durchscheinend, wie im Bauplan */
.item.haengt .body { fill-opacity: .45; stroke-dasharray: 4 3; }
.item.locked .body { stroke-dasharray: none; stroke: rgba(0,0,0,.4); }
.item.selected .body { stroke: var(--akzent); stroke-width: 2px; }
.glyph { fill: none; stroke: var(--ink, rgba(0,0,0,.4)); stroke-width: 1px; pointer-events: none; }
text { font-family: inherit; text-anchor: middle; pointer-events: none; }
.roomlabel { font-size: 12px; font-weight: 600; fill: #55514a; letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: rgba(235,232,225,.8); stroke-width: 3px; }
.roomarea { font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.itemlabel { font-size: 11px; fill: #1f1e1c; paint-order: stroke; stroke: rgba(255,255,255,.75); stroke-width: 2.5px; }
.itemlabel.onDark { fill: #fff; stroke: rgba(0,0,0,.45); }
.itemlabel .dim { font-size: 9.5px; font-variant-numeric: tabular-nums; }
.selbox { fill: none; stroke: var(--akzent); stroke-width: 1.5px; stroke-dasharray: 5 3; pointer-events: none; }
.selline { stroke: var(--akzent); stroke-width: 1.5px; pointer-events: none; }
.handle { fill: #fff; stroke: var(--akzent); stroke-width: 1.5px; }
.handle.rot { cursor: grab; }
.handle.size { cursor: nwse-resize; }
.gapline { stroke: #b0563c; stroke-width: 1px; stroke-dasharray: 2 2; pointer-events: none; }
.gaptext { font-size: 10.5px; fill: #8f3f29; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 2.5px; }
.gaptext.left { text-anchor: start; }
.mline { stroke: #1d5fa8; stroke-width: 1.5px; pointer-events: none; }
.mdot { fill: #1d5fa8; pointer-events: none; }
.mtext { font-size: 13px; font-weight: 600; fill: #1d5fa8; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.cam { cursor: move; }
.camcone { fill: rgba(29,95,168,.2); stroke: none; }
.camdot { fill: #1d5fa8; stroke: #fff; stroke-width: 2px; }

.meldung { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #26313a; color: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 50; }
.meldung.fehler { background: var(--gefahr); }

@media (max-width: 900px) {
  .seite { width: 220px; }
  .katalog { grid-template-columns: repeat(2, 1fr); }
  .marke span { display: none; }
  .tipp { display: none; }
  /* Tablet hochkant (ohne Konto): Name in eigener Zeile, nichts bricht im Knopf um (Paket 13, Nachbesserung) */
  .kopf:not(.mitweg) { flex-wrap: wrap; gap: 6px 8px; padding-left: 8px; padding-right: 8px; }
  .kopf:not(.mitweg) .marke { flex: 1 1 100%; }
}

/* RAL-Auswahl */
.farbblock { display: grid; gap: 6px; min-width: 0; }
.farbblock .farbwahl { align-items: center; }
.ralknopf { padding: 4px 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; flex: none; }
.ralname { color: var(--leise); font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.ral { border: 1px solid var(--linie); border-radius: 12px; padding: 16px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 60px); box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--tinte); background: var(--flaeche); }
dialog.ral::backdrop { background: rgba(30,30,28,.35); }
.ralkopf { display: flex; gap: 10px; align-items: center; }
.ralkopf strong { font-size: 15px; white-space: nowrap; }
.ralstatus { margin: 10px 0 4px; font-weight: 600; min-height: 1.3em; }
.ralraster { overflow-y: auto; max-height: calc(100vh - 250px); padding-right: 4px; }
.ralraster h4 { margin: 12px 0 5px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); }
.ralreihe { display: flex; flex-wrap: wrap; gap: 4px; }
.ralreihe button { width: 34px; height: 34px; padding: 0; border-radius: 6px; border: 1px solid rgba(0,0,0,.2); }
.ralreihe button:hover, .ralreihe button:focus-visible { transform: scale(1.18); position: relative; z-index: 1; }
.ralreihe button.on { outline: 3px solid var(--akzent); outline-offset: 1px; }
dialog.ral .hinweis { margin: 12px 0 0; }
.ralkopf input { flex: 1; min-width: 0; border: 1px solid var(--linie); border-radius: 6px; padding: 6px 9px; background: var(--flaeche); }

/* einzelne Wände */
.wandlinie { fill: none; stroke-width: 5px; pointer-events: none; }
.wandtreffer { fill: none; stroke: transparent; stroke-width: 14px; pointer-events: none; }
.wandtreffer.gewaehlt { stroke: rgba(47,122,104,.55); }
#plan[data-tool="wand"] { cursor: default; }
#plan[data-tool="wand"] .wandtreffer { pointer-events: stroke; cursor: pointer; }
#plan[data-tool="wand"] .wandtreffer:hover { stroke: rgba(47,122,104,.35); }
#plan[data-tool="wand"] .item { pointer-events: none; }
.ptitel { flex: 1; font-size: 14px; align-self: center; }

.glyph.luft { fill: #ebe8e1; fill-opacity: .88; stroke-dasharray: 3 2; }

.podest { fill: rgba(120,95,60,.22); stroke: #7a6a55; stroke-width: 1px; }
.podesttext { fill: #6a5a45; }

.tapeten { display: flex; gap: 6px; flex-wrap: wrap; }
.tapete { width: 96px; height: 60px; padding: 0; display: flex; align-items: flex-end; overflow: hidden; }
.tapete span { background: rgba(255,255,255,.88); width: 100%; font-size: 11px; padding: 2px 6px; text-align: left; }

/* Fragen der Erkennung */
.zahl { display: inline-block; min-width: 16px; padding: 0 5px; border-radius: 9px; background: var(--akzent); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; }
.zahl:empty { display: none; }
/* Originalplan unter dem Grundriss: dezent (grau, blass), damit Wände, Räume und Möbel klar darüber liegen; als Vorlage
   zum Nachzeichnen (gezeichnete Wohnung) etwas kräftiger */
.unterlage { opacity: .3; filter: grayscale(1) contrast(.85); pointer-events: none; }
.unterlage.vorlage { opacity: .5; }
.markierung { fill: rgba(224,122,31,.18); stroke: #e07a1f; stroke-width: 3px; pointer-events: none; }
.frage { border: 1px solid var(--linie); border-radius: var(--radius); padding: 9px 10px; margin-bottom: 8px; background: var(--flaeche); }
.frage.wichtig { border-left: 3px solid #e07a1f; }
.frage.erledigt { background: #f2f8f4; border-color: #cfe3d6; }
.frage.erledigt .ftext { color: var(--leise); }
.frage .fhaken { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #2f8a4f; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.frage .fstand { display: flex; align-items: center; gap: 8px; }
.frage .faendern { margin-left: auto; padding: 2px 8px; font-size: 12px; }
.frage.eben { animation: frageEben 1.8s ease-out; }
@keyframes frageEben { 0% { box-shadow: 0 0 0 3px rgba(47,138,79,.55); } 100% { box-shadow: 0 0 0 0 rgba(47,138,79,0); } }
.fstandzeile { font-size: 12px; color: var(--leise); margin: 0 0 8px; }
.fannahmen { margin: 12px 0 8px; }
.fannahmen > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--leise); padding: 4px 0; }
.fannahmen > summary:hover { color: var(--tinte); }
.fannahmen .frage { background: var(--grund); }
.frage .ftext { margin: 0 0 4px; }
.frage .fgrund { margin: 0 0 7px; color: var(--leise); font-size: 12px; }
.frage .feingabe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.frage .feingabe input[type=number] { width: 88px; }
.frage .feingabe input[type=text], .frage .feingabe select { flex: 1; min-width: 120px; }
.frage .fstand { font-size: 12px; color: var(--akzent); margin-top: 6px; }
.frage .fwerkzeug { font-size: 11px; color: var(--leise); margin-top: 6px; }
.fragengruppe { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); margin: 14px 0 6px; }
.fhinweise { margin-bottom: 10px; }
.fhinweise ul { margin: 6px 0 0 16px; padding: 0; color: var(--leise); font-size: 12px; }

/* Länge festlegen: Kästchen beim Messen, Zeile im Möbelfenster */
.messkasten { position: absolute; left: 10px; bottom: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; background: rgba(255,255,255,.96); border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.16); font-size: 13px; max-width: calc(100% - 20px); }
.messkasten input { width: 80px; }
/* Grundriss bearbeiten */
.editkasten { position: absolute; left: 10px; bottom: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; background: rgba(255,255,255,.96); border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.16); font-size: 13px; max-width: min(560px, calc(100% - 20px)); }
.editkasten input { width: 56px; }
.editkasten input[type=checkbox] { width: auto; }
/* leere Ränder des Kastens lassen Klicks zum Grundriss durch, nur die Bedienelemente fangen sie */
.editkasten { pointer-events: none; }
.editkasten > * { pointer-events: auto; }
.editkasten > .edithinweis, .editkasten > .editmeldung { pointer-events: none; }
.editkasten .edithinweis { flex-basis: 100%; margin: 0; color: var(--leise); font-size: 12px; }
.editkasten .messfehler:empty { display: none; }
.editkasten .editmeldung { flex-basis: 100%; margin: 0; font-size: 12px; color: #2f6a4f; }
.editkasten .editmeldung:empty { display: none; }
.editkasten .editmeldung.warnung { color: var(--gefahr); }
#plan[data-tool="bearbeiten"] { cursor: crosshair; }
#plan[data-tool="bearbeiten"] ~ .tipp { display: none; }
#plan[data-tool="bearbeiten"] .item { pointer-events: none; opacity: .55; }
.raumgrenze { stroke: #6b6760; stroke-width: 1.5px; stroke-dasharray: 5 4; fill: none; vector-effect: non-scaling-stroke; pointer-events: none; }
.evor { fill: rgba(29,95,168,.35); stroke: #1d5fa8; stroke-width: 1px; vector-effect: non-scaling-stroke; pointer-events: none; }
.evor.grenze { fill: none; stroke-dasharray: 5 4; stroke-width: 2px; }
.evor.oeff { fill: rgba(255,255,255,.85); stroke-width: 2px; }
.evor.weg { fill: rgba(190,40,30,.35); stroke: #be281e; stroke-width: 2px; }
.messfehler, .masszeile .ffehler { color: var(--gefahr); font-size: 12px; }
.masszeile { border-top: 1px solid rgba(0,0,0,.08); padding-top: 8px; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.masszeile .masslabel { font-weight: 600; }
.masszeile .feingabe { display: flex; gap: 6px; align-items: center; }
.masszeile .feingabe input { width: 76px; flex: none; }
.masszeile .feingabe button { flex: 1; }

/* Neue Wohnung zeichnen */
dialog.neudialog { width: min(460px, calc(100vw - 32px)); }
dialog.neudialog h3 { margin: 0 0 12px; font-size: 15px; }
dialog.neudialog input[type=file] { font-size: 12px; min-width: 0; }
dialog.neudialog .hinweis { font-size: 12px; color: var(--leise); margin: 4px 0 0; }
.neuknoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
button.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600; }
button.haupt:hover { border-color: var(--akzent); filter: brightness(1.08); }
.zeichenraster { stroke: rgba(47,122,104,.16); stroke-width: 1px; vector-effect: non-scaling-stroke; pointer-events: none; }
.zeichenraster.voll { stroke: rgba(47,122,104,.32); }
/* Beim Bearbeiten scheint der Originalplan oder die Vorlage durch die Böden */
#plan[data-tool="bearbeiten"] .g-floors { opacity: .5; }

/* Grundriss hochladen */
.hochstatus { margin: 0 0 10px; font-size: 12.5px; }
.hochstatus.gut { color: #2f6a4f; }
.hochstatus.warnung { color: #9a5a12; }
.hochbefehl, .hochlog { margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; background: var(--grund); font: 11.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
.hochbefehl { user-select: all; }
.hochlog { max-height: 96px; overflow: auto; font-family: inherit; font-size: 12px; line-height: 1.45; color: var(--leise); background: none; padding: 0 2px; }
/* Haken im Dialog: Der Text bricht um (er ist länger als der Dialog breit). Der Hinweis vor dem ersten Upload (nur am
   Server, js/ui.js) steht als Kasten über den übrigen Haken. */
#hochForm .haken { display: flex; align-items: flex-start; white-space: normal; margin-top: 6px; line-height: 1.35; }
#hochForm .haken input { flex: none; margin-top: 2px; }
/* Während der Erkennung: ein Grundriss baut sich ruhig auf, Linie für Linie mit dem Fortschritt (p1 … p5); darüber
   neben dem Namen ein kleiner, langsam drehender Kreis (Paket 14, statt des hin- und herlaufenden Lichtstreifens) */
#hochForm.laeuft .feld, #hochForm.laeuft .hinweis, #hochForm.laeuft .haken { display: none; }
.hochbau { margin: 2px 0 8px; padding: 12px; border-radius: 10px; background: var(--grund); }
.hochbau svg { display: block; width: 100%; height: auto; }
.bw-kopf { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; color: var(--tinte); min-width: 0; }
.bw-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hochbau .ladekreis { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--linie); border-top-color: var(--akzent); }
.hochbau.laeuft .ladekreis { animation: ladekreis 1.8s linear infinite; }
.hochbau:not(.laeuft) .ladekreis { border-color: var(--akzent); }
.hochbau.fehler .ladekreis { border-color: var(--leise); }
.hochbau .bw-wand { fill: none; stroke: var(--tinte); stroke-linecap: square; stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.hochbau .bw-aussen { stroke-width: 5; }
.hochbau .bw-innen { stroke-width: 2.6; }
.hochbau .bw-tuer { fill: none; stroke: var(--tinte); stroke-width: 1; stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.hochbau .bw-luecke { fill: var(--grund); opacity: 0; }
.hochbau .bw-fenster { fill: none; stroke: var(--tinte); stroke-width: .8; opacity: 0; }
.hochbau .bw-raum { opacity: 0; }
.hochbau .bw-moebel { fill: var(--flaeche); stroke: var(--leise); stroke-width: .8; opacity: 0; }
.hochbau .bw-name { font: 600 8.5px/1 system-ui, sans-serif; fill: var(--tinte); text-anchor: middle; opacity: 0; }
.hochbau.p1 .bw-aussen { animation: bw-zieh 2.6s ease-out forwards; }
.hochbau.p2 .bw-innen { animation: bw-zieh 3.5s ease-in-out forwards; animation-delay: calc(var(--i) * 3.2s); }
.hochbau.p3 .bw-luecke, .hochbau.p3 .bw-fenster { opacity: 1; transition: opacity .8s calc(var(--i) * .35s); }
.hochbau.p3 .bw-tuer { animation: bw-zieh 1.2s ease-out forwards; animation-delay: calc(var(--i) * .35s); }
.hochbau.p3 .bw-raum { opacity: 1; transition: opacity 1.6s calc(var(--i) * .5s); }
.hochbau.p4 .bw-moebel { opacity: 1; transition: opacity 1.2s ease-out calc(var(--i) * .7s); }
.hochbau.p5 .bw-name { opacity: 1; transition: opacity .8s calc(var(--i) * .15s); }
/* fertig: alles sofort zeigen, auch was noch auf seinen Einsatz gewartet hat */
.hochbau.p5 .bw-innen, .hochbau.p5 .bw-tuer { animation-delay: 0s; animation-duration: .6s; }
.hochbau.p5 .bw-moebel, .hochbau.p5 .bw-raum, .hochbau.p5 .bw-luecke, .hochbau.p5 .bw-fenster { transition-delay: 0s; }
.hochbau.fehler { filter: grayscale(1); opacity: .55; }
@keyframes bw-zieh { to { stroke-dashoffset: 0; } }
@keyframes ladekreis { to { transform: rotate(360deg); } }
/* Ohne Bewegung: kein Drehen, die Zeichnung steht gleich so da, wie weit die Erkennung ist */
@media (prefers-reduced-motion: reduce) {
  .hochbau * { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .hochbau.laeuft .ladekreis { animation: none; }
}
.neuknoepfe.links { justify-content: flex-start; margin: 0 0 12px; }

/* Weg zurück zur Website in der Kopfzeile (nur wo der Planer von der Web-App kommt, js/server.js) */
.kopfweg { color: var(--akzent); font-size: 13px; white-space: nowrap; text-decoration: none; flex: none; }
.kopfweg:hover, .kopfweg:focus-visible { text-decoration: underline; }
/* Mit dem Verweis und dem Speicherstand ist die Kopfzeile dort voller als aus der Datei (Klasse „mitweg“, js/server.js).
   Wird es eng, weicht zuerst das Wort „Einrichtungsplaner“, dann der Text des Speicherstands, statt dass der eine den
   anderen überdruckt: Beide bekommen nur den Platz, den die anderen übrig lassen (sie wachsen von 0 bis zu ihrer
   Breite, der Speicherstand zuerst), und enden sonst mit „…“. Dazu stehen Name, Wort, Text und Knopf des
   Speicherstands dort unmittelbar in der Kopfzeile (display: contents). Die Ränder halten Wort und Knopf, wo sie in
   ihrem Kasten stünden: 8 px hinter dem Nachbarn (statt des Abstands der Kopfzeile), das Wort auf der Grundlinie des
   Namens.
   Endprüfung (E4, E5): Name, Versionsname und Knopf des Speicherstands geben erst danach nach, und nie ganz. Sie
   beginnen bei einem Rest (vom Namen und vom Knopf höchstens 4,5em, ein kürzerer bleibt ganz, also etwa „Anmel…“;
   vom Menü „Version“ 9em, also etwa „Version: Va… ▾“) und wachsen zu gleichen Teilen bis zu ihrer Breite; gekürzt
   enden sie mit „…“, den vollen Namen nennt der Titel (js/server.js). Eine Warnung zum Speichern (keine Verbindung, nicht gespeichert, abgemeldet) wächst
   vor allen anderen: Sie weicht erst, wenn Name und Versionsname bei ihrem Rest sind, und auch dann nur bis auf etwa
   „Nicht gespeichert“ und „Erneut ve…“. Wer zuerst wächst, weicht zuletzt (flex-grow). Die Menüs brechen nicht in sich
   um, „▾“ bleibt stehen. Reichen auch die Reste nicht, rutscht der Rest der Kopfzeile in eine zweite Zeile, statt dass
   etwas verschwindet oder über den Rand steht. Unter 1000 px rückt alles enger (Abstände 8 px). */
.kopf.mitweg { --luecke: 16px; gap: 6px var(--luecke); flex-wrap: wrap; }
.kopf.mitweg .marke, .kopf.mitweg .speicherstand { display: contents; }
.kopf.mitweg .marke strong { flex: 1000000 1 0px; max-width: max-content; min-width: 4.5em; min-width: calc-size(max-content, min(size, 4.5em)); overflow: hidden; text-overflow: ellipsis; }
.kopf.mitweg .marke span { flex: 1 1 0px; max-width: max-content; min-width: 0; margin: 2px 0 0 calc(8px - var(--luecke)); overflow: hidden; text-overflow: ellipsis; }
.kopf.mitweg .speicherstand span { flex: 1000 1 0px; max-width: max-content; min-width: 0; }
.kopf.mitweg .speicherstand a, .kopf.mitweg .speicherstand button { flex: 1000000 1 0px; max-width: max-content; min-width: 4.5em; min-width: calc-size(max-content, min(size, 4.5em)); margin-left: calc(8px - var(--luecke)); overflow: hidden; text-overflow: ellipsis; }
.kopf.mitweg .speicherstand:is(.offline, .fehler, .abgemeldet) span { flex: 100000000 1 0px; min-width: 9.5em; }
.kopf.mitweg .speicherstand:is(.offline, .fehler, .abgemeldet) :is(a, button) { flex: 100000000 1 0px; min-width: 6em; }
.kopf.mitweg .versionswahl { flex: 1000000 1 0px; max-width: max-content; min-width: 9em; min-width: calc-size(max-content, min(size, 9em)); }
.kopf.mitweg #versionTitel { display: flex; white-space: nowrap; }
.kopf.mitweg #versionTitel .versionsname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kopf.mitweg #versionTitel .pfeil { flex: none; padding-left: .3em; }
.kopf.mitweg .wohnungswahl, .kopf.mitweg .segment, .kopf.mitweg .kopfrechts { flex: none; }
.kopf.mitweg .wohnungswahl > summary { white-space: nowrap; }
@media (max-width: 1000px) {
  .kopf.mitweg { --luecke: 8px; padding-left: 8px; padding-right: 8px; }
  .kopf.mitweg .segment button { padding-left: 8px; padding-right: 8px; }
}
/* Mit Konto (Seite kommt vom Server, js/server.js): Anzeige des Speicherstands neben dem Namen, Dialoge der Ablage */
.speicherstand { display: inline-flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--leise); white-space: nowrap; min-width: 0; }
.speicherstand span { overflow: hidden; text-overflow: ellipsis; }
.speicherstand.gespeichert span::before { content: '✓ '; color: var(--akzent); }
.speicherstand.offline, .speicherstand.abgemeldet, .speicherstand.fehler { color: #9a5a12; }
.speicherstand a { color: var(--akzent); }
.speicherstand button { padding: 2px 8px; font-size: 12px; }
dialog.ablagedialog .hinweis { font-size: 13px; color: var(--tinte); margin: 0 0 10px; line-height: 1.45; }
.uebernahmeliste { display: grid; gap: 6px; margin: 4px 0 10px; max-height: 40vh; overflow: auto; }
.uebernahmeliste .haken { white-space: normal; }
.uebernahmeliste .erledigt { color: var(--leise); text-decoration: line-through; }
.ablagesperre { position: fixed; inset: 0; z-index: 90; cursor: progress; display: grid; place-items: center; gap: 12px; align-content: center; }
.ablagesperre.mit-text { background: rgba(243,241,236,.86); cursor: default; }
.ablagesperre p { margin: 0; max-width: 34em; padding: 0 20px; text-align: center; font-size: 14px; line-height: 1.5; }
.ablagesperre p:empty { display: none; }
.ablagesperre .knopf, .hochanmelden { display: inline-block; border: 1px solid var(--akzent); background: var(--akzent); color: #fff; border-radius: 6px; padding: 5px 12px; text-decoration: none; }

/* Paket 13: Handy und Tablet. Unter 768 px Breite ist die Seitenleiste eine Schublade (Knopf unten links, ein Tipp auf
   den Schleier schließt sie), die Kopfzeile bricht um, „Geteilt“ entfällt, die Eigenschaften kommen als Blatt von unten,
   und Bearbeiten der Wände (samt „Neue Wohnung zeichnen“) gibt es erst ab Tablet-Breite (offene Frage aus 13, nach
   Vorschlag entschieden). Nichts ragt über den rechten Rand. Mit Fingern (pointer: coarse) sind Knöpfe größer.
   Dasselbe gilt für das Handy quer (Paket 18, Querformat: Finger, ein Handy, also kurze Seite des Geräts unter 600 px,
   und ein Fenster mindestens 3:2 und höchstens 500 px hoch; Tablets, auch in niedrigen Fenstern, und eine Tastatur,
   die das Fenster hochkant niedrig macht, bleiben außen vor; dieselbe Abfrage steht in js/ui.js), dazu weiter unten
   ein eigener Block für die knappe Höhe. */
.seitenknopf, .seitenschleier { display: none; }
@media (max-width: 767px), (min-aspect-ratio: 3/2) and (max-height: 500px) and (pointer: coarse) and (max-device-width: 599px), (min-aspect-ratio: 3/2) and (max-height: 500px) and (pointer: coarse) and (max-device-height: 599px) {
  .kopf, .kopf.mitweg { position: relative; flex-wrap: wrap; gap: 6px 8px; padding: 6px 8px; }
  .kopf .marke { flex: 1 1 100%; min-width: 0; }
  .kopf:not(.mitweg) .marke strong { overflow: hidden; text-overflow: ellipsis; }
  .kopf.mitweg .marke strong { flex-basis: auto; }
  .kopfrechts { margin-left: 0; gap: 4px; }
  .kopf .trenner, .kopf [data-ansicht="split"] { display: none; }
  /* Menüs der Kopfzeile: unter der Kopfzeile über die ganze Breite statt am Knopf (der kann rechts stehen) */
  .kopf .mehr { position: static; }
  .kopf .menue, .kopf .wohnungswahl .menue, .kopf .versionswahl .menue { left: 8px; right: 8px; top: calc(100% + 2px); width: auto; min-width: 0; max-height: 70vh; overflow: auto; }
  .kopf .menue { z-index: 45; }   /* über dem Blatt (42), das quer bis unter die Kopfzeile reicht (Paket 18) */
  .werk { position: relative; }
  .seite { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 88vw); z-index: 40; box-shadow: 8px 0 24px rgba(0,0,0,.18); transform: translateX(-105%); visibility: hidden; transition: transform .18s ease-out, visibility 0s .18s; }
  body.seite-offen .seite { transform: none; visibility: visible; transition: transform .18s ease-out; }
  .seitenschleier { position: absolute; inset: 0; z-index: 39; background: rgba(30,30,28,.32); }
  body.seite-offen .seitenschleier { display: block; }
  .seitenknopf { display: inline-flex; align-items: center; position: absolute; left: 8px; bottom: 8px; z-index: 41; background: var(--flaeche); box-shadow: 0 2px 10px rgba(0,0,0,.2); font-weight: 600; padding: 8px 12px; white-space: nowrap; }
  body.seite-offen .seitenknopf { left: auto; right: 8px; }
  body.seite-offen .eigenschaften { z-index: 38; }   /* offene Schublade: das Blatt unter den Schleier, „✕ Schließen“ frei */
  /* kleines Blatt (Paket 18) unten über die ganze Breite: Schubladenknopf und Meldungen darüber */
  body:has(#props.klein:not([hidden])) .seitenknopf { bottom: 66px; }
  body:has(#props.klein:not([hidden])) .meldung { bottom: 112px; }   /* über Leiste und gehobenem Knopf */
  body:has(#props.klein:not([hidden])) :is(.messkasten, .editkasten) { bottom: 108px; }
  .leiste { top: 6px; left: 6px; right: 6px; gap: 6px; }
  .eigenschaften { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 55%; border-radius: 12px 12px 0 0; z-index: 42; }
  .messkasten, .editkasten { bottom: 56px; left: 8px; max-width: calc(100% - 16px); }
  .meldung { max-width: calc(100vw - 24px); bottom: 56px; }   /* über dem Schubladenknopf (Paket 18, kleines Blatt) */
  dialog.ral { padding: 12px; max-height: calc(100dvh - 24px); }
}
/* Bearbeiten der Wände erst ab Tablet-Breite (Konzept 13); das hängt allein an der Breite, ein großes Handy quer (ab
   768 px) behält es also (Paket 18, Querformat; js/ui.js Planer.ohneBearbeiten) */
@media (max-width: 767px) {
  [data-werkzeug="bearbeiten"], #btnWohnungNeu { display: none; }
}
@media (pointer: coarse) {
  button, .mehr summary, select { min-height: 34px; }
  .segment button { padding: 6px 12px; }
  .swatches button { width: 26px; height: 26px; min-height: 0; }
  .ralreihe button { min-height: 0; }
  .zeile { min-height: 36px; }
  .haken input[type=checkbox] { width: 18px; height: 18px; }
}

/* Paket 18: Finger am Handy. Unsichtbare Trefferfläche um den Dreh-Griff; Blase „Hier im Rundgang stehen“ nach langem
   Drücken; Minus und Plus für Breite, Tiefe und Höhe im Blatt (statt der Größen-Griffe); Safari am Handy zeigt auf Plan
   und 3D beim langen Drücken weder Textauswahl noch Menü. */
@media (max-width: 767px) and (pointer: coarse), (min-aspect-ratio: 3/2) and (max-height: 500px) and (pointer: coarse) and (max-device-width: 599px), (min-aspect-ratio: 3/2) and (max-height: 500px) and (pointer: coarse) and (max-device-height: 599px) {
  #plan, #gl { -webkit-user-select: none; -webkit-touch-callout: none; }
  /* Schnell hintereinander tippen (etwa auf „+“) zoomt die Seite nicht mehr; zwei Finger zoomen weiter. Plan und 3D
     bleiben bei touch-action: none (oben). */
  html, .kopf, .leiste, .eigenschaften, .seite, .seitenknopf, .meldung, dialog, button, summary, select, input, label, a { touch-action: manipulation; }
  /* Safari zoomt beim Tippen in ein Feld, dessen Schrift kleiner als 16 px ist */
  input, select, textarea { font-size: 16px; }
}
/* Paket 18, Querformat: Am Handy quer ist die Höhe knapp (320 bis 430 px). Die Kopfzeile bleibt eine Zeile (der Name
   wird gekürzt), die Werkzeugleiste ist eine Zeile zum Wischen, und die Eigenschaften kommen als Blatt rechts über die
   ganze Höhe statt von unten; ein gewähltes Möbel rückt in den freien Teil links davon (js/view2d.js freiUmsBlatt). */
@media (min-aspect-ratio: 3/2) and (max-height: 500px) and (pointer: coarse) and (max-device-width: 599px), (min-aspect-ratio: 3/2) and (max-height: 500px) and (pointer: coarse) and (max-device-height: 599px) {
  /* eine Zeile, wo es geht: Knöpfe enger, der Weg zur Website nur als Pfeil (den vollen Text nennt sein Titel); der Name
     zählt beim Umbrechen nicht mit (Basis 0) und füllt, was in der ersten Zeile frei bleibt. Reicht es trotzdem nicht
     (iPhone SE quer), bricht die Kopfzeile um wie hochkant, statt dass etwas verschwindet. */
  .kopf, .kopf:not(.mitweg), .kopf.mitweg { padding: 4px 8px; gap: 4px 6px; --luecke: 6px; }
  .kopf button, .kopf .mehr summary { padding-left: 7px; padding-right: 7px; }
  .kopf .segment button { padding-left: 9px; padding-right: 9px; }
  .kopf .kopfweg { font-size: 0; position: relative; }
  .kopf .kopfweg::before { content: '←'; content: '←' / ''; font-size: 16px; }
  .kopf .kopfweg::after { content: ''; position: absolute; inset: -12px -8px; }   /* Fläche für den Finger, ohne Platz zu nehmen */
  .kopf .marke, .kopf:not(.mitweg) .marke { flex: 1 1 0; min-width: 4.5em; }
  /* mit Konto: die Reste wie oben (.kopf.mitweg, E4, E5), aber als feste Werte; Safari nimmt min-width mit calc-size()
     als volle Breite, dann gäbe nichts nach und die Kopfzeile bräche quer immer um */
  .kopf.mitweg .marke strong { flex-basis: 0px; min-width: 4.5em; }
  .kopf.mitweg .speicherstand a, .kopf.mitweg .speicherstand button { min-width: 4.5em; }
  .kopf.mitweg .versionswahl { min-width: 9em; }
  .kopf .marke span { display: none; }
  .leiste { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px; }
  .leiste::-webkit-scrollbar { display: none; }
  .leiste > * { flex: none; }
  .eigenschaften { left: auto; right: 0; top: 0; bottom: 0; width: min(300px, 44%); max-height: none; border-radius: 12px 0 0 12px; }
  .eigenschaften.klein { top: auto; width: min(400px, 60%); border-radius: 12px 0 0 0; }   /* kleines Blatt: unten rechts, links bleibt der Schubladenknopf frei */
  .feld2d:has(> .eigenschaften:not([hidden]):not(.klein)) > .leiste, .feld3d:has(> .eigenschaften:not([hidden]):not(.klein)) > .leiste { right: calc(min(300px, 44%) + 6px); }
  .feld2d:has(> .eigenschaften:not([hidden]):not(.klein)) > .messkasten { max-width: calc(100% - min(300px, 44%) - 16px); }
  body:has(#props.klein:not([hidden])) .seitenknopf { bottom: 8px; }   /* quer liegt die Leiste rechts, der Knopf links frei */
  body:has(#props.klein:not([hidden])) .meldung { bottom: 56px; }
  body:has(#props.klein:not([hidden])) :is(.messkasten, .editkasten) { bottom: 56px; }
  /* Meldungen mittig über dem freien Teil, nicht über dem Blatt */
  body:has(#props:not([hidden])) .meldung { left: calc((100vw - min(300px, 44vw)) / 2); max-width: calc(100vw - min(300px, 44vw) - 24px); }
  .tipp { display: none; }
}
.griffflaeche { fill: #000; fill-opacity: 0; stroke: none; }
.rundgangblase { position: absolute; z-index: 6; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 22px; background: var(--akzent); color: #fff; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
/* Paket 18, kleines Blatt (nur am Handy, js/ui.js): Nach dem Antippen zeigt das Blatt nur eine Leiste mit Namen, Maß
   und „Eigenschaften ▴“; ein Tipp darauf klappt es auf, „▾“ im Kopf klappt es wieder zu. */
.pkurz, .pkopf .ein { display: none; }
.eigenschaften:not(.klein) .pkopf .ein { display: inline-block; border: 0; font-size: 17px; line-height: 1; padding: 2px 9px; color: var(--leise); }
.eigenschaften.klein { max-height: none; padding: 4px 6px 4px 8px; overflow: hidden; }
.eigenschaften.klein > :not(.pkurz) { display: none; }
.eigenschaften.klein > .pkurz { display: flex; align-items: center; gap: 4px; }
.pkurz .aufklappen { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 6px 4px; text-align: left; }
.pkurz .ktitel { font-weight: 600; font-size: 15px; min-width: 5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkurz .kmass { color: var(--leise); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex-shrink: 4; }   /* weicht vor dem Namen */
.pkurz .kpfeil { margin-left: auto; padding-left: 6px; color: var(--akzent); font-weight: 600; white-space: nowrap; }
.pkurz .x { border: 0; font-size: 19px; line-height: 1; min-width: 44px; min-height: 44px; color: var(--leise); }
.stufen { display: flex; gap: 4px; margin-top: 4px; }
.stufen button { flex: 1; min-height: 36px; padding: 0; font-size: 16px; }

/* Paket 09: geteilte Wohnungen. „Neue Änderungen“ im Speicherstand in der Farbe des Akzents (in der engen Kopfzeile
   weicht es wie die anderen Stände, die Regeln der Kopfzeile bleiben unverändert); „Mit mir geteilt“ als kleine
   Überschrift im Menü „Wohnung“; wem eine Version gehört, steht leiser hinter ihrem Namen. Was im Modus „Nur ansehen“
   fehlt, blendet js/server.js aus. */
.speicherstand.neu { color: var(--akzent); font-weight: 600; }
.wohnungliste #mitMirGeteilt { margin: 8px 8px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); }
.besitz { color: var(--leise); font-weight: 400; }
#reiter-moebel #nurAnsehenHinweis { margin: 0 0 12px; }
