/* Gebündelt aus dqc-style.css, dqc-mockup.css, dqc-wallcheck.css, dqc-v4.css (eine Anfrage statt vier) */

/* ---- dqc-style.css ---- */
/* ================================================
   Wall-Check – Dark Mode Stylesheet
   Caspar Manufaktur Edition
   ================================================ */

@font-face {
  font-family: 'DIN OT';
  src: url('/wp-content/uploads/2026/04/DINOT-CondBlack.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DIN OT';
  src: url('/wp-content/uploads/2026/04/DINOT-CondMedium.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

.dqc-app {
  --bg:          #0d0d0d;
  --surface:     #141414;
  --surface2:    #1c1c1c;
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.12);
  --accent:      #2ECC71;
  --accent-hover:#27AE60;
  --accent-dim:  rgba(46,204,113,0.12);
  --text:        #f0f0f0;
  --text2:       #9a9a9a;
  --text3:       #5a5a5a;
  --green:       #2ECC71;
  --green-dim:   rgba(46,204,113,0.12);
  --yellow:      #f59e0b;
  --yellow-dim:  rgba(245,158,11,0.12);
  --red-dim:     rgba(239,68,68,0.12);
}

.dqc-app {
  font-family: 'DIN OT', Arial, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Steps */
.dqc-step { display: block; }
.dqc-step.hidden { display: none !important; }
.dqc-step.is-active { display: block; }

/* ── Card ── */
.dqc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 36px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}
.dqc-card-head {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px;
}
.dqc-card-head h2 {
  margin: 0 0 4px; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.025em; color: var(--text);
}
.dqc-card-head p { margin: 0; font-size: .875rem; color: var(--text2); }

.dqc-step-badge {
  flex-shrink: 0; width: 38px; height: 38px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
  box-shadow: 0 0 20px rgba(46,204,113,0.35);
}

/* ── Drop-Zone ── */
.dqc-dropzone {
  border: 1.5px dashed var(--border2);
  border-radius: 3px;
  padding: 40px 20px;
  text-align: center;
  background: var(--surface2);
  cursor: pointer;
  transition: border-color .18s, background .18s;
  margin-bottom: 20px;
  position: relative;
}
.dqc-dropzone:hover,
.dqc-dropzone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.dqc-dz-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.dqc-dz-icon { width: 48px; height: 48px; color: var(--accent); opacity: .85; }
.dqc-dz-icon svg { width: 100%; height: 100%; }
.dqc-dz-text { display: flex; flex-direction: column; gap: 4px; }
.dqc-dz-text strong { font-size: 1rem; color: var(--text); }
.dqc-dz-text span   { font-size: .82rem; color: var(--text2); }
.dqc-dz-formats     { font-size: .78rem !important; color: var(--text3) !important; }

.dqc-file-chip {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); color: var(--accent);
  font-size: .85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 4px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Progress ── */
.dqc-progress-wrap {
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px;
}
.dqc-prog-bar {
  height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden;
}
#dqc-prog-fill {
  height: 100%; background: var(--accent);
  border-radius: 2px; width: 0; transition: width .3s;
}
#dqc-prog-label { font-size: .8rem; color: var(--text2); }

/* ── Alerts ── */
.dqc-alert {
  border-radius: 3px; padding: 12px 16px;
  font-size: .875rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.dqc-alert.hidden { display: none !important; }
.dqc-alert-error  { background: var(--red-dim); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.dqc-alert-warn   { background: var(--yellow-dim); border: 1px solid rgba(245,158,11,0.2); color: #fbbf24; }
.dqc-ratio-notice { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Image Info Bar ── */
.dqc-img-info-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border-radius: 3px;
  padding: 12px 16px; margin-bottom: 20px;
}
.dqc-ib-thumb {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--border);
}
.dqc-ib-meta { display: flex; flex-direction: column; gap: 2px; }
.dqc-ib-name { font-weight: 600; font-size: .9rem; color: var(--text); }
.dqc-ib-px   { font-size: .8rem; color: var(--text2); }
.dqc-ib-meta span { font-size: .78rem; color: var(--text3); }

/* ── Dimension Row ── */
.dqc-dim-row {
  display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px;
}
.dqc-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dqc-field label { font-size: .8rem; font-weight: 600; color: var(--text2); letter-spacing: .04em; text-transform: uppercase; }
.dqc-field input {
  padding: 11px 14px; background: var(--surface2);
  border: 1.5px solid var(--border2); border-radius: 3px;
  font-size: .95rem; color: var(--text); outline: none;
  transition: border-color .15s;
}
.dqc-field input:focus { border-color: var(--accent); }
.dqc-field-sep { font-size: 1.2rem; color: var(--text3); padding-bottom: 11px; }

/* ── Buttons ── */
.dqc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 3px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .15s; text-decoration: none;
}
.dqc-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.dqc-btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(46,204,113,0.30);
}
.dqc-btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 24px rgba(46,204,113,0.45); }
.dqc-btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.dqc-btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2);
}
.dqc-btn-secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.dqc-btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
  font-size: .85rem; padding: 9px 16px;
}
.dqc-btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.dqc-btn-sm { font-size: .8rem; padding: 8px 14px; margin-top: 10px; }

/* ── Quality Banner ── */
.dqc-quality-banner {
  border-radius: 3px; padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px; border: 1px solid transparent;
}
.dqc-quality-banner.good {
  background: var(--green-dim); border-color: rgba(34,197,94,0.2);
}
.dqc-quality-banner.warn {
  background: var(--yellow-dim); border-color: rgba(245,158,11,0.2);
}
.dqc-qb-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.dqc-qb-title { margin: 0 0 4px; font-weight: 700; font-size: 1rem; color: var(--text); }
.dqc-qb-text  { margin: 0; font-size: .85rem; color: var(--text2); }

/* ── Metrics Grid ── */
.dqc-metrics-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; margin-bottom: 20px;
}
@media (max-width: 640px) { .dqc-metrics-grid { grid-template-columns: repeat(2,1fr); } }
.dqc-metric {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 3px; padding: 14px 16px;
}
.dqc-metric.ok   { border-color: rgba(34,197,94,0.2); }
.dqc-metric.warn { border-color: rgba(245,158,11,0.2); }
.dqc-metric.bad  { border-color: rgba(239,68,68,0.2); }
.dqc-m-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; }
.dqc-m-val   { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.dqc-m-sub   { font-size: .75rem; color: var(--text2); }

/* ── Preview Section ── */
.dqc-preview-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px; margin-bottom: 20px;
  /* kein overflow:hidden – SVG-Labels müssen nach unten sichtbar sein */
}
.dqc-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dqc-preview-head h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.dqc-preview-hint    { font-size: .8rem; color: var(--text3); }




/* ── Crop Overlay ── */
.dqc-crop-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.dqc-shadow {
  position: absolute; background: rgba(0,0,0,0.55); pointer-events: none;
}
.dqc-shadow-top    { top:0; left:0; right:0; }
.dqc-shadow-bottom { left:0; right:0; bottom:0; }
.dqc-shadow-left   { left:0; }
.dqc-shadow-right  { right:0; }

.dqc-crop-rect {
  position: absolute; border: 2px solid #2ECC71;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
  cursor: move; pointer-events: all;
}
.dqc-crop-rect.proportional-ok { border-color: #22c55e; }
.dqc-crh {
  position: absolute; width: 11px; height: 11px;
  background: #2ECC71; border-radius: 2px;
}
.dqc-crop-rect.proportional-ok .dqc-crh { background: #22c55e; }
.dqc-crh-tl { top:-5px; left:-5px; } .dqc-crh-tr { top:-5px; right:-5px; }
.dqc-crh-bl { bottom:-5px; left:-5px; } .dqc-crh-br { bottom:-5px; right:-5px; }
.dqc-crh-tc { top:-5px; left:50%; transform:translateX(-50%); }
.dqc-crh-bc { bottom:-5px; left:50%; transform:translateX(-50%); }
.dqc-crh-lc { left:-5px; top:50%; transform:translateY(-50%); }
.dqc-crh-rc { right:-5px; top:50%; transform:translateY(-50%); }

/* ── Crop Info ── */
.dqc-crop-info { margin-top: 10px; min-height: 28px; }
.dqc-ci-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 4px; font-size: .8rem; font-weight: 600;
}
.dqc-ci-ok   { background: var(--green-dim); color: var(--green); }
.dqc-ci-warn { background: var(--yellow-dim); color: var(--yellow); }

/* ── Confirm / Action Buttons ── */
.dqc-confirm-wrap { margin-top: 16px; }
.dqc-action-btns  { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── Material / Bahnen ── */
.dqc-material-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; flex-wrap: wrap;
}
.dqc-material-label {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--text2);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .04em;
}
.dqc-material-select {
  padding: 9px 14px; border: 1.5px solid var(--border2);
  border-radius: 3px; font-size: .875rem;
  color: var(--text); background: var(--surface2);
  outline: none; cursor: pointer; transition: border-color .15s; flex: 1;
}
.dqc-material-select:focus { border-color: var(--accent); }
.dqc-material-select option { background: var(--surface2); }

