/* ========================================
   comanu.de – Ergänzungen nur für ai-cockpit.html
   (wird nach seite.css und seite-produkte.css eingebunden)
   ======================================== */

/* Kopfbereich: Text links, nachgebaute App rechts */
.ac-hero { align-items: center; }
.ac-hero h1 { max-width: 14ch; }
.ac-meta { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-mut); margin-top: 1.4rem; }

/* Nachgebautes App-Fenster (reines HTML/CSS, kein Bild) */
.ac-window { margin: 0; background: #151514; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); font-size: .82rem; }
.ac-titlebar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: var(--dark-2); border-bottom: 1px solid rgba(255,255,255,.07); }
.ac-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ac-titlebar i:nth-child(2) { background: #febc2e; }
.ac-titlebar i:nth-child(3) { background: #28c840; }
.ac-titlebar span { flex: 1; text-align: center; color: var(--on-dark-mut); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 40px; }
.ac-body { display: grid; grid-template-columns: 38% 1fr; min-height: 300px; }

.ac-tree { list-style: none; margin: 0; padding: 14px 10px; border-right: 1px solid rgba(255,255,255,.07); display: grid; gap: 3px; align-content: start; }
.ac-tree li { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 5px; color: var(--on-dark-mut); white-space: nowrap; }
.ac-folder { color: var(--on-dark) !important; font-weight: 600; margin-top: 6px; }
.ac-folder:first-child { margin-top: 0; }
.ac-folder::before { content: "▾"; font-size: .7rem; color: var(--on-dark-mut); }
.ac-project { padding-left: 22px !important; }
.ac-project::before { content: "◆"; font-size: .6rem; color: var(--gold); }
.ac-project.on { background: rgba(240,179,40,.14); color: var(--on-dark); }
.ac-project b { margin-left: auto; }
.ac-project b.q { background: #f08a28; color: var(--dark); border-radius: 9px; font-size: .68rem; padding: 0 6px; }
.ac-project b.w { width: 8px; height: 8px; border-radius: 50%; background: #58a6ff; animation: ac-pulse 1.6s ease-in-out infinite; }
.ac-project b.d { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; }

.ac-list { padding: 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ac-list-head { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); margin-bottom: 4px; }
.ac-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; background: var(--dark-2); border-radius: 6px; }
.ac-row b { font-weight: 500; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row em { font-style: normal; font-size: .72rem; color: #58a6ff; }
.ac-row em.q { color: #f08a28; font-weight: 700; }
.ac-row em.d { color: #3fb950; }
.ac-dot { width: 8px; height: 8px; border-radius: 50%; background: #58a6ff; }
.ac-dot.w { animation: ac-pulse 1.6s ease-in-out infinite; }
.ac-dot.q { background: #f08a28; }
.ac-dot.d { background: #3fb950; }
.ac-term { margin-top: 8px; padding: 10px 12px; border-radius: 6px; background: #0e0e0d; font-family: var(--font-mono); font-size: .72rem; line-height: 1.7; color: var(--on-dark); }
.ac-term span { color: var(--gold); }
.ac-term .ac-opt { color: #58a6ff; }
.ac-term .ac-opt.dim { color: var(--on-dark-mut); }
@keyframes ac-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ac-dot.w, .ac-project b.w { animation: none; } }

/* Inline-Code und Tasten */
code { font-family: var(--font-mono); font-size: .88em; background: rgba(28,28,26,.07); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.dark code { background: rgba(255,255,255,.08); }
kbd { font-family: var(--font-mono); font-size: .85em; border: 1px solid rgba(255,255,255,.25); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; }

/* Installation */
#installieren .intro a, #installieren .ac-steps a { color: var(--gold); }
.ac-steps { list-style: none; counter-reset: s; display: grid; gap: 28px; margin-top: 2.6rem; max-width: 860px; }
.ac-steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; }
.ac-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 3; width: 44px; height: 44px; border-radius: 8px; background: var(--gold); color: var(--dark); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; }
.ac-steps li > * { min-width: 0; }
.ac-steps h3 { font-size: 1.1rem; font-weight: 800; padding-top: .55rem; }
.ac-steps p { color: var(--on-dark-mut); margin-top: .4rem; }

.ac-cmd { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; background: #0e0e0d; border: 1px solid rgba(240,179,40,.35); border-radius: 8px; padding: .8rem .8rem .8rem 1.1rem; }
.ac-cmd code { flex: 1; min-width: 0; background: none; padding: 0; color: var(--on-dark); font-size: .92rem; overflow-x: auto; white-space: nowrap; overflow-wrap: normal; }
.ac-cmd code::before { content: "$ "; color: var(--gold); }
.ac-cmd.small { padding: .6rem .9rem; }
.ac-cmd.small code { font-size: .82rem; }
.ac-copy { flex: none; font: 700 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--dark); border: 0; border-radius: 5px; padding: .55rem .85rem; cursor: pointer; }
.ac-copy:hover { background: var(--gold-deep); }
.ac-copy:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
html:not(.js) .ac-copy { display: none; }

/* Überschrift je Betriebssystem über den Schritten */
.ac-os { margin-top: 3rem; font-size: 1.4rem; font-weight: 800; color: var(--on-dark); }
.ac-os + .ac-steps { margin-top: 1.4rem; }
#installieren .ac-steps .btn { color: var(--dark); margin-top: .4rem; }

.ac-alt { margin-top: 3.2rem; }
.ac-alt .btn { margin-top: .4rem; }
.ac-note { margin-top: 2.4rem; color: var(--on-dark-mut); border-left: 3px solid var(--gold); padding-left: 1rem; max-width: 860px; }
.ac-note b { color: var(--on-dark); }

@media (max-width: 980px) {
  .ac-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ac-body { grid-template-columns: 1fr; }
  .ac-tree { display: none; }
  .ac-steps li { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .ac-steps li::before { width: 38px; height: 38px; }
  .grid-2.ac-alt { grid-template-columns: 1fr; }
}
.btn[hidden] { display: none !important; }
