/* Seiten im Kundenbereich ohne eigene Logik: Hilfe, Anleitungen, Handy-App (gebaut von projekte/kundenbereich-dev/bauen.js,
   live unter /server/hilfe/… und /server/app/). Farben, Knöpfe (.btn), Karten (.card), Schilder (.badge) und .seitentitel kommen
   aus thema.css, Kopf, Seitenleiste und Tab-Leiste aus kopf.css. Breiten über Container-Abfragen (.kb-wrap): neben der
   Seitenleiste ist weniger Platz, als das Fenster breit ist. */
.kb-wrap{max-width:1100px;margin:0 auto;padding:40px 24px 64px;container-type:inline-size}
@media (max-width:600px){ .kb-wrap{padding:28px 16px 48px} }
.kb-kopf{margin-bottom:28px}
.kb-kopf .lead{margin-top:10px;max-width:680px;color:var(--text-2);font-size:15px;line-height:1.6}
.kb-pfad{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;color:var(--muted);font-size:13px}
.kb-pfad a{color:var(--text-2)}
.kb-pfad a:hover{color:var(--accent-text);text-decoration:none}
.kb-block{margin-top:40px}
.kb-h2{margin-bottom:14px;font:700 22px/1.1 var(--kopf);letter-spacing:.02em;text-transform:uppercase;color:var(--text)}
svg.kb-i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;stroke-linejoin:miter}
.btn svg.kb-i{width:16px;height:16px}
.kb-ic{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:var(--r-sm);border:1px solid var(--accent-line);background:var(--accent-weak);color:var(--accent-text)}
.kb-knoepfe{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.kb-voll{width:100%}
/* hidden gilt auch für Knöpfe und Schilder (.btn/.badge setzen display) */
.kb-wrap [hidden]{display:none !important}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Hilfe: Anleitungen als Karten */
.kb-karten{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kb-karte{display:flex;align-items:center;gap:14px;padding:16px 18px;color:var(--text);transition:border-color .15s,background .15s}
.kb-karte:hover{border-color:var(--accent-line);background:var(--surface-2);text-decoration:none}
.kb-karte > span:nth-child(2){flex:1;min-width:0}
.kb-karte b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.kb-karte small{display:block;margin-top:3px;color:var(--text-2);font-size:13px;line-height:1.5}
.kb-karte .kb-pfeil{color:var(--muted);transition:transform .15s,color .15s}
.kb-karte:hover .kb-pfeil{color:var(--accent-text);transform:translateX(2px)}

/* Hilfe: Fragen */
.kb-faq{padding:0 20px}
.kb-faq details{border-bottom:1px solid var(--border)}
.kb-faq details:last-child{border-bottom:0}
.kb-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;cursor:pointer;list-style:none;color:var(--text);font-size:15px;font-weight:600}
.kb-faq summary::-webkit-details-marker{display:none}
.kb-faq summary:hover{color:var(--accent-text)}
.kb-faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-sm)}
.kb-plus{position:relative;width:14px;height:14px;flex:none;color:var(--muted)}
.kb-plus::before,.kb-plus::after{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:currentColor;transition:transform .15s}
.kb-plus::after{transform:rotate(90deg)}
.kb-faq details[open] .kb-plus::after{transform:rotate(0)}
.kb-antwort{max-width:760px;padding:0 0 18px}
.kb-antwort p{color:var(--text-2);font-size:14.5px;line-height:1.65}
.kb-faq a,.kb-prosa a{color:var(--accent-text);text-decoration:underline;text-decoration-color:var(--accent-line);text-underline-offset:3px}
.kb-faq a:hover,.kb-prosa a:hover{color:var(--accent-hover)}