/* Bahnen-SVG über Canvas */
.dqc-bahn-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  /* Breite/Höhe wird per JS gesetzt – KEIN inset:0 */
}

/* Bahn-Labels unter Canvas – keine abgerundeten Ecken oben */
.dqc-bahn-labels {
  display: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  /* Breite = Breite des Canvas (inline-block) über display:flex am Elternteil */
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
.dqc-bahn-labels.visible { display: flex; }
.dqc-bahn-label {
  font-size: 10px; font-weight: 500; color: var(--text2);
  text-align: center; padding: 5px 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-right: 1px solid var(--border);
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
}
.dqc-bahn-label:last-child { border-right: none; }

/* Moderne Bahnenaufteilung – angelehnt an die Shopify-Konfiguration */
.dqc-panel-layout-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 10px; padding:12px 14px; border:1px solid var(--border2); border-radius:8px 8px 0 0; background:var(--surface2); }
.dqc-panel-layout-head > div:first-child { display:flex; flex-direction:column; gap:3px; }
.dqc-panel-layout-head strong { font-size:.9rem; color:var(--text); }
.dqc-panel-layout-head span { font-size:.72rem; color:var(--text2); }
.dqc-panel-layout-head > div:last-child { display:flex; align-items:center; gap:10px; font-size:.72rem; color:var(--text2); white-space:nowrap; }
.dqc-panel-layout-head b { padding:5px 9px; border-radius:999px; background:var(--bg); color:var(--text); }
.dqc-panel-layout-head label { display:flex; align-items:center; gap:5px; cursor:pointer; }
.dqc-panel-layout-head input { accent-color:#2563eb; }
.dqc-two-col:has(#dqc-panel-layout-head) { grid-template-columns:minmax(0,1.65fr) minmax(250px,.75fr); }
.dqc-canvas-scroll:has(#dqc-panel-layout-head) { border-radius:0 0 8px 8px; }
.dqc-bahn-labels { margin-top:8px; gap:5px; border:0; background:transparent; border-radius:0; overflow:visible; }
.dqc-bahn-label { display:flex; align-items:center; justify-content:center; gap:4px; padding:0; min-width:0; border:0; color:var(--text2); font-size:.7rem; }
.dqc-bahn-label b { display:inline-grid; place-items:center; width:20px; height:20px; flex:0 0 20px; border-radius:50%; background:#2563eb; color:#fff; font-size:.68rem; }
.dqc-bahn-label span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:600px) { .dqc-panel-layout-head { padding:10px; } .dqc-panel-layout-head span { display:none; } .dqc-bahn-label span { display:none; } }
@media (max-width:850px) { .dqc-two-col:has(#dqc-panel-layout-head) { grid-template-columns:1fr; } }

/* ── Footer ── */
.dqc-footer-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.dqc-privacy {
  font-size: .78rem; color: var(--text3); text-align: center; margin: 0;
}

/* Hidden util */
.dqc-app .hidden { display: none !important; }

/* ── Two-Column Layout ── */
.dqc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
@media (max-width: 700px) {
  .dqc-two-col { grid-template-columns: 1fr; }
}
.dqc-col-left { min-width: 0; }
.dqc-col-left .dqc-preview-section { overflow: visible; }

.dqc-canvas-wrap {
  position: relative;
  display: block;
  overflow: visible;
}
#dqc-canvas {
  display: block;
  border-radius: 0;
  max-width: 100%;
  height: auto;
}
.dqc-canvas-scroll { overflow: visible; width: 100%; }
.dqc-col-left { min-width: 0; overflow: hidden; }
.dqc-col-left .dqc-preview-section { overflow: visible; }
.dqc-col-right { min-width: 0; }
.dqc-col-right .dqc-preview-section { height: 100%; box-sizing: border-box; }

/* ── Lupe Panel ── */
.dqc-lupe-panel { display: flex; flex-direction: column; }

.dqc-lupe-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; padding: 32px 20px;
  color: var(--text3); text-align: center;
}
.dqc-lupe-placeholder svg { width: 64px; height: 64px; }
.dqc-lupe-placeholder p { font-size: .85rem; line-height: 1.6; margin: 0; max-width: 220px; }

.dqc-lupe-instruction {
  font-size: .8rem; color: var(--text2); margin: 0 0 10px;
}

.dqc-lupe-preview-wrap { margin-bottom: 12px; }

.dqc-lupe-img-wrap {
  position: relative; display: inline-block;
  border-radius: 3px; overflow: hidden;
  border: 1px solid var(--border); cursor: crosshair;
  width: 100%;
}
.dqc-lupe-img-wrap img {
  display: block; width: 100%; height: auto;
  border-radius: 3px;
}
.dqc-lupe-crosshair {
  position: absolute; pointer-events: none;
  display: none; width: 0; height: 0;
}
.dqc-lupe-crosshair::before,
.dqc-lupe-crosshair::after {
  content: ''; position: absolute; background: rgba(46,204,113,0.9);
}
.dqc-lupe-crosshair::before { width: 1px; height: 40px; left: 0; top: -20px; }
.dqc-lupe-crosshair::after  { width: 40px; height: 1px; left: -20px; top: 0; }

/* Lupe Result */
.dqc-lupe-result { }
.dqc-lupe-result-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dqc-lupe-result-label {
  font-size: .75rem; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: .05em;
}
.dqc-lupe-img-result-wrap {
  border-radius: 3px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface2);
  min-height: 120px; display: flex; align-items: center; justify-content: center;
}
.dqc-lupe-img-result-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  /* Verhindert Streckung bei quadratischen Bildern */
  object-fit: contain;
}
.dqc-lupe-loader {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px; color: var(--text3); font-size: .85rem;
}
.dqc-spinner {
  width: 28px; height: 28px; border: 2px solid var(--border2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: dqc-spin .7s linear infinite;
}
@keyframes dqc-spin { to { transform: rotate(360deg); } }

/* ── Lupe-Ring (Kreis-Cursor über Canvas) ── */
.dqc-lupe-ring {
  position: absolute;
  width: 60px; height: 60px;
  border: 2px solid rgba(46,204,113,0.9);
  border-radius: 50%;
  pointer-events: none;
  display: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.2);
  transition: opacity .1s;
}
.dqc-lupe-ring::before {
  content: '';
  position: absolute;
  width: 1px; height: 20px;
  background: rgba(46,204,113,0.9);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.dqc-lupe-ring::after {
  content: '';
  position: absolute;
  width: 20px; height: 1px;
  background: rgba(46,204,113,0.9);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
/* Canvas bekommt Crosshair-Cursor nach Bestätigung */
.dqc-canvas-lupe-active { cursor: none !important; }

/* ── Logo ── */
.dqc-logo-wrap {
  margin-bottom: 20px;
}
.dqc-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ── Export + Bahnen in einer Zeile ── */
.dqc-export-bahn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dqc-material-inline {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.dqc-material-inline.hidden { display: none !important; }
.dqc-material-inline:not(.hidden) { display: flex; }
.dqc-material-inline .dqc-material-select {
  flex: 1;
  min-width: 0;
}

/* ── Disclaimer ── */
.dqc-disclaimer {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.dqc-disclaimer-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.5;
}
.dqc-disclaimer-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Labels-Box immer genau so breit wie Canvas via JS canvas.style.width */
.dqc-canvas-scroll .dqc-bahn-labels {
  /* Breite wird per JS auf canvas.style.width gesetzt */
}

/* ══════════════════════════════════════════
   UX v3.2 – Schritt-A/B-Führung
   ══════════════════════════════════════════ */

/* Canvas breiter */
.dqc-canvas-scroll { max-width: 100%; }
#dqc-canvas { max-width: 100%; }

/* Schritt-Indikator (A / B) */
.dqc-step-indicator {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.dqc-step-mini-badge {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  box-shadow: 0 0 14px rgba(46,204,113,0.40);
  transition: all .3s;
}
.dqc-step-mini-badge--dim {
  background: var(--surface2);
  color: var(--text3);
  box-shadow: none;
}
.dqc-step-indicator-title {
  font-size: .95rem; font-weight: 700; color: var(--text);
  margin-bottom: 2px;
}
.dqc-step-indicator-hint {
  font-size: .78rem; color: var(--text3);
}

/* Bestätigen-Button: groß, leuchtend, pulsierend */
.dqc-btn-confirm {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(46,204,113,0.40), 0 0 0 0 rgba(46,204,113,0.35);
  animation: dqc-pulse-confirm 2s ease-in-out infinite;
  transition: box-shadow .15s, transform .1s;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px;
  text-decoration: none;
}
.dqc-btn-confirm svg { width: 20px; height: 20px; flex-shrink: 0; }
.dqc-btn-confirm:hover {
  animation: none;
  box-shadow: 0 6px 28px rgba(46,204,113,0.55);
  transform: translateY(-1px);
}
@keyframes dqc-pulse-confirm {
  0%, 100% { box-shadow: 0 4px 24px rgba(46,204,113,0.40), 0 0 0 0 rgba(46,204,113,0.25); }
  50%       { box-shadow: 0 4px 24px rgba(46,204,113,0.40), 0 0 0 8px rgba(46,204,113,0); }
}

/* dqc-confirm-wrap */
.dqc-confirm-wrap { margin-top: 4px; }

/* dqc-action-btns */
.dqc-action-btns {
  display: flex; flex-direction: column; gap: 12px; margin-top: 14px;
}
.dqc-action-btns.hidden { display: none !important; }

/* Materialauswahl als Kachel */
.dqc-material-card {
  background: var(--surface2);
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 16px rgba(46,204,113,0.12);
}
.dqc-material-card.hidden { display: none !important; }
.dqc-material-card-head {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; color: var(--accent);
}
.dqc-material-icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.dqc-material-card .dqc-material-select {
  width: 100%;
  padding: 10px 14px;
  font-size: .9rem;
  border-color: var(--border2);
  border-radius: 3px;
}

/* Rechte Spalte: Blocked-State */
.dqc-right-panel-blocked #dqc-lupe-placeholder,
.dqc-right-panel-blocked #dqc-lupe-result { opacity: .35; pointer-events: none; }

#dqc-right-panel {
  transition: opacity .3s;
  position: relative;
}
#dqc-right-panel.is-blocked {
  opacity: .5;
  pointer-events: none;
}

.dqc-right-blocked {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  text-align: center;
}
.dqc-right-blocked.hidden { display: none !important; }
.dqc-right-blocked-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--text3);
}
.dqc-right-blocked-inner svg { opacity: .5; }
.dqc-right-blocked-inner p {
  font-size: .85rem; line-height: 1.6; margin: 0;
  max-width: 200px; color: var(--text3);
}
.dqc-right-blocked-inner strong { color: var(--text2); }

/* Klick-Hinweis auf Canvas nach Bestätigung */
.dqc-click-hint {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(46,204,113,0.95);
  color: #fff;
  font-size: .78rem; font-weight: 600;
  padding: 7px 14px; border-radius: 4px;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  pointer-events: none;
  animation: dqc-hint-fade 3s ease-in-out forwards;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  z-index: 10;
}
.dqc-click-hint svg { width: 14px; height: 14px; flex-shrink: 0; }
.dqc-click-hint.hidden { display: none !important; }
@keyframes dqc-hint-fade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Lupe-Placeholder nach Bestätigung */
.dqc-click-prompt {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.dqc-click-prompt-icon { width: 48px; height: 48px; color: var(--accent); }
.dqc-lupe-placeholder p { max-width: 220px; }

/* Badge B wird aktiv nach Bestätigung */
.dqc-step-mini-badge.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px rgba(46,204,113,0.40);
}

/* ── Hinweis-Box Schritt 2 ── */
.dqc-hint-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.6;
}
.dqc-hint-icon {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.dqc-hint-box strong { color: var(--text); }
.dqc-hint-tip {
  display: block;
  margin-top: 6px;
  color: var(--text3);
  font-size: .82rem;
}
.dqc-hint-tip strong { color: var(--text2); }
/* Privacy notice displayed next to the upload rights confirmation. */
.dqc-privacy-inline {
  margin: 12px 0 0;
  color: #7d8a82;
  font-size: 13px;
  line-height: 1.55;
}

.dqc-privacy-inline strong {
  color: #b8c7bd;
}

.dqc-privacy-inline a {
  color: #4ade80;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- dqc-mockup.css ---- */
#dqc-mockup-open[hidden], .dqc-mockup[hidden] { display: none !important; }
.dqc-mockup { margin: 28px 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.dqc-mockup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dqc-mockup-head > div { display: flex; align-items: center; gap: 10px; }
.dqc-mockup h3 { margin: 0; color: var(--text) !important; font-size: 20px !important; }
#dqc-mockup-close { border: 0; padding: 0 4px; background: transparent; color: var(--text2); font-size: 28px; line-height: 1; cursor: pointer; }
.dqc-mockup-intro, .dqc-mockup-status { color: var(--text2) !important; }
.dqc-mockup-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.dqc-mockup-scene { appearance: none; border: 1px solid var(--border2); border-radius: 4px; padding: 7px; background: var(--surface2); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.dqc-mockup-scene span { display: block; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 7px; border-radius: 2px; background: var(--bg) center / cover no-repeat; }
.dqc-mockup-scene.is-active { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }
.dqc-mockup-stage { width: 100%; margin-inline: auto; overflow: hidden; border-radius: 4px; background: var(--surface2); }
.dqc-mockup-stage canvas { display: block; width: 100%; height: 100%; }
.dqc-mockup-status { min-height: 22px; margin: 10px 0 16px; font-size: 14px; }
@media (max-width: 600px) { .dqc-mockup { padding: 16px; } .dqc-mockup-scenes { gap: 6px; } .dqc-mockup-scene { padding: 5px; font-size: 11px; } }
.dqc-mockup-material-label{display:block;margin:16px 0 6px;font-weight:600}.dqc-mockup-material{max-width:280px;margin-bottom:14px}
#dqc-material-light{display:block;width:min(100%,360px);min-height:36px;accent-color:#39d879;cursor:pointer}

/* ---- dqc-wallcheck.css ---- */
/* Wallcheck 3.12: typography and responsive UI only. Material canvases are untouched. */
@font-face {
  font-family: DQCWallcheck;
  src: url('/wp-content/uploads/2026/04/DINOT-CondMedium.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: DQCWallcheck;
  src: url('/wp-content/uploads/2026/04/DINOT-CondBlack.woff2') format('woff2');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

#dqc-app.dqc-app {
  --bg: #0c130f;
  --surface: #151d18;
  --surface2: #1b2920;
  --border: #43564a;
  --border2: #607565;
  --accent: #86efac;
  --accent-hover: #a7f3c2;
  --accent-dim: #203c2b;
  --text: #f6faf7;
  --text2: #d1dbd4;
  --text3: #b6c6bb;
  --green: #86efac;
  --green-dim: #203c2b;
  --yellow: #fbbf24;
  --yellow-dim: #362d17;
  --red-dim: #3b2020;
  --dqc-button-ink: #0c2114;
  --dqc-disabled-bg: #2a3b30;
  --dqc-disabled-ink: #bdcbc1;
  --dqc-error: #ffb4ab;
  width: 100%;
  box-sizing: border-box;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 20px 28px;
  font: 400 18px/1.6 DQCWallcheck, 'Arial Narrow', Arial, sans-serif;
  color: var(--text);
  color-scheme: dark;
  container: dqc-wallcheck / inline-size;
  -webkit-text-size-adjust: 100%;
}

html[data-caspar-theme="light"] #dqc-app.dqc-app {
  --bg: #fff;
  --surface: #fff;
  --surface2: #eaf3ec;
  --border: #b8cbbb;
  --border2: #819d89;
  --accent: #176b3c;
  --accent-hover: #11522e;
  --accent-dim: #e5f2e7;
  --text: #111;
  --text2: #25382c;
  --text3: #385743;
  --green: #176b3c;
  --green-dim: #e5f2e7;
  --yellow: #845300;
  --yellow-dim: #fff3d6;
  --red-dim: #ffebe8;
  --dqc-button-ink: #fff;
  --dqc-disabled-bg: #dbe5dd;
  --dqc-disabled-ink: #405747;
  --dqc-error: #a12921;
  color: var(--text) !important;
  color-scheme: light;
}

#dqc-app *, #dqc-app *::before, #dqc-app *::after { box-sizing: border-box; }
#dqc-app, #dqc-app * { font-family: DQCWallcheck, 'Arial Narrow', Arial, sans-serif !important; }
#dqc-app :is(p, label, button, input, select) { letter-spacing: normal; }
#dqc-app :is(h2, h3, strong, b) { font-weight: 700; }
#dqc-app :is(p, h2, h3) { text-wrap: pretty; }
#dqc-app :is(button, input, select, a, [role="button"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
#dqc-app :is(.dqc-card, .dqc-preview-section, .dqc-mockup) {
  min-width: 0;
  padding: 28px;
  border-radius: 6px;
  backdrop-filter: none;
}
#dqc-app .dqc-card-head { gap: 16px; margin-bottom: 24px; }
#dqc-app .dqc-card-head > div { min-width: 0; }
#dqc-app .dqc-card-head h2 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
#dqc-app .dqc-card-head p { font-size: 18px; line-height: 1.5; color: var(--text2); }
#dqc-app .dqc-step-badge { width: 44px; height: 44px; font-size: 20px; box-shadow: none; color: var(--dqc-button-ink); }
#dqc-app .dqc-step-mini-badge { width: 36px; height: 36px; font-size: 18px; box-shadow: none; color: var(--dqc-button-ink); }
#dqc-app .dqc-step-mini-badge--dim { color: var(--text3); }
#dqc-app .dqc-step-indicator { align-items: flex-start; gap: 12px; }
#dqc-app .dqc-step-indicator > div { min-width: 0; }
#dqc-app .dqc-step-indicator-title { font-size: 23px; line-height: 1.25; }
#dqc-app .dqc-step-indicator-hint { font-size: 16px; line-height: 1.5; }

#dqc-app .dqc-dropzone { padding: 34px 20px; margin-bottom: 18px; }
#dqc-app .dqc-dz-inner { gap: 12px; }
#dqc-app .dqc-dz-text { gap: 4px; }
#dqc-app .dqc-dz-text strong { font-size: 24px; line-height: 1.3; }
#dqc-app .dqc-dz-text span { font-size: 18px; line-height: 1.5; }
#dqc-app .dqc-dz-formats { font-size: 16px !important; color: var(--text2) !important; }
#dqc-app .dqc-file-chip {
  font-size: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
#dqc-app .dqc-disclaimer { padding: 18px 20px; margin-bottom: 18px; }
#dqc-app .dqc-disclaimer-label { font-size: 18px; line-height: 1.55; color: var(--text); gap: 12px; }
#dqc-app .dqc-disclaimer-label input[type="checkbox"] { width: 20px; height: 20px; margin: 4px 0 0; }
#dqc-app .dqc-privacy-inline { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text2) !important; }
#dqc-app .dqc-privacy-inline strong { color: var(--text) !important; }
#dqc-app .dqc-privacy-inline a { color: var(--accent) !important; text-decoration: underline !important; text-underline-offset: 2px; }
#dqc-app :is(.dqc-privacy, #dqc-prog-label) { font-size: 16px; line-height: 1.55; color: var(--text2); }

#dqc-app .dqc-btn {
  min-height: 48px;
  max-width: 100%;
  justify-content: center;
  padding: 11px 22px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
#dqc-app .dqc-btn-sm { min-height: 44px; padding: 9px 16px; font-size: 17px; }
#dqc-app :is(.dqc-btn-primary, .dqc-btn-confirm) { color: var(--dqc-button-ink) !important; box-shadow: none; animation: none; }
#dqc-app :is(.dqc-btn-primary, .dqc-btn-confirm):hover { box-shadow: none; }
#dqc-app .dqc-btn-confirm { font-size: 20px; font-weight: 700; margin-top: 8px; }
#dqc-app .dqc-btn:disabled {
  opacity: 1;
  background: var(--dqc-disabled-bg);
  color: var(--dqc-disabled-ink) !important;
  box-shadow: none;
  border: 1px solid var(--border);
  cursor: not-allowed;
}
#dqc-app .dqc-btn:disabled:hover { background: var(--dqc-disabled-bg); }
#dqc-app .dqc-btn svg { width: 20px; height: 20px; }

#dqc-app .dqc-img-info-bar { padding: 16px; align-items: flex-start; }
#dqc-app .dqc-ib-thumb { width: 64px; height: 64px; flex-shrink: 0; }
#dqc-app .dqc-ib-meta { min-width: 0; overflow-wrap: anywhere; }
#dqc-app .dqc-ib-meta span { font-size: 16px; color: var(--text2); line-height: 1.5; }
#dqc-app .dqc-ib-meta .dqc-ib-name { font-size: 20px; color: var(--text); }
#dqc-app .dqc-ib-meta .dqc-ib-px { font-size: 18px; }
#dqc-app .dqc-dim-row { gap: 16px; }
#dqc-app .dqc-field { min-width: 0; }
#dqc-app .dqc-field label { font-size: 18px; line-height: 1.4; color: var(--text); text-transform: none; }
#dqc-app .dqc-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
}
#dqc-app input::placeholder { color: var(--text3); opacity: 1; }
#dqc-app .dqc-field-sep { padding-bottom: 10px; font-size: 24px; }
#dqc-app .dqc-hint-box { font-size: 18px; line-height: 1.6; }
#dqc-app .dqc-hint-tip { font-size: 17px; color: var(--text2); }

#dqc-app .dqc-quality-banner { padding: 20px; }
#dqc-app .dqc-qb-title { font-size: 25px; line-height: 1.3; margin-bottom: 6px; }
#dqc-app .dqc-qb-text { font-size: 18px; line-height: 1.6; }
#dqc-app .dqc-metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#dqc-app .dqc-metric { min-width: 0; padding: 16px; overflow-wrap: anywhere; }
#dqc-app .dqc-m-label { font-size: 15px; letter-spacing: .035em; line-height: 1.4; color: var(--text2); }
#dqc-app .dqc-m-val { font-size: 24px; line-height: 1.3; }
#dqc-app .dqc-m-sub { font-size: 16px; line-height: 1.5; }
#dqc-app .dqc-alert { font-size: 18px; line-height: 1.55; flex-wrap: wrap; gap: 6px; }
#dqc-app .dqc-alert-error { color: var(--dqc-error); }
#dqc-app .dqc-alert-warn { color: var(--yellow); }
#dqc-app .dqc-ratio-notice { white-space: normal; overflow: visible; text-overflow: clip; }
#dqc-app .dqc-two-col { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
#dqc-app .dqc-two-col:has(#dqc-panel-layout-head) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
#dqc-app .dqc-preview-section { padding: 22px; }
#dqc-app .dqc-ci-badge { font-size: 16px; line-height: 1.5; white-space: normal; }
#dqc-app .dqc-preview-head { flex-wrap: wrap; gap: 10px; }
#dqc-app .dqc-preview-head h3 { font-size: 24px; line-height: 1.3; }
#dqc-app .dqc-preview-hint { font-size: 16px; color: var(--text2); }
#dqc-app .dqc-material-card { padding: 16px; box-shadow: none; }
#dqc-app .dqc-material-card-head { font-size: 20px; line-height: 1.35; }
#dqc-app .dqc-material-card-head label { margin: 0; font-size: inherit; color: inherit; cursor: pointer; }
#dqc-app .dqc-material-select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 100%;
}
#dqc-app .dqc-material-label { font-size: 18px; white-space: normal; }
#dqc-app .dqc-panel-layout-head { flex-wrap: wrap; gap: 12px; padding: 14px; }
#dqc-app .dqc-panel-layout-head > div { min-width: 0; }
#dqc-app .dqc-panel-layout-head strong { font-size: 20px; line-height: 1.3; }
#dqc-app .dqc-panel-layout-head span { display: block; font-size: 16px; line-height: 1.4; }
#dqc-app .dqc-panel-layout-head > div:last-child { flex-wrap: wrap; font-size: 16px; white-space: normal; }
#dqc-app .dqc-panel-layout-head input { width: 18px; height: 18px; accent-color: var(--accent); }
#dqc-app .dqc-bahn-labels { gap: 0; }
#dqc-app .dqc-bahn-svg:empty { display: none; }
#dqc-app .dqc-bahn-label { flex-wrap: wrap; gap: 3px; font-size: 15px; padding: 6px 1px; }
#dqc-app .dqc-bahn-label b { width: 24px; height: 24px; flex-basis: 24px; font-size: 14px; }
#dqc-app .dqc-bahn-label span { display: block; width: 100%; white-space: normal; overflow-wrap: anywhere; }
#dqc-app :is(.dqc-lupe-placeholder, .dqc-right-blocked) { padding: 28px 12px; }
#dqc-app :is(.dqc-lupe-placeholder p, .dqc-right-blocked-inner p) { font-size: 18px; line-height: 1.6; max-width: 320px; color: var(--text2); }
#dqc-app #dqc-right-panel.is-blocked { opacity: 1; }
#dqc-app .dqc-lupe-result-head { flex-wrap: wrap; gap: 8px; }
#dqc-app .dqc-lupe-result-label { font-size: 16px; letter-spacing: .025em; line-height: 1.5; }
#dqc-app :is(.dqc-lupe-instruction, .dqc-lupe-loader) { font-size: 17px; color: var(--text2); }
#dqc-app .dqc-click-hint {
  font-size: 16px;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: calc(100% - 16px);
  text-align: center;
  color: #0c2114;
}

