/* Shared reading layout for German and English blog articles. */
.blog-article {
  --article-gutter: 10rem;
  --article-hero-gutter: 10rem;
  --article-section-space: 2.5rem;
}

.blog-article .hero {
  box-sizing: border-box;
  height: auto;
  min-height: clamp(42rem, 78svh, 58rem);
  padding: 10rem var(--article-hero-gutter) 4rem;
  gap: 3rem;
}
.blog-article .hero.hero--image .hero-gradient {
  background: linear-gradient(180deg, rgba(28, 24, 19, 0.48), rgba(28, 24, 19, 0.34) 30%, rgba(28, 24, 19, 0.78));
}
.blog-article .hero .hero-navigation,
.blog-article .hero .hero-text {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
}
.blog-article .hero .hero-navigation { margin-bottom: auto; flex-wrap: wrap; row-gap: 0.5rem; }
.blog-article .hero .hero-text h1 {
  width: 100%;
  max-width: 64rem;
  margin: 0;
  font-size: 2.8rem !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.blog-article .hero .hero-text .kicker { margin: 0 0 1.25rem; }
.blog-article .hero .hero-text > .article-date {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 1.5rem;
  font: 300 1rem "Roboto", sans-serif;
}
.blog-article .hero .hero-text > p:not(.kicker):not(.article-date) {
  display: block;
  width: 100%;
  max-width: 65ch;
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
  line-height: normal;
}
.blog-article .hero .hero-buttons { margin-top: 2rem; }

.blog-article .service-content {
  box-sizing: border-box;
  padding: 3rem var(--article-gutter);
}
.blog-article .service-content > * {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
.blog-article :is(.service-intro-grid, .service-content-grid) {
  display: block;
  margin-block: var(--article-section-space) 0;
  padding: 0;
  border: 0;
}
.blog-article .service-content > :first-child { margin-top: 0; }
.blog-article :is(.service-intro-grid, .service-content-grid) > div {
  position: static;
  width: 100%;
  max-width: none;
}
.blog-article :is(.service-intro-grid, .service-content-grid) > div:first-child::before { content: none; }
.blog-article :is(.service-intro-grid, .service-content-grid) > div:last-child { display: block; }
.blog-article .article-introduction { display: block; margin-block: 0; }
.blog-article .service-content h2 {
  max-width: none;
  margin: 0 0 1rem;
  font-size: 1.75rem !important;
  line-height: normal !important;
  text-wrap: pretty;
}
.blog-article .service-content h3:not(.faq-heading) {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.3rem !important;
  line-height: normal !important;
}
.blog-article .service-content :is(p, li) {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: normal;
  color: #4b453e;
}
.blog-article .service-content :is(p, ul, ol) { margin: 0 0 1rem; }
.blog-article .service-content :is(.article-introduction, .service-intro-grid, .service-content-grid) p { margin: 0 0 1rem; }
.blog-article .service-content li + li { margin-top: 0.5rem; }
.blog-article .service-content :is(p, ul, ol):last-child { margin-bottom: 0; }
.blog-article .service-content :is(.article-introduction, .service-intro-grid, .service-content-grid) p:last-child { margin-bottom: 0; }
.blog-article .service-content .section-kicker { margin-bottom: 1rem; font-size: 1.1rem; }

.blog-article .service-content > .article-figure {
  margin-block: 2.5rem;
}
.blog-article .article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 0.6rem;
}
.blog-article .article-figure figcaption {
  margin-top: 1rem;
  font: 300 0.95rem "Roboto", sans-serif;
  color: #655d54;
}
.blog-article .service-content > .consultation-banner {
  margin-block: 3rem 0;
}
.blog-article .consultation-copy :is(p, h2) { color: #faf3e1; }
.blog-article .consultation-copy p { font-size: 1.2rem; }
.blog-article .consultation-portrait { min-height: 30rem; }
.blog-article main [id] { scroll-margin-top: 10rem; }

.blog-article .service-content > .article-toc {
  margin-block: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid #dfd5c6;
  border-radius: 0.6rem;
  background: #fffdf8;
}
.blog-article .article-toc > .article-toc-title { margin: 0 0 1.25rem; }
.blog-article .service-content > .article-toc:first-child { margin-top: 0; }
.blog-article .article-toc-disclosure > summary { display: none; }
.blog-article .article-toc ol { columns: 2; column-gap: 3rem; margin: 0; padding-left: 1.5rem; }
.blog-article .article-toc li { break-inside: avoid; margin: 0 0 0.75rem; padding-left: 0.25rem; font-size: 1.05rem; line-height: 1.45; }
.blog-article .article-toc li + li { margin-top: 0; }
.blog-article .article-toc li::marker { color: #aa2b1d; }
.blog-article .article-toc ol ol { columns: 1; margin: 0.75rem 0 0; padding-left: 1.25rem; list-style-type: lower-alpha; }
.blog-article .article-toc ol ol li { font-size: 1rem; }
.blog-article .table-scroll {
  box-sizing: border-box;
  margin-block: 1.75rem;
  overflow: hidden;
  border: 1px solid #dfd5c6;
  border-radius: 0.6rem;
  background: #fffdf8;
  box-shadow: 0 8px 28px rgba(54, 42, 31, 0.07);
}
.blog-article .table-scroll table {
  border-collapse: separate;
  border-spacing: 0;
  color: #4b453e;
  font-size: 1.1rem;
  font-weight: 300;
}
.blog-article .table-scroll :is(th, td) {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #e6ded2;
  overflow-wrap: break-word;
}
.blog-article .table-scroll thead th {
  padding-block: 1.5rem;
  border-bottom: 0;
  background: #61523e;
  color: #fffdf8;
  font-family: "PPFrama", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
}
.blog-article .table-scroll thead th:first-child { width: 22%; }
.blog-article .table-scroll table:has(thead th:nth-child(2):last-child) thead th:first-child { width: 28%; }
.blog-article .table-scroll thead th + th { border-left: 1px solid rgba(255, 253, 248, 0.18); }
.blog-article .table-scroll tbody th { background: #f5efe3; color: #43392e; font-weight: 500; }
.blog-article .table-scroll tbody tr:nth-child(even) td { background: #fbf8f1; }
.blog-article .table-scroll tbody td { border-left: 1px solid #e6ded2; }
.blog-article .table-scroll tbody tr:last-child > * { border-bottom: 0; }
.blog-article .article-anchor { display: block; }
.blog-article .article-toc-link { color: #4b453e; text-decoration: none; }
.blog-article .article-toc-link:is(:hover, :focus-visible) { color: #aa2b1d; text-decoration: underline; text-underline-offset: 0.2em; }
.blog-article .article-accordion > summary { list-style: none; cursor: pointer; }
.blog-article .article-accordion > summary::-webkit-details-marker { display: none; }
.blog-article .article-accordion > summary::marker { content: ""; }
.blog-article .article-accordion > summary::after {
  content: "";
  display: block;
  flex: 0 0 0.6rem;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 0.25rem 0.25rem 0;
  border-right: 2px solid #aa2b1d;
  border-bottom: 2px solid #aa2b1d;
  transform: rotate(45deg);
  transition: transform 300ms ease-in-out;
}
.blog-article .article-accordion[data-expanded="true"] > summary::after,
.blog-article .article-accordion:not([data-expanded])[open] > summary::after { transform: rotate(225deg); }
.blog-article .article-accordion > summary:focus-visible { outline: 2px solid #aa2b1d; outline-offset: 4px; border-radius: 0.6rem; }
.blog-article .article-disclosure-content { display: flow-root; }

.blog-article .article-related { padding: 0 var(--article-gutter) 4rem; }
.blog-article .article-related > h2 { margin: 0; color: #2c2a2a; font-family: "PPFrama", sans-serif; font-weight: 500; font-size: 1.75rem !important; line-height: normal !important; }
.blog-article .article-related .blog-layout { margin-top: 1.5rem; }

@media (max-width: 1200px) {
  .blog-article { --article-gutter: 5rem; --article-hero-gutter: 5rem; }
}
@media (max-width: 1024px) {
  .blog-article { --article-gutter: 3rem; --article-hero-gutter: 3rem; }
  .blog-article .hero { padding-top: 8rem; min-height: clamp(38rem, 78svh, 50rem); gap: 2rem; }
}
@media (max-width: 768px) {
  .blog-article { --article-gutter: 1.5rem; --article-hero-gutter: 1.5rem; --article-section-space: 2rem; }
  .blog-article .hero { min-height: clamp(34rem, 75svh, 42rem); padding-block: 7.5rem 3rem; gap: 2rem; }
  .blog-article .hero .hero-text h1 { font-size: 1.8rem !important; }
  .blog-article .service-content { padding-block: 2rem; }
  .blog-article .service-content > .article-figure { margin-block: 2rem; }
  .blog-article .article-figure img { aspect-ratio: 4 / 3; }
  .blog-article .service-content > .consultation-banner { margin-top: 2rem; }
  .blog-article .consultation-portrait { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .blog-article main [id] { scroll-margin-top: 7rem; }
  .blog-article .article-related { padding-bottom: 3rem; }
  .blog-article .service-content > .article-toc { margin-block: 2rem; padding: 0; }
  .blog-article .article-toc > .article-toc-title { display: none; }
  .blog-article .article-toc-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; color: #2c2a2a; font: 500 1.35rem "PPFrama", sans-serif; }
  .blog-article .article-toc-content { padding: 0 1.25rem 1.25rem; }
  .blog-article .article-toc ol { columns: 1; }
  .blog-article .article-toc-link { display: block; padding-block: 0.25rem; }
}

/* Stack each comparison row without squeezing its values into narrow columns. */
@media (max-width: 700px) {
  .blog-article .table-scroll { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .blog-article .table-scroll table { display: block; }
  .blog-article .table-scroll tbody { display: grid; gap: 1rem; }
  .blog-article .table-scroll tbody tr {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfd5c6;
    border-radius: 0.6rem;
    background: #fffdf8;
    box-shadow: 0 4px 16px rgba(54, 42, 31, 0.05);
  }
  .blog-article .table-scroll tbody th {
    display: block;
    padding: 1rem 1.25rem;
    border: 0;
    background: #61523e;
    color: #fffdf8;
    font-family: "PPFrama", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
  }
  .blog-article .table-scroll tbody td {
    display: block;
    padding: 1.1rem 1.25rem;
    border: 0;
    background: #fffdf8;
  }
  .blog-article .table-scroll tbody tr:nth-child(even) td { background: #fffdf8; }
  .blog-article .table-scroll tbody td + td { border-top: 1px solid #e6ded2; }
  .blog-article .table-scroll td::before {
    display: block;
    margin-bottom: 0.5rem;
    color: #65543f;
    font-size: 0.95rem;
    font-weight: 500;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-article .article-accordion > summary::after { transition: none; }
}
