/* Anleitungsseiten – nutzt die Farb-Tokens und Bausteine aus app.css */

a.brand { color: inherit; text-decoration: none; }
.menubar-nav { display: flex; gap: 16px; margin-left: 10px; font-size: 13px; }
.menubar-nav a { color: var(--muted); }
.menubar-nav a:hover { color: var(--text); text-decoration: none; }

.guide { width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 20px 40px; display: block; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.guide-hero { text-align: center; margin-bottom: 26px; }
.guide-hero h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin: 0 0 14px; }
.guide-hero .lead code { font-size: .92em; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-large { padding: 9px 18px; font-size: 14px; border-radius: 9px; }

/* 4-Schritte-Leiste */
.flow { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow li { background: var(--window); border-radius: 12px; box-shadow: var(--card-shadow); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.flow li span:last-child { color: var(--muted); font-size: 12px; line-height: 1.4; }
.flow-nr { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; font-weight: 600; margin-bottom: 4px; }

.callout {
  border-radius: 12px; padding: 12px 16px; margin: 0 0 26px; font-size: 13.5px; line-height: 1.5;
  background: color-mix(in srgb, var(--orange) 12%, var(--window));
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--orange) 40%, transparent);
}

.guide-section { margin: 34px 0; }
.guide-section h2 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 10px; }
.guide-section > p { line-height: 1.5; }

/* Gerätewahl */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.pick {
  display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 12px;
  background: var(--window); box-shadow: var(--card-shadow); color: var(--text); font-size: 13px; line-height: 1.45;
  border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.pick span { color: var(--muted); font-size: 12.5px; }
.pick:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.pick > b::after { content: " ›"; color: var(--accent); }

/* Anleitung je Gerätegruppe */
.guide-window { margin: 22px 0; scroll-margin-top: 60px; }
.guide-window .titlebar-title { font-size: 13px; font-weight: 600; margin: 0; }
.guide-window .window-body { padding: 18px 22px 20px; }
.guide-window h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; line-height: 1.55; font-size: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.stick {
  display: flex; gap: 12px; align-items: baseline; margin-top: 16px; padding: 10px 12px; border-radius: 9px;
  background: var(--control); box-shadow: inset 0 0 0 .5px var(--control-border); font-size: 13px; line-height: 1.5;
}
.stick-label { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notes li + li { margin-top: 4px; }

code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; word-break: break-word; }
kbd {
  font-family: var(--font); font-size: .9em; font-weight: 600; padding: 1px 6px; border-radius: 5px;
  background: var(--control); border: 1px solid var(--control-border); box-shadow: 0 1px 0 var(--control-border);
}

/* Dateitabelle */
.files { width: 100%; border-collapse: collapse; background: var(--window); border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); font-size: 13px; margin-top: 12px; }
.files th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: .5px solid var(--separator); }
.files td { padding: 10px 14px; border-bottom: .5px solid var(--separator); vertical-align: top; line-height: 1.45; }
.files tr:last-child td { border-bottom: 0; }
.files td:first-child { width: 42%; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--window); border-radius: 10px; box-shadow: var(--card-shadow); padding: 0 14px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 500; font-size: 14px; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; font-size: 13.5px; }

/* Rückmeldung */
.feedback {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 34px 0; padding: 16px 18px;
  border-radius: 12px; background: var(--accent-soft); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 30%, transparent);
}
.feedback div { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; }
.feedback span { color: var(--muted); }
.feedback .btn { flex: none; }

/* Markenlinks */
.brand-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-grid a {
  padding: 6px 12px; border-radius: 999px; background: var(--window); box-shadow: var(--card-shadow);
  color: var(--text); font-size: 13px; font-weight: 500;
}
.brand-grid a:hover { text-decoration: none; color: var(--accent); }
.brand-grid a.current { background: var(--accent); color: var(--on-accent); }

.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.brand-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--window);
  box-shadow: var(--card-shadow); color: var(--text); border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.brand-card b { font-size: 15px; }
.brand-card > b::after { content: " ›"; color: var(--accent); }
.brand-card span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.brand-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }

.tips { padding-left: 18px; line-height: 1.6; font-size: 14px; }
.tips li + li { margin-top: 6px; }
.disclaimer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 30px; }

@media (max-width: 760px) {
  .guide { padding: 16px 16px 30px; }
  .guide-hero h1 { font-size: 28px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .guide-window .window-body { padding: 14px 16px 16px; }
  .feedback { flex-direction: column; align-items: flex-start; }
  .files td:first-child { width: auto; }
  .menubar-nav { margin-left: 0; }
  .menubar .brand span:last-child { display: none; }
}

/* Impressum / Datenschutz */
.legal { max-width: 720px; }
.legal h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 22px; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.6; font-size: 14px; }
.legal ul { padding-left: 20px; }
.legal .back { margin-top: 34px; }
mark.todo { background: color-mix(in srgb, var(--danger) 18%, transparent); color: inherit; padding: 0 4px; border-radius: 4px; outline: 1px dashed var(--danger); }