#dqc-app .dqc-mockup { margin: 24px 0; }
#dqc-app .dqc-mockup-head > div { min-width: 0; align-items: flex-start; }
#dqc-app .dqc-mockup h3 { font-size: 28px !important; line-height: 1.25; }
#dqc-app :is(.dqc-mockup-intro, .dqc-mockup-status) { font-size: 18px; line-height: 1.6; color: var(--text2) !important; }
#dqc-app .dqc-mockup-scenes { gap: 14px; }
#dqc-app .dqc-mockup-scene { padding: 10px; min-width: 0; font-size: 20px; line-height: 1.4; }
#dqc-app .dqc-mockup-material-label { font-size: 20px; line-height: 1.4; margin: 18px 0 8px; }
#dqc-app .dqc-mockup-material { max-width: 420px; }
#dqc-app #dqc-material-light { width: min(100%, 420px); min-height: 44px; accent-color: var(--accent); }
#dqc-app .dqc-mockup-stage canvas { font-family: inherit; }
#dqc-app #dqc-mockup-close { min-width: 44px; min-height: 44px; }

@media (max-width: 960px) {
  #dqc-app .dqc-two-col, #dqc-app .dqc-two-col:has(#dqc-panel-layout-head) { grid-template-columns: minmax(0, 1fr); }
  #dqc-app .dqc-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container dqc-wallcheck (max-width: 900px) {
  #dqc-app .dqc-two-col, #dqc-app .dqc-two-col:has(#dqc-panel-layout-head) { grid-template-columns: minmax(0, 1fr); }
  #dqc-app .dqc-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #dqc-app.dqc-app { padding: 0 16px 22px; }
  #dqc-app :is(.dqc-card, .dqc-preview-section, .dqc-mockup) { padding: 20px 18px; }
  #dqc-app .dqc-card-head { gap: 12px; }
  #dqc-app .dqc-card-head h2 { font-size: 27px; }
  #dqc-app .dqc-dropzone { padding: 28px 12px; }
  #dqc-app .dqc-disclaimer { padding: 16px; }
  #dqc-app .dqc-dim-row { gap: 8px; }
  #dqc-app .dqc-field input { padding: 10px; }
  #dqc-app .dqc-btn { width: 100%; }
  #dqc-app .dqc-quality-banner { padding: 18px 16px; gap: 10px; }
  #dqc-app .dqc-qb-title { font-size: 23px; }
  #dqc-app .dqc-metric { padding: 14px 12px; }
  #dqc-app .dqc-m-val { font-size: 22px; }
  #dqc-app .dqc-mockup-scenes { gap: 8px; }
  #dqc-app .dqc-mockup-scene { padding: 7px; font-size: 18px; }
  #dqc-app .dqc-panel-layout-head > div:last-child { gap: 8px; }
  #dqc-app .dqc-footer-actions { gap: 8px; }
}
@container dqc-wallcheck (max-width: 420px) {
  #dqc-app .dqc-mockup-scenes { grid-template-columns: minmax(0, 1fr); }
  #dqc-app .dqc-mockup-scene { display: flex; align-items: center; gap: 12px; }
  #dqc-app .dqc-mockup-scene span { width: 38%; flex: 0 0 38%; margin: 0; }
  #dqc-app .dqc-panel-layout-head { padding: 12px; }
}
@media (max-width: 360px) {
  #dqc-app .dqc-metrics-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #dqc-app *, #dqc-app *::before, #dqc-app *::after { animation: none !important; transition: none !important; }
}