/* Hilfe: Kontakt */
.kb-zwei{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kb-kontakt{display:flex;gap:16px;padding:22px}
.kb-kontakt h2{margin-bottom:4px;font-size:16px;font-weight:600}
.kb-kontakt p{color:var(--text-2);font-size:14px;line-height:1.6}

/* Anleitung: Text und Leiste rechts */
.kb-text-raster{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}
.kb-prosa{padding:28px 32px 32px}
.kb-prosa > * + *{margin-top:16px}
.kb-prosa h2{margin-top:36px;font:700 24px/1.1 var(--kopf);letter-spacing:.02em;text-transform:uppercase;color:var(--text)}
.kb-prosa h2:first-child{margin-top:0}
.kb-prosa h3{color:var(--text);font-size:16px;font-weight:600;line-height:1.35}
.kb-prosa p,.kb-prosa li{color:var(--text-2);font-size:15px;line-height:1.7}
.kb-prosa strong,.kb-prosa b{color:var(--text);font-weight:600}
.kb-prosa ul{display:flex;flex-direction:column;gap:8px;list-style:none}
.kb-prosa ul li{position:relative;padding-left:20px}
.kb-prosa ul li::before{content:"";position:absolute;left:2px;top:11px;width:6px;height:6px;border-radius:2px;background:var(--accent)}
.kb-prosa code,.kb-faq code{padding:1px 6px;border:1px solid var(--border-2);border-radius:4px;background:var(--surface-2);color:var(--text);font:13px var(--mono);white-space:nowrap}
.kb-prosa .schrittliste{display:flex;flex-direction:column;border-top:1px solid var(--border);list-style:none;counter-reset:schritt}
.kb-prosa .schrittliste > li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--border);counter-increment:schritt}
.kb-prosa .schrittliste > li::before{content:counter(schritt,decimal-leading-zero);display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--accent-line);border-radius:var(--r-sm);
  background:var(--accent-weak);color:var(--accent-text);font:600 13px/1 var(--mono)}
.kb-prosa .schrittliste h3{margin:2px 0 4px;font:700 18px/1.15 var(--kopf);letter-spacing:.02em;text-transform:uppercase}
.kb-prosa .schrittliste p{font-size:14.5px;line-height:1.65}
.kb-prosa .schrittliste p + p{margin-top:8px}
.kb-prosa .hinweis-box{display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px;padding:16px 18px;border:1px solid var(--border-2);border-radius:var(--r);background:var(--surface-2)}
.kb-prosa .hinweis-box + .hinweis-box{margin-top:10px}
.kb-prosa .hinweis-box .ico{width:22px;height:22px;color:var(--accent-text);fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:square;stroke-linejoin:miter}
.kb-prosa .hinweis-box h3{margin-bottom:4px}
.kb-prosa .hinweis-box p{font-size:14.5px}
.kb-prosa .tabelle-box{overflow-x:auto;border:1px solid var(--border);border-radius:var(--r)}
.kb-prosa .tabelle{width:100%;min-width:560px;border-collapse:collapse;font-size:14px}
.kb-prosa .tabelle th,.kb-prosa .tabelle td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}
.kb-prosa .tabelle thead th{background:var(--surface-2);color:var(--muted);font:600 12px/1.3 var(--font);letter-spacing:.1em;text-transform:uppercase}
.kb-prosa .tabelle tbody th{color:var(--text-2);font-weight:500}
.kb-prosa .tabelle td{color:var(--text);font-variant-numeric:tabular-nums}
.kb-prosa .tabelle td.text{color:var(--text-2)}
.kb-prosa .tabelle tbody tr:last-child > *{border-bottom:0}
.kb-prosa .schild{display:inline-flex;align-items:center;height:20px;margin-left:6px;padding:0 6px;border:1px solid var(--border-2);border-radius:4px;color:var(--muted);
  font:600 10.5px/1 var(--font);letter-spacing:.08em;text-transform:uppercase;vertical-align:1px}
