/* Ratgeber (DE) and guide (EN) pages, see docs/exp24.md.
   Own file instead of custom.css. The server caches CSS for 30 days, so raise
   the ?v= number in extraCss (front matter of layouts/ratgeber.njk) on every change. */

/* The navbar is absolute (160px, 120px on phones) and sits above the content. */
.ratgeber-section {
  padding-top: 180px;
  padding-bottom: 40px;
}
@media screen and (max-width: 767px) {
  .ratgeber-section {
    padding-top: 140px;
  }
}
.ratgeber {
  max-width: 720px;
}
.ratgeber__breadcrumb {
  margin-bottom: 16px;
  opacity: 0.75;
}
.ratgeber__breadcrumb a {
  color: inherit;
}
.ratgeber__h1 {
  margin-top: 0;
  margin-bottom: 12px;
}
.ratgeber__meta {
  opacity: 0.75;
  margin-bottom: 24px;
}
.ratgeber__kurzantwort {
  background: rgba(39, 174, 96, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.ratgeber__kurzantwort p:last-child {
  margin-bottom: 0;
}
.ratgeber__toc {
  border: 1px solid rgba(17, 55, 34, 0.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.ratgeber__toc-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.ratgeber__toc ol {
  margin-bottom: 0;
  padding-left: 20px;
}
.ratgeber__content h2,
.ratgeber__faq h2,
.ratgeber__app h2,
.ratgeber__related h2 {
  margin-top: 40px;
}
.ratgeber__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  display: block;
  overflow-x: auto;
}
.ratgeber__content th,
.ratgeber__content td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(17, 55, 34, 0.15);
  vertical-align: top;
}
/* Keep the app name visible while the table scrolls sideways on phones. */
.ratgeber__content th:first-child,
.ratgeber__content td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
.ratgeber__content thead th {
  border-bottom: 2px solid rgba(17, 55, 34, 0.3);
}
.ratgeber__faq details {
  border-bottom: 1px solid rgba(17, 55, 34, 0.15);
  padding: 12px 0;
}
.ratgeber__faq summary {
  cursor: pointer;
  font-weight: 700;
}
.ratgeber__faq-antwort {
  padding-top: 8px;
}
.ratgeber__app {
  background: rgba(39, 174, 96, 0.1);
  border-radius: 12px;
  padding: 4px 24px 24px;
  margin-top: 40px;
}
.ratgeber__stores {
  flex-wrap: wrap;
}
.ratgeber__eintrag-link {
  color: inherit;
  text-decoration: none;
}
.ratgeber__eintrag-link:hover {
  text-decoration: underline;
}
.ratgeber__app-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(17, 55, 34, 0.1);
}
h3 .ratgeber__app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  margin-right: 10px;
}
/* Legend below a table */
.ratgeber__content table + p {
  font-size: 14px;
  line-height: 20px;
  opacity: 0.75;
  margin-top: -8px;
}

@media print {
  .ratgeber-page .navbar,
  .ratgeber-page .w-nav,
  .ratgeber-page .section--footer,
  .ratgeber-page .footer-infobox,
  .ratgeber__breadcrumb,
  .ratgeber__toc,
  .ratgeber__app,
  .ratgeber__related,
  .no-print {
    display: none !important;
  }
  .ratgeber-section {
    padding-top: 0;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}
