/* Sitequest – Oberfläche */
:root{
  --bg:#0b0e14; --panel:#121722; --panel2:#171d2a; --panel3:#1d2433; --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.15);
  --text:#e8ecf4; --muted:#8b95a8; --accent:#7c5cff; --accent2:#22d3ee; --ok:#34d399; --err:#f87171; --warn:#fbbf24;
  --verlauf:linear-gradient(135deg, var(--accent), var(--accent2));
  --radius:18px; --font:system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --head:var(--font);
}
*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html,body{ margin:0; }
body{ background:var(--bg); color:var(--text); font-family:var(--font); font-size:15px; line-height:1.55; min-height:100vh; }
a{ color:var(--accent2); }
button,input,textarea,select{ font:inherit; color:inherit; }
h1,h2,h3{ font-family:var(--head); letter-spacing:-.015em; line-height:1.2; }
h1{ font-size:clamp(26px, 3.4vw, 34px); margin:0 0 8px; }
h2{ font-size:20px; margin:0 0 12px; }
.leise{ color:var(--muted); }
.klein-text{ font-size:13px; }
.mitte-text{ text-align:center; }
.verlauf-text{ background:var(--verlauf); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---- Logo, Kopf ---- */
.logo{ display:inline-flex; align-items:center; gap:10px; font-family:var(--head); font-weight:700; font-size:19px; color:var(--text); text-decoration:none; }
.logo-zeichen{ width:32px; height:32px; border-radius:10px; display:grid; place-items:center; color:#fff; font-size:16px; background:var(--verlauf); }
.kopf{ display:flex; align-items:center; gap:14px; padding:14px 24px; border-bottom:1px solid var(--line);
       position:sticky; top:0; z-index:10; background:rgba(11,14,20,.88); backdrop-filter:blur(12px); }
.kopf.transparent{ background:transparent; border-color:transparent; position:static; backdrop-filter:none; }
.kopf .platz{ flex:1; }
.kopf .wer{ font-size:14px; color:#c9d1e0; }
.kopf a.leise{ text-decoration:none; font-size:14px; }
.kopf a.leise:hover{ color:var(--text); }
.frei{ font-size:12.5px; padding:4px 10px; border-radius:20px; background:rgba(52,211,153,.12); color:#a7f3d0; border:1px solid rgba(52,211,153,.3); }
.frei.leer{ background:rgba(251,191,36,.1); color:#fde68a; border-color:rgba(251,191,36,.3); }
.tabs{ display:flex; gap:4px; margin-left:16px; }
.tabs button{ border:none; background:transparent; color:var(--muted); padding:8px 14px; border-radius:10px; cursor:pointer; font-weight:500; }
.tabs button.an{ background:var(--panel2); color:var(--text); }
.zahl{ display:inline-block; min-width:20px; padding:0 6px; border-radius:10px; background:var(--accent); color:#fff; font-size:12px; margin-left:4px; }

/* ---- Grundelemente ---- */
.karte{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.karte.schmal{ width:100%; max-width:400px; }
.mitte{ min-height:100vh; display:grid; place-items:center; padding:20px; }
.mitte .karte h2{ margin-top:18px; }
label.feld{ display:block; font-size:13px; font-weight:600; margin:0 0 16px; color:#c9d1e0; }
label.feld .eingabe{ margin-top:7px; font-weight:400; }
.eingabe{ display:block; width:100%; background:var(--panel2); border:1px solid var(--line2); border-radius:12px; padding:12px 14px; outline:none; transition:border-color .15s, box-shadow .15s; }
.eingabe:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(124,92,255,.25); }
.eingabe.fehlt{ border-color:var(--err); box-shadow:0 0 0 3px rgba(248,113,113,.2); }
textarea.eingabe{ resize:vertical; }
.eingabe.code{ font-size:26px; letter-spacing:.4em; text-align:center; font-variant-numeric:tabular-nums; margin-bottom:14px; }
.knopf{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:12px; padding:12px 20px;
        background:var(--verlauf); color:#fff; font-weight:600; cursor:pointer; text-decoration:none; transition:filter .15s, transform .1s, opacity .15s; }
.knopf:hover{ filter:brightness(1.08); }
.knopf:active{ transform:scale(.99); }
.knopf:disabled{ opacity:.45; cursor:not-allowed; filter:none; }
.knopf.breit, .knopf-rand.breit{ width:100%; }
.knopf.gross{ padding:15px 22px; font-size:16px; }
.knopf-rand{ display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--line2); background:transparent; border-radius:12px;
             padding:10px 16px; color:var(--text); text-decoration:none; cursor:pointer; font-size:14px; white-space:nowrap; }
.knopf-rand:hover{ border-color:var(--accent); }
.text-knopf{ border:none; background:none; color:var(--accent2); cursor:pointer; padding:10px; text-decoration:underline; }
.meldung{ margin-top:14px; padding:11px 14px; border-radius:11px; font-size:14px; display:none; }
.meldung.zeigen{ display:block; }
.meldung.err{ background:rgba(248,113,113,.12); color:#fecaca; border:1px solid rgba(248,113,113,.3); }
.meldung.ok{ background:rgba(52,211,153,.1); color:#a7f3d0; border:1px solid rgba(52,211,153,.3); }
.meldung.warn{ background:rgba(251,191,36,.1); color:#fde68a; border:1px solid rgba(251,191,36,.3); }
.inhalt > .meldung{ margin:0 0 18px; }
.chips{ display:flex; flex-wrap:wrap; gap:7px; margin:-6px 0 18px; }
.chip{ border:1px solid var(--line2); background:transparent; border-radius:20px; padding:6px 12px; font-size:13px; color:#c9d1e0; cursor:pointer; }
.chip:hover{ border-color:var(--accent); color:#fff; background:rgba(124,92,255,.12); }

/* ---- Startseite ---- */
.landing{ min-height:100vh; background:radial-gradient(900px 500px at 15% 0%, rgba(124,92,255,.2), transparent), radial-gradient(800px 500px at 100% 100%, rgba(34,211,238,.12), transparent); }
.landing-raster{ display:grid; grid-template-columns:1.2fr 420px; gap:48px; align-items:center; max-width:1180px; margin:0 auto; padding:40px 24px 80px; }
.hero h1{ font-size:clamp(34px, 5.5vw, 58px); margin:18px 0 18px; }
.hero > p{ font-size:18px; color:#c9d1e0; max-width:56ch; }
.badge{ display:inline-block; padding:6px 14px; border-radius:20px; border:1px solid rgba(124,92,255,.5); background:rgba(124,92,255,.12); color:#d4ccff; font-size:13px; font-weight:600; }
.vorteile{ list-style:none; padding:0; margin:28px 0 0; display:flex; flex-direction:column; gap:12px; color:var(--muted); }
.vorteile strong{ color:var(--text); }
.auth h2{ margin-bottom:14px; }
.auth-tabs{ display:flex; background:var(--panel2); border-radius:12px; padding:4px; margin-bottom:20px; }
.auth-tabs a{ flex:1; text-align:center; padding:9px; border-radius:9px; color:var(--muted); text-decoration:none; font-weight:600; font-size:14px; }
.auth-tabs a.an{ background:var(--panel3); color:var(--text); }
@media (max-width:900px){ .landing-raster{ grid-template-columns:1fr; gap:28px; padding-top:10px; } }

/* ---- Dashboard ---- */
.inhalt{ max-width:1280px; margin:0 auto; padding:24px; }
.raster-dash{ display:grid; grid-template-columns:minmax(0, 1fr) 380px; gap:22px; align-items:start; }
@media (max-width:1000px){ .raster-dash{ grid-template-columns:1fr; } }
#assistent{ min-height:460px; }
.wege{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }
@media (max-width:640px){ .wege{ grid-template-columns:1fr; } }
.weg{ text-align:left; background:var(--panel2); border:1px solid var(--line2); border-radius:16px; padding:22px; cursor:pointer;
      display:flex; flex-direction:column; gap:8px; transition:border-color .15s, transform .15s, background .15s; }
.weg:hover{ border-color:var(--accent); transform:translateY(-2px); background:var(--panel3); }
.weg strong{ font-family:var(--head); font-size:17px; }
.weg span:last-child{ color:var(--muted); font-size:14px; }
.weg-icon{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--verlauf); color:#fff; font-size:20px; margin-bottom:6px; }

.w-kopf{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.zurueck{ width:38px; height:38px; border-radius:10px; border:1px solid var(--line2); background:transparent; cursor:pointer; font-size:17px; }
.zurueck:hover{ border-color:var(--accent); }
.w-punkte{ display:flex; gap:6px; flex:1; }
.w-punkte span{ height:5px; flex:1; border-radius:5px; background:var(--line2); transition:background .2s; }
.w-punkte span.an{ background:var(--verlauf); }
.w-art{ font-size:12.5px; color:var(--muted); white-space:nowrap; }
.w-fuss{ display:flex; align-items:center; gap:14px; justify-content:space-between; margin-top:10px; padding-top:18px; border-top:1px solid var(--line); }
.w-preis{ font-size:14px; color:var(--muted); }
.w-preis strong{ color:var(--text); font-size:18px; font-family:var(--head); }

.chips-auswahl{ display:flex; flex-wrap:wrap; gap:7px; margin:-8px 0 12px; }
.chip-radio input{ position:absolute; opacity:0; pointer-events:none; }
.chip-radio span{ display:inline-block; border:1px solid var(--line2); border-radius:20px; padding:7px 13px; font-size:13.5px; cursor:pointer; color:#c9d1e0; }
.chip-radio input:checked + span{ background:rgba(124,92,255,.18); border-color:var(--accent); color:#fff; }
.chip-radio input:focus-visible + span{ outline:2px solid var(--accent2); }
#brancheAndere{ margin-bottom:16px; }

.typen{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; margin-bottom:22px; }
@media (max-width:640px){ .typen{ grid-template-columns:1fr; } }
.typ input, .vorlage input, .extra input{ position:absolute; opacity:0; pointer-events:none; }
.typ-karte{ display:flex; flex-direction:column; gap:4px; height:100%; padding:16px 18px; border:1px solid var(--line2); border-radius:14px; background:var(--panel2); cursor:pointer; transition:all .15s; }
.typ-karte strong{ font-family:var(--head); font-size:16px; }
.typ-karte span{ color:var(--muted); font-size:13.5px; }
.typ-karte em{ font-style:normal; font-size:13px; color:#d4ccff; margin-top:auto; padding-top:6px; }
.typ input:checked + .typ-karte{ border-color:var(--accent); background:rgba(124,92,255,.12); box-shadow:0 0 0 1px var(--accent); }
.typ input:focus-visible + .typ-karte{ outline:2px solid var(--accent2); }
.typen.fehlt .typ-karte{ border-color:rgba(248,113,113,.6); }
.extras{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:-6px 0 8px; }
@media (max-width:640px){ .extras{ grid-template-columns:1fr; } }
.extra{ display:flex; align-items:center; gap:10px; padding:11px 14px; border:1px solid var(--line2); border-radius:12px; cursor:pointer; font-size:14px; }
.extra::before{ content:''; width:18px; height:18px; border-radius:6px; border:2px solid var(--line2); flex-shrink:0; }
.extra:has(input:checked){ border-color:var(--accent); background:rgba(124,92,255,.1); }
.extra:has(input:checked)::before{ background:var(--verlauf); border-color:transparent; }
.extra:has(input:focus-visible){ outline:2px solid var(--accent2); }
.extra span{ flex:1; }
.extra em{ font-style:normal; font-size:12.5px; color:var(--muted); white-space:nowrap; }
details.mehr{ margin-bottom:12px; }
details.mehr summary{ cursor:pointer; color:var(--accent2); font-size:14px; margin-bottom:14px; }
.zwei{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:640px){ .zwei{ grid-template-columns:1fr; } }

.vorlagen{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; margin:-6px 0 12px; }
.vorlage-karte{ display:flex; flex-direction:column; border:1px solid var(--line2); border-radius:14px; overflow:hidden; cursor:pointer; background:var(--panel2); transition:all .15s; height:100%; }
.vorlage input:checked + .vorlage-karte{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }
.vorlage input:focus-visible + .vorlage-karte{ outline:2px solid var(--accent2); }
.vorlage-karte .mini{ position:relative; height:120px; overflow:hidden; background:#fff; }
.vorlage-karte .mini iframe{ width:1280px; height:960px; border:0; transform:scale(.135); transform-origin:0 0; pointer-events:none; }
.vorlage-karte strong{ padding:9px 12px 0; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vorlage-karte small{ padding:0 12px 10px; color:var(--muted); font-size:12px; }
.vorlage-karte.keine{ align-items:center; justify-content:center; text-align:center; min-height:170px; gap:4px; }
.vorlage-karte.keine > span{ font-size:26px; background:var(--verlauf); -webkit-background-clip:text; background-clip:text; color:transparent; }
.vorlage-karte.keine strong, .vorlage-karte.keine small{ padding:0 10px; }

.zusammen{ display:grid; grid-template-columns:auto 1fr; gap:10px 20px; margin:6px 0 24px; padding:18px; border-radius:14px; background:var(--panel2); font-size:14px; }
.zusammen dt{ color:var(--muted); }
.zusammen dd{ margin:0; word-break:break-word; }
.zusammen .preis-zeile{ grid-column:1 / -1; display:flex; justify-content:space-between; padding-top:12px; border-top:1px solid var(--line); font-size:16px; }
.zusammen .preis-zeile strong{ font-family:var(--head); font-size:20px; }

/* Fortschritt */
.schritte{ list-style:none; margin:18px 0 0; padding:0; display:flex; flex-direction:column; gap:4px; }
.schritte li{ display:flex; align-items:center; gap:12px; padding:9px 0; color:var(--muted); }
.schritte .punkt{ width:30px; height:30px; border-radius:50%; border:2px solid var(--line2); display:grid; place-items:center; flex-shrink:0; font-size:13px; font-weight:700; }
.schritte li.aktiv{ color:var(--text); }
.schritte li.aktiv .punkt{ border-color:var(--accent); animation:puls 1.4s infinite; }
.schritte li.fertig{ color:#c9d1e0; }
.schritte li.fertig .punkt{ background:var(--ok); border-color:var(--ok); color:#06281c; }
.schritte li.fehler .punkt{ background:var(--err); border-color:var(--err); color:#2a0808; }
.schritte small{ display:block; font-size:12.5px; color:var(--muted); }
@keyframes puls{ 0%{ box-shadow:0 0 0 0 rgba(124,92,255,.55);} 70%{ box-shadow:0 0 0 10px rgba(124,92,255,0);} 100%{ box-shadow:0 0 0 0 rgba(124,92,255,0);} }
.uhr{ font-variant-numeric:tabular-nums; color:var(--muted); font-size:13px; margin:12px 0 18px; }
#fFertig{ display:flex; flex-direction:column; gap:10px; }

/* Entwürfe */
.entwuerfe{ display:flex; flex-direction:column; gap:12px; }
.entwurf{ display:flex; gap:12px; align-items:center; padding:10px; border-radius:14px; border:1px solid var(--line); background:var(--panel2); }
.entwurf .mini{ width:96px; height:66px; border-radius:9px; overflow:hidden; background:#fff; flex-shrink:0; position:relative; }
.entwurf .mini iframe{ width:1280px; height:880px; border:0; transform:scale(.075); transform-origin:0 0; pointer-events:none; }
.entwurf .info{ flex:1; min-width:0; }
.entwurf strong{ display:block; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.entwurf .info span{ font-size:12.5px; color:var(--muted); }
.entwurf .aktionen{ display:flex; flex-direction:column; gap:6px; }
.entwurf .aktionen a, .entwurf .aktionen button{ padding:6px 10px; font-size:12.5px; border-radius:9px; }
.loesch{ border:1px solid transparent; background:transparent; color:var(--muted); cursor:pointer; }
.loesch:hover{ color:var(--err); border-color:rgba(248,113,113,.3); }

/* Admin-Tabellen */
.tabelle{ display:flex; flex-direction:column; gap:8px; }
.zeile{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 14px; border-radius:12px; background:var(--panel2); border:1px solid var(--line); }
.zeile .info{ flex:1; min-width:200px; }
.zeile strong{ display:block; }
.zeile .info span{ font-size:12.5px; color:var(--muted); }
.stern{ width:36px; height:36px; border-radius:10px; border:1px solid var(--line2); background:transparent; cursor:pointer; font-size:17px; color:var(--muted); }
.stern.an{ color:#fbbf24; border-color:rgba(251,191,36,.5); background:rgba(251,191,36,.1); }
.anfrage{ padding:16px; border-radius:14px; background:var(--panel2); border:1px solid var(--line); margin-bottom:10px; }
.anfrage.erledigt{ opacity:.55; }
.anfrage-kopf{ display:flex; flex-wrap:wrap; gap:10px; align-items:baseline; justify-content:space-between; }
.anfrage p{ margin:8px 0 0; white-space:pre-line; color:#c9d1e0; font-size:14px; }
.anfrage .meta{ font-size:13px; color:var(--muted); }

/* ---- Vorschau ---- */
.vorschau-seite{ height:100vh; display:flex; flex-direction:column; }
.v-leiste{ display:flex; align-items:center; gap:14px; padding:10px 16px; border-bottom:1px solid var(--line); background:var(--panel); flex-wrap:wrap; }
.v-links{ display:flex; align-items:center; gap:16px; flex:1; min-width:220px; }
.v-links .logo{ font-size:0; gap:0; }
.v-titel strong{ display:block; font-family:var(--head); font-size:15px; }
.v-titel span{ font-size:12px; color:var(--muted); }
.v-rechts{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.v-preis{ font-family:var(--head); font-weight:600; font-size:17px; }
.v-preis small{ font-family:var(--font); font-weight:400; color:var(--muted); font-size:12px; }
.v-notiz{ padding:10px 18px; background:rgba(124,92,255,.08); border-bottom:1px solid rgba(124,92,255,.2); font-size:13.5px; color:#d4ccff; }
.geraete{ display:flex; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:3px; }
.geraete button{ border:none; background:transparent; color:var(--muted); width:38px; height:32px; border-radius:7px; cursor:pointer; display:grid; place-items:center; }
.geraete button.an{ background:var(--panel3); color:var(--text); }
.geraete svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; }
.buehne{ flex:1; position:relative; overflow:hidden; background:#05070b; }
.rahmen{ position:absolute; top:0; left:50%; transform-origin:top center; background:#fff; }
.rahmen.handy, .rahmen.tablet{ border-radius:20px; overflow:hidden; top:18px; box-shadow:0 0 0 9px #1b2130, 0 24px 60px rgba(0,0,0,.6); }
.rahmen iframe{ width:100%; height:100%; border:0; display:block; }
@media (max-width:700px){ .geraete{ display:none; } .v-leiste{ gap:8px; } .v-rechts .knopf-rand{ display:none; } }

/* ---- Dialog ---- */
.dialog{ border:1px solid var(--line2); border-radius:20px; background:var(--panel); color:var(--text); padding:28px; width:min(460px, calc(100vw - 32px)); max-height:calc(100vh - 40px); }
.dialog::backdrop{ background:rgba(5,7,11,.7); backdrop-filter:blur(4px); }
.dialog form{ position:relative; }
.dialog-zu{ position:absolute; top:-12px; right:-12px; width:36px; height:36px; border:none; background:transparent; color:var(--muted); font-size:24px; cursor:pointer; }
.dialog h2{ padding-right:30px; }
.posten{ background:var(--panel2); border-radius:12px; padding:14px 16px; margin-bottom:12px; font-size:14px; }
.posten > div{ display:flex; justify-content:space-between; gap:12px; padding:3px 0; color:#c9d1e0; }
.posten .summe{ border-top:1px solid var(--line); margin-top:6px; padding-top:9px; color:var(--text); font-weight:600; font-size:16px; }
.posten .summe.klein{ border:none; margin:0; padding-top:2px; font-size:14px; color:var(--muted); font-weight:500; }

@media (max-width:600px){
  .kopf{ padding:12px 14px; gap:10px; }
  .kopf .wer{ display:none; }
  .inhalt{ padding:14px; }
  .karte{ padding:20px; }
  .tabs{ margin-left:0; }
  .tabs button{ padding:7px 9px; font-size:13px; }
}
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }

/* Kauf */
.gekauft-marke{ display:inline-flex; align-items:center; padding:10px 16px; border-radius:12px; background:rgba(52,211,153,.14); color:#a7f3d0; border:1px solid rgba(52,211,153,.4); font-weight:600; }
.gekauft-text{ color:#6ee7b7; font-weight:600; }
.v-notiz.neu{ background:rgba(52,211,153,.1); border-bottom-color:rgba(52,211,153,.3); color:#d1fae5; }
.test-hinweis{ font-size:13px; color:#fde68a; background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.3); border-radius:10px; padding:8px 12px; margin:0 0 14px; }
.kauf-ok{ width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:var(--ok); color:#06281c; font-size:28px; font-weight:700; margin-bottom:14px; }

/* ---- Erweiterungen ---- */
.mini-zahl{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--accent); color:#fff; font-size:11.5px; font-weight:700; margin-left:4px; }
.dialog.breit{ width:min(560px, calc(100vw - 32px)); }
.aendern-lauf{ display:flex; align-items:center; gap:12px; margin-top:14px; padding:12px 14px; border-radius:12px; background:rgba(124,92,255,.1); color:#d4ccff; font-size:14px; }
.ring-klein{ width:20px; height:20px; border-radius:50%; border:3px solid var(--line2); border-top-color:var(--accent); animation:dreh 1s linear infinite; flex-shrink:0; }
@keyframes dreh{ to{ transform:rotate(360deg);} }
.verlauf{ margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.verlauf-kopf{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:14px; }
.verlauf-eintrag{ font-size:13.5px; color:#c9d1e0; padding:5px 0; border-bottom:1px dashed var(--line); }
.verlauf-eintrag span{ color:var(--muted); margin-right:6px; font-variant-numeric:tabular-nums; }
.fuss{ display:flex; justify-content:center; gap:22px; padding:30px 20px 40px; font-size:13px; }
.fuss a{ color:var(--muted); text-decoration:none; }
.fuss a:hover{ color:var(--text); }
.recht{ max-width:820px; margin:20px auto 0; line-height:1.7; }
.recht h2{ font-size:17px; margin:26px 0 6px; }
.recht p{ color:#c9d1e0; }
.haken{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:#c9d1e0; margin:4px 0 16px; cursor:pointer; }
.haken input{ margin-top:3px; width:16px; height:16px; accent-color:var(--accent); flex-shrink:0; }
.kopfzeile{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.kopfzeile h2{ margin:0; }

.upload-raster{ display:grid; grid-template-columns:160px 1fr; gap:12px; margin:18px 0 14px; }
@media (max-width:640px){ .upload-raster{ grid-template-columns:1fr; } }
.upload-knopf{ width:100%; min-height:120px; border:2px dashed var(--line2); border-radius:14px; background:var(--panel2); color:#c9d1e0; cursor:pointer;
               display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; font-weight:600; transition:border-color .15s; }
.upload-knopf:hover{ border-color:var(--accent); }
.upload-knopf span{ font-size:26px; line-height:1; color:var(--accent2); }
.upload-knopf small{ font-weight:400; color:var(--muted); font-size:12px; }
.upload-knopf img{ max-width:120px; max-height:70px; object-fit:contain; background:#fff; border-radius:8px; padding:4px; }
.fotos{ display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:12px; margin-bottom:10px; }
.foto{ position:relative; border:1px solid var(--line2); border-radius:12px; overflow:hidden; background:var(--panel2); }
.foto img{ display:block; width:100%; height:110px; object-fit:cover; }
.foto .eingabe{ border:none; border-radius:0; border-top:1px solid var(--line); font-size:12.5px; padding:9px 10px; }
.foto-weg{ position:absolute; top:6px; right:6px; width:28px; height:28px; border-radius:50%; border:none; background:rgba(0,0,0,.65); color:#fff; cursor:pointer; font-size:16px; }
.foto.laedt{ display:grid; place-items:center; height:150px; color:var(--muted); font-size:13px; }

.entwurf .info .status-zeile{ display:block; color:#6ee7b7; font-weight:600; font-size:12.5px; margin-top:2px; }
.entwurf .info .frist{ display:block; color:#fbbf24; font-size:12px; margin-top:2px; }
.live-zeile{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; width:100%; padding-top:8px; border-top:1px dashed var(--line); }
.live-zeile .eingabe{ width:auto; flex:1; min-width:140px; padding:8px 10px; font-size:13px; }
.live-zeile select.eingabe{ flex:0 0 auto; }
.akquise-form{ display:grid; grid-template-columns:1fr 1fr 1.4fr .6fr auto; gap:10px; margin:6px 0 12px; }
.portal{ color:#f5b942; }
@media (max-width:700px){ .akquise-form{ grid-template-columns:1fr 1fr; } }
.ohne{ color:#fbbf24; }
select.eingabe{ appearance:auto; }
.zeile .info > span{ display:block; }

/* ---- Plus ---- */
.dialog.sehr-breit{ width:min(1180px, calc(100vw - 32px)); }
.dialog.sehr-breit img{ display:block; width:100%; height:auto; border-radius:12px; margin-top:12px; }
.vergleich-tabs{ display:inline-flex; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:3px; }
.vergleich-tabs button{ border:none; background:transparent; color:var(--muted); padding:7px 14px; border-radius:7px; cursor:pointer; }
.vergleich-tabs button.an{ background:var(--panel3); color:var(--text); }
.google-box{ padding:14px; border:1px dashed var(--line2); border-radius:14px; margin-bottom:18px; background:rgba(34,211,238,.04); }
.google-box label.feld{ margin-bottom:8px; }
.google-suche{ display:flex; gap:8px; }
.google-suche .eingabe{ flex:1; }
.google-treffer{ display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.google-treffer:empty{ display:none; }
.treffer{ text-align:left; display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:11px; border:1px solid var(--line2); background:var(--panel2); cursor:pointer; }
.treffer:hover{ border-color:var(--accent); }
.treffer span{ font-size:12.5px; color:var(--muted); }
.treffer.gewaehlt{ cursor:default; border-color:rgba(52,211,153,.5); background:rgba(52,211,153,.08); }
.treffer.gewaehlt .text-knopf{ align-self:flex-start; padding:4px 0; }
.editor-buehne{ background:#fff; }
.editor-buehne iframe{ width:100%; height:100%; border:0; display:block; }
.editor-status{ font-size:13px; color:var(--muted); }
.entwurf .info .besucher{ display:block; font-size:12px; color:#a5b4fc; margin-top:2px; }
.werte{ font-size:13px; color:var(--muted); white-space:nowrap; }
.kennzahlen{ display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin:8px 0 6px; }
@media (max-width:800px){ .kennzahlen{ grid-template-columns:1fr 1fr; } }
.kennzahlen > div{ background:var(--panel2); border:1px solid var(--line); border-radius:14px; padding:14px 16px; display:flex; flex-direction:column; gap:2px; }
.kennzahlen span{ font-size:12.5px; color:var(--muted); }
.kennzahlen strong{ font-size:24px; }
.kennzahlen small{ font-size:11.5px; color:var(--muted); }
.kennzahlen .hervor{ border-color:rgba(124,92,255,.5); background:rgba(124,92,255,.1); }
.karte h3{ font-size:15px; margin:22px 0 10px; }

/* Recherche-Dialog (Akquise) */
.r-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .r-raster { grid-template-columns: 1fr; } }
.r-sicherheit { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: .92rem; }
.r-sicherheit.hoch { border-left: 3px solid #3ecf8e; }
.r-sicherheit.mittel { border-left: 3px solid #f5b942; }
.r-sicherheit.niedrig { border-left: 3px solid #ef5d5d; }
.r-quellen { margin: 4px 0 12px; font-size: .88rem; }
.r-quellen ul { margin: 6px 0 0; padding-left: 18px; }
.r-quellen a { word-break: break-all; }
.r-neu { display: flex; gap: 8px; margin-top: 14px; }
.r-neu .eingabe { flex: 1; min-width: 0; }
.r-screens { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.r-screens .leise { flex: 1; min-width: 220px; font-size: .86rem; margin: 0; }
.r-upload { cursor: pointer; white-space: nowrap; }
.r-vorschlaege { margin: -6px 0 14px; }
.r-vorschlaege .leise { font-size: .85rem; margin: 0 0 8px; }
.r-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.r-chip { border: 1px solid var(--line2); background: transparent; border-radius: 20px; padding: 6px 12px; font-size: 13px; color: #c9d1e0; cursor: pointer; }
.r-chip:hover { border-color: var(--accent); color: #fff; }
.r-chip.an { background: rgba(62,207,142,.16); border-color: #3ecf8e; color: #fff; }
.r-chip.an::before { content: "✓ "; }
.r-chip:not(.an)::before { content: "+ "; opacity: .7; }
.kopf .knopf.klein { padding: 8px 14px; font-size: 14px; }