.stoff{display:inline-block;width:14px;height:14px;flex:none;border-radius:2px;vertical-align:-2px;box-shadow:inset -3px -3px 0 rgba(0,0,0,.3),inset 3px 3px 0 rgba(255,255,255,.22)}
.stoff.holz{background:#a7743d}.stoff.stein{background:#8d9095}.stoff.eisen{background:#d6d6d6}.stoff.diamant{background:#41d3c6}.stoff.netherit{background:#4d4247}
.kb-leiste{display:flex;flex-direction:column;gap:12px}
.kb-box{padding:18px}
.kb-box h2{margin-bottom:10px;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.kb-box ul{display:flex;flex-direction:column;list-style:none}
.kb-box li a{display:block;padding:9px 0;border-bottom:1px solid var(--border);color:var(--text-2);font-size:14px;line-height:1.4}
.kb-box li:last-child a{border-bottom:0}
.kb-box li a:hover{color:var(--text);text-decoration:none}
.kb-box li a[aria-current="page"]{color:var(--accent-text);font-weight:600}
.kb-box p{margin-bottom:14px;color:var(--text-2);font-size:14px;line-height:1.6}

/* Handy-App */
.kb-app-raster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kb-app-start,.kb-qr{display:flex;gap:18px;padding:22px}
.kb-qr{align-items:center}
.kb-app-symbol img{display:block;width:56px;height:56px;border-radius:14px}
.kb-app-start h2,.kb-qr h2{margin-bottom:4px;font-size:16px;font-weight:600}
.kb-app-start p,.kb-qr p{color:var(--text-2);font-size:14px;line-height:1.6}
.kb-qr-bild{flex:none;width:124px;height:124px;overflow:hidden;border-radius:var(--r-sm);background:#fff}
.kb-qr-bild svg{display:block;width:100%;height:100%}
.kb-qr code{display:inline-block;margin-top:10px;color:var(--text-2);font:12.5px var(--mono)}
.kb-geraete{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kb-geraet{padding:20px}
.kb-geraet.haupt{border-color:var(--accent-line)}
.kb-geraet-kopf{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kb-geraet h3{font:700 18px/1.15 var(--kopf);letter-spacing:.02em;text-transform:uppercase}
.kb-unter{display:block;margin-top:2px;color:var(--muted);font-size:12.5px}
.kb-schritte{display:flex;flex-direction:column;gap:10px;margin-top:14px;list-style:none;counter-reset:s}
.kb-schritte li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;color:var(--text-2);font-size:14px;line-height:1.55;counter-increment:s}
.kb-schritte li::before{content:counter(s);display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--border-2);border-radius:var(--r-sm);background:var(--surface-2);color:var(--text);font:600 12px/1 var(--mono)}
.kb-schritte b{color:var(--text);font-weight:600}
.kb-merkmale{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none}
.kb-merkmale li{display:flex;gap:14px;padding:18px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface)}
.kb-merkmale b{display:block;font-size:15px;font-weight:600}
.kb-merkmale p{margin-top:3px;color:var(--text-2);font-size:14px;line-height:1.55}
/* QR-Code nur, wo man ihn mit einem anderen Gerät scannen kann */
@media (max-width:760px),(pointer:coarse) and (max-width:1100px){ .kb-qr{display:none} .kb-app-raster{grid-template-columns:minmax(0,1fr)} }

/* schmaler Inhalt (Handy, oder neben der Seitenleiste wenig Platz) */
@container (max-width:860px){ .kb-text-raster{grid-template-columns:minmax(0,1fr)} .kb-geraete{grid-template-columns:minmax(0,1fr)} }
@container (max-width:760px){ .kb-app-raster{grid-template-columns:minmax(0,1fr)} }
@container (max-width:620px){
  .kb-karten,.kb-zwei,.kb-merkmale{grid-template-columns:minmax(0,1fr)}
  .kb-prosa{padding:22px 18px 24px}
  .kb-faq{padding:0 16px}
}
@media (prefers-reduced-motion:reduce){ .kb-karte,.kb-karte .kb-pfeil,.kb-plus::before,.kb-plus::after{transition:none} }
