/* Ring Reader Anleitung — stylesheet with sidebar/TOC navigation */

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #0a0f1a;
  color: #cbd5e1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Guide header ──────────────────────────────────────────────── */
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.guide-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.guide-logo img {
  width: 28px;
  height: 28px;
}

.guide-header .back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}

.guide-header .back-link:hover {
  color: #fff;
}

/* ── Layout: sidebar + content ─────────────────────────────────── */
.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 0;
  align-items: start;
}

/* ── Sidebar navigation ────────────────────────────────────────── */
.guide-sidebar {
  position: sticky;
  top: 24px;
  padding: 16px 0;
}

.guide-sidebar nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: chapter;
}

.guide-sidebar nav ol li {
  counter-increment: chapter;
}

.guide-sidebar nav ol li a {
  display: block;
  padding: 6px 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.guide-sidebar nav ol li a::before {
  content: counter(chapter) ". ";
  color: #475569;
  font-weight: 600;
}

.guide-sidebar nav ol li a:hover {
  color: #e2e8f0;
  background: #1e293b;
}

.guide-sidebar nav ol li a.active {
  color: #fff;
  background: #1e293b;
  font-weight: 600;
}

.guide-sidebar nav ol li a.active::before {
  color: #3b82f6;
}

/* ── Mobile sidebar toggle ─────────────────────────────────────── */
.guide-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.guide-sidebar-toggle::after {
  content: " ▾";
  color: #64748b;
}

/* ── Article content ───────────────────────────────────────────── */
.guide-content {
  min-width: 0; /* prevent grid blowout */
}

.guide-content article {
  padding: 16px 0 48px;
}

.guide-content article h1 {
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 8px 0 8px;
}

.guide-content article .meta {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.guide-content article h2 {
  color: #e2e8f0;
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.guide-content article h3 {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.guide-content article p {
  font-size: 1rem;
  margin: 12px 0;
}

.guide-content article a {
  color: #60a5fa;
  text-decoration: none;
}

.guide-content article a:hover {
  color: #93bbfd;
}

.guide-content article ul,
.guide-content article ol {
  padding-left: 24px;
  margin: 12px 0;
}

.guide-content article li {
  margin: 6px 0;
  font-size: 1rem;
}

.guide-content article blockquote {
  border-left: 3px solid #3b82f6;
  margin: 16px 0;
  padding: 8px 16px;
  color: #94a3b8;
  font-style: italic;
}

.guide-content article code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* ── Step-by-step ordered lists ────────────────────────────────── */
.guide-content article ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.guide-content article ol li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin: 12px 0;
}

.guide-content article ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
}

/* Unordered lists keep their normal style */
.guide-content article ul {
  list-style: disc;
  padding-left: 24px;
}

.guide-content article ul li {
  padding-left: 0;
  position: static;
}

.guide-content article ul li::before {
  content: none;
}

/* Nested ordered lists inside unordered lists: restore */
.guide-content article ul ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

/* ── Screenshot images ─────────────────────────────────────────── */
.guide-content article img,
.guide-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin: 20px auto;
  display: block;
}

/* ── Tip / info boxes ──────────────────────────────────────────── */
.guide-tip {
  background: #0f1d2e;
  border: 1px solid #1e3a5f;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.guide-tip::before {
  content: "Tipp";
  display: block;
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.guide-tip p {
  margin: 6px 0;
}

.guide-tip p:first-of-type {
  margin-top: 0;
}

.guide-tip p:last-child {
  margin-bottom: 0;
}

/* ── Attention / warning boxes ────────────────────────────────── */
.guide-attention {
  background: #1a1207;
  border: 1px solid #5f4b1e;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.guide-attention::before {
  content: "Wichtig";
  display: block;
  font-weight: 700;
  color: #fbbf24;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.guide-attention p {
  margin: 6px 0;
}

.guide-attention p:first-of-type {
  margin-top: 0;
}

.guide-attention p:last-child {
  margin-bottom: 0;
}

/* ── Tier badges ───────────────────────────────────────────────── */
.badge-plus,
.badge-pro {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -1px;
}

.badge-plus {
  background: #1e3a5f;
  color: #60a5fa;
  border: 1px solid #2563eb;
}

.badge-pro {
  background: #312e81;
  color: #a78bfa;
  border: 1px solid #6d28d9;
}

/* ── Prev / Next navigation ────────────────────────────────────── */
.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}

.guide-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  transition: color 0.15s;
}

.guide-nav a:hover {
  color: #fff;
}

.guide-nav .prev::before {
  content: "← ";
}

.guide-nav .next::after {
  content: " →";
}

/* Push "next" to the right when there is no "prev" */
.guide-nav .next:first-child {
  margin-left: auto;
}

/* ── CTA box (reused from blog) ────────────────────────────────── */
.cta-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 40px 0;
}

.cta-box p {
  color: #e2e8f0;
  font-size: 1.125rem;
  margin: 0 0 16px;
}

.guide-content .cta-box a {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.guide-content .cta-box a:hover {
  background: #2563eb;
}

/* ── Guide footer ──────────────────────────────────────────────── */
.guide-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 0.875rem;
  color: #64748b;
}

.guide-footer a {
  color: #64748b;
  text-decoration: none;
  margin-right: 16px;
}

.guide-footer a:hover {
  color: #94a3b8;
}

/* ── Responsive: mobile ────────────────────────────────────────── */
@media (max-width: 768px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 16px;
  }

  .guide-sidebar {
    position: static;
    padding: 0 0 8px;
  }

  .guide-sidebar-toggle {
    display: block;
    margin-bottom: 8px;
  }

  .guide-sidebar nav {
    display: none;
    padding-top: 8px;
  }

  .guide-sidebar nav.open {
    display: block;
  }

  .guide-sidebar nav ol li a {
    padding: 8px 12px;
  }

  .guide-content article h1 {
    font-size: 1.5rem;
  }

  .guide-header {
    padding: 16px 16px 0;
  }

  .guide-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .guide-nav a {
    text-align: center;
    padding: 12px;
    background: #1e293b;
    border-radius: 8px;
  }

  .guide-nav .next:first-child {
    margin-left: 0;
  }
}
