/* Joum 4D Build – Design: schwarz, Jost, runde Pill-Buttons, untere Navigation */
:root { --bg: #000; --karte: #0e0e0e; --linie: #2a2a2a; --text: #fff; --grau: #a8a8a8; --hell: #e9e9e9; --gruen: #9fd69f; --gelb: #ffd27a; --rot: #ff8a7a; --blau: #7ab8ff; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Jost, system-ui, sans-serif; font-size: 15px; -webkit-tap-highlight-color: transparent; }
body.gross { font-size: 18px; }
body.kontrast { --grau: #d8d8d8; --linie: #6a6a6a; --karte: #000; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 1.6em; font-weight: 500; margin: 0; line-height: 1.1; }
h2 { font-size: 1.25em; font-weight: 500; margin: 2px 0 6px; }
h3 { font-size: .8em; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); font-weight: 600; margin: 22px 0 8px; }
ul { margin: 6px 0 0; padding-left: 18px; }
code { font-size: .85em; color: var(--gelb); word-break: break-all; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; }
main { min-height: 100vh; padding-bottom: calc(110px + env(safe-area-inset-bottom)); outline: none; }
.status { position: fixed; top: 8px; right: max(10px, calc(50% - 250px)); z-index: 20; font-size: 11px; color: var(--grau); background: rgba(0,0,0,.75); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--linie); }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); margin-right: 6px; vertical-align: middle; }
.punkt.grau { background: #666; }
.gross-punkt { width: 14px; height: 14px; }

.kopf { display: flex; align-items: center; gap: 10px; padding: 34px 18px 12px; border-bottom: 1px solid var(--linie); }
.zurueck { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--linie); flex: none; }
.unter { font-size: 12px; color: var(--grau); }
.inhalt { padding: 14px; }
.klein { font-size: .82em; color: var(--grau); line-height: 1.4; }
.block { display: block; }
.mitte { text-align: center; }
.gross-titel { font-size: 1.35em; font-weight: 500; }

