/* FHS DS Anleitungen - Einheitliches Design */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --haupt: #1e40af;
  --haupt-hell: #3b82f6;
  --akzent: #f59e0b;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --sub: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --warn: #ea580c;
  --danger: #dc2626;
}

body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Seitenleiste */
.sidebar {
  background: linear-gradient(180deg, var(--haupt) 0%, #1e3a8a 100%);
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  padding: 0 20px 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 14px;
}

.sidebar .brand h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar .brand p {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.sidebar .section {
  padding: 8px 20px 4px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
}

.sidebar a {
  display: block;
  padding: 7px 20px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-left-color: var(--akzent);
}

.sidebar a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: var(--akzent);
  font-weight: 600;
}

/* Hauptinhalt */
.content {
  padding: 40px 60px;
  max-width: 980px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--haupt); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--haupt);
  margin-bottom: 8px;
}

h1 .emoji { margin-right: 10px; }

.subtitle {
  font-size: 16px;
  color: var(--sub);
  margin-bottom: 32px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

p { margin-bottom: 14px; }

ol, ul {
  margin-left: 24px;
  margin-bottom: 18px;
}

li { margin-bottom: 8px; }

/* Schritte */
.schritt {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--haupt);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.schritt .nummer {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--haupt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.schritt .inhalt h3 { margin-top: 0; margin-bottom: 6px; font-size: 16px; }
.schritt .inhalt p { margin-bottom: 0; }
.schritt .inhalt img { margin-top: 10px; }

/* Hinweise */
.tipp, .warnung, .info {
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
  border-left: 4px solid;
}

.tipp {
  background: #dcfce7;
  border-color: var(--success);
  color: #14532d;
}

.warnung {
  background: #fef3c7;
  border-color: var(--warn);
  color: #7c2d12;
}

.info {
  background: #dbeafe;
  border-color: var(--haupt-hell);
  color: #1e3a8a;
}

.tipp b, .warnung b, .info b { font-weight: 700; }

/* Screenshots */
.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 12px 0;
}

.screenshot-caption {
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  font-style: italic;
  margin-top: -4px;
  margin-bottom: 18px;
}

/* Tasten und UI-Elemente */
kbd {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: "Consolas", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.btn-inline {
  display: inline-block;
  background: var(--haupt);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  color: var(--haupt);
}

pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 13px;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Karten fuer Index */
.karte-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.karte {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: block;
}

.karte:hover {
  border-color: var(--haupt);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.karte-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.karte h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--haupt);
}

.karte p {
  margin: 0;
  font-size: 13px;
  color: var(--sub);
}

/* Rolle-Badge */
.rolle {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.rolle-jeder { background: #dbeafe; color: #1e40af; }
.rolle-user { background: #e0e7ff; color: #4338ca; }
.rolle-admin { background: #fef3c7; color: #92400e; }
.rolle-it { background: #fee2e2; color: #991b1b; }

/* Seitennavigation unten */
.seiten-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.seiten-nav a {
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--haupt);
  text-decoration: none;
  font-size: 14px;
}

.seiten-nav a:hover {
  border-color: var(--haupt);
  background: #eff6ff;
}

.seiten-nav a.next { text-align: right; }
.seiten-nav a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.seiten-nav .label {
  font-size: 11px;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Drucken */
@media print {
  .sidebar { display: none; }
  .layout { display: block; }
  .content { padding: 20px; max-width: 100%; }
  .schritt { page-break-inside: avoid; }
  .seiten-nav { display: none; }
}

/* Mobile */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .content { padding: 20px; }
  h1 { font-size: 24px; }
}

/* Platzhalter fuer fehlende Screenshots */
.screenshot-placeholder {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #e2e8f0 10px, #e2e8f0 20px);
  border: 2px dashed #94a3b8;
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  margin: 12px 0;
}

.screenshot-placeholder .icon { font-size: 32px; opacity: 0.5; margin-bottom: 8px; }
