.highlight { background-color:#fff3cd;border:1px solid #ffeaa7;padding:15px;border-radius:5px;margin:20px 0; }
.warning { background-color:#f8d7da;border:1px solid #f5c6cb;padding:15px;border-radius:5px;margin:20px 0; }
.info { background-color:#d1ecf1;border:1px solid #bee5eb;padding:15px;border-radius:5px;margin:20px 0; }

table { width:100%;border-collapse:collapse;margin:20px 0;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.1); }
th,td { padding:12px;text-align:left;border-bottom:1px solid #dee2e6;vertical-align:top; }
th { background:#6fad33;color:#fff;font-weight:600; }
tr:nth-child(even){ background:#f8f9fa; }
tr:hover{ background:#e9ecef; }

.step { background:#f8f9fa;border-left:4px solid #28a745;padding:15px;margin:10px 0;border-radius:0 5px 5px 0; }
.step-number { background:#28a745;color:#fff;width:25px;height:25px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:bold;margin-right:10px; }

.method { background:#e9ecef;padding:10px;border-radius:5px;margin:6px 0;border-left:3px solid #667eea; }
code,kbd{ background:#f5f7f9;border:1px solid #e3e8ee;border-radius:4px;padding:1px 4px; }


/* Grundlayout */
.readable.help {
  --hx-accent: #6fad33;
  --hx-note: #d1ecf1;
  --hx-warn: #f8d7da;
  --hx-hl:   #fff3cd;
  font-size: 16px;
  line-height: 1.6;
}

/* Bilder & Bildgruppen */
.readable.help img {
  max-width: 100%;
  height: auto;
}
.center { text-align: center; }
.shadowbox {
  display: inline-block;
  padding: 10px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  border-radius: 8px;
}
.imagebox {
  display: inline-block;
  padding: 10px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  border-radius: 8px;
  background-color: #f5f5f5;
  width: 100%;
}
.imagegroup img { border-radius: 6px; transition: transform .2s ease; max-height: 400px; }
.imagegroup:hover img { transform: scale(1.01); }

/* Hinweisboxen – nutzt vorhandene Klassen aus deinem HTML */
.info     { background: var(--hx-note); border: 1px solid #bee5eb; padding: 14px 16px; border-radius: 8px; }
.warning  { background: var(--hx-warn); border: 1px solid #f5c6cb; padding: 14px 16px; border-radius: 8px; }
.highlight{ background: var(--hx-hl);   border: 1px solid #ffeaa7; padding: 14px 16px; border-radius: 8px; }

/* Schritte */
.step {
  background: #f8f9fa;
  border-left: 4px solid #28a745;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 0 8px 8px 0;
}
.step-number {
  background: #28a745;
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; margin-right: 8px; font-size: 13px;
}
.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  margin: 2px;
}
.status-yellow {
  background-color: #ffeaa7;
  color: #856404;
}
.status-blue {
  background-color: #d1ecf1;
  color: #0c5460;
}
.status-green {
  background-color: #d4edda;
  color: #155724;
}

/* Tabellen – harmoniert mit deinem Theme */
.readable.help table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 16px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
}
.readable.help th,
.readable.help td { padding: 10px 12px; border-bottom: 1px solid #e9ecef; }
.readable.help th {
  background: var(--hx-accent);
  color: #fff; font-weight: 600; text-align: left;
}
.readable.help tr:nth-child(even) { background: #fafafa; }
.readable.help tr:hover { background: #f1f3f5; }

/* Code/Pre */
.readable.help code,
.readable.help pre {
  background: #f6f8fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}
.readable.help code { padding: 1px 5px; }
.readable.help pre  { padding: 10px 12px; overflow:auto; }

/* Kapitelbox (Inhaltsverzeichnis am Ende) */
.chapter-index {
  margin-top: 28px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfbfb;
}
.chapter-index .text-medium { padding: 6px 0 10px; }
.chapter-index ul { margin: 8px 0 0; padding-left: 18px; }
.chapter-index a.text-orange { text-decoration: none; color: #495057; }
.chapter-index a.text-orange:hover { color: var(--hx-accent); }

/* Headings */
.readable.help h1 { margin-top: 0; }
.readable.help h2 { margin-top: 28px; padding-bottom: 6px; }
.readable.help h3 { margin-top: 18px; }

/* Sprungziele unter fixer Navbar nicht verdecken */
:target { scroll-margin-top: 80px; }

/* Print – kompakter, ohne Schatten/Hintergründe */
@media print {
  .shadowbox, .info, .warning, .highlight { box-shadow: none !important; }
  .info, .warning, .highlight { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a.imagegroup img { max-height: 300px; }
}

/* Tabellen auf kleinen Screens horizontal scrollbar machen */
@media (max-width: 900px) {
  .readable.help table {
    display: block;              /* erlaubt Overflow */
    width: 100%;
    overflow-x: auto;            /* Scrollbar */
    -webkit-overflow-scrolling: touch;
  }
  .readable.help thead th,
  .readable.help tbody td {
    white-space: nowrap;         /* Zeilen umbrechen nicht -> horizontales Scrollen */
  }
}