/* Ha(e)tBis Handbuch – guide-specific styles (screen) */

.guide-page {
  padding-bottom: 3rem;
}

.guide-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(42, 143, 106, 0.12) 0%, rgba(231, 246, 239, 0.85) 55%, rgba(239, 122, 88, 0.08) 100%);
  border-bottom: 1px solid var(--line);
}

.guide-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.guide-hero .guide-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.guide-layout {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.guide-callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(42, 143, 106, 0.1);
}

.guide-callout--accent {
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(239, 122, 88, 0.35);
}

.guide-callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.guide-callout--accent strong {
  color: #8a3d28;
}

.guide-callout p {
  font-size: 0.98rem;
  line-height: 1.6;
}

.guide-callout ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.guide-callout li + li {
  margin-top: 0.35rem;
}

.guide-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem 1.15rem;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(30, 70, 55, 0.08);
}

.guide-toc h2 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
  color: var(--brand-dark);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.guide-toc a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.guide-toc a:hover {
  color: var(--brand);
}

.guide-content {
  min-width: 0;
}

.guide-chapter {
  scroll-margin-top: 5.5rem;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.guide-chapter:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-chapter h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.guide-chapter h3 {
  font-size: 1.12rem;
  color: var(--brand-dark);
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
}

.guide-chapter p,
.guide-chapter li {
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.6;
}

.guide-chapter ul,
.guide-chapter ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.guide-chapter li + li {
  margin-top: 0.35rem;
}

.guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
}

.guide-step-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.guide-step h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.guide-step p {
  margin: 0;
  font-size: 0.96rem;
}

.guide-note {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 233, 225, 0.45);
  font-size: 0.95rem;
}

.guide-note strong {
  color: var(--ink);
}

.guide-note p {
  margin: 0;
}

.guide-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.guide-tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--brand-dark);
}

.guide-tag--warn {
  background: #fff4e0;
  border-color: #f0d090;
  color: #7a5a12;
}

.guide-tag--ok {
  background: #e7f6ef;
  border-color: #a8d4bc;
  color: var(--brand-dark);
}

.guide-tag--alert {
  background: #ffe9e1;
  border-color: #f0b8a8;
  color: #8a3d28;
}

.guide-faq dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-top: 1rem;
}

.guide-faq dt:first-child {
  margin-top: 0;
}

.guide-faq dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 68ch;
}

.guide-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.5rem;
}

.guide-footer-links a {
  font-weight: 700;
  color: var(--brand);
}

@media (max-width: 959px) {
  .guide-toc {
    position: static;
  }
}

/* —— Print / PDF (A4) —— */
@media print {
  @page {
    size: A4;
    margin: 18mm 16mm 20mm;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: white !important;
    color: #1a2b25;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .site-header,
  .site-footer,
  .no-print,
  .nav-toggle,
  .guide-hero-actions {
    display: none !important;
  }

  .guide-page {
    padding: 0;
  }

  .guide-hero {
    padding: 0 0 12pt;
    background: none;
    border-bottom: 2pt solid #2a8f6a;
    page-break-after: avoid;
  }

  .guide-hero h1 {
    font-size: 22pt;
    color: #1a2b25;
  }

  .guide-hero .guide-subtitle {
    font-size: 11pt;
    color: #5a7167;
  }

  .guide-layout {
    display: block;
    padding: 0;
  }

  .guide-toc {
    position: static;
    box-shadow: none;
    border: 1pt solid #cfe3d8;
    background: #f5fbf7;
    margin-bottom: 14pt;
    page-break-after: avoid;
  }

  .guide-toc h2 {
    font-size: 12pt;
  }

  .guide-toc a {
    color: #1a2b25;
  }

  .guide-chapter {
    scroll-margin-top: 0;
    page-break-inside: avoid;
    break-inside: avoid-page;
    padding-bottom: 10pt;
    margin-bottom: 14pt;
    border-bottom: 0.5pt solid #cfe3d8;
  }

  .guide-chapter h2 {
    font-size: 15pt;
    color: #1f6d51;
    page-break-after: avoid;
    break-after: avoid-page;
  }

  .guide-chapter h3 {
    font-size: 11pt;
    page-break-after: avoid;
    break-after: avoid-page;
  }

  .guide-callout {
    box-shadow: none;
    border: 1pt solid #2a8f6a;
    background: #e7f6ef !important;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .guide-callout--accent {
    border-color: #ef7a58;
    background: #ffe9e1 !important;
  }

  .guide-step {
    box-shadow: none;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .guide-note {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .guide-chapter p,
  .guide-chapter li,
  .guide-callout p,
  .guide-callout li {
    color: #3a4f47;
    max-width: none;
  }

  a {
    color: #1f6d51;
    text-decoration: underline;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
    color: #5a7167;
    word-break: break-all;
  }

  a[href^='#']::after,
  a[href^='mailto:']::after,
  a[href^='index.html']::after,
  a[href^='handbuch.html']::after {
    content: none;
  }
}
