/* ============================================================
   GES2000 Online-Hilfe – Stylesheet
   Zielgruppe: 65+, Genealogie-Experten und Einsteiger
   Schriftgröße und Kontrast sind bewusst groß/hoch gewählt.
   ============================================================ */

:root {
  --farbe-haupt:       #003366;
  --farbe-akzent:      #005599;
  --farbe-hell:        #e8f0f8;
  --farbe-text:        #1a1a1a;
  --farbe-tipp:        #fff8e1;
  --farbe-tipp-rand:   #f0a500;
  --farbe-warnung:     #fff3cd;
  --farbe-warnung-rand:#c8860a;
  --farbe-code:        #f4f4f4;
  --schrift-basis:     18px;
  --schrift-gross:     20px;
  --schrift-klein:     15px;
  --abstand:           1.6em;
  --radius:            6px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--schrift-basis);
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: var(--schrift-basis);
  line-height: 1.7;
  color: var(--farbe-text);
  background: #ffffff;
  margin: 0;
  padding: 0;
}

/* ── Layout ───────────────────────────────────────────────── */
.seite-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-width: 220px;
  background: var(--farbe-haupt);
  color: #ffffff;
  padding: 1.5em 1em;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar h2 {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aac8e8;
  margin: 1.5em 0 0.4em;
  border-bottom: 1px solid #335577;
  padding-bottom: 0.3em;
}

.sidebar a {
  display: block;
  color: #d0e8ff;
  text-decoration: none;
  padding: 0.3em 0.2em;
  border-radius: 3px;
  font-size: 0.95em;
}

.sidebar a:hover,
.sidebar a.aktiv {
  background: var(--farbe-akzent);
  color: #ffffff;
  padding-left: 0.6em;
}

.sidebar .logo {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1em;
  display: block;
}

.nav-geplant {
  display: block;
  padding: 0.3em 0.2em;
  font-size: 0.9em;
  color: #6699bb;
  cursor: default;
}

.inhalt {
  flex: 1;
  padding: 2em 2.5em;
  max-width: 900px;
}

/* ── Überschriften ────────────────────────────────────────── */
h1 {
  font-size: 1.8em;
  color: var(--farbe-haupt);
  border-bottom: 3px solid var(--farbe-akzent);
  padding-bottom: 0.3em;
  margin-bottom: 0.4em;
}

h2 {
  font-size: 1.35em;
  color: var(--farbe-haupt);
  border-left: 4px solid var(--farbe-akzent);
  padding-left: 0.6em;
  margin-top: 2em;
}

h3 {
  font-size: 1.1em;
  color: var(--farbe-akzent);
  margin-top: 1.5em;
}

/* ── Brotkrumen-Navigation ───────────────────────────────── */
.brotkrumen {
  font-size: var(--schrift-klein);
  color: #666;
  margin-bottom: 1.5em;
}

.brotkrumen a {
  color: var(--farbe-akzent);
}

/* ── Tabellen ────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.97em;
}

th {
  background: var(--farbe-haupt);
  color: #ffffff;
  text-align: left;
  padding: 0.6em 0.8em;
}

td {
  padding: 0.5em 0.8em;
  border-bottom: 1px solid #dde;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: var(--farbe-hell);
}

/* ── Hinweisboxen ────────────────────────────────────────── */
.tipp, .hinweis, .warnung {
  border-left: 5px solid;
  padding: 0.8em 1em;
  margin: 1.2em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tipp {
  background: var(--farbe-tipp);
  border-color: var(--farbe-tipp-rand);
}

.tipp::before {
  content: '💡 Tipp: ';
  font-weight: bold;
  color: #8a6500;
}

.hinweis {
  background: var(--farbe-hell);
  border-color: var(--farbe-akzent);
}

.hinweis::before {
  content: 'ℹ️ Hinweis: ';
  font-weight: bold;
  color: var(--farbe-akzent);
}

.warnung {
  background: var(--farbe-warnung);
  border-color: var(--farbe-warnung-rand);
}

.warnung::before {
  content: '⚠️ Wichtig: ';
  font-weight: bold;
  color: #7a5000;
}

/* ── Screenshot-Platzhalter ──────────────────────────────── */
.screenshot-platzhalter {
  border: 2px dashed #aaaaaa;
  background: #f9f9f9;
  padding: 2em 1em;
  text-align: center;
  color: #888;
  font-size: 0.9em;
  border-radius: var(--radius);
  margin: 1.5em 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}

/* Im Produktionsbetrieb: figure mit Bild */
figure.screenshot {
  margin: 1.5em 0;
  text-align: center;
}

figure.screenshot img {
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

figure.screenshot figcaption {
  font-size: var(--schrift-klein);
  color: #555;
  margin-top: 0.4em;
  font-style: italic;
}

/* ── Glossar-Tooltips (inline) ───────────────────────────── */
.gl {
  border-bottom: 1px dashed var(--farbe-akzent);
  cursor: help;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.gl .gl-text {
  visibility: hidden;
  opacity: 0;
  background: #002244;
  color: #ffffff;
  font-size: var(--schrift-klein);
  padding: 0.5em 0.8em;
  border-radius: var(--radius);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  line-height: 1.4;
  z-index: 100;
  transition: opacity 0.2s;
  pointer-events: none;
}

.gl .gl-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #002244;
}

.gl:hover .gl-text,
.gl:focus .gl-text {
  visibility: visible;
  opacity: 1;
}

/* ── Schritt-für-Schritt ─────────────────────────────────── */
ol.schritte {
  padding-left: 1.4em;
}

ol.schritte li {
  margin-bottom: 0.6em;
  padding-left: 0.3em;
}

ol.schritte li strong {
  color: var(--farbe-haupt);
}

/* ── Tastaturkürzel / Schaltflächen-Darstellung ──────────── */
kbd {
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-family: monospace;
  font-size: 0.9em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.btn-label {
  background: var(--farbe-hell);
  border: 1px solid var(--farbe-akzent);
  border-radius: 3px;
  padding: 0.1em 0.5em;
  font-size: 0.92em;
  white-space: nowrap;
}

/* ── Seiten-Inhaltsverzeichnis ───────────────────────────── */
.inhaltsverzeichnis {
  background: var(--farbe-hell);
  border: 1px solid #c0d0e0;
  border-radius: var(--radius);
  padding: 1em 1.2em;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.inhaltsverzeichnis p {
  font-weight: bold;
  margin-bottom: 0.4em;
  color: var(--farbe-haupt);
}

.inhaltsverzeichnis ul {
  margin: 0;
  padding-left: 1.2em;
}

.inhaltsverzeichnis li {
  margin: 0.2em 0;
}

.inhaltsverzeichnis a {
  color: var(--farbe-akzent);
}

/* ── Fußzeile ────────────────────────────────────────────── */
footer {
  border-top: 1px solid #dde;
  padding: 1em 2.5em;
  font-size: var(--schrift-klein);
  color: #888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

/* ── Druckansicht ────────────────────────────────────────── */
@media print {
  .sidebar { display: none; }
  .inhalt { max-width: 100%; padding: 0; }
  .screenshot-platzhalter { display: none; }
  .gl .gl-text { display: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .seite-wrapper { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .inhalt { padding: 1em; }
}