.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 14px; margin: 10px 0; }
.gross-karte h2 { margin-top: 2px; }
.zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zeile > .btn { flex: 1; }
.naechster { display: block; margin: 12px 0; padding: 12px; border-radius: 14px; background: #161616; border: 1px solid var(--linie); }

.btn { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 1px solid #3a3a3a; background: #161616; font-weight: 600; font-size: .9em; cursor: pointer; text-align: center; margin: 6px 0; }
.btn.hell { background: var(--hell); color: #000; border-color: var(--hell); }
.btn.voll { width: 100%; }
.btn.klein-btn { min-height: 38px; padding: 0 14px; font-size: .82em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.rot-text { color: var(--rot); }
.rund { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3a3a3a; background: #161616; font-size: 24px; cursor: pointer; }

.raster2, .raster3, .raster4 { display: grid; gap: 8px; margin: 10px 0; }
.raster2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kachel { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 16px; border: 1px solid var(--linie); background: var(--karte); font-size: .78em; text-align: center; cursor: pointer; }
.raum-kachel { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: 16px; border: 1px solid var(--linie); background: var(--karte); min-height: 70px; }

.liste-zeile { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 4px; border: none; border-bottom: 1px solid var(--linie); background: none; text-align: left; cursor: pointer; min-height: 52px; }
.liste-zeile a { display: block; }
.kat-zeile { padding: 7px 0; border-bottom: 1px solid #1d1d1d; }
.kat-zeile:last-child { border-bottom: none; }
details.karte summary { cursor: pointer; font-weight: 500; min-height: 28px; }

.segment { display: flex; border: 1px solid #3a3a3a; border-radius: 999px; padding: 3px; margin: 8px 0; }
.segment > * { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: none; background: transparent; font-weight: 600; font-size: .82em; cursor: pointer; text-align: center; padding: 0 4px; }
.segment > .an { background: var(--hell); color: #000; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #3a3a3a; background: #141414; font-size: .8em; font-weight: 600; cursor: pointer; }
.chip.an { background: var(--hell); color: #000; }
.chip.rot { background: #3a1612; border-color: var(--rot); color: var(--rot); }
.legende { display: flex; gap: 6px; margin: 4px 0 10px; }
.badge { display: inline-block; font-size: .72em; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.gruen { background: #0f1f0f; color: var(--gruen); border: 1px solid #3d5a3d; }
.badge.gelb { background: #241d0b; color: var(--gelb); border: 1px solid #6b5a2a; }
.badge.rot { background: #2a1210; color: var(--rot); border: 1px solid #7a3a30; }

.hinweis { padding: 10px 12px; border-radius: 14px; background: #121a24; border: 1px solid #2f4f6f; margin: 10px 0; font-size: .88em; line-height: 1.4; }
.hinweis.gruen { background: #0f1a0f; border-color: #3d5a3d; }
.hinweis.gelb { background: #3a2a12; border-color: #8a6420; }
.hinweis.rot { background: #2a1210; border-color: #7a3a30; }

.feld { display: block; font-size: .82em; color: var(--grau); margin: 10px 0; }
.feld input, .feld select, .feld textarea { display: block; width: 100%; margin-top: 4px; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid #3a3a3a; background: #111; font-size: 1.18em; color: #fff; }
.feld textarea { resize: vertical; }
.mess-zeile { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.mess-zeile input { min-width: 0; width: 72px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid #3a3a3a; background: #111; }
.mess-zeile input:first-child { flex: 1; }
input.anz { width: 64px; min-height: 40px; padding: 6px 8px; border-radius: 10px; border: 1px solid #3a3a3a; background: #111; text-align: right; }
.x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid #3a3a3a; background: none; font-size: 20px; cursor: pointer; color: var(--grau); }
.summe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.summe b { display: block; font-size: 1.15em; font-weight: 600; margin-top: 2px; }
.schalter { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--linie); }
.schalter input { width: 22px; height: 22px; accent-color: #e9e9e9; }

/* Raumplaner */
.plan-buehne { position: relative; display: flex; align-items: center; justify-content: center; margin: 8px 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--linie); background: #080808; transition: height .3s; }
.plan-boden { position: relative; border: 3px solid #555; background: #1a1a1a; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 17px 17px; transition: transform .6s; touch-action: none; }
.drei { perspective: 900px; }
.drei .plan-boden { transform: rotateX(58deg) rotateZ(-32deg); transform-style: preserve-3d; }
.pl-el { position: absolute; border-radius: 3px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: grab; touch-action: none; box-shadow: 0 1px 3px #0008; }
.pl-el span { font-size: 9px; color: #000; text-align: center; line-height: 1.05; padding: 1px; pointer-events: none; }
.pl-el.gewaehlt { outline: 2px solid #fff; outline-offset: 2px; z-index: 3; }
.drei .pl-el { overflow: visible; transform-style: preserve-3d; box-shadow: none; border-radius: 0; }
.drei .pl-el.gewaehlt { outline: none; }
.drei .pl-el.gewaehlt .f { outline: 1px solid #fff; }
.f { position: absolute; left: 0; top: 0; }
.werkzeug .zeile { margin-top: 6px; }
.kat-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 12px; border-radius: 14px; border: 1px solid var(--linie); background: var(--karte); text-align: left; font-size: .82em; cursor: pointer; }
.farbpunkt { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.skizze { width: 100%; border-radius: 16px; border: 1px solid var(--linie); margin: 8px 0; }
.stile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stil { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px; border-radius: 16px; border: 1px solid var(--linie); background: var(--karte); cursor: pointer; }
.stil.an { border-color: var(--hell); box-shadow: 0 0 0 1px var(--hell); }
.paletten { display: flex; gap: 0; border-radius: 8px; overflow: hidden; height: 26px; margin-bottom: 4px; }
.paletten span { flex: 1; }

/* Anleitung */
.schichten { margin: 12px 0; border: 1px solid var(--linie); border-radius: 18px; overflow: hidden; }
.schicht { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #1b1b1b; animation: rein .6s both; }
.schicht .farbe { width: 34px; height: 18px; border-radius: 4px; flex: none; }
.schicht b { flex: 1; font-weight: 500; font-size: .9em; }
@keyframes rein { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.schritt { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px; margin: 6px 0; border-radius: 16px; border: 1px solid var(--linie); background: var(--karte); cursor: pointer; }
.schritt .nr { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid #3a3a3a; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85em; }
.schritt.fertig { border-color: #3d5a3d; }
.schritt.fertig .nr { background: var(--gruen); color: #000; border-color: var(--gruen); }
div.schritt { cursor: default; }

/* Garten */
.vorschlag-kopf { flex-wrap: nowrap; margin-top: 4px; }
.garten-buehne { border-radius: 18px; overflow: hidden; border: 1px solid var(--linie); background: #0c0c0c; margin: 8px 0; }
.garten-buehne svg { display: block; }
.garten-buehne circle, .garten-buehne rect, .garten-buehne line { transition: all .5s; }

/* Einkauf, Finanzen, Markt */
.ek-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #1d1d1d; }
.ek-zeile.erledigt > span { text-decoration: line-through; opacity: .5; }
.haken { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid #555; background: none; cursor: pointer; font-weight: 700; }
.erledigt .haken { background: var(--gruen); color: #000; border-color: var(--gruen); }
.mini { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.mini.sig { background: #111; object-fit: contain; width: 70px; }
#unterschrift { width: 100%; height: 120px; border-radius: 14px; border: 1px dashed #555; background: #0b0b0b; touch-action: none; margin: 6px 0; }
.sterne button { font-size: 30px; background: none; border: none; color: var(--gelb); cursor: pointer; min-width: 44px; min-height: 44px; }
.ablauf { padding-left: 20px; font-size: .88em; line-height: 1.6; color: var(--grau); }

/* Navigation */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: flex; justify-content: space-around; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--linie); z-index: 10; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #8a8a8a; min-height: 48px; justify-content: center; }
.nav a.aktiv { color: #fff; }
.ni { display: flex; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; transition: all .25s; background: var(--hell); color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .85em; z-index: 30; max-width: 90vw; text-align: center; pointer-events: none; }
.toast.an { opacity: 1; transform: translate(-50%, 0); }
.ring { flex: none; }

@media print {
  .nav, .status, .toast, .btn, .zurueck, .chips, .segment { display: none !important; }
  main { height: auto; overflow: visible; }
  html, body { background: #fff; color: #000; }
  .karte, .hinweis, .schritt { border-color: #999; background: #fff; color: #000; }
  .klein, h3, .unter { color: #444; }
}

/* Dialog */
.dialog { position: fixed; inset: 0; z-index: 40; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; }
.dialog.an { display: flex; }
.d-box { width: 100%; max-width: 480px; background: #151515; border: 1px solid #333; border-radius: 22px; padding: 18px; margin-bottom: env(safe-area-inset-bottom); }
.d-text { margin: 0 0 8px; line-height: 1.45; }

/* Installation: Animationen */
.anim { border: 1px solid var(--linie); border-radius: 18px; background: #0b0b0b; padding: 10px; margin: 10px 0; }
.anim svg { display: block; font-family: Jost, sans-serif; }
.fluss { animation: fliessen 1.2s linear infinite; }
.fluss.langsam { animation-duration: 3.5s; }
@keyframes fliessen { to { stroke-dashoffset: -24; } }
.kabel { fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: ziehen 2.5s ease forwards infinite alternate; }
@keyframes ziehen { to { stroke-dashoffset: 0; } }
.klein-links { gap: 16px; margin-top: 4px; font-size: .82em; }
.klein-links a { color: var(--blau); min-height: 32px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .fluss, .kabel, .schicht { animation: none; stroke-dashoffset: 0; } }

/* 3D */
.raum3d { height: 330px; border-radius: 18px; overflow: hidden; border: 1px solid var(--linie); background: #0d0d0d; margin: 8px 0 4px; touch-action: none; }
.raum3d canvas, .dm-buehne canvas { display: block; touch-action: none; }
.drei-modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.7); }
.drei-modal.an { display: flex; }
.dm-box { width: 100%; max-width: 520px; max-height: 96vh; overflow-y: auto; background: #121212; border: 1px solid #333; border-radius: 22px 22px 0 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
.dm-buehne { height: 52vh; min-height: 280px; border-radius: 16px; overflow: hidden; margin: 8px 0 4px; background: #161616; touch-action: none; }
.dm-text { font-size: .92em; line-height: 1.45; }
.kat-btn svg { flex: none; }

/* Vorher/Nachher-Film */
.film-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.85); padding: 10px; }
.film-modal.an { display: flex; }
.film-box { width: 100%; max-width: 420px; background: #111; border: 1px solid #333; border-radius: 22px; padding: 12px 14px 16px; }
.film-buehne { display: flex; justify-content: center; margin: 8px 0; }
.film-buehne canvas { border-radius: 16px; background: #0a0a0a; }

/* Kino-Tour */
.tour-vorschau { width: min(100%, 360px); margin: 10px auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--linie); background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.tour-vorschau canvas { width: 100%; height: 100%; display: block; }
.tour-name { flex: 1; min-width: 0; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid #3a3a3a; background: #111; }

.bau-phasen { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.bau-phasen .chip { flex: none; }

/* KI-Raumprüfung */
.ki-karte { border-color: #3a3a3a; }
.ki-zeile { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #1d1d1d; font-size: .9em; line-height: 1.4; }
.ki-zeile:last-of-type { border-bottom: none; }
.ki-sym { width: 24px; height: 24px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #222; }
.ki-zeile.fehler .ki-sym { background: #3a1612; color: var(--rot); }
.ki-zeile.warnung .ki-sym { background: #3a2a12; color: var(--gelb); }
.ki-zeile.ok .ki-sym { background: #0f1f0f; color: var(--gruen); }
.ki-zeile.frage .ki-sym { background: #121a24; color: var(--blau); }
.ki-zeile .zeile { margin-top: 6px; gap: 6px; }
.ki-zeile .chip { margin-top: 6px; }
.pl-tuer { position: absolute; left: -3px; border-left: 4px solid #e9e9e9; border-top: 2px dashed #888; border-radius: 0 100% 0 0; pointer-events: none; background: rgba(255,255,255,.04); }

/* Zeitaufwand */
.zeit-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.zeit-stufe { display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--linie); background: #111; cursor: pointer; text-align: center; }
.zeit-stufe b { font-size: 1.15em; }
.zeit-stufe.an { border-color: var(--hell); background: #1b1b1b; }
.plan-tag { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #1d1d1d; font-size: .88em; line-height: 1.35; }
.plan-tag b { flex: none; width: 74px; }
.plan-tag.warte { color: var(--gelb); }

.garten-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.garten-karte { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 14px; border: 1px solid var(--linie); background: var(--karte); text-align: left; cursor: pointer; }
.garten-karte.an { border-color: var(--hell); }
.garten-karte svg { border-radius: 8px; }

/* Assistent */
.as-inhalt { padding-bottom: 20px; }
.as-ich { margin: 10px 0 10px 18%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--hell); color: #000; }
.as-app { margin: 10px 8% 10px 0; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: #151515; border: 1px solid var(--linie); line-height: 1.45; }
.as-app .chips { flex-wrap: wrap; overflow: visible; }
.as-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scroll-snap-type: x mandatory; }
.as-karte { flex: none; width: 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--linie); background: #0e0e0e; }
.as-karte svg { border-radius: 8px; }
.as-farben { display: flex; height: 40px; border-radius: 8px; overflow: hidden; }
.as-farben span { flex: 1; }
.as-leiste { position: sticky; bottom: 92px; display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 999px; background: #121212; border: 1px solid #333; margin-top: 12px; }
.as-leiste input { flex: 1; min-width: 0; min-height: 44px; border: none; background: transparent; font-size: 16px; color: #fff; outline: none; }
.hell-rund { background: var(--hell); color: #000; font-weight: 700; }

/* Foto-/Datei-Knöpfe */
.datei-knopf { position: relative; overflow: hidden; cursor: pointer; }
.datei-versteckt { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
/* Foto + Zollstock */
.fm-buehne { position: relative; margin: 8px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); touch-action: manipulation; }
.fm-buehne img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.fm-buehne svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.datei-gruppe { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.datei-gruppe .btn { margin-bottom: 0; }
.einfuegen { min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px dashed #444; background: transparent; font-size: 13px; color: var(--grau); text-align: center; }

/* Vorlesen, Hilfe, Schritt-Modus */
.sprech-knopf { position: fixed; right: max(12px, calc(50% - 248px)); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 15; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #444; background: #1a1a1a; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px #0008; cursor: pointer; }
.hilfe-blase { position: fixed; z-index: 70; width: 280px; padding: 12px 14px; border-radius: 16px; background: #fff; color: #000; font-size: 15px; line-height: 1.4; box-shadow: 0 8px 30px #000a; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hilfe-blase.an { opacity: 1; }
.klein-rund { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.was-jetzt { border-color: #6b5a2a; background: #17140c; }
.was-jetzt p { margin: 6px 0 4px; line-height: 1.45; }
.schritt-modus { text-align: center; }
.sm-fortschritt { height: 6px; border-radius: 3px; background: #222; overflow: hidden; margin: 4px 0 18px; }
.sm-fortschritt span { display: block; height: 100%; background: var(--gruen); }
.sm-nr { width: 84px; height: 84px; margin: 10px auto; border-radius: 50%; border: 3px solid var(--hell); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 600; }
.sm-nr.gruen-rand { border-color: var(--gruen); color: var(--gruen); }
.sm-titel { font-size: 1.6em; font-weight: 600; line-height: 1.2; margin: 10px 0; }
.sm-text { font-size: 1.2em; line-height: 1.5; color: #ddd; margin: 0 0 16px; }
.sm-gross { min-height: 64px; font-size: 1.1em; }

/* Sprachsteuerung */
.mikro-knopf { bottom: calc(146px + env(safe-area-inset-bottom)); }
.mikro-knopf.hoert { background: #c62828; border-color: #ff8a7a; animation: pulsieren 1s ease-in-out infinite; }
@keyframes pulsieren { 50% { box-shadow: 0 0 0 10px rgba(255, 90, 70, .25); } }
.zeig-blink { animation: blinker .8s steps(1, end) infinite !important; position: relative; z-index: 6; }
@keyframes blinker { 0% { background: #fff; color: #000; box-shadow: 0 0 0 4px #fff, 0 0 0 8px #000; } 50% { background: #000; color: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 8px #fff; } }
.zeig-leiste { position: fixed; top: 44px; left: 50%; transform: translate(-50%, -20px); z-index: 60; max-width: 92vw; padding: 10px 16px; border-radius: 999px; background: #ffd27a; color: #000; font-weight: 600; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: all .25s; }
.zeig-leiste.an { opacity: 1; transform: translate(-50%, 0); }
.befehl-eingabe { width: 100%; min-height: 48px; margin: 6px 0 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid #444; background: #0e0e0e; color: #fff; font-size: 16px; }

/* Sprachauswahl */
.sprach-wahl { display: flex; gap: 6px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.sprach-wahl::-webkit-scrollbar { display: none; }
.sprach-chip { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid #333; background: #111; color: #ccc; font: inherit; font-size: 13px; cursor: pointer; }
.sprach-chip.an { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
[dir="rtl"] .kopf, [dir="rtl"] .inhalt { text-align: right; }

/* Anmeldung */
.anm-knoepfe { display: grid; gap: 10px; margin: 14px 0; }
.anm-knopf { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid #3a3a3a; background: #111; color: #fff; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.anm-knopf svg { flex: none; width: 20px; height: 20px; }
.anm-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.anm-facebook { background: #1877F2; border-color: #1877F2; }
.anm-apple { background: #000; border-color: #fff; }
.anmelden .grau { color: #888; margin-top: 14px; }

#google-knopf-platz { display: flex; justify-content: center; min-height: 0; }
#google-knopf-platz:empty { display: none; }
.konto-bild { width: 52px; height: 52px; border-radius: 50%; margin-right: 12px; }

/* Geführter Start */
.los-leiste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 14px; }
.los-stufe { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #777; text-decoration: none; font-size: 12px; }
.los-stufe b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #444; font-size: 14px; }
.los-stufe.an { color: #fff; } .los-stufe.an b { background: #fff; color: #000; border-color: #fff; }
.los-stufe.fertig b { background: #1f3a26; border-color: #3c7a4c; color: #9fe0ae; }
.los-karten { display: grid; gap: 10px; margin: 12px 0 16px; }
.los-karte, .los-karte-knopf { display: grid !important; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; text-align: left !important; padding: 14px 16px !important; border-radius: 18px !important; border: 1px solid #333; background: #111; color: #fff; text-decoration: none; min-height: 64px; height: auto !important; white-space: normal !important; justify-content: start !important; }
.los-karte svg, .los-karte-knopf svg { grid-row: span 2; width: 28px; height: 28px; }
.los-karte b { font-size: 16px; } .los-karte span { grid-column: 2; color: #aaa; font-size: 13px; }
.los-karte-knopf span { font-weight: 600; font-size: 16px; }
.los .datei-gruppe { display: block; }
.los .datei-gruppe .einfuegen { margin-top: 6px; width: 100%; }
.los-bilder { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0; }
.los-bilder figure { margin: 0; flex: none; } .los-bilder img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid #333; }
.los-bilder figcaption { font-size: 11px; color: #999; text-align: center; }
.los-vorbild { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; margin-right: 12px; }
.los-svg { width: 100%; max-width: 420px; display: block; margin: 10px auto; background: #0b0b0b; border-radius: 12px; }
.los-pruef { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.los-pruef li { padding: 5px 0; border-bottom: 1px solid #222; }
.los-pruef .ok { color: #cfe9d5; } .los-pruef .gelb { color: #ffd27a; } .los-pruef .nein { color: #ff9a8a; }
.los-kosten { background: #0e0e0e; border: 1px solid #2a2a2a; border-radius: 14px; padding: 10px 12px; margin: 8px 0; display: grid; gap: 4px; }
.los-material { list-style: none; padding: 0; } .los-material li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #1e1e1e; }
.los-variante.empfohlen { border-color: #3c7a4c; }
.badge.gruen { background: #1f3a26; color: #9fe0ae; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.los-einstieg { display: grid; gap: 4px; text-decoration: none; color: #fff; border: 1px solid #ffd27a; }
.skizze-flaeche { width: 100%; aspect-ratio: 1; border-radius: 12px; touch-action: none; margin: 10px 0; background: #fff; }
.raster3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zeile.wrap { flex-wrap: wrap; }