/* ---- dqc-v4.css ---- */
/* Wallcheck 4 – neue Bausteine. Nutzt die Farbvariablen aus dqc-wallcheck.css (Hell/Dunkel). */

#dqc-app .hidden { display: none !important; }
#dqc-app [hidden] { display: none !important; }
#dqc-app .dqc-muted { color: var(--text3); font-size: 16px; margin: 8px 0; }

/* Modus-Auswahl */
#dqc-app .dqc-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
#dqc-app .dqc-mode-opt { position: relative; display: block; cursor: pointer; }
#dqc-app .dqc-mode-opt input { position: absolute; opacity: 0; pointer-events: none; }
#dqc-app .dqc-mode-opt > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 6px; background: var(--surface); transition: border-color .15s, background .15s; }
#dqc-app .dqc-mode-opt strong { font-size: 19px; }
#dqc-app .dqc-mode-opt small { font-size: 15px; color: var(--text2); line-height: 1.4; }
#dqc-app .dqc-mode-opt input:checked + span { border-color: var(--accent); background: var(--accent-dim); }
#dqc-app .dqc-mode-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
#dqc-app .dqc-nachbau-tips ul { margin: 6px 0 0; padding-left: 20px; }
#dqc-app .dqc-nachbau-tips li { margin: 2px 0; }

