/* CncCraft Hilfe – eigenes Stylesheet, aufgebaut wie die Onlinehilfe des Originals:
   helle Seite, schmale Kopfzeile, Seitenleiste mit Themenbaum, Inhalt, Fußzeile. */
:root {
  --akzent: #ffc000;
  --marke: #0f766e;
  --marke-dunkel: #0b5d57;
  --text: #1f2933;
  --gedaempft: #5b6672;
  --flaeche: #ffffff;
  --flaeche2: #f5f7f8;
  --linie: #e1e6ea;
  --link: #0b6bcb;
  --neu: #e8f5f3;
  --neu-text: #0b5d57;
  --code: #eef1f3;
  --schatten: 0 1px 2px rgba(16, 24, 32, .06), 0 4px 14px rgba(16, 24, 32, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6eaee;
    --gedaempft: #9aa6b2;
    --flaeche: #14181c;
    --flaeche2: #1b2025;
    --linie: #2c333a;
    --link: #6cb2ff;
    --neu: #12302d;
    --neu-text: #7fd9cf;
    --code: #232a30;
    --schatten: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--flaeche); color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--code); padding: .1em .35em; border-radius: 4px; }
kbd {
  background: var(--flaeche2); border: 1px solid var(--linie); border-bottom-width: 2px;
  border-radius: 5px; padding: .05em .45em; white-space: nowrap;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Sprachleiste und Kopfzeile */
.sprachleiste { background: var(--flaeche2); border-bottom: 1px solid var(--linie); font-size: 13px; color: var(--gedaempft); }
.sprachleiste .innen { max-width: 1280px; margin: 0 auto; padding: 4px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sprachwahl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sprachwahl a { color: var(--gedaempft); padding: 1px 4px; border-radius: 4px; text-decoration: none; }
.sprachwahl a:hover { color: var(--link); }
.sprachwahl a[aria-current="true"] { color: var(--text); background: var(--linie); }
.kopf { position: sticky; top: 0; z-index: 30; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf .innen { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.marke img { width: 30px; height: 30px; }
.marke:hover { text-decoration: none; }
.kopf nav { display: flex; gap: 16px; margin-left: 8px; }
.kopf nav a { color: var(--gedaempft); font-size: 15px; }
.kopf nav a:hover, .kopf nav a[aria-current] { color: var(--text); text-decoration: none; }
.kopf nav a.github { display: inline-flex; align-items: center; gap: 6px; }
.kopf nav a.github svg { display: block; }
.kopf .luecke { flex: 1; }
.menue-knopf { display: none; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }

/* Suche */
.suche { position: relative; width: 320px; max-width: 100%; }
.suche input {
  width: 100%; font: inherit; font-size: 15px; padding: 8px 12px 8px 36px; color: var(--text);
  background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 10px;
}
.suche input:focus { outline: 2px solid var(--marke); outline-offset: 1px; background: var(--flaeche); }
.suche svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--gedaempft); pointer-events: none; }
.treffer {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 10px; box-shadow: var(--schatten); max-height: 70vh; overflow: auto; display: none;
}
.suche.offen .treffer { display: block; }
.treffer a { display: block; padding: 9px 14px; color: var(--text); border-bottom: 1px solid var(--linie); }
.treffer a:last-child { border-bottom: 0; }
.treffer a:hover, .treffer a.aktiv { background: var(--flaeche2); text-decoration: none; }
.treffer .t { font-weight: 600; }
.treffer .k { font-size: 12px; color: var(--gedaempft); }
.treffer .s { font-size: 13px; color: var(--gedaempft); margin-top: 2px; }
.treffer mark { background: rgba(255, 192, 0, .45); color: inherit; border-radius: 2px; }
.treffer .leer { padding: 14px; color: var(--gedaempft); }

/* Seitenaufbau */
.rahmen { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 0 40px; padding: 0 20px; }
.seitenleiste { position: sticky; top: 59px; align-self: start; max-height: calc(100vh - 59px); overflow: auto; padding: 24px 6px 40px 0; font-size: 14.5px; border-right: 1px solid var(--linie); }
.seitenleiste h2 { margin: 18px 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gedaempft); }
.seitenleiste h2:first-child { margin-top: 0; }
.seitenleiste ul { list-style: none; margin: 0; padding: 0; }
.seitenleiste li a { display: block; padding: 4px 12px 4px 10px; color: var(--text); border-left: 3px solid transparent; border-radius: 0 6px 6px 0; }
.seitenleiste li a:hover { background: var(--flaeche2); text-decoration: none; }
.seitenleiste li a[aria-current] { border-left-color: var(--akzent); background: var(--flaeche2); font-weight: 600; }
.pille { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: var(--neu); color: var(--neu-text); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
main { padding: 28px 0 60px; min-width: 0; }
.brotkrumen { font-size: 14px; color: var(--gedaempft); margin-bottom: 14px; }
.brotkrumen a { color: var(--gedaempft); }
.brotkrumen span { margin: 0 6px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
.einleitung { font-size: 1.15rem; color: var(--gedaempft); margin: 0 0 1.6em; }
article h2 { font-size: 1.45rem; margin: 2em 0 .5em; padding-top: .3em; letter-spacing: -.005em; }
article h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
article p, article li { max-width: 74ch; }
article ul, article ol { padding-left: 1.4em; }
article li { margin: .25em 0; }
figure { margin: 1.6em 0; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; background: var(--flaeche2); box-shadow: var(--schatten); max-width: 860px; }
figure img { display: block; width: 100%; }
figcaption { padding: 8px 14px; font-size: 13.5px; color: var(--gedaempft); border-top: 1px solid var(--linie); }
table { border-collapse: collapse; margin: 1.2em 0; width: 100%; max-width: 860px; font-size: .95rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { background: var(--flaeche2); font-weight: 600; }
.hinweis, .tipp, .achtung, .neu-box, .pilot-box {
  border-radius: 10px; padding: 12px 16px; margin: 1.3em 0; max-width: 74ch; border: 1px solid var(--linie); background: var(--flaeche2);
}
.hinweis { border-left: 4px solid #3b82f6; }
.tipp { border-left: 4px solid var(--akzent); }
.achtung { border-left: 4px solid #dc2626; }
.neu-box { border-left: 4px solid var(--marke); background: var(--neu); color: var(--text); }
.pilot-box { border-left: 4px solid #a855f7; }
.hinweis > :first-child, .tipp > :first-child, .achtung > :first-child, .neu-box > :first-child, .pilot-box > :first-child { margin-top: 0; }
.hinweis > :last-child, .tipp > :last-child, .achtung > :last-child, .neu-box > :last-child, .pilot-box > :last-child { margin-bottom: 0; }
.hinweis::before, .tipp::before, .achtung::before, .neu-box::before, .pilot-box::before { display: block; font-weight: 700; margin-bottom: 2px; }
.hinweis::before { content: "Hinweis"; }
.tipp::before { content: "Tipp"; }
.achtung::before { content: "Achtung"; }
.neu-box::before { content: "Neu in CncCraft"; color: var(--neu-text); }
.pilot-box::before { content: "Pilotfunktion (Beta)"; color: #a855f7; }
/* English labels on the English site (html lang="en") */
html[lang="en"] .hinweis::before { content: "Note"; }
html[lang="en"] .tipp::before { content: "Tip"; }
html[lang="en"] .achtung::before { content: "Caution"; }
html[lang="en"] .neu-box::before { content: "New in CncCraft"; }
html[lang="en"] .pilot-box::before { content: "Pilot feature (beta)"; }
.blaettern { display: flex; justify-content: space-between; gap: 16px; margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--linie); }
.blaettern a { display: block; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 16px; min-width: 0; flex: 1; color: var(--text); }
.blaettern a:hover { border-color: var(--marke); text-decoration: none; }
.blaettern small { display: block; color: var(--gedaempft); font-size: 12.5px; }
.blaettern .weiter { text-align: right; }
.fuss { border-top: 1px solid var(--linie); background: var(--flaeche2); color: var(--gedaempft); font-size: 14px; }
.fuss .innen { max-width: 1280px; margin: 0 auto; padding: 28px 20px; display: grid; gap: 8px; }
.fuss a { color: var(--gedaempft); text-decoration: underline; }

/* Startseite der Hilfe */
.held { background: linear-gradient(180deg, var(--neu), var(--flaeche)); border-bottom: 1px solid var(--linie); }
.held .innen { max-width: 980px; margin: 0 auto; padding: 64px 20px 54px; text-align: center; }
.held h1 { font-size: 2.6rem; }
.held p { color: var(--gedaempft); font-size: 1.15rem; margin: 0 auto 1.6em; max-width: 60ch; }
.held .suche { margin: 0 auto; width: 560px; }
.held .suche input { padding: 14px 16px 14px 42px; font-size: 17px; border-radius: 14px; box-shadow: var(--schatten); }
.held .suche svg { left: 15px; width: 18px; height: 18px; }
.held .treffer { text-align: left; }
.inhalt { max-width: 1180px; margin: 0 auto; padding: 44px 20px 70px; }
.inhalt > h2 { font-size: 1.5rem; margin: 0 0 18px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 44px; }
.karte { display: flex; flex-direction: column; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 14px; padding: 20px 22px; box-shadow: var(--schatten); color: var(--text); }
.karte:hover { border-color: var(--marke); text-decoration: none; }
.karte .symbol { width: 40px; height: 40px; border-radius: 10px; background: var(--neu); color: var(--neu-text); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.karte h3 { margin: 0 0 4px; font-size: 1.15rem; }
.karte p { margin: 0 0 12px; color: var(--gedaempft); font-size: .95rem; }
.karte ul { margin: auto 0 0; padding: 0; list-style: none; font-size: .93rem; }
.karte li { padding: 2px 0; }
.karte .mehr { margin-top: 10px; font-size: .9rem; color: var(--link); }

/* Produktseite */
.produkt-held { background: radial-gradient(1200px 400px at 70% -10%, rgba(255, 192, 0, .22), transparent), linear-gradient(180deg, var(--neu), var(--flaeche)); }
.produkt-held .innen { max-width: 1180px; margin: 0 auto; padding: 70px 20px 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.produkt-held h1 { font-size: 2.9rem; margin-bottom: .3em; }
.produkt-held p { font-size: 1.15rem; color: var(--gedaempft); max-width: 52ch; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.knopf { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; border: 1px solid var(--linie); color: var(--text); background: var(--flaeche); }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #1c1c1c; }
.knopf:hover { text-decoration: none; filter: brightness(.97); }
.produkt-held figure { margin: 0; max-width: none; }
/* Bilder-Karussell: wechselt nur auf Klick, Pfeiltaste oder Wischen */
.karussell { position: relative; outline: none; border-radius: 12px; }
.karussell:focus-visible { box-shadow: 0 0 0 3px var(--akzent); }
.karussell .dia[hidden] { display: none; }
.karussell .dia img { aspect-ratio: 1400 / 851; object-fit: contain; background: var(--flaeche2); }
.karussell figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-right: 74px; min-height: 2.6em; }
.karussell figcaption a { white-space: nowrap; font-size: 13px; }
.karussell-knopf, .karussell-zaehler { display: none; }
.karussell.bereit .karussell-knopf { display: grid; place-items: center; position: absolute; top: calc(50% - 40px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--schatten); opacity: .9; }
.karussell.bereit .karussell-knopf:hover { opacity: 1; background: var(--akzent); color: #1c1c1c; border-color: var(--akzent); }
.karussell-knopf.zurueck { left: -20px; }
.karussell-knopf.weiter { right: -20px; }
.karussell.bereit .karussell-zaehler { display: block; position: absolute; right: 14px; bottom: 9px; font-size: 12.5px; color: var(--gedaempft); font-variant-numeric: tabular-nums; }
.held-marke { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--neu-text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.vorteile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 20px; }
.vorteil { border: 1px solid var(--linie); border-radius: 14px; padding: 20px 22px; background: var(--flaeche); box-shadow: var(--schatten); }
.vorteil h3 { font-size: 1.2rem; margin: 0 0 .35em; }
.vorteil p { color: var(--gedaempft); margin: 0; }
.abschnitt { max-width: 1180px; margin: 0 auto; padding: 54px 20px 10px; }
.abschnitt > h2 { font-size: 2rem; margin: 0 0 .3em; }
.abschnitt > .unter { color: var(--gedaempft); font-size: 1.1rem; max-width: 70ch; margin: 0 0 1.6em; }
.merkmal { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 0 0 56px; }
.merkmal:nth-child(even) .text { order: 2; }
.merkmal h3 { font-size: 1.5rem; margin: 0 0 .4em; }
.merkmal p { color: var(--gedaempft); }
.merkmal figure { margin: 0; max-width: none; }
.liste-zwei { columns: 2; column-gap: 40px; padding-left: 1.2em; }
.faq details { border: 1px solid var(--linie); border-radius: 12px; padding: 4px 18px; margin: 10px 0; background: var(--flaeche); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--linie); margin-bottom: 10px; }

/* Schwester-Apps: Farben wie auf den Seiten der Apps (PatternMaster --accent/--accent-deep, HoruCNC --accent/--accent-dark) */
.schwester-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 0 0 30px; }
.schwester { --a: #f4a24c; --a1: #f8b862; --a2: #e0743a; --auf: #1c1107;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--flaeche);
  border: 1px solid var(--linie); box-shadow: var(--schatten); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.schwester.horu { --a: #64d2ff; --a1: #64d2ff; --a2: #08b7ff; --auf: #061921; }
.schwester:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--a2);
  box-shadow: 0 0 0 1px var(--a2), 0 18px 40px -18px var(--a2); }
.schwester .band { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: var(--auf);
  background: linear-gradient(95deg, var(--a1), var(--a2)); }
.schwester .zeichen { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.schwester .zeichen svg { width: 30px; height: 30px; fill: var(--a2); stroke: var(--a2); }
.schwester.horu .zeichen svg { fill: none; }
.schwester .band strong { display: block; font-size: 1.45rem; line-height: 1.15; }
.schwester .band small { display: block; font-size: .95rem; opacity: .8; }
.schwester .bild { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #111317; border-bottom: 1px solid var(--linie); }
.schwester .koerper { display: flex; flex-direction: column; flex: 1; padding: 16px 22px 20px; }
.schwester p { margin: 0 0 12px; font-size: .98rem; }
.schwester ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.schwester li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--a) 25%, transparent); }
.schwester .los { margin-top: auto; align-self: flex-end; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--auf); background: linear-gradient(135deg, var(--a1), var(--a2)); }

@media (max-width: 980px) {
  .rahmen { grid-template-columns: minmax(0, 1fr); }
  .kopf .innen { gap: 10px; padding: 8px 14px; }
  .kopf .suche { flex: 1; min-width: 0; width: auto; }
  .marke { font-size: 16px; }
  .menue-knopf { padding: 4px 8px; white-space: nowrap; }
  table { display: block; overflow-x: auto; }
  .sprachleiste .innen { padding: 4px 14px; }
  .seitenleiste { display: none; position: static; max-height: none; border: 0; padding: 14px 0; }
  .seitenleiste.offen { display: block; }
  .menue-knopf { display: inline-block; }
  .kopf nav { display: none; }
  .produkt-held .innen, .merkmal, .vorteile { grid-template-columns: 1fr; }
  .karussell-knopf.zurueck { left: 6px; }
  .karussell-knopf.weiter { right: 6px; }
  .merkmal:nth-child(even) .text { order: 0; }
  .liste-zwei { columns: 1; }
  .held .suche { width: 100%; }
}
@media print {
  .sprachleiste, .kopf, .seitenleiste, .blaettern, .fuss { display: none; }
  .rahmen { display: block; }
}
