/* Article reading pages: a quiet canvas around the shared guide components. */
@media screen {
.ratgeber-article {
  --article-dark: #263b32;
  --article-cream: #f8f7f2;
  --article-sage: #f1f2e9;
  --article-card: #fcfbf7;
  --article-orange: #a34d25;
  --article-line: #dce1d3;
  --article-muted: #626b61;
  background: var(--article-cream);
  color: var(--article-dark);
  overflow-x: visible;
}

body .site-main .ratgeber-article .container { max-width: 1280px; }
.ratgeber-article :is(.article-hero__copy, .article-hero__visual, .article-toc,
  .article-content, .article-planning__copy, .article-planning__visual) { min-width: 0; }
.ratgeber-article.home-page :is(.article-body, .article-section, .guide-sources) {
  scroll-margin-top: 1rem;
}

/* Editorial cover, shared with the Ratgeber overview. */
.ratgeber-article .article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  color: #f9f8f1;
  background: #1c3129;
  border: 0;
}
.ratgeber-article .article-hero__visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  margin: 0;
}
.ratgeber-article .article-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1c3129 0%, rgba(28, 49, 41, .98) 38%, rgba(28, 49, 41, .72) 52%, rgba(28, 49, 41, .12) 66%, rgba(28, 49, 41, .04) 100%);
}
.ratgeber-article .article-hero__visual picture {
  display: block;
  height: 100%;
}