/* Schritt 2 */
#dqc-app .dqc-notes { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--yellow); background: var(--yellow-dim); border-radius: 4px; font-size: 16px; }
#dqc-app .dqc-notes p { margin: 4px 0; }
#dqc-app .dqc-scan-row { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
#dqc-app .dqc-scan-row small { color: var(--text2); font-size: 15px; }
#dqc-app .dqc-distance { border: 0; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#dqc-app .dqc-distance legend { font-size: 18px; font-weight: 700; margin-bottom: 10px; padding: 0; }
#dqc-app .dqc-distance label { position: relative; cursor: pointer; }
#dqc-app .dqc-distance input { position: absolute; opacity: 0; pointer-events: none; }
#dqc-app .dqc-distance label > span { display: flex; flex-direction: column; padding: 12px 14px; border: 2px solid var(--border); border-radius: 6px; height: 100%; background: var(--surface); }
#dqc-app .dqc-distance strong { font-size: 18px; }
#dqc-app .dqc-distance small { font-size: 15px; color: var(--text2); line-height: 1.35; }
#dqc-app .dqc-distance input:checked + span { border-color: var(--accent); background: var(--accent-dim); }
#dqc-app .dqc-distance input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
#dqc-app .dqc-material-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 22px; }
#dqc-app .dqc-material-field small { font-weight: 400; color: var(--text2); font-size: 15px; }
#dqc-app select.dqc-material-select, #dqc-app .dqc-field input, #dqc-app .dqc-field select, #dqc-app .dqc-field textarea, #dqc-app .dqc-tb-field input[type="number"] {
  width: 100%; min-height: 46px; padding: 8px 12px; font-size: 18px; color: var(--text); background: var(--surface2); border: 1px solid var(--border2); border-radius: 4px;
}
#dqc-app .dqc-field textarea { min-height: 110px; resize: vertical; }

