/* ==========================================================================
   Editor content: typography, content blocks, CTA boxes, FAQ. LAYOUT FILE.
   Boards "Content-Bausteine 1 und 2" and "CTA-Boxen im Artikel".
   Everything is scoped to .ah-content. How editors use each block: see
   docs/content-bausteine.md.
   ========================================================================== */

.ah-content {
  max-width: 860px;
  color: #2A2520;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.ah-content > * + * {
  margin-top: 22px;
}

.ah-content > :first-child {
  margin-top: 0;
}

/* ---------- Headings and text ---------- */

.ah-content h2 {
  margin-top: 48px;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  scroll-margin-top: 24px;
}

.ah-content h3 {
  margin-top: 32px;
  font-size: 22px;
  line-height: 1.3;
}

.ah-content h4 {
  margin-top: 24px;
  font-size: 19px;
}

.ah-content h2 + *,
.ah-content h3 + *,
.ah-content h4 + * {
  margin-top: 12px;
}

.ah-content a {
  color: var(--ah-orange-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ah-content strong,
.ah-content b {
  font-weight: 800;
  color: var(--ah-text);
}

/* Intro: italic, a little larger. Either class ah-intro or a first paragraph that is
   entirely italic (as in the existing articles). */
.ah-content .ah-intro,
.ah-content > p:first-child:has(> em:only-child),
.ah-content > p:first-child:has(> i:only-child) {
  font-size: 19px;
  line-height: 1.7;
  font-style: italic;
  color: #2A2520;
}

.ah-content > p:first-child > em:only-child,
.ah-content > p:first-child > i:only-child {
  color: inherit;
}

/* ---------- Lists: bold start keeps them scannable ---------- */

.ah-content ul,
.ah-content ol {
  padding-left: 22px;
}

.ah-content li + li {
  margin-top: 8px;
}

.ah-content li::marker {
  color: var(--ah-orange);
}

.ah-content ol > li::marker {
  font-weight: 800;
}

/* ---------- Images, figures, video ---------- */

.ah-content img {
  border-radius: 16px;
}

.ah-content figure {
  margin-left: 0;
  margin-right: 0;
}

.ah-content figcaption,
.ah-content .wp-element-caption {
  margin-top: 8px;
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.ah-content .wp-block-embed iframe,
.ah-content video {
  width: 100%;
  border-radius: 16px;
}

/* ---------- Tables: peach head, hairlines, scroll on mobile ---------- */

.ah-content .wp-block-table,
.ah-content .ah-table {
  overflow-x: auto;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
}

.ah-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

.ah-content th,
.ah-content td {
  padding: 13px 18px;
  border: 0;
  border-top: 1px solid var(--ah-line);
  text-align: left;
  vertical-align: top;
}

.ah-content thead th,
.ah-content tr:first-child th {
  border-top: 0;
  background: var(--ah-peach);
  font-weight: 800;
}

/* Light zebra on the body rows, easier to follow in long tables (Timo, 10 Nov 2026).
   Replaces the grey stripes of the core style "Streifen". */
.ah-content tbody tr:nth-child(even) > td,
.ah-content .is-style-stripes tbody tr:nth-child(even) > td {
  background: var(--ah-beige);
}

.ah-content .is-style-stripes tbody tr:nth-child(odd) {
  background: none;
}

.ah-content .wp-block-table.is-style-stripes {
  border-bottom: 1px solid var(--ah-line);
}

.ah-content > table {
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  overflow: hidden;
}

.ah-content .wp-block-table table {
  min-width: 520px;
}

/* ---------- Das Wichtigste auf einen Blick: peach, max. five points ---------- */

.ah-content .ah-summary,
.ah-content .single-takeaways {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 34px;
  border-radius: 22px;
  background: var(--ah-peach);
}

.ah-content .ah-summary > *,
.ah-content .single-takeaways > * {
  margin: 0;
}

.ah-content .ah-summary > :is(h2, h3, h4, p:first-child:has(> strong:only-child)),
.ah-content .single-takeaways__title {
  margin: 0;
  /* !important: old paragraphs carry WordPress font size classes (has-small-font-size). */
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.ah-content .ah-summary ul,
.ah-content .single-takeaways ul {
  font-size: 17px;
  line-height: 1.6;
}

.ah-content .ah-summary li + li,
.ah-content .single-takeaways li + li {
  margin-top: 12px;
}

/* ---------- Hinweisbox "Wichtig:" (replaces the light bulb box) ---------- */

.ah-content .ah-note {
  position: relative;
  padding: 20px 22px 20px 58px;
  border-radius: 16px;
  background: var(--ah-beige);
  font-size: 16px;
  line-height: 1.65;
}

.ah-content .ah-note::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C44500' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ah-content .ah-note > * {
  margin: 0;
}

.ah-content .ah-note > * + * {
  margin-top: 8px;
}

/* ---------- Praxistipp / Praxisbeispiel: beige, orange bar, label first ---------- */

.ah-content .ah-tip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 26px;
  border-left: 4px solid var(--ah-orange);
  border-radius: 0 16px 16px 0;
  background: var(--ah-beige);
  font-size: 17px;
  line-height: 1.65;
}

.ah-content .ah-tip > * {
  margin: 0;
}

.ah-content .ah-tip > :first-child {
  color: var(--ah-orange-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ah-content .ah-tip > :first-child strong {
  color: inherit;
}

/* ---------- Gesetzestext / Musterformulierung ---------- */

.ah-content .ah-quote,
.ah-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 22px 24px;
  border: 0;
  border-radius: 16px;
  background: var(--ah-beige);
  color: #2A2520;
  font-size: 16px;
  font-style: italic;
  line-height: 1.75;
}

.ah-content .ah-quote > *,
.ah-content blockquote > * {
  margin: 0;
}

.ah-content blockquote cite {
  display: block;
  margin-top: 8px;
  color: var(--ah-grey);
  font-size: 14px;
  font-style: normal;
}

/* ---------- Vorteile und Nachteile ---------- */

.ah-content .ah-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ah-content .ah-proscons > * {
  margin: 0;
}

.ah-content .ah-pros,
.ah-content .ah-cons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.ah-content .ah-pros {
  background: var(--ah-pro-bg);
}

.ah-content .ah-cons {
  background: var(--ah-con-bg);
}

.ah-content .ah-pros > *,
.ah-content .ah-cons > * {
  margin: 0;
}

.ah-content .ah-pros > :first-child,
.ah-content .ah-cons > :first-child {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.ah-content .ah-pros > :first-child {
  color: var(--ah-pro);
}

.ah-content .ah-cons > :first-child {
  color: var(--ah-con);
}

.ah-content .ah-pros ul,
.ah-content .ah-cons ul {
  padding: 0;
  list-style: none;
}

.ah-content .ah-pros li,
.ah-content .ah-cons li {
  display: flex;
  gap: 10px;
}

.ah-content .ah-pros li::before,
.ah-content .ah-cons li::before {
  font-weight: 800;
}

.ah-content .ah-pros li::before {
  content: "+";
  color: var(--ah-pro);
}

.ah-content .ah-cons li::before {
  content: "–";
  color: var(--ah-con);
}

/* ---------- Nummerierte Schritte: <ol class="ah-steps"> with bold title ---------- */

.ah-content ol.ah-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: ah-step;
}

.ah-content ol.ah-steps > li {
  position: relative;
  margin: 0;
  padding-left: 50px;
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.6;
  counter-increment: ah-step;
}

.ah-content ol.ah-steps > li::before {
  content: counter(ah-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-peach);
  color: var(--ah-text);
  font-size: 15px;
  font-weight: 800;
}

.ah-content ol.ah-steps > li > strong:first-child {
  display: block;
  color: var(--ah-text);
  font-size: 18px;
}

/* ---------- Checkliste: <ul class="ah-checklist">, made tickable in site.js ---------- */

.ah-content .ah-checklist-box,
.ah-content ul.ah-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--ah-line);
  border-radius: 20px;
  list-style: none;
}

.ah-content ul.ah-checklist > li {
  margin: 0;
}

.ah-content .ah-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  cursor: pointer;
}

