.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.zurueck { color: inherit; text-decoration: none; opacity: .75; }
.zurueck:hover { opacity: 1; }
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
.kopf-rechts input { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 11px; font: inherit; width: 200px; }
.massstab { color: var(--muted); font-size: 12px; min-width: 90px; }

.editor { display: grid; grid-template-columns: 52px 1fr 300px; height: calc(100vh - 74px); }
.werkzeuge { border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.tool { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tool.sel { border-color: var(--accent2); background: #23301f; }
.tool.danger { color: #d3695c; }
.sep { width: 24px; height: 1px; background: var(--line); margin: 2px 0; }

.canvas-wrap { position: relative; overflow: hidden; background: #0a0b0c; }
#canvas { display: block; cursor: crosshair; }
.hint { position: absolute; left: 12px; bottom: 10px; color: var(--muted); font-size: 12px; background: rgba(12,13,14,.7); padding: 4px 8px; border-radius: 6px; pointer-events: none; }

.panel-rechts { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; }
.panel-rechts section { margin-bottom: 22px; }
.panel-rechts h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.badge { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--text); }
.mini { color: var(--muted); font-size: 11px; margin: 8px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ftyp { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; padding: 6px 9px; font-size: 12px; cursor: pointer; }
.ftyp.sel { border-color: var(--accent2); }
.ftyp .sw { width: 12px; height: 12px; border-radius: 3px; }

.suche { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; margin-bottom: 8px; outline: none; }
.suche:focus { border-color: var(--accent); }
.bib-gruppe { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 8px 0 3px; }
.pflanzliste-bib { display: flex; flex-direction: column; gap: 5px; max-height: 320px; overflow-y: auto; }
.pbib { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.pbib.sel { border-color: var(--accent2); background: #23301f; }
.pbib .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.15); }
.pbib .txt { line-height: 1.2; }
.pbib .n { font-size: 12px; }
.pbib .b { font-size: 10px; color: var(--muted); font-style: italic; }

.pflanzliste-out { display: flex; flex-direction: column; gap: 4px; }
.pz-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; font-size: 12px; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.pz-row .anz { font-weight: 600; text-align: right; }
.pz-row .con { color: var(--muted); font-size: 11px; }
.pz-empty { color: var(--muted); font-size: 12px; }

/* ---- Angebot-Modal ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(6,7,8,.72); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(520px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.modal h2 { margin: 0 0 4px; font-size: 17px; }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.feld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.feld label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.feld input { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 11px; font: inherit; outline: none; }
.feld input:focus { border-color: var(--accent); }
.feld-reihe { display: flex; gap: 12px; }
.feld-reihe .feld { flex: 1; }
.feld-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.feld-check .mini-num { width: 62px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 5px 8px; font: inherit; }
.modal-aktionen { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Fotoreal-Wahl */
.wahl { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 10px; cursor: pointer; margin-bottom: 10px; }
.wahl:hover { border-color: var(--accent); }
.wahl img { width: 86px; height: 62px; object-fit: cover; border-radius: 8px; flex: none; }
.wahl b { display: block; font-size: 13px; }
.wahl small { color: var(--muted); font-size: 11.5px; line-height: 1.35; display: block; margin-top: 2px; }