/* Detailprüfung */
#dqc-app .dqc-checks { margin: 0 0 22px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
#dqc-app .dqc-checks summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 19px; }
#dqc-app .dqc-checks-list { list-style: none; margin: 0; padding: 0 18px 14px; display: grid; gap: 8px; }
#dqc-app .dqc-ck { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0 8px 14px; border-left: 4px solid var(--border2); font-size: 16px; line-height: 1.45; }
#dqc-app .dqc-ck strong { font-size: 16px; }
#dqc-app .dqc-ck-ok { border-color: var(--green); }
#dqc-app .dqc-ck-warn { border-color: var(--yellow); }
#dqc-app .dqc-ck-bad { border-color: #f08a5d; }
#dqc-app .dqc-ck-info { border-color: var(--border2); }

/* Rapport */
#dqc-app .dqc-rapport { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); }
#dqc-app .dqc-rapport-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 12px; font-size: 19px; }
#dqc-app #dqc-rapport-status { font-size: 16px; color: var(--text2); }
#dqc-app #dqc-rapport-status.is-warn { color: var(--yellow); }
#dqc-app .dqc-rapport-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
#dqc-app .dqc-rapport-hint { margin: 10px 0 0; font-size: 16px; color: var(--text2); }

/* Crop & Plan über dem Vorschaubild */
#dqc-app .dqc-canvas-wrap { position: relative; width: 100%; line-height: 0; }
#dqc-app #dqc-canvas { display: block; width: 100%; height: auto; }
#dqc-app .dqc-crop-overlay { position: absolute; inset: 0; overflow: hidden; }
#dqc-app .dqc-crop-rect { position: absolute; cursor: grab; touch-action: none; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); border: 2px solid var(--yellow); }
#dqc-app .dqc-crop-rect.proportional-ok { border-color: var(--accent); }
#dqc-app .dqc-crop-rect.is-dragging { cursor: grabbing; }
#dqc-app .dqc-crop-rect::before { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.4) 33.1%, rgba(255,255,255,.4) 33.4%, transparent 33.4%, transparent 66.5%, rgba(255,255,255,.4) 66.5%, rgba(255,255,255,.4) 66.8%, transparent 66.8%),
  linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.4) 33.1%, rgba(255,255,255,.4) 33.4%, transparent 33.4%, transparent 66.5%, rgba(255,255,255,.4) 66.5%, rgba(255,255,255,.4) 66.8%, transparent 66.8%); }
#dqc-app .dqc-plan-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#dqc-app .dqc-seam { stroke: #2563eb; }
#dqc-app .dqc-seam.is-flagged { stroke: #f59e0b; }
#dqc-app .dqc-op { fill: rgba(255, 255, 255, .55); stroke: #111; }
#dqc-app .dqc-op-door { fill: rgba(240, 236, 228, .8); }
#dqc-app .dqc-op-window { fill: rgba(220, 236, 255, .75); }
#dqc-app .dqc-op-slope { fill: rgba(255, 255, 255, .7); stroke-dasharray: 4 3; }
#dqc-app .dqc-bahn-labels { display: none; margin-top: 6px; }
#dqc-app .dqc-bahn-labels.visible { display: flex; }
#dqc-app .dqc-bahn-label { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-right: 1px dashed var(--border2); font-size: 14px; line-height: 1.2; min-width: 0; overflow: hidden; }
#dqc-app .dqc-bahn-label:last-child { border-right: 0; }
#dqc-app .dqc-bahn-label b { color: var(--accent); font-size: 16px; }
#dqc-app .dqc-panel-layout-head { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 16px; }
#dqc-app .dqc-panel-layout-head span { display: block; color: var(--text2); font-size: 15px; }
#dqc-app .dqc-action-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
#dqc-app .dqc-lupe-img-result-wrap { position: relative; }
#dqc-app .dqc-lupe-seams { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#dqc-app .dqc-lupe-seams line { stroke: #2563eb; stroke-width: .6; stroke-dasharray: 2 1.6; vector-effect: non-scaling-stroke; }
#dqc-app .dqc-lupe-note { font-size: 15px; color: var(--text2); margin: 8px 0 0; min-height: 1em; }

/* Abschnitte C–E */
#dqc-app .dqc-section { margin-top: 28px; padding: 28px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
#dqc-app .dqc-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
#dqc-app .dqc-section-head h3 { margin: 0; font-size: 26px; line-height: 1.2; }
#dqc-app .dqc-section-head p { margin: 4px 0 0; color: var(--text2); font-size: 17px; }
#dqc-app .dqc-step-mini-badge.is-active { background: var(--accent); color: var(--dqc-button-ink); }

#dqc-app .dqc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
#dqc-app .dqc-tab { appearance: none; border: 0; background: none; color: var(--text2); padding: 10px 16px; font-size: 18px; font-weight: 700; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
#dqc-app .dqc-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

#dqc-app .dqc-3d-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 12px; }
#dqc-app .dqc-tb-field { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text2); min-width: 170px; flex: 1 1 170px; }
#dqc-app .dqc-tb-field select { min-height: 42px; font-size: 17px; }
#dqc-app .dqc-tb-range input { width: 100%; accent-color: var(--accent); min-height: 42px; }
#dqc-app .dqc-seg { display: inline-flex; border: 1px solid var(--border2); border-radius: 4px; overflow: hidden; }
#dqc-app .dqc-seg-btn { appearance: none; border: 0; background: var(--surface2); color: var(--text); padding: 9px 16px; font-size: 16px; cursor: pointer; min-height: 42px; }
#dqc-app .dqc-seg-btn.is-active { background: var(--accent); color: var(--dqc-button-ink); }

#dqc-app .dqc-3d-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 72vh; min-height: 300px; background: radial-gradient(ellipse at center, #3a3f3b 0%, #141815 100%); border-radius: 6px; overflow: hidden; line-height: 0; }
#dqc-app .dqc-3d-canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; outline: none; }
#dqc-app .dqc-3d-canvas:active { cursor: grabbing; }
#dqc-app .dqc-3d-status { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #eef3ef; font-size: 17px; line-height: 1.4; text-align: center; padding: 20px; background: rgba(12, 19, 15, .55); transition: opacity .5s; z-index: 2; }
#dqc-app .dqc-3d-status.is-hidden { opacity: 0; pointer-events: none; }
#dqc-app .dqc-3d-status.is-error .dqc-spinner { display: none; }
#dqc-app .dqc-3d-help { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: 13px; line-height: 1.3; color: #fff; background: rgba(0, 0, 0, .45); padding: 5px 9px; border-radius: 3px; pointer-events: none; }
#dqc-app .dqc-3d-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
#dqc-app .dqc-3d-actions #dqc-3d-shot { margin-left: auto; }
#dqc-app .dqc-check { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.45; cursor: pointer; }
#dqc-app .dqc-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
#dqc-app .dqc-room-note { margin: 12px 0 0; font-size: 15px; color: var(--text3); }

