/* VR Makler – 3D aus Grundriss (Endkunde). Tokens in thema.css. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--body); letter-spacing: -0.006em; color: var(--text); background: var(--bone); min-height: 100vh;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wachs { flex: 1; }
.nav-links { display: var(--nav-links, flex); gap: 22px; margin-left: 18px; }
h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; }
h1 { font-size: clamp(30px, 3.4vw, 47px); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; }
a { color: inherit; }
.eyebrow { margin: 0 0 14px; font: 500 13px var(--body); color: var(--signal); letter-spacing: .02em; }

/* ------------------------------------------------ Hero */
.hero { background: var(--ink); color: var(--on-ink); padding: 64px 0 132px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 80% at 85% 10%, rgba(255,157,0,.10), transparent 60%),
              repeating-linear-gradient(120deg, transparent 0 46px, rgba(247,247,244,.025) 46px 47px); }
.hero-innen { position: relative; z-index: 1; max-width: 1280px; }
.hero-innen > div { max-width: 760px; }
.lead { font-size: 16.5px; color: var(--muted-ink); margin: 18px 0 0; max-width: 620px; }

/* ------------------------------------------------ Karte / Assistent */
.karte-rahmen { margin-top: -88px; position: relative; z-index: 2; padding-bottom: 80px; display: grid; grid-template-columns: minmax(0, 1000px); }
.karte { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0 40px 36px;
  box-shadow: 0 1px 2px rgba(26,23,22,.04), 0 18px 48px -24px rgba(26,23,22,.25); }
.stepper { list-style: none; margin: 0 -40px 32px; padding: 0 40px; display: flex; border-bottom: 1px solid var(--line); }
.stepper li { flex: 1; display: flex; align-items: center; gap: 12px; padding: 20px 0 18px; position: relative; color: var(--muted); }
.stepper li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.stepper li.aktiv { color: var(--text); }
.stepper li.aktiv::after { background: var(--ink); }
.stepper li.fertig { color: var(--text); cursor: pointer; }
.stepper .nr { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center;
  font: 600 13px var(--display); flex: none; background: var(--paper); }
.stepper li.aktiv .nr { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.stepper li.fertig .nr { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--accent); color: transparent; }
.st-text { display: flex; flex-direction: column; line-height: 1.2; }
.st-text b { font: 600 14px var(--body); }
.st-text small { font-size: 12.5px; color: var(--muted); }

.schritt h2 { margin-bottom: 8px; }
.unter { margin: 0 0 24px; color: var(--muted); max-width: 640px; }
.ablage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 220px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); background: #fbfaf9; cursor: pointer;
  padding: 24px; transition: border-color .15s, background .15s; }
.ablage.klein { min-height: 150px; }
.ablage:hover, .ablage.drueber { border-color: var(--ink); background: var(--bone); }
.ablage:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.ablage-icon { width: 44px; height: 44px; color: var(--muted); margin-bottom: 4px; }
.ablage-titel { font-weight: 500; }
.ablage-titel u { text-underline-offset: 3px; }
.ablage-meta { font-size: 13px; color: var(--muted); }
.datei-zeile { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; background: #fbfaf9; }
.datei-icon { width: 44px; height: 52px; border-radius: 3px; background: var(--ink); color: var(--on-ink); display: grid; place-items: end center;
  padding-bottom: 7px; font: 600 11px var(--display); letter-spacing: .04em; flex: none; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.datei-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.datei-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.datei-name small { color: var(--muted); font-size: 13px; }
.x { border: 1px solid var(--line-strong); background: var(--paper); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1;
  cursor: pointer; color: var(--muted); flex: none; }
.x:hover { color: var(--text); border-color: var(--ink); }
.feld { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; max-width: 520px; }
.feld span { font: 500 13px var(--body); color: var(--muted); }
.feld em { font-style: normal; color: var(--line-strong); margin-left: 4px; }
.feld input { font: 15px var(--body); color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 11px 13px; height: 43px; }
.feld input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,23,22,.08); }
.aktionen { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hinweis-karte { padding-top: 6px; }
.hinweis-karte .aktionen { border-top: 0; }
.vm-btn.gross { min-height: 52px; padding: 12px 28px; font-size: 16px; }

.fotos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.fotos:empty { display: none; }
.fotos li { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bone-2); }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; font-size: 15px; background: rgba(255,255,255,.92); border: none; }
.fotos .ohne-vorschau { width: 100%; height: 100%; display: grid; place-items: center; font-size: 11px; color: var(--muted); padding: 6px; text-align: center; word-break: break-all; }
.tipp { margin-top: 20px; background: var(--bone); border-radius: var(--r-card); padding: 14px 18px; font-size: 14px; }
.tipp b { font-weight: 600; }
.tipp ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }

