.gwg-hero {
  background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 62%, #e5eef9 100%);
  border-bottom: 1px solid var(--gwg-border);
  padding: clamp(3.7rem, 7vw, 6.7rem) max(1.2rem, calc((100vw - var(--gwg-wide)) / 2));
}
.gwg-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.72fr); gap: clamp(2rem, 5vw, 5.25rem); align-items: center; }
.gwg-hero-copy { max-width: 730px; }
.gwg-hero-copy .gwg-page-intro { max-width: 64ch; }
.gwg-hero .wp-block-buttons { margin-top: 1.8rem; }
.gwg-proof-line { color: var(--gwg-muted); font-size: .92rem; margin-top: 1rem; }
.gwg-section { padding: clamp(3.5rem, 6vw, 6rem) max(1.2rem, calc((100vw - var(--gwg-wide)) / 2)); }
.gwg-section-soft { background: var(--gwg-cloud); }
.gwg-section-blue { background: var(--gwg-sky); }
.gwg-section-white { background: white; }
.gwg-section-title { max-width: 820px; margin-bottom: 2rem; }
.gwg-section-lead { max-width: 68ch; font-size: 1.08rem; color: var(--gwg-muted); }
.gwg-topic-grid { align-items: stretch; }
.gwg-topic-card { height: 100%; background: white; border: 1px solid var(--gwg-border); border-radius: var(--gwg-radius); padding: 1.65rem; box-shadow: var(--gwg-shadow-soft); transition: transform .16s ease, box-shadow .16s ease; }
.gwg-topic-card:hover { transform: translateY(-2px); box-shadow: var(--gwg-shadow); }
.gwg-topic-card h3 { margin-top: .7rem; }
.gwg-topic-card .gwg-eyebrow { margin-bottom: .4rem; }
.gwg-card-icon, .gwg-inline-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gwg-link); background: transparent; border: 0; border-radius: 0; padding: 0;
}
.gwg-card-icon { width: 46px; height: 46px; }
.gwg-inline-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.gwg-icon-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.gwg-icon-list li { display: flex; align-items: flex-start; gap: .9rem; background: white; border: 1px solid var(--gwg-border); border-radius: var(--gwg-radius); padding: 1.15rem; box-shadow: 0 4px 16px rgba(11,31,51,.035); }
.gwg-icon-list strong { display: block; color: var(--gwg-navy); margin-bottom: .15rem; }
.gwg-trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.2rem; }
.gwg-trust-item { display: flex; align-items: center; gap: .75rem; color: var(--gwg-navy); font-size: .93rem; font-weight: 650; }
.gwg-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.85fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.gwg-image-caption { color: var(--gwg-muted); font-size: .8rem; margin-top: .6rem; }
.gwg-info-box { margin: 2rem 0; background: var(--gwg-sky); border-left: 4px solid var(--gwg-blue); padding: 1.35rem 1.5rem; border-radius: 0 var(--gwg-radius-small) var(--gwg-radius-small) 0; }
.gwg-info-box h3 { margin-top: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.gwg-legal-review { border-left-color: var(--gwg-critical); background: #fbf3f5; }
.gwg-status-line { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.gwg-status-line li { background: white; border: 1px solid var(--gwg-border); padding: .45rem .75rem; font-size: .86rem; border-radius: 999px; }
.gwg-numbered-steps { counter-reset: gwg-step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.gwg-numbered-steps li { counter-increment: gwg-step; background: white; border: 1px solid var(--gwg-border); border-top: 4px solid var(--gwg-blue); border-radius: var(--gwg-radius); padding: 1.5rem; box-shadow: var(--gwg-shadow-soft); }
.gwg-numbered-steps li strong { display: block; color: var(--gwg-navy); font-size: 1.13rem; line-height: 1.28; margin-bottom: .55rem; }
.gwg-numbered-steps li::before { content: none; }
.gwg-faq-item { border-top: 1px solid var(--gwg-border); padding: 1rem 0; }
.gwg-faq-item:last-of-type { border-bottom: 1px solid var(--gwg-border); }
.gwg-faq-item summary { cursor: pointer; color: var(--gwg-navy); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.gwg-faq-answer { padding: .75rem 0 .25rem; }
.gwg-page-intro { font-size: clamp(1.08rem, 1.02rem + .35vw, 1.28rem); max-width: 68ch; color: #4a5c6e; }
.gwg-source-note { color: var(--gwg-muted); font-size: .86rem; border-top: 1px solid var(--gwg-border); padding-top: .85rem; }
.gwg-compact-hero { padding: 3.8rem max(1.2rem, calc((100vw - var(--gwg-wide)) / 2)); background: linear-gradient(135deg,#f8fbff,#edf4ff); border-bottom: 1px solid var(--gwg-border); }
.gwg-compact-hero-grid {
  width: min(100%, var(--gwg-wide));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: clamp(2.5rem,5vw,5rem);
  align-items: center;
}
.gwg-compact-hero h1 { font-size: clamp(2.45rem, 3.8vw, 3.8rem); max-width: 17ch; margin-bottom: 1rem; }
.gwg-compact-hero .gwg-page-intro { max-width: 60ch; }
.gwg-notice-row { display: flex; gap: 1rem; align-items: flex-start; background: var(--gwg-cloud); border: 1px solid var(--gwg-border); border-radius: var(--gwg-radius); padding: 1.2rem; }
.gwg-notice-row h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.gwg-link-card { text-decoration: none; color: inherit; }
.gwg-link-card:hover h3 { color: var(--gwg-link); }
@media (max-width: 900px) {
  .gwg-hero-grid, .gwg-split, .gwg-compact-hero-grid { grid-template-columns: 1fr; }
  .gwg-icon-list, .gwg-trust-strip { grid-template-columns: 1fr; }
  }
@media (max-width: 760px) {
  .gwg-numbered-steps { grid-template-columns: 1fr; }
  .gwg-section { padding-left: 1rem; padding-right: 1rem; }
  .gwg-hero, .gwg-compact-hero { padding-left: 1rem; padding-right: 1rem; }
}
.gwg-page-pictogram { width: 110px; height: 110px; margin-left: 0; }
.gwg-hero-pictogram { width: 150px; height: 150px; margin-left: 0; }
.gwg-symbol { display: inline-block; width: 100%; height: 100%; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.gwg-symbol-check { -webkit-mask-image: url("../icons/check.svg"); mask-image: url("../icons/check.svg"); }
.gwg-symbol-search { -webkit-mask-image: url("../icons/search.svg"); mask-image: url("../icons/search.svg"); }
.gwg-symbol-document { -webkit-mask-image: url("../icons/document.svg"); mask-image: url("../icons/document.svg"); }
.gwg-symbol-building { -webkit-mask-image: url("../icons/building.svg"); mask-image: url("../icons/building.svg"); }
.gwg-symbol-scale { -webkit-mask-image: url("../icons/scale.svg"); mask-image: url("../icons/scale.svg"); }
.gwg-symbol-route { -webkit-mask-image: url("../icons/route.svg"); mask-image: url("../icons/route.svg"); }
.gwg-symbol-calendar { -webkit-mask-image: url("../icons/calendar.svg"); mask-image: url("../icons/calendar.svg"); }
.gwg-symbol-help { -webkit-mask-image: url("../icons/help.svg"); mask-image: url("../icons/help.svg"); }
.gwg-symbol-book { -webkit-mask-image: url("../icons/book.svg"); mask-image: url("../icons/book.svg"); }
.gwg-symbol-mail { -webkit-mask-image: url("../icons/mail.svg"); mask-image: url("../icons/mail.svg"); }
.gwg-symbol-arrow { -webkit-mask-image: url("../icons/arrow.svg"); mask-image: url("../icons/arrow.svg"); }


/* Version 1.2.4: GwG photo cutouts and strict left alignment */
.gwg-site-main,
.gwg-site-main .entry-content,
.gwg-site-main .gwg-section,
.gwg-site-main .gwg-hero,
.gwg-site-main .gwg-compact-hero,
.gwg-site-main .gwg-topic-card,
.gwg-site-main .gwg-numbered-steps li,
.gwg-site-main .gwg-info-box,
.gwg-site-main .gwg-notice-row { text-align: left; }
.gwg-site-main .has-text-align-center { text-align: left !important; }

.gwg-mask-visual {
  width: min(100%, 590px);
  aspect-ratio: 1400 / 620;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: auto;
  margin-right: 0;
}
.gwg-mask-contract-review { background-image: url("../images/gwg-contract-review.webp"); }
.gwg-mask-digital-documentation { background-image: url("../images/gwg-digital-documentation.webp"); }
.gwg-mask-real-estate { background-image: url("../images/gwg-real-estate.webp"); }
.gwg-mask-company-structures { background-image: url("../images/gwg-company-structures.webp"); }
.gwg-mask-financial-transactions { background-image: url("../images/gwg-financial-transactions.webp"); }
.gwg-mask-hero { width: min(100%, 650px); }
.gwg-mask-compact { width: min(100%, 470px); }
.gwg-mask-article { width: min(100%, 520px); }

.gwg-numbered-steps li { padding: 1.8rem 1.7rem 1.9rem; }
.gwg-step-number {
  display: block;
  color: var(--gwg-link);
  font-weight: 850;
  font-size: clamp(2.45rem, 1.9rem + 1.2vw, 3.25rem);
  line-height: .95;
  letter-spacing: -.06em;
  margin-bottom: 1rem;
}
.gwg-numbered-steps li strong { font-size: 1.2rem; margin-bottom: .65rem; }
.gwg-numbered-steps li span:not(.gwg-step-number) { display: block; }

/* Legal pages use the complete wide content area. */
.gwg-legal-grid {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.25rem, 5vw, 5rem);
  row-gap: 0;
  align-items: start;
}
.gwg-legal-section { width: 100%; min-width: 0; }
.gwg-legal-section p, .gwg-legal-section li { max-width: none; }
.gwg-legal-layout .gwg-section > * { width: min(100%, var(--gwg-wide)); }
.gwg-compact-hero-text-only .gwg-compact-hero-grid { grid-template-columns: minmax(0, 1fr); }
.gwg-compact-hero-text-only h1 { max-width: 24ch; }

/* Wide editorial articles. */
.gwg-article {
  width: min(calc(100% - 3rem), var(--gwg-wide));
  margin: 0 auto;
  padding: 4.5rem 0;
}
.gwg-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
  padding-bottom: 3.25rem;
  border-bottom: 1px solid var(--gwg-border);
  margin-bottom: 3rem;
}
.gwg-article-header-copy { min-width: 0; }
.gwg-article-header-copy h1 { max-width: 18ch; }
.gwg-article .entry-content { width: 100%; }
.gwg-article .entry-content > * { margin-left: 0; margin-right: 0; }
.gwg-article .entry-content > p,
.gwg-article .entry-content > ul,
.gwg-article .entry-content > ol { max-width: 76ch; }
.gwg-article .entry-content > h2 { max-width: 28ch; margin-top: 2.6rem; }

/* Cards no longer reserve icon space. */
.gwg-topic-card > .gwg-card-icon,
.gwg-trust-item > .gwg-inline-icon,
.gwg-notice-row > .gwg-inline-icon { display: none !important; }
.gwg-trust-item::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  flex: 0 0 auto;
  background: var(--gwg-blue);
}

@media (max-width: 900px) {
  .gwg-mask-visual { margin-left: 0; margin-right: auto; width: min(100%, 520px); }
  .gwg-article-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gwg-legal-grid { grid-template-columns: 1fr; }
  .gwg-mask-visual { width: min(100%, 430px); }
  .gwg-numbered-steps li { padding: 1.55rem; }
}


/* Version 1.2.5: Swiss-cross visuals and expanded editorial content */
.gwg-mask-visual {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: auto;
  margin-right: 0;
}
.gwg-mask-hero { width: min(100%, 430px); }
.gwg-mask-compact { width: min(100%, 285px); }
.gwg-mask-article { width: min(100%, 325px); }
.gwg-hero-grid { grid-template-columns: minmax(0,1.28fr) minmax(270px,.62fr); }
.gwg-compact-hero-grid { grid-template-columns: minmax(0,1.38fr) minmax(230px,.42fr); }
.gwg-article-hero { grid-template-columns: minmax(0,1.35fr) minmax(260px,.45fr); }

.gwg-knowledge-prose {
  max-width: 88ch;
}
.gwg-knowledge-prose h2 { margin-top: 2.65rem; }
.gwg-knowledge-prose p,
.gwg-knowledge-prose li { max-width: 82ch; }
.gwg-knowledge-prose .gwg-info-box { max-width: 82ch; }

.gwg-article-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.35rem;
  margin-top: 2rem;
}
.gwg-article-preview {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.65rem 1.7rem;
  border: 1px solid var(--gwg-border);
  border-radius: var(--gwg-radius);
  background: #fff;
  box-shadow: var(--gwg-shadow-soft);
}
.gwg-article-preview .gwg-eyebrow { margin-bottom: .65rem; }
.gwg-article-preview h3 { margin: 0 0 .75rem; font-size: clamp(1.3rem,1.18rem + .35vw,1.6rem); }
.gwg-article-preview p { color: var(--gwg-muted); }
.gwg-article-preview .gwg-text-link { margin-top: auto; padding-top: .9rem; }

.gwg-faq-section-heading {
  margin-top: 3.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gwg-navy);
}
.gwg-faq-item { padding: 1.15rem 0; }
.gwg-faq-item summary { font-size: 1.06rem; line-height: 1.4; }
.gwg-faq-answer { max-width: 86ch; color: var(--gwg-text); }
.gwg-faq-answer p:last-child { margin-bottom: .2rem; }

.gwg-obligation-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.1rem 1.4rem;
  counter-reset: obligation;
  margin: 2rem 0;
}
.gwg-obligation-card {
  counter-increment: obligation;
  position: relative;
  padding: 1.55rem 1.55rem 1.55rem 4.45rem;
  border-top: 1px solid var(--gwg-border);
  background: #fff;
}
.gwg-obligation-card::before {
  content: counter(obligation, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.4rem;
  color: var(--gwg-blue);
  font-weight: 850;
  font-size: 1.75rem;
  line-height: 1;
}
.gwg-obligation-card h3 { margin: 0 0 .45rem; font-size: 1.18rem; }
.gwg-obligation-card p { margin: 0; color: var(--gwg-muted); }
.gwg-dossier-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .75rem 1.5rem;
  list-style: none;
  padding: 0;
}
.gwg-dossier-list li {
  position: relative;
  padding-left: 1.3rem;
}
.gwg-dossier-list li::before {
  content: "";
  position: absolute;
  width: .5rem;
  height: .5rem;
  left: 0;
  top: .62em;
  border-radius: 50%;
  background: var(--gwg-blue);
}
.gwg-support-panel {
  margin-top: 3rem;
  padding: clamp(1.8rem,4vw,3rem);
  background: var(--gwg-navy);
  color: #fff;
  border-radius: var(--gwg-radius);
}
.gwg-support-panel h2,
.gwg-support-panel h3 { color: #fff; }
.gwg-support-panel p { color: #dce7f3; max-width: 72ch; }
.gwg-support-panel .wp-block-button__link { background: #fff; color: var(--gwg-navy); }
.gwg-support-panel .is-style-outline .wp-block-button__link { background: transparent; border-color: #fff; color: #fff; }

@media (max-width: 900px) {
  .gwg-mask-hero { width: min(100%, 350px); }
  .gwg-mask-compact, .gwg-mask-article { width: min(100%, 260px); }
  .gwg-article-preview-grid,
  .gwg-obligation-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gwg-mask-visual { width: min(78vw, 300px); }
  .gwg-dossier-list { grid-template-columns: 1fr; }
  .gwg-obligation-card { padding-left: 3.8rem; }
}


/* Version 1.2.6: wider knowledge content, compact FAQs, arrow dossier list */
.gwg-knowledge-prose,
.gwg-knowledge-prose p,
.gwg-knowledge-prose li,
.gwg-knowledge-prose .gwg-info-box {
  width: 100%;
  max-width: none;
}
.gwg-knowledge-prose > h2 { max-width: 32ch; }
.gwg-knowledge-prose > p { max-width: 100%; }

.gwg-faq-section-heading {
  margin-top: 2.25rem;
  margin-bottom: .25rem;
  padding-bottom: .55rem;
}
.gwg-faq-item {
  padding: .28rem 0;
}
.gwg-faq-item summary {
  min-height: 38px;
  font-size: 1rem;
  line-height: 1.28;
  padding: .2rem 2rem .2rem 0;
  position: relative;
}
.gwg-faq-item summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gwg-blue);
  font-size: 1.2rem;
  font-weight: 700;
}
.gwg-faq-item[open] summary::after { content: "−"; }
.gwg-faq-answer { padding: .45rem 0 .7rem; }
.gwg-faq-answer p { margin: 0; max-width: 100%; }

.gwg-dossier-list {
  gap: 0 2rem;
  margin-top: 1.25rem;
}
.gwg-dossier-list li {
  min-height: 3.65rem;
  display: flex;
  align-items: center;
  padding: .8rem 0 .8rem 2rem;
  border-top: 1px solid var(--gwg-border);
  max-width: none;
}
.gwg-dossier-list li::before {
  content: "→";
  width: auto;
  height: auto;
  left: .05rem;
  top: 50%;
  transform: translateY(-52%);
  border-radius: 0;
  background: transparent;
  color: var(--gwg-blue);
  font-size: 1.18rem;
  font-weight: 800;
}
.gwg-dossier-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--gwg-border); }

.gwg-publication-checklist {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2rem 3.5rem;
}
.gwg-publication-checklist section { min-width: 0; }
.gwg-publication-checklist h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.gwg-publication-checklist ul { list-style: none; padding: 0; margin: 0; }
.gwg-publication-checklist li {
  position: relative;
  padding: .55rem 0 .55rem 1.8rem;
  border-top: 1px solid var(--gwg-border);
  max-width: none;
}
.gwg-publication-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  top: .48rem;
  color: var(--gwg-blue);
  font-weight: 700;
}
@media (max-width: 760px) {
  .gwg-publication-checklist { grid-template-columns: 1fr; gap: 1.25rem; }
  .gwg-dossier-list li:nth-last-child(2) { border-bottom: 0; }
}


/* Version 1.2.7: Paragraph-und-Pruefsymbol, kompaktere FAQ und korrigierte Abstaende */
.gwg-mask-visual {
  aspect-ratio: 8 / 5;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.gwg-mask-hero { width: min(100%, 560px); }
.gwg-mask-compact { width: min(100%, 400px); }
.gwg-mask-article { width: min(100%, 450px); }

/* Dossierliste und nachfolgender Abschnitt erhalten eine klar erkennbare Trennung. */
.gwg-dossier-list + h2,
.gwg-dossier-list + .wp-block-heading {
  margin-top: clamp(3.5rem, 6vw, 5rem) !important;
}

/* Dunkle Schlussbox: Inhalt in der Hoehe mittig ausrichten. */
.gwg-support-panel {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.gwg-support-panel > :first-child { margin-top: 0 !important; }
.gwg-support-panel > :last-child { margin-bottom: 0 !important; }

/* WordPress-Flow-Layout setzt sonst zusaetzliche Blockabstaende zwischen den Details. */
.gwg-section .gwg-faq-item {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding: 0 !important;
}
.gwg-section .gwg-faq-item + .gwg-faq-item {
  margin-block-start: 0 !important;
}
.gwg-section .gwg-faq-section-heading {
  margin-block-start: 2.5rem !important;
  margin-block-end: 0 !important;
}
.gwg-section .gwg-faq-section-heading:first-child {
  margin-block-start: 0 !important;
}
.gwg-section .gwg-faq-section-heading + .gwg-faq-item {
  margin-block-start: 0 !important;
}
.gwg-faq-item summary {
  min-height: 0 !important;
  margin: 0 !important;
  padding: .62rem 2rem .62rem 0 !important;
  line-height: 1.24 !important;
}
.gwg-faq-item summary::-webkit-details-marker { display: none; }
.gwg-faq-item summary::marker { content: ""; }
.gwg-faq-answer {
  margin: 0 !important;
  padding: 0 0 .72rem !important;
}
.gwg-faq-answer p { margin: 0 !important; }

@media (max-width: 760px) {
  .gwg-mask-visual { width: min(90vw, 440px); }
  .gwg-dossier-list + h2,
  .gwg-dossier-list + .wp-block-heading { margin-top: 3rem !important; }
  .gwg-support-panel { min-height: 230px; }
}

/* Version 1.2.9: breitere Textflaechen, hochaufloesende Paragraph-Pruefsymbol-Motive und mobile Hero-Korrekturen */

/* Normale Informationsseiten nutzen die breite Inhaltsflaeche besser, ohne unlesbar lange Zeilen zu erzeugen. */
.gwg-site-main .entry-content p,
.gwg-site-main .entry-content li {
  max-width: 102ch;
}
.gwg-site-main .gwg-section-lead {
  max-width: 96ch;
}

/* Innerhalb klar begrenzter Komponenten soll die jeweilige Spaltenbreite voll genutzt werden. */
.gwg-site-main .gwg-info-box p,
.gwg-site-main .gwg-notice-row p,
.gwg-site-main .gwg-topic-card p,
.gwg-site-main .gwg-icon-list li,
.gwg-site-main .gwg-trust-item p,
.gwg-site-main .gwg-split p,
.gwg-site-main .gwg-obligation-card p,
.gwg-site-main .gwg-dossier-list li,
.gwg-site-main .gwg-article-preview p,
.gwg-site-main .gwg-faq-answer p,
.gwg-site-main .gwg-support-panel p,
.gwg-site-main .gwg-publication-checklist li,
.gwg-site-main .gwg-legal-section p,
.gwg-site-main .gwg-legal-section li {
  max-width: none;
}

/* Hero mit Bild bleibt bewusst kompakt. Reine Text-Heros erhalten mehr Breite. */
.gwg-site-main .gwg-hero-copy .gwg-page-intro {
  max-width: 64ch !important;
}
.gwg-site-main .gwg-compact-hero:not(.gwg-compact-hero-text-only) .gwg-page-intro {
  max-width: 60ch !important;
}
.gwg-site-main .gwg-compact-hero-text-only .gwg-page-intro {
  max-width: 102ch !important;
}
.gwg-site-main .gwg-compact-hero-text-only h1 {
  max-width: 30ch;
}

/* Fachartikel bleiben gut lesbar, nutzen aber deutlich mehr der breiten Vorlage. */
.gwg-article .entry-content > p,
.gwg-article .entry-content > ul,
.gwg-article .entry-content > ol {
  max-width: 90ch;
}
.gwg-article .entry-content > h2 {
  max-width: 38ch;
}

/* Neue Motive liegen als 2400 x 1500 px PNG mit transparentem Aussenbereich vor. */
.gwg-mask-visual {
  aspect-ratio: 8 / 5;
  background-size: contain;
  image-rendering: auto;
}
.gwg-mask-hero { width: min(100%, 620px); }
.gwg-mask-compact { width: min(100%, 445px); }
.gwg-mask-article { width: min(100%, 500px); }

/* Tablet und Mobile: Erst Text in voller Breite, danach das Motiv. So werden lange Ueberschriften nicht eingequetscht. */
@media (max-width: 980px) {
  .gwg-hero-grid,
  .gwg-compact-hero-grid,
  .gwg-article-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem;
  }
  .gwg-hero-copy,
  .gwg-compact-hero-grid > div:first-child,
  .gwg-article-header-copy {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .gwg-hero h1,
  .gwg-compact-hero h1,
  .gwg-article-header-copy h1 {
    max-width: none !important;
    width: 100%;
  }
  .gwg-mask-visual {
    width: min(100%, 520px);
    margin: .5rem auto 0;
    justify-self: center;
  }
  .gwg-site-main .gwg-hero-copy .gwg-page-intro,
  .gwg-site-main .gwg-compact-hero .gwg-page-intro {
    max-width: 78ch !important;
  }
}

@media (max-width: 760px) {
  .gwg-hero,
  .gwg-compact-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .gwg-hero-grid,
  .gwg-compact-hero-grid,
  .gwg-article-hero {
    gap: 1.25rem;
  }
  .gwg-hero h1,
  .gwg-compact-hero h1,
  .gwg-article-header-copy h1 {
    font-size: clamp(2.15rem, 9vw, 3.15rem);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }
  .gwg-mask-visual {
    width: min(94vw, 420px);
    margin-top: .35rem;
  }
  .gwg-mask-compact,
  .gwg-mask-article {
    width: min(90vw, 390px);
  }
}

/* Version 1.2.9: Motivdarstellung analog zur freigegebenen Paragraph-Pruefsymbol-Referenz */
.gwg-mask-hero { width: min(100%, 540px); }
.gwg-mask-compact { width: min(100%, 410px); }
.gwg-mask-article { width: min(100%, 460px); }

@media (max-width: 980px) {
  .gwg-mask-visual { width: min(86vw, 430px); }
}
@media (max-width: 760px) {
  .gwg-mask-visual,
  .gwg-mask-compact,
  .gwg-mask-article {
    width: min(88vw, 360px);
  }
}


/* Version 1.3.0: vollständige lokal gespeicherte Stockfotos statt Schnittmasken */
.gwg-mask-visual {
  aspect-ratio: 16 / 10 !important;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(11, 31, 51, .12);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(11, 31, 51, .12);
  overflow: hidden;
  background-color: #dfe9f4;
}
.gwg-mask-contract-review { background-position: 64% 55%; }
.gwg-mask-digital-documentation { background-position: 47% 50%; }
.gwg-mask-real-estate { background-position: 50% 50%; }
.gwg-mask-company-structures { background-position: 42% 72%; }
.gwg-mask-financial-transactions { background-position: 49% 62%; }

.gwg-mask-hero { width: min(100%, 610px) !important; }
.gwg-mask-compact { width: min(100%, 480px) !important; }
.gwg-mask-article { width: min(100%, 540px) !important; }
.gwg-hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); }
.gwg-compact-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.gwg-article-hero { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }

/* Das alte Klassenwort mask bleibt aus Kompatibilitätsgründen bestehen. */
.gwg-image-credits {
  width: min(100%, var(--gwg-wide));
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gwg-border);
}
.gwg-image-credits ul { margin-bottom: 0; }
.gwg-image-credits li { max-width: none !important; }

@media (max-width: 1080px) {
  .gwg-hero-grid,
  .gwg-compact-hero-grid,
  .gwg-article-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.75rem;
  }
  .gwg-mask-visual {
    width: min(100%, 680px) !important;
    margin: .5rem auto 0 !important;
    justify-self: center;
  }
  .gwg-hero h1,
  .gwg-compact-hero h1,
  .gwg-article-header-copy h1 {
    max-width: none !important;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .gwg-mask-visual,
  .gwg-mask-hero,
  .gwg-mask-compact,
  .gwg-mask-article {
    width: 100% !important;
    max-width: none !important;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(11, 31, 51, .1);
  }
}


/* Version 1.3.2: projektinternes Startseitenmotiv sowie ausgewählte Seitenmotive von Pexels und Unsplash */
.gwg-image-home-documents { background-image: url("../images/gwg-home-documents.webp"); background-position: 50% 50%; }
.gwg-image-checklist { background-image: url("../images/gwg-checklist.webp"); background-position: 50% 50%; }
.gwg-image-business-check { background-image: url("../images/gwg-business-check.webp"); background-position: 50% 50%; }
.gwg-image-contact-envelope { background-image: url("../images/gwg-contact-envelope.webp"); background-position: 50% 50%; }
.gwg-image-faq-library { background-image: url("../images/gwg-faq-library.webp"); background-position: 50% 52%; }
.gwg-image-knowledge-library { background-image: url("../images/gwg-knowledge-library.webp"); background-position: 52% 50%; }
@media (max-width: 760px) {
  .gwg-image-home-documents { background-position: 50% 50%; }
  .gwg-image-checklist { background-position: 50% 50%; }
  .gwg-image-business-check { background-position: 50% 50%; }
  .gwg-image-contact-envelope { background-position: 50% 50%; }
  .gwg-image-faq-library { background-position: 50% 52%; }
  .gwg-image-knowledge-library { background-position: 54% 50%; }
}

/* Version 1.3.4: Inhaltliche Erweiterungen und neue Rubrik Nuetzliches. */

/* Version 1.3.7: Viersprachige Inhalte und Polylang-Menues. */

/* Version 1.3.6: Kompakte Dropdown-Navigation in allen Sprachen. */

/* Version 1.3.8: Fachartikel-Index, Langformate und SRO-Orientierung. */
.gwg-article-index-intro {
  max-width: 88ch !important;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}
.gwg-article-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.gwg-article-index-card {
  border: 1px solid var(--gwg-border);
  border-radius: 12px;
  background: #fff;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  box-shadow: 0 8px 24px rgba(11, 31, 51, .06);
}
.gwg-article-index-card h2 {
  margin-top: .35rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.gwg-article-index-card h2 a { color: var(--gwg-navy); text-decoration: none; }
.gwg-article-index-card h2 a:hover { text-decoration: underline; text-underline-offset: .16em; }
.gwg-card-meta,
.gwg-article-updated {
  color: var(--gwg-muted);
  font-size: .94rem;
  max-width: none !important;
}
.gwg-article-summary,
.gwg-article-toc,
.gwg-source-box,
.gwg-related-box {
  margin: 2rem 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--gwg-border);
  border-radius: 12px;
  background: var(--gwg-soft);
}
.gwg-article-summary { border-left: 5px solid var(--gwg-blue); }
.gwg-article-summary h2,
.gwg-article-toc h2,
.gwg-source-box h2,
.gwg-related-box h2 { margin-top: 0; font-size: 1.45rem; }
.gwg-article-summary li,
.gwg-article-toc li,
.gwg-source-box li,
.gwg-related-box li,
.gwg-longform-section li { max-width: none !important; }
.gwg-article-toc ol { columns: 2; column-gap: 2.5rem; }
.gwg-article-toc li { break-inside: avoid; margin-bottom: .45rem; }
.gwg-longform-section { scroll-margin-top: 7rem; margin: 3rem 0; }
.gwg-longform-section > h2 { border-bottom: 1px solid var(--gwg-border); padding-bottom: .6rem; }
.gwg-case-box {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  background: #eef4fb;
  border-left: 4px solid var(--gwg-blue);
}
.gwg-case-box h3 { margin-top: 0; }
.gwg-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.gwg-data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.gwg-data-table th,
.gwg-data-table td { border: 1px solid var(--gwg-border); padding: .8rem .9rem; text-align: left; vertical-align: top; }
.gwg-data-table th { background: var(--gwg-navy); color: #fff; }
.gwg-data-table tbody tr:nth-child(even) { background: #f7f9fc; }
.gwg-article-faq { margin: 3rem 0; }
.gwg-article-faq details { border-top: 1px solid var(--gwg-border); padding: 1rem 0; }
.gwg-article-faq details:last-child { border-bottom: 1px solid var(--gwg-border); }
.gwg-article-faq summary { cursor: pointer; font-weight: 750; color: var(--gwg-navy); }
.gwg-article-faq details p { margin: .8rem 0 0; max-width: none !important; }
.gwg-sro-finder { width: 100%; }
.gwg-sro-intro { max-width: none; margin-bottom: 1.6rem; }
.gwg-sro-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--gwg-border);
  border-radius: 12px;
  background: #fff;
}
.gwg-sro-controls label { display: grid; gap: .45rem; font-weight: 750; color: var(--gwg-navy); }
.gwg-sro-controls select {
  width: 100%; min-height: 48px; padding: .65rem .75rem;
  border: 1px solid var(--gwg-border); border-radius: 7px; background: #fff; color: var(--gwg-text);
}
.gwg-sro-controls select:focus-visible { outline: 3px solid #6fa5f2; outline-offset: 2px; }
.gwg-sro-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.gwg-sro-results-heading h2,
.gwg-sro-results-heading p { margin: 0; max-width: none !important; }
.gwg-sro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.gwg-sro-card { padding: 1.2rem; border: 1px solid var(--gwg-border); border-radius: 10px; background: #fff; }
.gwg-sro-card h3 { margin: 0 0 .8rem; font-size: 1.1rem; }
.gwg-sro-card p { margin: 0; max-width: none !important; }
.gwg-sro-card[hidden] { display: none !important; }
.gwg-sro-no-results { padding: 1rem; border-radius: 8px; background: #fff3e1; max-width: none !important; }
.gwg-sro-source { margin-top: 2rem; }
.gwg-negative-result-note {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--gwg-border);
  font-weight: 700;
  max-width: none !important;
}
@media (max-width: 760px) {
  .gwg-article-index-grid,
  .gwg-sro-controls,
  .gwg-sro-grid { grid-template-columns: 1fr; }
  .gwg-article-toc ol { columns: 1; }
  .gwg-sro-results-heading { display: block; }
  .gwg-sro-results-heading p { margin-top: .35rem; }
}