/* Eigenes Raumfoto */
#dqc-app .dqc-own-intro { margin: 0 0 12px; font-size: 17px; }
#dqc-app .dqc-own-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
#dqc-app .dqc-file-btn { cursor: pointer; }
#dqc-app .dqc-own-stage { position: relative; line-height: 0; background: var(--surface2); border-radius: 6px; min-height: 200px; }
#dqc-app #dqc-own-canvas { width: 100%; height: auto; display: block; border-radius: 6px; }
#dqc-app #dqc-own-handles { position: absolute; inset: 0; }
#dqc-app .dqc-own-h { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgba(46, 204, 113, .95); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); cursor: grab; touch-action: none; }
#dqc-app .dqc-own-h:focus-visible { outline: 3px solid #fff; }
#dqc-app .dqc-own-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 17px; line-height: 1.4; }

/* Bahnen & Bedarf */
#dqc-app .dqc-plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
#dqc-app .dqc-table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: 17px; }
#dqc-app .dqc-table th { text-align: left; font-weight: 400; color: var(--text2); padding: 7px 10px 7px 0; border-bottom: 1px solid var(--border); width: 46%; }
#dqc-app .dqc-table td { padding: 7px 0; border-bottom: 1px solid var(--border); }
#dqc-app .dqc-table small { color: var(--text3); font-size: 14px; }
#dqc-app .dqc-seam-ok { color: var(--green); font-size: 16px; }
#dqc-app .dqc-seam-warn { margin: 12px 0 6px; padding: 10px 14px; border-left: 3px solid #f59e0b; background: var(--yellow-dim); font-size: 16px; line-height: 1.5; }
#dqc-app .dqc-seam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16px; }
#dqc-app .dqc-seam-list li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#dqc-app .dqc-openings > strong { font-size: 19px; }
#dqc-app .dqc-op-row { display: grid; grid-template-columns: 100px repeat(4, minmax(0, 1fr)) 36px; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
#dqc-app .dqc-op-row label { display: flex; flex-direction: column; gap: 3px; color: var(--text2); }
#dqc-app .dqc-op-row input { width: 100%; min-height: 40px; padding: 6px 8px; font-size: 16px; color: var(--text); background: var(--surface2); border: 1px solid var(--border2); border-radius: 4px; }
#dqc-app .dqc-op-row strong { align-self: center; font-size: 16px; }
#dqc-app .dqc-op-del { appearance: none; border: 1px solid var(--border2); background: transparent; color: var(--text); width: 36px; height: 40px; border-radius: 4px; font-size: 20px; cursor: pointer; }
#dqc-app .dqc-openings-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
#dqc-app .dqc-slope { display: flex; flex-wrap: wrap; gap: 12px; }
#dqc-app .dqc-slope .dqc-tb-field { min-width: 140px; }

/* Ergebnis verwenden */
#dqc-app .dqc-use-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#dqc-app .dqc-use-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); }
#dqc-app .dqc-use-card h4 { margin: 0; font-size: 21px; }
#dqc-app .dqc-use-card p { margin: 0; font-size: 16px; color: var(--text2); line-height: 1.5; flex: 1; }
#dqc-app .dqc-use-card--accent { border-color: var(--accent); }
#dqc-app .dqc-use-card .dqc-btn { align-self: flex-start; }
#dqc-app .dqc-share-out { display: flex; flex-direction: column; gap: 8px; }
#dqc-app .dqc-share-url { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text2); }
#dqc-app .dqc-share-url input { width: 100%; padding: 8px; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border2); border-radius: 4px; }
#dqc-app .dqc-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

#dqc-app .dqc-inquiry { margin-top: 22px; padding: 22px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface2); }
#dqc-app .dqc-inquiry h4 { margin: 0 0 14px; font-size: 22px; }
#dqc-app .dqc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
#dqc-app .dqc-inquiry .dqc-field { display: flex; flex-direction: column; gap: 4px; }
#dqc-app .dqc-inquiry .dqc-field label { font-size: 16px; }
#dqc-app .dqc-inquiry .dqc-check { margin: 10px 0 0; display: flex; }
#dqc-app .dqc-inquiry #dqc-inquiry-send { margin-top: 16px; }
#dqc-app .dqc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#dqc-app .dqc-alert-ok { border-left: 3px solid var(--green); background: var(--green-dim); padding: 12px 16px; margin-top: 12px; }

/* Teilen-Ansicht */
#dqc-app.dqc-share-view .dqc-share-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 8px; }
#dqc-app .dqc-share-kicker { color: var(--accent); font-size: 16px; text-transform: uppercase; letter-spacing: .06em !important; }
#dqc-app.dqc-share-view h2 { font-size: 36px; margin: 4px 0; }
#dqc-app.dqc-share-view .dqc-share-head p { color: var(--text2); margin: 0; }
#dqc-app .dqc-share-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
#dqc-app .dqc-share-expired { text-align: center; }

@container dqc-wallcheck (max-width: 760px) {
  #dqc-app .dqc-mode, #dqc-app .dqc-distance { grid-template-columns: 1fr; }
  #dqc-app .dqc-plan-grid, #dqc-app .dqc-use-grid, #dqc-app .dqc-form-grid, #dqc-app.dqc-share-view .dqc-share-head { grid-template-columns: 1fr; }
  #dqc-app .dqc-rapport-fields { grid-template-columns: 1fr 1fr; }
  #dqc-app .dqc-ck { grid-template-columns: 1fr; gap: 2px; }
  #dqc-app .dqc-op-row { grid-template-columns: repeat(4, minmax(0, 1fr)) 36px; }
  #dqc-app .dqc-op-row strong { grid-column: 1 / -1; }
  #dqc-app .dqc-section { padding: 18px; }
  #dqc-app .dqc-3d-stage { aspect-ratio: 4 / 3.4; }
  #dqc-app .dqc-3d-actions #dqc-3d-shot { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #dqc-app .dqc-3d-status { transition: none; }
}