.ah-content .ah-checklist input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 2px solid var(--ah-input-border);
  border-radius: 6px;
  background: var(--ah-white);
  cursor: pointer;
}

.ah-content .ah-checklist input:checked {
  border-color: var(--ah-orange);
  background: var(--ah-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center / 14px;
}

.ah-content .ah-checklist input:checked + span {
  color: var(--ah-grey);
}

.ah-content .ah-checklist__hint {
  color: var(--ah-grey);
  font-size: 13px;
}

/* ---------- Download card ---------- */

.ah-content .ah-download a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 22px 24px;
  border: 1px solid var(--ah-line);
  border-radius: 20px;
  color: var(--ah-text);
  font-weight: 400;
  text-decoration: none;
}

.ah-content .ah-download a::before {
  content: "PDF";
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 58px;
  border-radius: 8px;
  background: var(--ah-peach);
  color: var(--ah-orange-text);
  font-size: 12px;
  font-weight: 800;
}

.ah-content .ah-download a::after {
  content: "Download";
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
}

.ah-content .ah-download strong {
  font-size: 17px;
}

.ah-content .ah-download span {
  grid-column: 2;
  color: var(--ah-grey);
  font-size: 14px;
}

/* ---------- Kennzahlen: three figures ---------- */

.ah-content .ah-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ah-content .ah-figures > * {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--ah-beige);
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.5;
}