.ratgeber-article .article-hero__visual :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ratgeber-article .article-hero__inner {
  display: flex;
  align-items: center;
  min-height: clamp(33rem, 46vw, 41rem);
  padding-block: clamp(3.5rem, 5vw, 5rem);
}
.ratgeber-article .article-hero__copy { width: min(100%, 39rem); }
.ratgeber-article .article-hero__category {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
  color: #f2a377;
  background: transparent;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body[data-page^="guide-"] .ratgeber-article #article-hero-title {
  max-width: 24ch;
  margin: 0;
  color: #f9f8f1;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body[data-page^="guide-"] .ratgeber-article .article-hero__lead {
  max-width: 56ch;
  margin: 1.35rem 0 0;
  color: #e0e7dd;
  font-size: var(--fs-lead);
  line-height: var(--leading-body);
}
.ratgeber-article .article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 1.35rem;
  color: #d1dbcf;
  font-size: .8125rem;
  line-height: 1.5;
}
.ratgeber-article .article-hero__meta > span { display: inline-flex; align-items: center; gap: 7px; }
.ratgeber-article .article-hero__meta .icon { flex: none; color: #d1dbcf; }
.ratgeber-article :is(.article-hero__actions, .article-planning__actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
body[data-page^="guide-"] .site-main .ratgeber-article .article-hero__actions .btn--ghost {
  color: #f9f8f1;
  background: transparent;
  border-color: rgba(249, 248, 241, .65);
}
body[data-page^="guide-"] .site-main .ratgeber-article .article-hero__actions .btn--ghost:hover {
  color: #1c3129;
  background: #f9f8f1;
  border-color: #f9f8f1;
}
.ratgeber-article .btn { min-height: 44px; max-width: 100%; white-space: normal; border-radius: 9px; }
.ratgeber-article :is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid #a34d25;
  outline-offset: 4px;
}

/* A collapsible, keyboard-accessible contents list at every width. */
body[data-page^="guide-"] .ratgeber-article .article-body { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.ratgeber-article .article-layout {
  max-width: none;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.ratgeber-article .article-content { width: 100%; max-width: none; }
.ratgeber-article .article-toc {
  position: sticky;
  top: calc(var(--site-header-height) + 24px);
  max-height: calc(100dvh - var(--site-header-height) - 48px);
  overflow-y: auto;
  padding: 0;
  background: var(--article-sage);
  border: 1px solid var(--article-line);
  border-radius: 12px;
  box-shadow: none;
}
.ratgeber-article .article-toc__disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 15px 18px;
  color: var(--article-dark);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.ratgeber-article .article-toc__disclosure > summary::-webkit-details-marker { display: none; }
.ratgeber-article .article-toc__disclosure > summary::marker { content: ""; }
.ratgeber-article .article-toc__disclosure > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid #637854;
  border-bottom: 2px solid #637854;
  transform: rotate(45deg);
}
.ratgeber-article .article-toc__disclosure[open] > summary::after { transform: rotate(225deg); }
.ratgeber-article .article-toc__disclosure > summary:focus-visible { outline-offset: -4px; }
.ratgeber-article .article-toc__title { margin: 0; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.ratgeber-article .article-toc__body { padding: 0 18px 18px; }
.ratgeber-article .article-toc ol { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
.ratgeber-article .article-toc li { min-width: 0; }
.ratgeber-article .article-toc ol a {
  align-items: flex-start;
  min-height: 44px;
  padding-block: 10px;
  gap: 9px;
  border-top: 1px solid var(--article-line);
  color: #43564c;
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ratgeber-article .article-toc ol a::before { color: #5c6c54; }
.ratgeber-article .article-toc ol a:hover { color: var(--article-orange); }
.ratgeber-article .article-toc .article-toc__cta { justify-content: center; margin-top: 16px; }
.ratgeber-article .article-toc .article-toc__cta::before { content: none; }

/* Reading rhythm and understated markers replace the large outline numbers. */
.ratgeber-article .guide-product-prices {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: #f1f2e9;
  border: 1px solid #dce1d3;
  border-radius: 14px;
  scroll-margin-top: calc(var(--site-header-height, 5rem) + 1rem);
}
.ratgeber-article .guide-product-prices__eyebrow {
  margin: 0 0 .55rem;
  color: #a34d25;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body[data-page^="guide-"] .ratgeber-article .guide-product-prices h2 {
  margin: 0 0 .6rem;
  color: #263b32;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}
.ratgeber-article .guide-product-prices > p:not(.guide-product-prices__eyebrow) { color: #626b61; line-height: 1.55; }
.ratgeber-article .guide-product-prices__rows { margin: 1.2rem 0; border-top: 1px solid #cfd9cb; }
.ratgeber-article .guide-product-prices__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.2rem;
  padding: .9rem 0;
  border-bottom: 1px solid #cfd9cb;
}
.ratgeber-article .guide-product-prices__row > div { display: flex; flex-direction: column; gap: .2rem; }
.ratgeber-article .guide-product-prices__row small { color: #626b61; font-size: .75rem; }
.ratgeber-article .guide-product-prices__row a { display: inline-flex; align-items: center; gap: .3rem; color: #9c4722; font-size: .875rem; }
.ratgeber-article .guide-product-prices__note { margin: 0; font-size: .8125rem; }
.ratgeber-article .key-facts { padding: clamp(22px, 3vw, 32px); background: var(--article-sage); border-color: var(--article-line); border-radius: 14px; box-shadow: none; }
body[data-page^="guide-"] .ratgeber-article .key-facts__title { align-items: flex-start; font-size: var(--fs-h3); line-height: var(--leading-heading); }
body[data-page^="guide-"] .ratgeber-article .key-facts__list li { color: #43564c; font-size: var(--text-reading); line-height: var(--leading-body); }
.ratgeber-article .key-facts__list { gap: 13px; }
.ratgeber-article .tick { flex: none; margin-top: 3px; }
.ratgeber-article .article-section { margin-top: 36px; padding-top: 32px; border-color: var(--article-line); }
.ratgeber-article .article-section__no {
  margin: 0 0 10px;
  color: var(--article-orange);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  -webkit-text-stroke: 0;
}
body[data-page^="guide-"] .ratgeber-article .article-section > h2 { max-width: 36ch; margin-bottom: 18px; font-size: var(--fs-h2); line-height: var(--leading-heading); color: var(--article-dark); }
.ratgeber-article .article-prose { max-width: 76ch; }
body[data-page^="guide-"] .ratgeber-article .article-prose > p { margin-bottom: 16px; color: var(--article-muted); font-size: var(--text-reading); line-height: var(--leading-prose); }
body[data-page^="guide-"] .ratgeber-article .article-list li { color: var(--article-muted); font-size: var(--text-reading); line-height: var(--leading-prose); }
.ratgeber-article .article-list { gap: 12px; }
.ratgeber-article .article-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.ratgeber-article .flow-card { padding: 22px; background: var(--article-card); border-color: var(--article-line); border-radius: 12px; box-shadow: none; }
.ratgeber-article .flow-card:hover { transform: none; border-color: #bfcbb3; box-shadow: none; }
.ratgeber-article .flow-card__no { position: static; display: block; margin-bottom: 12px; color: var(--article-orange); font-size: .8125rem; font-weight: 600; line-height: 1.5; letter-spacing: .06em; -webkit-text-stroke: 0; }
body[data-page^="guide-"] .ratgeber-article .flow-card h3 { margin: 0 0 10px; font-size: var(--fs-h3); line-height: var(--leading-heading); }
body[data-page^="guide-"] .ratgeber-article .flow-card p { color: var(--article-muted); font-size: var(--text-card-copy); line-height: var(--leading-ui); }
.ratgeber-article .article-steps li { padding: 20px; background: var(--article-card); border-color: var(--article-line); box-shadow: none; }
.ratgeber-article .article-steps li > div { min-width: 0; }
.ratgeber-article .article-steps__no { color: #526947; background: #e9eddf; border-radius: 8px; }
body[data-page^="guide-"] .ratgeber-article .article-steps h3 { font-size: var(--fs-h3); line-height: var(--leading-heading); }
body[data-page^="guide-"] .ratgeber-article .article-steps p { color: var(--article-muted); font-size: var(--text-card-copy); line-height: var(--leading-ui); }
.ratgeber-article :is(.doc-list, .cost-block) { background: var(--article-sage); border-color: var(--article-line); border-radius: 12px; }
.ratgeber-article :is(.doc-list h3, .cost-block h3, .key-facts__title) .icon { flex: none; margin-top: 3px; }
.ratgeber-article :is(.doc-list li, .doc-list__note, .cost-block__note) { color: var(--article-muted); }
.ratgeber-article :is(.cost-block dl, .cost-block__row) { border-color: var(--article-line); }
.ratgeber-article .cost-block dt { color: var(--article-dark); }
.ratgeber-article .cost-block__value { color: var(--article-orange); }
.ratgeber-article .cost-block__row > * { min-width: 0; overflow-wrap: anywhere; }
.ratgeber-article .article-checklist { border-style: solid; border-color: var(--article-line); background: var(--article-card); }
.ratgeber-article .article-checklist li { color: #43564c; }
.ratgeber-article :is(.article-checklist li, .key-facts__list li, .article-list li, .doc-list li) {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.ratgeber-article .callout { padding: 20px; border-color: var(--article-line); border-radius: 0 10px 10px 0; }
.ratgeber-article .callout--tip { border-left-color: #638057; background: #edf2e7; }
.ratgeber-article .callout--warn { border-left-color: #a57732; background: #faf2e1; }
.ratgeber-article .callout--law { border-left-color: #597587; background: #edf2f4; }
.ratgeber-article .callout__icon { background: var(--article-card); border-color: var(--article-line); }
.ratgeber-article .callout--tip :is(.callout__label, .callout__icon) { color: #486d3c; }
.ratgeber-article .callout--warn :is(.callout__label, .callout__icon) { color: #825e20; }
.ratgeber-article .callout--law :is(.callout__label, .callout__icon) { color: #466778; }
.ratgeber-article .callout__title { color: var(--article-dark); }
.ratgeber-article .callout__body { overflow-wrap: anywhere; hyphens: auto; }
.ratgeber-article .callout__text { color: #4f5c50; }
body[data-page^="guide-"] .ratgeber-article .callout__text { font-size: var(--text-small); line-height: var(--leading-ui); }
.ratgeber-article .guide-section-figure { max-width: 540px; margin-block: 28px; }
.ratgeber-article .guide-section-figure__image { background: var(--article-sage); border-color: var(--article-line); border-radius: 12px; }
.ratgeber-article .guide-section-figure figcaption { color: var(--article-muted); }
.ratgeber-article .guide-section-figure figcaption span { color: #43564c; }
.ratgeber-article .guide-sources { border-color: var(--article-line); }
.ratgeber-article .guide-sources__list { gap: 16px; }
.ratgeber-article :is(.guide-sources__intro, .guide-sources__list p) { color: var(--article-muted); }
.ratgeber-article :is(.guide-sources__list a, .guide-table-source a) { color: var(--article-orange); }
.ratgeber-article :is(.guide-sources__list a, .guide-table-source a):hover { color: #7d421f; }
.ratgeber-article .guide-table-source small { color: var(--article-muted); }
.ratgeber-article .article-disclaimer { background: var(--article-sage); border-left-color: #a6b39b; color: var(--article-muted); }

/* Wide tables scroll locally; no outer reading column can stretch the page. */
.ratgeber-article :is(.data-table, .data-table__scroll) { width: 100%; min-width: 0; max-width: 100%; }
.ratgeber-article .data-table__scroll { overflow-x: auto; overscroll-behavior-x: contain; background: var(--article-card); border-color: var(--article-line); border-radius: 10px; }
.ratgeber-article .data-table table { min-width: 600px; }
.ratgeber-article .data-table__swipe-hint { display: none; }
@media screen and (max-width: 640px) {
  .ratgeber-article .data-table__swipe-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--article-muted); font-size: 13px; line-height: 1.5; }
  .ratgeber-article .data-table__swipe-hint .icon { flex: none; }
}
.ratgeber-article .data-table :is(th, td) { padding: 13px 16px; line-height: 1.6; border-color: var(--article-line); }
.ratgeber-article .data-table thead th { color: #43564c; background: #ebeee2; }
.ratgeber-article .data-table tbody th { color: var(--article-dark); }
.ratgeber-article .data-table td { color: #526154; }
.ratgeber-article .data-table tbody tr:nth-child(even) :is(th, td) { background: #f5f6ef; }
.ratgeber-article .data-table tbody tr:hover :is(th, td) { background: #edf1e5; }
.ratgeber-article :is(.data-table__caption, .data-table__note) { color: var(--article-muted); }
.ratgeber-article :is(.data-table__note, .guide-sources__list, .guide-table-source) { overflow-wrap: anywhere; }

.ratgeber-article .article-related { margin-top: 36px; padding-top: 32px; border-color: var(--article-line); }
.ratgeber-article .model-list { display: grid; gap: 10px; }
.ratgeber-article .model-row { min-height: 80px; gap: 16px; padding: 18px 20px; background: var(--article-card); border: 1px solid var(--article-line); border-radius: 11px; }
.ratgeber-article .model-row:hover { border-color: #bfcbb3; background: #f2f4ea; }
.ratgeber-article .model-row__main { display: grid; min-width: 0; gap: 5px; color: var(--article-dark); }
.ratgeber-article .model-row__main strong { overflow-wrap: anywhere; line-height: 1.5; }
.ratgeber-article .model-row__meta { color: var(--article-muted); line-height: 1.5; }
.ratgeber-article .model-row__no { flex: none; color: #5c6c54; }
.ratgeber-article .model-row__go { color: #536b4a; background: #e9eddf; }
.ratgeber-article .model-row:hover .model-row__go { color: var(--article-dark); background: #dde5d4; }
.ratgeber-article .article-back .link-arrow { min-height: 44px; align-items: center; }

/* A straight closing section, using the same planner illustration as before. */
.ratgeber-article .article-planning { margin: 0; padding-block: clamp(40px, 6vw, 76px); color: var(--article-dark); background: var(--article-sage); border-top: 1px solid var(--article-line); }
.ratgeber-article .article-planning__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.ratgeber-article .article-planning .kicker { color: var(--article-orange); }
body[data-page^="guide-"] .ratgeber-article .article-planning h2 { max-width: 24ch; margin: 12px 0 0; color: var(--article-dark); font-size: var(--fs-h2); line-height: var(--leading-heading); }
.ratgeber-article .article-planning__lead { max-width: 58ch; margin: 20px 0 0; color: var(--article-muted); font-size: var(--fs-lead); line-height: var(--leading-body); }
.ratgeber-article .article-planning__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.ratgeber-article .article-planning__ticks li { display: flex; align-items: center; gap: 8px; color: #526154; font-size: .875rem; line-height: 1.5; }
.ratgeber-article .article-planning__ticks .icon { flex: none; color: #637e51; }
.ratgeber-article .article-planning__visual { max-width: 500px; width: 100%; justify-self: end; }
.ratgeber-article .article-planning .guide-planner-visual figcaption { color: var(--article-muted); font-size: .8125rem; }

@media (max-width: 1100px) {
  .ratgeber-article .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ratgeber-article .article-toc { position: static; max-height: none; overflow: visible; }
  .ratgeber-article .article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .ratgeber-article .article-toc .article-toc__cta { width: fit-content; padding-inline: 18px; }
}
@media (max-width: 960px) {
  .ratgeber-article .article-planning__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ratgeber-article .article-planning__visual { max-width: 420px; justify-self: center; }
}
@media (max-width: 700px) {
  .ratgeber-article .article-toc ol { grid-template-columns: minmax(0, 1fr); }
  .ratgeber-article .article-toc .article-toc__cta { width: 100%; }
  .ratgeber-article .article-section { margin-top: 28px; padding-top: 28px; }
  .ratgeber-article .model-row { padding: 16px; gap: 12px; }
  .ratgeber-article .model-row__go { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  body[data-page^="guide-"] .ratgeber-article #article-hero-title { font-size: clamp(1.625rem, 7.4vw, 2rem); line-height: 1.16; }
  .ratgeber-article .article-hero__visual {
    position: relative;
    inset: auto;
    height: clamp(13rem, 58vw, 19rem);
  }
  .ratgeber-article .article-hero__visual::after {
    background: linear-gradient(0deg, #1c3129 0%, rgba(28, 49, 41, .1) 12%, transparent 25%);
  }
  .ratgeber-article .article-hero__visual img { object-position: right center; }
  .ratgeber-article .article-hero__inner { min-height: 0; padding-block: .6rem 2.5rem; }
  .ratgeber-article .article-hero__category { margin-bottom: 1.1rem; }
  .ratgeber-article .article-planning__visual { max-width: 300px; }
  .ratgeber-article .article-hero__actions { gap: 10px; margin-top: 22px; }
  .ratgeber-article .article-hero__lead { margin-top: 16px; }
  .ratgeber-article .article-steps li { flex-direction: row; padding: 18px; gap: 12px; }
  .ratgeber-article .callout { gap: 12px; padding: 18px; }
  .ratgeber-article .article-cards { grid-template-columns: minmax(0, 1fr); }
  .ratgeber-article .model-row__no { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ratgeber-article :is(.btn, .btn .icon, .model-row, .model-row__go, .model-row__go .icon, .home-faq-item, .home-faq-item__sign, .article-back .icon) { transition: none; }
  .ratgeber-article :is(.btn:hover, .btn:hover .icon, .model-row:hover .model-row__go .icon, .article-back .link-arrow:hover .icon) { transform: none; }
}
}

@media print {
  .ratgeber-article { background: #fff; color: #000; }
  html.js .ratgeber-article [data-reveal] { opacity: 1; translate: none; transform: none; }
  body .site-main .ratgeber-article .container { max-width: none; padding-inline: 0; }
  .ratgeber-article .article-hero { padding-block: 0 18pt; color: #000; background: #fff; border: 0; }
  .ratgeber-article .article-hero__inner { display: block; }
  body[data-page^="guide-"] .ratgeber-article #article-hero-title { max-width: none; color: #000; font-size: 24pt; }
  .ratgeber-article :is(.article-hero__lead, .article-hero__meta, .article-hero__category) { color: #000; }
  .ratgeber-article .article-hero__category { padding: 0; border: 0; background: none; }
  .ratgeber-article :is(.article-hero__actions, .article-hero__visual, .article-planning) { display: none; }
  body[data-page^="guide-"] .ratgeber-article .article-body { padding-block: 0; }
  .ratgeber-article .article-layout { display: block; }
  .ratgeber-article :is(.article-section, .guide-sources) { break-inside: auto; }
  .ratgeber-article :is(.key-facts, .flow-card, .callout, .doc-list, .cost-block, .article-checklist) { background: #fff; box-shadow: none; }
  .ratgeber-article :is(h2, h3) { break-after: avoid; }
  body[data-page^="guide-"] .ratgeber-article .article-prose > p { color: #000; font-size: 10.5pt; line-height: 1.55; }
  .ratgeber-article .data-table__scroll { overflow: visible; }
  .ratgeber-article .data-table table { min-width: 0; }
  .ratgeber-article .data-table :is(th, td) { padding: 5pt; font-size: 8pt; white-space: normal; overflow-wrap: anywhere; }
  .ratgeber-article .data-table thead th { background: #eee; }
  .ratgeber-article .guide-section-figure { max-width: 280pt; break-inside: avoid; }
}