.zusammenfassung { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); }
.zusammenfassung div { display: grid; grid-template-columns: 160px 1fr; padding: 13px 18px; border-top: 1px solid var(--line); }
.zusammenfassung div:first-child { border-top: none; }
.zusammenfassung dt { color: var(--muted); font-size: 14px; }
.zusammenfassung dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--muted); cursor: pointer; }
.zustimmung input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.zustimmung a { color: var(--text); }

/* Fortschritt */
.balken { height: 10px; border-radius: 100px; background: var(--bone-2); overflow: hidden; }
.balken-fuellung { height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width .6s ease;
  background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); background-size: 200% 100%;
  animation: schimmer 1.8s linear infinite; }
.balken.fertig .balken-fuellung { animation: none; }
@keyframes schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.balken-info { display: flex; justify-content: space-between; margin-top: 10px; font: 500 14px var(--body); }
.balken-info span:last-child { color: var(--muted); font-weight: 400; }
.phasen { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.phasen li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); }
.phasen .pz { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; position: relative; }
.phasen li.laeuft { color: var(--text); font-weight: 500; }
.phasen li.laeuft .pz { border-color: var(--line); border-top-color: var(--ink); animation: dreh .9s linear infinite; }
.phasen li.fertig { color: var(--text); }
.phasen li.fertig .pz { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--accent); }
.phasen li.fehler { color: var(--negative); }
.phasen li.fehler .pz { border-color: var(--negative); }
@keyframes dreh { to { transform: rotate(360deg); } }
.merken { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.link-kopie { font: 500 14px var(--body); border: none; background: none; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; text-align: left; }


/* ------------------------------------------------ Ergebnis */
.ergebnis-kopf { background: var(--ink); color: var(--on-ink); padding: 34px 0 30px; }
.ek-innen { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ek-titel { flex: 1; min-width: 260px; }
.ek-titel h1 { font-size: clamp(26px, 2.6vw, 38px); }
.fakten { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fakten li { font-size: 13px; color: var(--muted-ink); border: 1px solid var(--line-ink); border-radius: 100px; padding: 4px 12px; }
.fakten b { color: var(--on-ink); font-weight: 600; }
.ablauf { margin: 10px 0 0; font-size: 13px; color: var(--muted-ink); }
.ek-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.vm-btn.leer-ink { background: transparent; border-color: rgba(247,247,244,.24); color: var(--on-ink); }
.vm-btn.leer-ink:hover { border-color: var(--on-ink); background: rgba(247,247,244,.06); }
.buehne { position: relative; height: calc(100svh - var(--navh) - var(--kopf, 180px)); min-height: 460px; max-height: 1000px; background: var(--bone); border-bottom: 1px solid var(--line); }
.buehne:fullscreen { height: 100vh; max-height: none; }
.viewer { position: absolute; inset: 0; }
.viewer canvas { display: block; outline: none; touch-action: none; }
.modus { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; background: var(--ink); border-radius: 100px; padding: 4px;
  box-shadow: 0 8px 24px -8px rgba(26,23,22,.5); }
.modus button { font: 500 14px var(--body); color: var(--muted-ink); background: none; border: none; border-radius: 100px; padding: 9px 18px; cursor: pointer; }
.modus button:hover { color: var(--on-ink); }
.modus button.aktiv { background: var(--on-ink); color: var(--ink); }
.buehne-rechts { position: absolute; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 8px; }
.rund { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.94); cursor: pointer; display: grid; place-items: center; color: var(--text);
  box-shadow: 0 2px 8px -4px rgba(26,23,22,.3); }
.rund svg { width: 20px; height: 20px; }
.rund:hover { border-color: var(--ink); }
.rund.an { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
/* Bodenauswahl: Liste links neben den runden Knöpfen */
.buehne-rechts { align-items: flex-end; }
.boden-wahl { position: absolute; right: 52px; top: 0; width: 196px; background: rgba(255,255,255,.97); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 6px; box-shadow: 0 10px 28px -12px rgba(26,23,22,.45); display: flex; flex-direction: column; gap: 2px; }
.boden-wahl[hidden] { display: none; }
.boden-wahl .bw-titel { font: 600 12px var(--body); color: var(--muted); padding: 6px 8px 4px; letter-spacing: .02em; }
.boden-wahl .bw-titel.bw-wand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.boden-wahl button { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; border-radius: var(--r);
  padding: 7px 8px; font: 500 14px var(--body); color: var(--text); cursor: pointer; text-align: left; }
.boden-wahl button:hover { background: var(--bone-2); }
.boden-wahl button.aktiv { background: var(--bone-2); }
.boden-wahl button.aktiv::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 600; }
.boden-wahl .muster { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(26,23,22,.15); flex: none;
  background-size: cover; }
.laufen { position: absolute; left: 18px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.laufen button { width: 54px; height: 54px; border-radius: 50%; border: none; background: rgba(26,23,22,.82); color: var(--on-ink); font-size: 18px; cursor: pointer; touch-action: none; user-select: none; }
.hilfe { position: absolute; left: 18px; top: 18px; font-size: 13px; color: var(--muted); background: rgba(239,237,235,.85); border-radius: var(--r); padding: 6px 10px; max-width: calc(100% - 100px); }
.laden { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.laden:empty { display: none; }
.weiter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding-top: 64px; padding-bottom: 80px; }
.weiter-text p { color: var(--muted); margin: 12px 0 0; max-width: 520px; }
.hinweise { margin: 18px 0 0; padding: 12px 16px 12px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); font-size: 14px; color: var(--muted); }
.weiter-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.wk { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; text-decoration: none; min-height: 132px; transition: border-color .15s; }
.wk:hover { border-color: var(--ink); }
.wk b { font: 500 18px var(--display); letter-spacing: -0.02em; }
.wk b::after { content: " →"; color: var(--muted); }
.wk span { color: var(--muted); font-size: 14px; }

.fuss { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fuss-innen { display: flex; gap: 18px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: var(--r); font-size: 14px; z-index: 20; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }

/* ------------------------------------------------ Mobil */
@media (max-width: 980px) {
  .karte-rahmen { grid-template-columns: 1fr; }
  .weiter { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .vm-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 40px 0 104px; }
  .karte { padding: 0 18px 24px; }
  .stepper { margin: 0 -18px 24px; padding: 0 18px; }
  .stepper .st-text small { display: none; }
  .stepper li { gap: 8px; flex: none; padding-right: 14px; }
  .stepper li.aktiv { flex: 1; }
  .stepper li:not(.aktiv) .st-text { display: none; }
  .st-text b { font-size: 13px; }
  .ablage { min-height: 170px; }
  .zusammenfassung div { grid-template-columns: 1fr; gap: 2px; }
  .aktionen { flex-wrap: wrap; }
  .aktionen .vm-btn:not(.leer) { flex: 1; }
  .ek-aktionen { width: 100%; }
  .ek-aktionen .vm-btn { flex: 1; }
  .buehne { height: calc(100svh - var(--navh) - 40px); min-height: 420px; max-height: none; }
  .modus button { padding: 8px 13px; font-size: 13px; }
  .hilfe { display: none; }
  .laufen { bottom: 84px; }
  .weiter-karten { grid-template-columns: 1fr; }
  .wk { min-height: 0; }
}
.schritt h2 .optional { font: 400 14px var(--body); color: var(--muted); margin-left: 8px; letter-spacing: 0; vertical-align: middle; }
.weiter-karten.zwei { grid-template-columns: repeat(2, 1fr); }
.stepper .st-text b { font-size: 15px; }

/* Umfang: ganzer Plan / eine Wohnung (Rahmen im Plan) */
.umfang { margin-top: 22px; }
.feld-titel { display: block; font: 500 13px var(--body); color: var(--muted); margin-bottom: 8px; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 620px; }
.wahl label { cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.wahl b { font-weight: 600; font-size: 15px; }
.wahl small { color: var(--muted); font-size: 13px; }
.wahl input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wahl input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.auswahl { margin-top: 16px; }
/* G9.5: Geschosswahl bei IFC-Modellen mit mehreren Geschossen */
.geschoss-wahl { margin-top: 16px; }
.geschoss-wahl[hidden] { display: none; }
.geschoss-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.geschoss-knopf { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 96px; cursor: pointer;
  font: 500 14px/1.25 var(--body); color: var(--ink); background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 8px 12px; text-align: left; }
.geschoss-knopf small { color: var(--muted); font-size: 12px; }
.geschoss-knopf[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.geschoss-knopf:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.geschoss-knopf:disabled { cursor: progress; opacity: .6; }
.auswahl-hilfe { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.auswahl-hilfe.ok { color: var(--accent); }
.auswahl-flaeche { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: #fbfaf9; overflow: hidden;
  min-height: 220px; display: grid; place-items: center; cursor: crosshair; touch-action: none; user-select: none; }
.auswahl-flaeche img { display: block; max-width: 100%; max-height: 62vh; }
.rahmen-box { position: absolute; border: 2px solid var(--accent); background: rgba(0,137,112,.10); border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(26,23,22,.28); }
.auswahl-flaeche.laedt { min-height: 330px; cursor: default; }
/* G9.2: erkannte Gebäude/Geschosse als anklickbare Bereiche über der Vorschau */
.gebaeude-ebene { position: absolute; inset: 0; pointer-events: none; }
.gebaeude-box { position: absolute; border: 1.5px dashed var(--accent); background: rgba(0,137,112,.05); border-radius: 2px; }
.gebaeude-box.gewaehlt { border-style: solid; }
.gebaeude-knopf { position: absolute; left: 4px; top: 4px; max-width: calc(100% - 8px); pointer-events: auto; cursor: pointer;
  font: 600 12px/1.2 var(--body); color: var(--accent); background: rgba(255,255,255,.94); border: 1px solid var(--accent);
  border-radius: var(--r); padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gebaeude-knopf:hover, .gebaeude-knopf:focus-visible, .gebaeude-box.gewaehlt .gebaeude-knopf { background: var(--accent); color: #fff; }
.auswahl-flaeche.laedt .gebaeude-ebene { display: none; }
h2 .optional { font: 500 13px var(--body); color: var(--muted); font-style: normal; margin-left: 6px; vertical-align: middle; }
.auswahl-laden { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; background: #fbfaf9; text-align: center; }
.auswahl-laden[hidden] { display: none; }
.auswahl-laden > * { width: min(340px, 100%); }
.lade-plan { width: 132px; height: auto; color: var(--ink); }
.lade-plan path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 3.2s ease-in-out infinite; }
.lade-plan path:nth-child(2) { stroke-width: 1.6; animation-delay: .35s; }
.lade-plan path.fein { stroke-width: 1; stroke: var(--accent); animation-delay: .8s; }
@keyframes zeichnen { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.lade-titel { font: 600 15px var(--body); color: var(--text); }
.auswahl-laden .balken { height: 8px; }
.auswahl-laden .balken-fuellung { transition: width .45s ease; }
.auswahl-laden .balken-info { margin-top: -4px; font-size: 13px; }
.lade-schritte { list-style: none; margin: 2px 0 0; padding: 0; display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); }
.lade-schritte li { display: flex; align-items: center; gap: 6px; }
.lade-schritte li[hidden] { display: none; }
.lade-schritte .pz { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.lade-schritte li.laeuft { color: var(--text); font-weight: 500; }
.lade-schritte li.laeuft .pz { border-color: var(--line); border-top-color: var(--ink); animation: dreh .9s linear infinite; }
.lade-schritte li.fertig { color: var(--text); }
.lade-schritte li.fertig .pz { background: var(--accent); border-color: var(--accent); }
.auswahl-laden.fehler .lade-plan, .auswahl-laden.fehler .balken, .auswahl-laden.fehler .balken-info, .auswahl-laden.fehler .lade-schritte { display: none; }
.auswahl-laden.fehler .lade-titel { color: var(--negative); font-weight: 500; }
.auswahl-laden #lade-nochmal { width: auto; }
@media (prefers-reduced-motion: reduce) { .lade-plan path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 720px) { .wahl { grid-template-columns: 1fr; } }

.felder { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; max-width: 720px; margin-top: 22px; }
.felder .feld { margin-top: 0; }
.feld .einheit { position: relative; display: block; }
.feld .einheit input { width: 100%; padding-right: 34px; }
.feld .einheit i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; }
.feld small { font-size: 12px; color: var(--muted); }
.feld input.falsch { border-color: var(--negative); }
@media (max-width: 720px) { .felder { grid-template-columns: 1fr; } }

/* Konto-Seiten (konto.html): Anmelden, Passwort setzen, Meine Projekte */
.konto-karte { padding-top: 8px; }
.konto-form { max-width: 520px; }
.konto-form .feld input { width: 100%; }
.konto-meldung { margin: 22px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--accent-hell); color: var(--text); font-size: 14px; }
.konto-meldung.fehler { background: #f6e3e1; color: var(--negative); }
.konto-klein { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.vm-nav .konto-name { color: var(--muted-ink); font: 500 14px var(--body); }
.vm-nav form { margin: 0; }
.vm-nav button.vm-link { background: none; border: 0; cursor: pointer; padding: 0; }
.projekte { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.projekte th { text-align: left; font: 500 13px var(--body); color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.projekte td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.projekte td.aktion { text-align: right; padding-right: 0; }
.status { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 100px; background: var(--bone-2); color: var(--text); }
.status.fertig { background: var(--accent-hell); color: var(--accent); }
.status.fehler { background: #f6e3e1; color: var(--negative); }
.projekte-leer { margin: 22px 0 0; color: var(--muted); }
@media (max-width: 720px) {
  .projekte th:nth-child(2), .projekte td:nth-child(2) { display: none; }
  .vm-nav { gap: 14px; padding: 0 16px; }
  .vm-nav .konto-name { display: none; }
  .vm-nav .vm-pill { white-space: nowrap; padding: 7px 12px; }
  .vm-nav .vm-link { white-space: nowrap; }
  .vm-nav:has(.konto-name) #portal-link { display: none; }   /* angemeldet: Projekte/Abmelden statt Portal-Knopf */
}

/* „Problem melden“ (Dialog in der 3D-Ansicht) */
dialog.problem { border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 32px 28px; max-width: 560px;
  width: calc(100% - 32px); background: var(--paper); color: var(--text); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
dialog.problem::backdrop { background: rgba(26,23,22,.45); }
dialog.problem h2 { font: 500 24px var(--display); margin: 22px 0 6px; }
dialog.problem .feld { max-width: none; }
dialog.problem textarea { font: 15px var(--body); color: var(--text); background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 11px 13px; resize: vertical; min-height: 110px; }
dialog.problem textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,23,22,.08); }

/* Kurzanleitung (/anleitung) */
.anleitung h2 { font: 500 22px var(--display); letter-spacing: -0.02em; margin: 30px 0 10px; }
.anleitung ol.schritte { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 70ch; }
.anleitung .hinweise-liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.anleitung .formate { width: 100%; border-collapse: collapse; font-size: 15px; }
.anleitung .formate th { text-align: left; font: 500 13px var(--body); color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.anleitung .formate td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.anleitung .formate td:first-child { white-space: nowrap; }
@media (max-width: 720px) { .vm-nav .konto-anleitung { display: none; } }