.ah-content .ah-figures strong {
  color: var(--ah-text);
  font-size: 28px;
  line-height: 1.2;
}

/* ---------- Weiterführende Links ---------- */

.ah-content .ah-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--ah-beige);
}

.ah-content .ah-links > * {
  margin: 0;
}

.ah-content .ah-links > :first-child {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.ah-content .ah-links ul {
  padding: 0;
  list-style: none;
}

.ah-content .ah-links li + li {
  margin-top: 4px;
}

.ah-content .ah-links a {
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Quellen und Fußnoten ---------- */

.ah-content .ah-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--ah-line);
  color: var(--ah-grey);
  font-size: 13px;
  line-height: 1.45;
}

/* Compact list (Timo, 12 Nov 2026): no paragraph spacing inside the entries. */
.ah-content .ah-sources li {
  margin: 0 0 3px;
}

.ah-content .ah-sources li p {
  display: inline;
  margin: 0;
}

.ah-content .ah-sources > * {
  margin: 0;
}

.ah-content .ah-sources > :first-child {
  color: var(--ah-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.ah-content .ah-sources ol {
  padding-left: 20px;
}

.ah-content .ah-sources li::marker {
  color: var(--ah-orange-text);
  font-weight: 800;
}

.ah-content sup a {
  font-weight: 800;
  text-decoration: none;
}

/* ---------- FAQ (Yoast FAQ block): cards, opened in site.js ---------- */

.ah-content .schema-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ah-content .schema-faq-section {
  margin: 0;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  background: var(--ah-white);
}

.ah-content .schema-faq-question {
  position: relative;
  display: block;
  padding: 20px 60px 20px 24px;
  color: var(--ah-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.ah-content .schema-faq-question::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C44500' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.2s ease;
}

.ah-content .schema-faq-section.is-open .schema-faq-question::after {
  transform: rotate(45deg);
}

.ah-content .schema-faq-answer {
  margin: 0;
  padding: 0 24px 22px;
  color: #2A2520;
  font-size: 16px;
  line-height: 1.7;
}

.ah-content .schema-faq-answer > * {
  margin: 0;
}

.ah-content .schema-faq-answer > * + * {
  margin-top: 10px;
}

.ah-content .schema-faq.is-ready .schema-faq-section:not(.is-open) .schema-faq-answer {
  display: none;
}

/* ==========================================================================
   CTA boxes [cta_*], markup from parts/cta/box.php
   ========================================================================== */

.ah-cta {
  margin-top: 32px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: var(--ah-radius-box);
  background: var(--ah-peach);
  color: var(--ah-text);
}

.ah-content .ah-cta + * {
  margin-top: 32px;
}

.ah-cta__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 40px;
}

.ah-cta__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.ah-cta__text {
  color: var(--ah-grey);
  font-size: 17px;
  line-height: 1.6;
}

.ah-cta__text > * {
  margin: 0;
}

.ah-cta__text > * + * {
  margin-top: 12px;
}

/* Lists in CTA boxes are check lists. */
.ah-cta__text ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.ah-cta__text li {
  position: relative;
  margin: 0;
  padding-left: 28px;
  color: var(--ah-text);
  font-size: 16px;
  line-height: 1.5;
}

.ah-cta__text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C44500' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ah-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.ah-content .ah-cta a.ah-btn {
  text-decoration: none;
}

/* 1, 2, 5, 6: centred */
.ah-cta--simple .ah-cta__body,
.ah-cta--simple-second .ah-cta__body,
.ah-cta--duo-rechner .ah-cta__body,
.ah-cta--duo-anwalt .ah-cta__body {
  align-items: center;
  text-align: center;
}

.ah-cta--simple .ah-cta__text,
.ah-cta--simple-second .ah-cta__text,
.ah-cta--duo-rechner .ah-cta__text,
.ah-cta--duo-anwalt .ah-cta__text {
  max-width: 680px;
}

.ah-cta--duo-rechner .ah-cta__text ul,
.ah-cta--duo-anwalt .ah-cta__text ul {
  align-items: flex-start;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.ah-cta--duo-rechner .ah-cta__text li,
.ah-cta--duo-anwalt .ah-cta__text li {
  color: var(--ah-grey);
}

.ah-cta--simple .ah-cta__actions,
.ah-cta--simple-second .ah-cta__actions,
.ah-cta--duo-rechner .ah-cta__actions,
.ah-cta--duo-anwalt .ah-cta__actions {
  justify-content: center;
}

/* White version of 1, 2, 5, 6 */
.ah-cta.is-weiss {
  border: 1px solid var(--ah-line);
  background: var(--ah-white);
}

/* 3A, 4A: white card, image left to the edge */
.ah-cta--image,
.ah-cta--image-second {
  border: 1px solid var(--ah-line);
  background: var(--ah-white);
  box-shadow: 0 10px 28px rgba(27, 23, 20, 0.06);
}

.ah-cta.has-image {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.ah-cta__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  border-radius: 0 !important;
  object-fit: cover;
  background: var(--ah-image-bg);
}

.ah-cta.has-image .ah-cta__body {
  justify-content: center;
  padding: 32px 36px;
}

.ah-cta.has-image .ah-cta__title {
  font-size: 23px;
  letter-spacing: 0;
}

/* 3B, 4B: peach, text first, image right */
.ah-cta--image-peach.has-image,
.ah-cta--image-second-peach.has-image {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.ah-cta--image-peach .ah-cta__image,
.ah-cta--image-second-peach .ah-cta__image {
  order: 2;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .ah-content {
    font-size: 17px;
  }

  .ah-content > * + * {
    margin-top: 20px;
  }

  .ah-content h2 {
    margin-top: 36px;
    font-size: 26px;
  }

  .ah-content h3 {
    font-size: 20px;
  }

  .ah-content .ah-intro,
  .ah-content > p:first-child:has(> em:only-child),
  .ah-content > p:first-child:has(> i:only-child) {
    font-size: 17px;
  }

  .ah-content .ah-summary,
  .ah-content .single-takeaways {
    gap: 10px;
    padding: 20px;
    border-radius: 18px;
  }

  .ah-content .ah-summary > :is(h2, h3, h4, p:first-child:has(> strong:only-child)),
  .ah-content .single-takeaways__title {
    font-size: 18px;
  }

  .ah-content .ah-summary ul,
  .ah-content .single-takeaways ul {
    font-size: 16px;
  }

  .ah-content .ah-tip {
    padding: 18px 20px;
    border-radius: 0 14px 14px 0;
    font-size: 16px;
  }

  .ah-content .ah-proscons,
  .ah-content .ah-figures {
    grid-template-columns: 1fr;
  }

  .ah-content ol.ah-steps > li {
    padding-left: 40px;
    font-size: 15px;
  }

  .ah-content ol.ah-steps > li::before {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .ah-content ol.ah-steps > li > strong:first-child {
    font-size: 17px;
  }

  .ah-content .ah-download a {
    align-items: start;
    padding: 18px;
  }

  .ah-content table {
    font-size: 15px;
  }

  .ah-content th,
  .ah-content td {
    padding: 12px;
  }

  .ah-content .schema-faq {
    gap: 0;
  }

  .ah-content .schema-faq-section {
    border: 0;
    border-bottom: 1px solid var(--ah-line);
    border-radius: 0;
  }

  .ah-content .schema-faq-question {
    padding: 16px 36px 16px 0;
    font-size: 16px;
  }

  .ah-content .schema-faq-question::after {
    right: 0;
  }

  .ah-content .schema-faq-answer {
    padding: 0 0 16px;
    font-size: 15px;
  }

  /* CTA boxes in content run edge to edge on mobile. */
  .ah-content .ah-cta {
    margin-left: calc(-1 * var(--ah-page-margin-mobile));
    margin-right: calc(-1 * var(--ah-page-margin-mobile));
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ah-cta__body,
  .ah-cta.has-image .ah-cta__body {
    gap: 12px;
    padding: 24px var(--ah-page-margin-mobile);
  }

  .ah-cta__title,
  .ah-cta.has-image .ah-cta__title {
    font-size: 21px;
  }

  .ah-cta__text {
    font-size: 15px;
  }

  .ah-cta__text li {
    font-size: 15px;
  }

  .ah-cta.has-image,
  .ah-cta--image-peach.has-image,
  .ah-cta--image-second-peach.has-image {
    display: flex;
    flex-direction: column;
  }

  .ah-cta__image,
  .ah-cta--image-peach .ah-cta__image,
  .ah-cta--image-second-peach .ah-cta__image {
    order: 0;
    height: 170px;
    min-height: 0;
  }

  .ah-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .ah-cta__actions .ah-btn {
    width: 100%;
  }
}

/* ---------- Buttons inside content (core button, file download, Spectra) ----------
   Old articles use core and Spectra buttons with their own colours (often the WP
   default black or grey, Elementor buttons blue). In the new design every content button is the primary
   button, outline style becomes the secondary button. */

.ah-content .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.ah-content .wp-block-button__link,
.ah-content .wp-element-button,
.ah-content .wp-block-file__button,
.ah-content .uagb-buttons-repeater,
.ah-content a.uagb-button__link,
.ah-content a.elementor-button,
.ah-content a.button,
.ah-content a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--ah-btn-m);
  padding: 12px 26px;
  border: 0;
  border-radius: var(--ah-radius-button) !important;
  background: var(--ah-orange) !important;
  color: var(--ah-white) !important;
  font-family: var(--ah-font);
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}

.ah-content .wp-block-button__link:hover,
.ah-content .wp-element-button:hover,
.ah-content .wp-block-file__button:hover,
.ah-content .uagb-buttons-repeater:hover,
.ah-content a.elementor-button:hover,
.ah-content a.button:hover,
.ah-content a.btn:hover {
  background: #E95600 !important;
}

.ah-content .is-style-outline .wp-block-button__link {
  border: 2px solid var(--ah-orange);
  background: var(--ah-white) !important;
  color: var(--ah-orange-text) !important;
}

.ah-content .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 24px 0;
}

.ah-content .uagb-buttons-repeater *,
.ah-content .elementor-button * {
  color: inherit !important;
  fill: currentColor !important;
}

@media (max-width: 900px) {
  .ah-content .wp-block-button,
  .ah-content .wp-block-button__link,
  .ah-content .wp-block-file__button {
    width: 100%;
  }
}


/* ---------- Old group blocks with a background colour (Timo, 12 Nov 2026) ----------
   e.g. "Beispiele aus der Rechtsprechung" on /verhaltensbedingte-kuendigung/: a box
   with inner spacing and rounded corners like the theme's boxes; a bold first
   paragraph becomes its title. The summary variant is handled in legacy-content.php. */
.ah-content .wp-block-group.has-background {
  margin: 28px 0;
  padding: 26px 30px;
  border-radius: var(--ah-radius-box);
}

.ah-content .wp-block-group.has-background > .wp-block-group__inner-container > :first-child,
.ah-content .wp-block-group.has-background > :first-child {
  margin-top: 0;
}

.ah-content .wp-block-group.has-background > .wp-block-group__inner-container > :last-child,
.ah-content .wp-block-group.has-background > :last-child {
  margin-bottom: 0;
}

/* Bold first line as box title, only when more content follows (a box that is one bold
   paragraph, like the old example boxes, stays body text). */
.ah-content .wp-block-group.has-background > .wp-block-group__inner-container > p:first-child:not(:last-child):has(> strong:only-child),
.ah-content .wp-block-group.has-background > p:first-child:not(:last-child):has(> strong:only-child) {
  font-size: 19px !important;
  font-weight: 800;
  line-height: 1.35;
}

/* Long links and words never push the page wider than the screen. */
.ah-content {
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .ah-content .wp-block-group.has-background {
    margin: 22px 0;
    padding: 20px 18px;
    border-radius: 16px;
  }

  /* Tables: smaller text and no fixed minimum width, so most fit the screen;
     wider ones scroll inside their frame, never the page. */
  .ah-content table {
    font-size: 14px;
  }

  .ah-content th,
  .ah-content td {
    padding: 10px 12px;
  }

  .ah-content .wp-block-table table {
    min-width: 0;
  }

  .ah-content > table {
    display: block;
    overflow-x: auto;
  }
}