/* Formen: Wand, Kreis, Sonderform */
#dqc-app .dqc-shape { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#dqc-app .dqc-shape legend { font-size: 18px; font-weight: 700; margin-bottom: 10px; padding: 0; }
#dqc-app .dqc-shape label { position: relative; cursor: pointer; }
#dqc-app .dqc-shape input { position: absolute; opacity: 0; pointer-events: none; }
#dqc-app .dqc-shape label > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border: 2px solid var(--border); border-radius: 6px; background: var(--surface); height: 100%; text-align: center; }
#dqc-app .dqc-shape svg { width: 40px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
#dqc-app .dqc-shape strong { font-size: 17px; }
#dqc-app .dqc-shape small { font-size: 14px; color: var(--yellow); }
#dqc-app .dqc-shape input:checked + span { border-color: var(--accent); background: var(--accent-dim); }
#dqc-app .dqc-shape input:checked + span svg { stroke: var(--accent); }
#dqc-app .dqc-shape input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
#dqc-app .dqc-circle-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin: 0 0 18px; }
#dqc-app .dqc-circle-row .dqc-field { display: flex; flex-direction: column; gap: 6px; max-width: 260px; }
#dqc-app .dqc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#dqc-app .dqc-chip { appearance: none; border: 1px solid var(--border2); background: var(--surface2); color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 16px; cursor: pointer; min-height: 42px; }
#dqc-app .dqc-chip.is-active { background: var(--accent); color: var(--dqc-button-ink); border-color: var(--accent); }
#dqc-app .dqc-special-row { display: grid; gap: 12px; margin: 0 0 18px; }
#dqc-app .dqc-special-row .dqc-field { display: flex; flex-direction: column; gap: 6px; }
#dqc-app .dqc-special-hint { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--yellow); background: var(--yellow-dim); font-size: 16px; line-height: 1.5; }
#dqc-app .dqc-shape-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#dqc-app .dqc-shape-mask path { fill: rgba(0, 0, 0, .5); }
#dqc-app .dqc-shape-outline { fill: none; stroke: #2ECC71; }
#dqc-app .dqc-use.is-special .dqc-use-card--accent { border-width: 2px; box-shadow: 0 0 0 3px var(--accent-dim); }
@container dqc-wallcheck (max-width: 760px) {
  #dqc-app .dqc-shape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#dqc-app .dqc-bahn-labels.visible { width: 100% !important; display: flex; gap: 0; }
#dqc-app .dqc-bahn-label { flex-direction: column; align-items: center; gap: 2px; padding: 6px 1px 2px; border-right: 1px dashed var(--border2); }
#dqc-app .dqc-bahn-label span { text-align: center; font-size: 14px; white-space: nowrap; width: auto; }
@container dqc-wallcheck (max-width: 760px) { #dqc-app .dqc-bahn-label span { display: none; } }
#dqc-app.dqc-share-view .dqc-share-head { margin-top: 0; color: var(--text); }
#dqc-app.dqc-share-view .dqc-share-expired { padding: 28px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }

/* ── Theme-feste Buttons (keine Theme-Farben, funktioniert in Hell & Dunkel) ── */
#dqc-app button, #dqc-app .dqc-btn, #dqc-app a.dqc-btn {
  text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important; box-shadow: none !important;
  font-family: DQCWallcheck, 'Arial Narrow', Arial, sans-serif !important; line-height: 1.3 !important; text-decoration: none !important;
}
#dqc-app .dqc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px !important; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
#dqc-app .dqc-btn-primary, #dqc-app .dqc-btn-confirm,
#dqc-app .dqc-btn-primary:visited { background: var(--accent) !important; color: var(--dqc-button-ink) !important; border: 1px solid var(--accent) !important; }
#dqc-app .dqc-btn-primary:hover, #dqc-app .dqc-btn-confirm:hover,
#dqc-app .dqc-btn-primary:focus-visible { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; color: var(--dqc-button-ink) !important; }
#dqc-app .dqc-btn-secondary, #dqc-app .dqc-btn-ghost, #dqc-app a.dqc-btn-ghost {
  background: transparent !important; color: var(--text) !important; border: 1px solid var(--border2) !important;
}
#dqc-app .dqc-btn-secondary:hover, #dqc-app .dqc-btn-ghost:hover, #dqc-app .dqc-btn-secondary:focus-visible, #dqc-app .dqc-btn-ghost:focus-visible {
  background: var(--surface2) !important; color: var(--text) !important; border-color: var(--accent) !important;
}
#dqc-app .dqc-btn:disabled, #dqc-app .dqc-btn[disabled] { background: var(--dqc-disabled-bg) !important; color: var(--dqc-disabled-ink) !important; border-color: var(--dqc-disabled-bg) !important; cursor: not-allowed; opacity: 1 !important; }
#dqc-app .dqc-btn svg { stroke: currentColor; }
#dqc-app :is(.dqc-tab, .dqc-seg-btn, .dqc-chip, .dqc-3d-zoom button, .dqc-3d-touch, .dqc-3d-done) { font-family: DQCWallcheck, 'Arial Narrow', Arial, sans-serif !important; }
#dqc-app .dqc-tab { background: transparent !important; color: var(--text2) !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; }
#dqc-app .dqc-tab:hover { color: var(--text) !important; background: transparent !important; }
#dqc-app .dqc-tab.is-active { color: var(--text) !important; border-bottom-color: var(--accent) !important; }
#dqc-app .dqc-seg-btn { background: var(--surface2) !important; color: var(--text) !important; border: 0 !important; border-radius: 0 !important; }
#dqc-app .dqc-seg-btn.is-active { background: var(--accent) !important; color: var(--dqc-button-ink) !important; }
#dqc-app .dqc-chip { background: var(--surface2) !important; color: var(--text) !important; border: 1px solid var(--border2) !important; border-radius: 999px !important; }
#dqc-app .dqc-chip.is-active, #dqc-app .dqc-chip:hover { background: var(--accent) !important; color: var(--dqc-button-ink) !important; border-color: var(--accent) !important; }
#dqc-app select:disabled { opacity: .75; cursor: not-allowed; }

/* ── Tabellen: Theme-Rahmen entfernen, Innenabstand ── */
#dqc-app table.dqc-table { border: 0 !important; border-collapse: collapse !important; background: transparent !important; margin: 14px 0 8px !important; }
#dqc-app table.dqc-table :is(tr, th, td) { border: 0 !important; background: transparent !important; }
#dqc-app table.dqc-table :is(th, td) { padding: 11px 14px !important; border-bottom: 1px solid var(--border) !important; vertical-align: top; text-align: left; color: var(--text); }
#dqc-app table.dqc-table th { color: var(--text2) !important; font-weight: 400 !important; padding-left: 4px !important; }
#dqc-app table.dqc-table tr:nth-child(odd) :is(th, td) { background: color-mix(in srgb, var(--surface2) 55%, transparent) !important; }
#dqc-app table.dqc-table small { margin-left: 4px; }

/* ── 3D: Zoom-Tasten und mobile Aktivierung ── */
#dqc-app .dqc-3d-zoom { position: absolute; right: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
#dqc-app .dqc-3d-zoom button { width: 44px; height: 44px; padding: 0; border-radius: 50% !important; border: 0 !important; background: rgba(20, 24, 21, .72) !important; color: #fff !important; font-size: 24px !important; line-height: 1 !important; cursor: pointer; }
#dqc-app .dqc-3d-zoom button:hover { background: rgba(20, 24, 21, .9) !important; }
#dqc-app .dqc-3d-touch { position: absolute; inset: auto 50% 18px auto; transform: translateX(50%); z-index: 3; padding: 12px 20px; border-radius: 999px !important; border: 0 !important; background: rgba(20, 24, 21, .8) !important; color: #fff !important; font-size: 17px !important; cursor: pointer; }
#dqc-app .dqc-3d-done { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 10px 16px; border-radius: 999px !important; border: 0 !important; background: var(--accent) !important; color: var(--dqc-button-ink) !important; font-size: 16px !important; }
#dqc-app .dqc-3d-stage.is-active { outline: 3px solid var(--accent); outline-offset: -3px; }
#dqc-app .dqc-circle-note { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--text2); }
#dqc-app .dqc-field-error { color: var(--dqc-error); font-size: 15px; }
#dqc-app input.is-invalid { border-color: var(--dqc-error) !important; }
#dqc-app .dqc-plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.dqc-share-holder { padding: 24px 0 8px; }
/* Bahnstöße (Vorschau oben): blau gestrichelt wie bisher, kritische Stöße orange */
#dqc-app .dqc-seam { stroke: #2563eb; stroke-width: 2px; stroke-dasharray: 8 7; vector-effect: non-scaling-stroke; }
#dqc-app .dqc-seam.is-flagged { stroke: #f59e0b; stroke-width: 3px; }
#dqc-app .dqc-bahn-badges { position: absolute; left: 0; right: 0; top: 10px; height: 0; pointer-events: none; }
#dqc-app .dqc-bahn-badges span { position: absolute; transform: translateX(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
#dqc-app .dqc-panel-layout-head { align-items: center; flex-wrap: wrap; }
#dqc-app .dqc-plan-toggle { margin-left: auto; font-size: 15px; white-space: nowrap; }
#dqc-app .dqc-lupe-seams, #dqc-app .dqc-lupe-note { display: none !important; }

/* Schritt 2 – erst Form & Maße, dann Abstand, Material, Prüfen */
#dqc-app .dqc-step2-more { position: relative; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); transition: opacity .35s ease, filter .35s ease; }
#dqc-app .dqc-step2-more.is-locked { opacity: .38; filter: grayscale(1); pointer-events: none; user-select: none; }
#dqc-app .dqc-step2-lock-hint { display: none; margin: 0 0 14px; font-size: 16px; color: var(--text2); }
#dqc-app .dqc-step2-more.is-locked .dqc-step2-lock-hint { display: block; }
#dqc-app .dqc-step2-more.is-revealed { animation: dqcReveal .6s ease; }
@keyframes dqcReveal { from { transform: translateY(6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #dqc-app .dqc-step2-more { transition: none; } #dqc-app .dqc-step2-more.is-revealed { animation: none; } }

/* Hinweis: Darstellung nur Annäherung */
#dqc-app .dqc-3d-badge { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 10px; border-radius: 3px; background: rgba(20, 24, 21, .72); color: #fff; font-size: 13px; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; pointer-events: none; }
#dqc-app .dqc-3d-stage.is-active .dqc-3d-badge { display: none; }
#dqc-app .dqc-approx-note { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--yellow); background: var(--yellow-dim); color: var(--text) !important; font-size: 16px; line-height: 1.5; }
