/* RUHRPADEL Docs - Dark Premium Theme */
/* Shared by all Mitarbeiter-Handbuch pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0A0F1C;
  --navy-light: #131B2E;
  --navy-card: #1A2744;
  --lime: #C4D600;
  --lime-dark: #9AAD00;
  --lime-glow: rgba(196, 214, 0, 0.15);
  --cyan: #00BFF5;
  --cyan-glow: rgba(0, 191, 245, 0.12);
  --red: #FF4757;
  --red-glow: rgba(255, 71, 87, 0.12);
  --orange: #FFA502;
  --orange-glow: rgba(255, 165, 2, 0.12);
  --green: #2ED573;
  --text: rgba(255,255,255,0.9);
  --text-sec: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
.header {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--lime-glow);
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(196,214,0,0.2);
  margin-bottom: 1.25rem;
}
.header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.header p {
  color: var(--text-sec);
  font-size: 1rem;
}

/* Results/Status Banner */
.results-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 2.5rem 0;
}
.result-item {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.result-item .icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.result-item .label { font-size: 0.7rem; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.result-item .value { font-size: 0.85rem; font-weight: 700; margin-top: 0.15rem; }
.result-item.pass { border-color: rgba(46,213,115,0.2); }
.result-item.pass .value { color: var(--green); }
.result-item.warn { border-color: rgba(255,165,2,0.2); }
.result-item.warn .value { color: var(--orange); }
.result-item.pending { border-color: rgba(0,191,245,0.2); }
.result-item.pending .value { color: var(--cyan); }
.result-item.danger { border-color: rgba(255,71,87,0.2); }
.result-item.danger .value { color: var(--red); }

/* Quick Reference Table */
.quick-ref {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
}
.quick-ref-title {
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
  border-bottom: 1px solid var(--border);
  background: rgba(196,214,0,0.04);
}
.quick-ref table {
  width: 100%;
  border-collapse: collapse;
}
.quick-ref th {
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sec);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.quick-ref td {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.quick-ref tr:last-child td { border-bottom: none; }
.quick-ref tr:hover td { background: rgba(255,255,255,0.02); }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-cash { background: rgba(46,213,115,0.12); color: var(--green); }
.tag-card { background: var(--cyan-glow); color: var(--cyan); }
.tag-none { background: rgba(255,255,255,0.06); color: var(--text-sec); }
.tag-lime { background: var(--lime-glow); color: var(--lime); }
.tag-orange { background: var(--orange-glow); color: var(--orange); }
.tag-red { background: var(--red-glow); color: var(--red); }
.tag-green { background: rgba(46,213,115,0.12); color: var(--green); }

/* Section Cards */
.section {
  margin-top: 2.5rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.section-num.blue { background: var(--cyan-glow); color: var(--cyan); border: 1px solid rgba(0,191,245,0.2); }
.section-num.green { background: rgba(46,213,115,0.1); color: var(--green); border: 1px solid rgba(46,213,115,0.2); }
.section-num.orange { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(255,165,2,0.2); }
.section-num.lime { background: var(--lime-glow); color: var(--lime); border: 1px solid rgba(196,214,0,0.2); }
.section-num.red { background: var(--red-glow); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-sec);
  margin-top: 0.1rem;
}

.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 0.65rem 0;
  font-size: 0.925rem;
  align-items: flex-start;
}
.steps li + li {
  border-top: 1px solid var(--border);
}
.steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.steps li strong {
  color: #fff;
  font-weight: 600;
}

.highlight {
  background: var(--lime-glow);
  color: var(--lime);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.note-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.note-info { background: var(--cyan-glow); border: 1px solid rgba(0,191,245,0.15); }
.note-warn { background: var(--orange-glow); border: 1px solid rgba(255,165,2,0.15); }
.note-danger { background: var(--red-glow); border: 1px solid rgba(255,71,87,0.15); }
.note-success { background: rgba(46,213,115,0.08); border: 1px solid rgba(46,213,115,0.15); }

/* Code blocks */
.code-block {
  margin-top: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.8;
}

/* Example Box */
.example {
  margin-top: 1.25rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.example-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.example-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.875rem;
}
.example-row + .example-row { border-top: 1px solid var(--border); }

/* Warning Grid */
.warning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 640px) {
  .warning-grid { grid-template-columns: 1fr; }
}
.warning-card {
  background: var(--navy-light);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.warning-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.warning-card p {
  font-size: 0.825rem;
  color: var(--text-sec);
  line-height: 1.5;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  align-items: flex-start;
}
.checklist li + li {
  border-top: 1px solid var(--border);
}
.checklist li::before {
  content: '';
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist li.done::before {
  background: var(--lime);
  border-color: var(--lime);
  content: '\2713';
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Troubleshooting */
.trouble-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}
.trouble-item + .trouble-item { border-top: 1px solid var(--border); }
.trouble-q {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.trouble-a {
  font-size: 0.85rem;
  color: var(--text-sec);
}

/* FAQ */
.faq-item {
  padding: 1rem 0;
}
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}
.faq-a {
  font-size: 0.85rem;
  color: var(--text-sec);
}

/* Nav index */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
}
@media (max-width: 640px) {
  .nav-grid { grid-template-columns: 1fr; }
}
.nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.nav-card:hover {
  border-color: rgba(196,214,0,0.3);
  background: rgba(196,214,0,0.04);
}
.nav-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.nav-label {
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-desc {
  font-size: 0.75rem;
  color: var(--text-sec);
  margin-top: 0.15rem;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 0.8rem;
}

/* Print */
@media print {
  body { background: #fff; color: #111; }
  .card, .quick-ref, .warning-card, .nav-card { border: 1px solid #ddd; background: #fafafa; }
  .section-num { border: 2px solid #333; }
  .note { border: 1px solid #ccc; }
  .header h1 { -webkit-text-fill-color: #111; background: none; }
  .badge { color: #333; border-color: #ccc; background: #f5f5f5; }
  .highlight { background: #eef; color: #333; }
  .tag { border: 1px solid #ccc; }
  .code-block { background: #f5f5f5; color: #333; border: 1px solid #ddd; }
}
