/* Style-Sheet für das Hilfecenter im Admin-Bereich (Dokumentation & Schrittführung). */

:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  --doc-bg: #f8fafc;
  --doc-card: #ffffff;
  --doc-border: #e2e8f0;
  --doc-heading: #0f172a;
  --doc-text: #1e293b;
  --doc-muted: #475569;
  --doc-accent: #2563eb;
  --doc-accent-light: #dbeafe;
  --doc-callout-bg: #eef2ff;
}

/* Grundlegende Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--doc-bg);
  color: var(--doc-text);
}

a {
  color: var(--doc-accent);
}

/* Seitenlayout & Container */
main {
  padding: 2.5rem 1.5rem 3rem;
}

.doc-container {
  max-width: 1000px;
  margin: 0 auto;
}

.doc-header {
  margin-bottom: 2rem;
}

.doc-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--doc-muted);
  margin: 0 0 0.35rem;
}

.doc-header h1 {
  margin: 0 0 0.5rem;
  color: var(--doc-heading);
  line-height: 1.25;
}

.doc-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--doc-muted);
}

/* Tab-artige Navigation zwischen Kapiteln. */
.doc-nav {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--doc-text);
  background: var(--doc-card);
  border-color: var(--doc-border);
}

.doc-nav a.active {
  background: var(--doc-accent);
  color: #fff;
  border-color: var(--doc-accent);
}

.doc-nav a:hover {
  border-color: var(--doc-accent);
}

/* Card-Komponente für einzelne Abschnitte (Features, Schritte). */
.doc-card {
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  overflow-wrap: anywhere;
}

.doc-card h2 {
  margin-top: 0;
  color: var(--doc-heading);
}

.doc-card h3 {
  margin: 1.25rem 0 0.45rem;
  color: var(--doc-heading);
  font-size: 1.05rem;
}

.doc-card p {
  margin-top: 0;
}

.doc-card ul,
.doc-card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.doc-card li + li {
  margin-top: 0.35rem;
}

.doc-card dl {
  margin: 0.75rem 0 0;
}

.doc-card dt {
  margin-top: 0.85rem;
  color: var(--doc-heading);
}

.doc-card dd {
  margin: 0.2rem 0 0 0;
  color: var(--doc-muted);
}

.doc-training-entry {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.doc-training-entry h2 {
  margin-bottom: 0.35rem;
}

.doc-training-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.62rem 0.95rem;
  background: var(--doc-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.doc-training-link:hover,
.doc-training-link:focus-visible {
  background: #1d4ed8;
  color: #fff;
}

code {
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #eef2f7;
  color: #0f172a;
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
}

/* Liste der wichtigsten Features inkl. Trenner. */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  border-top: 1px solid var(--doc-border);
  padding-top: 1rem;
}

.feature-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.feature-list strong {
  display: inline-block;
  color: var(--doc-heading);
}

/* Nummerierte Listen (z. B. Schritt-für-Schritt-Anleitungen). */
.steps-list {
  counter-reset: step;
  margin: 0;
  padding-left: 1.25rem;
}

.steps-list li {
  margin-bottom: 0.7rem;
}

/* Abbildungen mit zentriertem Layout und responsiver Breite. */
.doc-figure {
  margin: 1.5rem auto;
  text-align: center;
}

.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 0.6rem;
}

.doc-figure figcaption {
  font-size: 0.9rem;
  color: var(--doc-muted);
}

.doc-shot {
  text-align: left;
  scroll-margin-top: 1rem;
}

.doc-shot:target {
  outline: 3px solid var(--doc-accent-light);
  outline-offset: 0.4rem;
  border-radius: 10px;
}

.shot-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--doc-border);
  border-radius: 10px;
  background: #fff;
}

.shot-frame img {
  margin: 0;
}

.shot-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--doc-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.marker-table {
  margin-top: 0.75rem;
}

.marker-table .doc-table {
  min-width: 0;
}

.screenshot-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0 1.1rem;
}

.screenshot-grid > .doc-shot {
  width: 100%;
  margin: 0;
}

.screenshot-grid > .marker-table {
  margin: 0;
}

.screenshot-card {
  width: 100%;
  margin: 0;
  border: 1px solid var(--doc-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  text-align: left;
}

.screenshot-card a {
  color: inherit;
}

.screenshot-card img {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid var(--doc-border);
}

.screenshot-card figcaption {
  padding: 0.75rem 0.85rem 0.85rem;
  color: var(--doc-muted);
}

.screenshot-card figcaption strong {
  display: block;
  color: var(--doc-heading);
  margin-bottom: 0.15rem;
}

.screenshot-card figcaption a {
  color: var(--doc-accent);
  text-decoration: none;
}

.screenshot-card figcaption a:hover {
  text-decoration: underline;
}

.figure-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.figure-index a {
  display: block;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  text-decoration: none;
}

.figure-index strong {
  display: block;
  color: var(--doc-heading);
}

/* Hinweisboxen zur Hervorhebung wichtiger Tipps. */
.doc-callout {
  background: var(--doc-callout-bg);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  border: 1px solid #c7d2fe;
  margin: 1rem 0;
  color: var(--doc-heading);
}

.doc-callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

.doc-example {
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--doc-accent);
  border-radius: 10px;
  background: #eff6ff;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.doc-example h3,
.doc-example h4 {
  margin-top: 0;
}

.doc-example p:last-child,
.doc-example ul:last-child,
.doc-example ol:last-child {
  margin-bottom: 0;
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.mini-flow-step {
  position: relative;
  border: 1px solid var(--doc-border);
  border-radius: 10px;
  background: #fff;
  padding: 0.95rem 0.95rem 0.95rem 3rem;
  min-height: 5.1rem;
}

.mini-flow-bullet {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--doc-accent);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.mini-flow-step strong {
  display: block;
  color: var(--doc-heading);
  margin-bottom: 0.15rem;
}

.mini-flow-step span:last-child {
  color: var(--doc-muted);
}

/* Grid-Layout für Kacheln mit zwei Spalten. */
.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.grid-two article {
  border: 1px solid var(--doc-border);
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
}

.grid-two h3 {
  margin-top: 0;
  color: var(--doc-heading);
}

/* Tabellen zur Darstellung von Parametern oder Referenzen. */
.doc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc-table th,
.doc-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--doc-border);
  text-align: left;
}

.doc-table th {
  color: var(--doc-heading);
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-footer {
  font-size: 0.85rem;
  color: var(--doc-muted);
  text-align: center;
  margin-top: 2rem;
}

.icon-wand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.1em;
  font-size: 1.1em;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  color: #334155;
}

@media (max-width: 600px) {
  .doc-card {
    padding: 1.2rem;
  }

  .doc-table {
    min-width: 520px;
  }

  .doc-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .shot-marker {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }
}
