/*
  support.css  -  Ergaenzungen fuer support.mberginz.ch (Relaunch).

  Autor:     Marc Berginz
  Erstellt:  13.10.2026
  Version:   0.2.3

  Beschreibung:
    Wird nach style.css (gemeinsame Basis mit mberginz.ch) geladen.
    Enthaelt nur, was die Support-Seite zusaetzlich braucht: Tool-Karten
    mit Badges und Meta-Zeile, Schritt-Liste und Warnhinweis im Hero,
    Befehlsbloecke mit Kopfzeile und Kopieren-Button, Befehls-Karten im
    Zweispalten-Raster. style.css bleibt zwischen beiden Seiten identisch.

  Aenderungen:
    0.2.3  13.10.2026  Marc Berginz  Warnhinweis (hero-warn) und Mac-Hinweis (hero-alt) im Hero
    0.2.2  13.10.2026  Marc Berginz  Externer Nav-Link auf Handybreite ausgeblendet, damit fuenf Punkte in eine Zeile passen
    0.2.1  13.10.2026  Marc Berginz  Kopieren-Button in Kopfzeile ueber dem Codeblock statt schwebend darueber
    0.2.0  13.10.2026  Marc Berginz  Befehls-Karten (cmd-grid, cmd-card), Badges CMD/PowerShell/Admin, Titel im Feature-Block
    0.1.1  13.10.2026  Marc Berginz  Badge "Vorschlag" entfernt, Grid-Kinder mit min-width 0 gegen Ueberlauf
    0.1.0  13.10.2026  Marc Berginz  Erstfassung (Entwurf)
*/

/* ---------- Navigation: externer Link auf Handy ausblenden (steht im Footer) ---------- */

@media (max-width: 479px) {
  .nav-links .nav-ext { display: none; }
}

/* ---------- Hero: Schritt-Liste ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  color: rgba(255, 255, 255, 0.92);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  font-weight: 800;
}
.steps strong { display: block; color: #fff; }
.steps span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }

.hero-side {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 24px;
}

.hero-alt {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-alt a { color: #fff; }

.hero-warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
}
.hero-warn svg { width: 22px; height: 22px; flex-shrink: 0; color: #fbbf24; margin-top: 2px; }
.hero-side h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Tool-Gruppen ---------- */

.tool-group { margin-bottom: 40px; }
.tool-group:last-child { margin-bottom: 0; }
.tool-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.25rem;
}
.tool-group h3 .count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Tool-Karte ---------- */

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tool-head h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}
.tool-card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.tool-meta {
  font-size: 0.85rem !important;
  color: var(--text-muted);
  font-weight: 600;
}
.tool-card .btn-row { margin-top: auto; padding-top: 4px; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 6px;
  margin-right: 6px;
}
.badge-hosted   { background: var(--primary); color: #fff; }
.badge-vendor   { background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); }
.badge-pinned   { background: #1f7a4d; color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn svg.ext { width: 15px; height: 15px; opacity: 0.8; }

/* ---------- Befehlsbloecke ---------- */

/* Grid-Kinder duerfen schmaler werden als ihr Inhalt, sonst sprengt ein langer Befehl die Karte */
.feature > div { min-width: 0; }

.cmd-block {
  margin: 0 0 16px;
  min-width: 0;
  background: #0b1424;
  border: 1px solid #22314a;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cmd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  background: #111d31;
  border-bottom: 1px solid #22314a;
}
.cmd-bar span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3bd;
}
.cmd-block pre {
  margin: 0;
  padding: 14px 16px;
  color: #dbe7f5;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
.cmd-copy {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}
.cmd-copy:hover { background: rgba(255, 255, 255, 0.16); }
.cmd-copy[data-done="1"] { background: #1f7a4d; border-color: #1f7a4d; }
.cmd-title {
  font-weight: 700;
  margin: 0 0 8px;
}
.cmd-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
/* ---------- Befehls-Karten ---------- */

.feature-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.cmd-group { margin-top: 40px; }

.cmd-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .cmd-grid { grid-template-columns: repeat(2, 1fr); } }

.cmd-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cmd-card h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.cmd-card .badge { margin: 0; }
.cmd-card .cmd-block { margin: 0; }
.cmd-card .cmd-block pre { font-size: 0.85rem; }
.cmd-card .cmd-note { margin: 0; font-size: 0.88rem; }
.cmd-card .cmd-note a { color: var(--link); }

.badge-admin { background: #7f1d1d; color: #fff; }

/* ---------- Status-Links ---------- */

.link-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.link-list a:hover { border-color: var(--primary); }
.link-list a span { color: var(--text-muted); font-weight: 400; font-size: 0.9rem; }
.link-list svg { width: 16px; height: 16px; opacity: 0.5; flex-shrink: 0; }
