/* Cloud-Wissen: sachlicher Lesefluss innerhalb der freiraum.digital-Gestaltung. */
.cg-page {
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.cg-page .eyebrow,
.cg-home-teaser .eyebrow,
.cg-inline-link .eyebrow {
  font-size: .875rem;
  line-height: 1.55;
  letter-spacing: .08em;
}
.cg-page .breadcrumbs { font-size: .875rem; line-height: 1.6; }
.cg-page .btn,
.cg-home-teaser .btn,
.cg-inline-link .btn {
  max-width: 100%;
  font-size: 1rem;
  white-space: normal;
  text-align: center;
}
.cg-page h2 { line-height: 1.22; }
.cg-page h3 { font-size: 1.375rem; line-height: 1.35; }
.cg-page section[id],
.cg-source-list > li[id] { scroll-margin-top: 124px; }
.cg-hero-grid > *,
.cg-benefits > *,
.cg-dependency > *,
.cg-legal-grid > *,
.cg-options > *,
.cg-checklist > *,
.cg-steps > *,
.cg-home-grid > *,
.cg-inline-link > * { min-width: 0; }

/* Einstieg und normale, nicht haftende Inhaltsnavigation. */
.cg-hero {
  background: linear-gradient(110deg, #f2f7fb 0%, #fff 76%);
}
.cg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
  gap: 64px;
  align-items: center;
  padding-block: 48px 72px;
}
.cg-hero h1 {
  max-width: 21ch;
  margin-bottom: 26px;
  font-size: clamp(2.45rem, 4.3vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -.05em;
}
.cg-hero h1 span { color: var(--blue); }
.cg-hero .lead { max-width: 67ch; font-size: 1.0625rem; line-height: 1.8; }
.cg-hero-question {
  padding: 32px 34px;
  border-left: 4px solid var(--orange);
  border-radius: 0 18px 18px 0;
  background: var(--navy);
  color: #fff;
}
.cg-hero-question .eyebrow { color: #bdddef; margin-bottom: 20px; }
.cg-hero-question h2,
.cg-hero-question h3,
.cg-hero-question > strong {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.45rem, 2.15vw, 1.8rem);
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.03em;
}
.cg-hero-question p { color: #d0e0eb; font-size: 1rem; line-height: 1.8; }
.cg-hero-question p:last-child { margin-bottom: 0; }
.cg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 22px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.65;
}
.cg-meta > * { margin: 0; }
.cg-jumps {
  position: static;
  border-block: 1px solid var(--line);
  background: #fff;
}
.cg-jumps > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-block: 16px;
}
.cg-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  color: var(--blue-dark);
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.5;
  text-underline-offset: 5px;
}
.cg-jumps a:hover { text-decoration: underline; }

/* Lesebreite, Überschriften und erklärende Absätze. */
.cg-section-head { max-width: 82ch; margin-bottom: 38px; }
.cg-section-head .eyebrow { margin-bottom: 16px; }
.cg-section-head h2 { max-width: 29ch; margin-bottom: 20px; }
.cg-section-head > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1rem; }
.cg-prose { max-width: 76ch; }
.cg-prose p,
.cg-prose li { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.cg-prose p:last-child { margin-bottom: 0; }
.cg-prose strong { color: var(--ink); }
.cg-prose + .cg-prose { margin-top: 28px; }
.cg-prose + .cg-benefits,
.cg-prose + .cg-dependencies,
.cg-prose + .cg-table-wrap { margin-top: 38px; }
.cg-definition,
.cg-prose .cg-definition {
  max-width: 76ch;
  padding: 23px 27px;
  margin-block: 30px;
  border-left: 3px solid var(--blue);
  background: var(--pale);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.cg-definition p:last-child { margin-bottom: 0; }
.cg-prose a,
.cg-definition a,
.cg-dependency a,
.cg-legal-card a,
.cg-callout a,
.cg-option a,
.cg-position a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.cg-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 64px;
}
.cg-benefit { padding-top: 26px; border-top: 1px solid #c9dbe7; }
.cg-benefit > .icon,
.cg-benefit > svg { width: 30px; height: 30px; margin-bottom: 20px; color: var(--blue); }
.cg-benefit h3 { margin-bottom: 13px; }
.cg-benefit p { max-width: 60ch; color: var(--muted); font-size: 1rem; }
.cg-benefit p:last-child { margin-bottom: 0; }
.cg-dependencies { border-top: 1px solid #c9dbe7; }
.cg-dependency {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr);
  gap: 42px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.cg-dependency h3 { margin: 0; }
.cg-dependency p { max-width: 76ch; color: var(--muted); font-size: 1rem; }
.cg-dependency p:last-child { margin-bottom: 0; }
.cg-dependency > p { margin-bottom: 0; }
.cg-callout {
  max-width: 94ch;
  padding: 28px 32px;
  margin-top: 34px;
  border-left: 3px solid var(--orange);
  background: var(--pale);
}
.cg-callout h3 { margin-bottom: 12px; font-size: 1.25rem; }
.cg-callout p { color: var(--muted); font-size: 1rem; }
.cg-callout p:last-child { margin-bottom: 0; }
.cg-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 54px;
  margin-top: 38px;
}
.cg-legal-card { padding-top: 25px; border-top: 2px solid #c9dbe7; }
.cg-legal-card h3 { margin-bottom: 14px; }
.cg-legal-card p { color: var(--muted); font-size: 1rem; }
.cg-legal-card p:last-child { margin-bottom: 0; }

/* Vergleich: echte Tabelle mit lokalem horizontalen Scrollbereich. */
.cg-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block: 34px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #829aab #edf2f6;
  scrollbar-width: auto;
}
.cg-table-wrap:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.cg-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 1rem;
  line-height: 1.75;
}
.cg-table caption {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.7;
  text-align: left;
  caption-side: top;
}
.cg-table th,
.cg-table td {
  padding: 24px 22px;
  border-bottom: 1px solid #d3dfe8;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.cg-table thead th {
  border-bottom: 0;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}
.cg-table thead th:first-child { width: 19%; }
.cg-table thead th:not(:first-child) { width: 27%; }
.cg-table tbody th { background: #f2f6f9; color: var(--ink); font-weight: 750; }
.cg-table tbody td { color: var(--muted); }
.cg-table tbody tr:nth-child(even) td { background: #f8fafc; }
.cg-table th + th,
.cg-table td + td { border-left: 1px solid #e0e8ee; }
.cg-table thead th + th { border-left-color: #355065; }
.cg-table p { font-size: inherit; line-height: inherit; }
.cg-table p:last-child { margin-bottom: 0; }
.cg-table strong { color: var(--ink); }
.cg-table thead strong { color: #fff; }
.cg-table a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Handlungsoptionen und nummerierte Orientierung. */
.cg-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 38px;
}
.cg-option {
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  border-top: 3px solid var(--blue);
}
.cg-option h3 { margin-bottom: 16px; }
.cg-option p { color: var(--muted); font-size: 1rem; }
.cg-option .cg-tradeoff {
  padding-top: 19px;
  margin-top: auto;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}
.cg-checklist,
.cg-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 58px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: cg-item;
}
.cg-checklist > li,
.cg-steps > li {
  position: relative;
  padding: 25px 0 0 42px;
  margin: 0;
  border-top: 1px solid #c9dbe7;
  counter-increment: cg-item;
}
.cg-checklist > li::before,
.cg-steps > li::before {
  content: counter(cg-item, decimal-leading-zero);
  position: absolute;
  top: 27px;
  left: 0;
  color: var(--blue-dark);
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.cg-checklist h3,
.cg-steps h3 { margin-bottom: 12px; font-size: 1.25rem; }
.cg-checklist p,
.cg-steps p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.cg-steps { gap: 34px 58px; }
.cg-steps > li { border-top: 2px solid var(--blue); }
.cg-position {
  max-width: 94ch;
  padding: 30px 34px;
  margin-top: 38px;
  border-left: 3px solid var(--blue);
  background: #edf5fa;
}
.cg-position h2,
.cg-position h3 { font-size: 1.5rem; line-height: 1.35; margin-bottom: 15px; }
.cg-position p { font-size: 1rem; color: var(--muted); }
.cg-position p:last-child { margin-bottom: 0; }

/* Ruhiger Abschluss und weiterführende Themen. */
.cg-contact .contact-banner,
.cg-contact.contact-banner {
  padding: 44px 48px;
  border: 1px solid #c9dce9;
  border-radius: 18px;
  background: #edf5fa;
  color: var(--ink);
}
.cg-contact .contact-banner::after,
.cg-contact.contact-banner::after { display: none; }
.cg-contact .contact-banner > *,
.cg-contact.contact-banner > * { min-width: 0; }
.cg-contact .eyebrow { color: var(--blue); }
.cg-contact h2 { max-width: 25ch; }
.cg-contact p { max-width: 70ch; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.cg-contact .btn { flex-shrink: 0; }
.cg-related {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 1rem;
  line-height: 1.7;
}
.cg-related h2,
.cg-related h3,
.cg-related p,
.cg-related strong { margin: 0; font-size: 1rem; line-height: 1.7; }
.cg-related a {
  color: var(--blue-dark);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* Quellen gehören zum Lesefluss und bleiben auch mobil gut lesbar. */
.cg-sources { border-top: 1px solid var(--line); background: #f7f9fb; }
.cg-sources .cg-section-head { max-width: 85ch; }
.cg-source-list { max-width: 100ch; padding-left: 1.65rem; margin-bottom: 0; }
.cg-source-list > li { padding: 22px 0 22px 10px; margin: 0; border-top: 1px solid var(--line); }
.cg-source-list > li::marker { color: var(--blue-dark); font-size: 1rem; font-weight: 750; }
.cg-source-list h3 { margin-bottom: 8px; font-size: 1rem; line-height: 1.6; letter-spacing: -.01em; }
.cg-source-list h3 a,
.cg-source-list p a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.cg-source-list p { max-width: 90ch; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.85; }
.cg-source-list p + p { margin-top: 6px; }
.cg-citations {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.8;
  white-space: normal;
}
.cg-citations a {
  display: inline-block;
  min-width: 1.5em;
  color: var(--blue-dark);
  font-size: inherit;
  line-height: inherit;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cg-citations sup { font-size: inherit; vertical-align: baseline; }
.cg-benefit .cg-citations,
.cg-legal-card .cg-citations { margin-top: 14px; font-size: .875rem; }
.cg-hero-question a,
.cg-hero-question .cg-citations,
.cg-hero-question .cg-citations a { color: #d0e8f7; text-decoration: underline; text-underline-offset: 4px; }

/* Einstieg auf der Startseite und Querverweise auf Leistungsseiten. */
.cg-home-teaser {
  background: #f2f6f9;
  border-block: 1px solid var(--line);
  overflow-wrap: break-word;
}
.cg-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  gap: 66px;
}
.cg-home-teaser h2 { max-width: 26ch; line-height: 1.2; }
.cg-home-teaser p:not(.eyebrow):not(.cg-home-kicker):not(.cg-home-note) { max-width: 70ch; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.cg-home-kicker { display: block; margin-bottom: 16px; color: var(--blue-dark); font-size: .875rem; font-weight: 750; letter-spacing: .07em; }
.cg-home-question { padding: 10px 0 10px 30px; border-left: 3px solid var(--orange); }
.cg-home-question h3,
.cg-home-question > strong { display: block; margin-bottom: 18px; color: var(--navy); font-size: 1.65rem; font-weight: 750; line-height: 1.45; letter-spacing: -.03em; }
.cg-home-question p:last-child { margin-bottom: 0; }
.cg-home-teaser .cg-home-note { margin: 21px 0 0; color: var(--muted); font-size: .875rem; }
.cg-inline-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 32px 0;
  margin-block: 38px;
  border-block: 1px solid var(--line);
  overflow-wrap: break-word;
}
.cg-inline-link > div { max-width: 76ch; }
.cg-inline-link .eyebrow { margin-bottom: 12px; }
.cg-inline-link h2 { margin-bottom: 12px; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; }
.cg-inline-link p { max-width: 76ch; margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.cg-inline-link > a { flex-shrink: 0; max-width: 100%; }
.cg-inline-link a:not(.btn) { color: var(--blue-dark); font-size: 1rem; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .cg-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); gap: 34px; }
  .cg-hero-question { padding: 28px; }
  .cg-benefits, .cg-legal-grid { column-gap: 38px; }
  .cg-dependency { grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); gap: 30px; }
  .cg-options { gap: 28px; }
  .cg-option h3 { font-size: 1.25rem; }
  .cg-checklist, .cg-steps { column-gap: 34px; }
  .cg-home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 38px; }
  .cg-home-question { padding-left: 25px; }
  .cg-contact .contact-banner, .cg-contact.contact-banner { padding: 36px; gap: 28px; }
  .cg-inline-link { align-items: flex-start; gap: 28px; }
  .cg-inline-link > a { max-width: 32%; }
}

@media (max-width: 760px) {
  .cg-page .section { padding-block: 62px; }
  .cg-page section[id], .cg-source-list > li[id] { scroll-margin-top: 105px; }
  .cg-hero-grid, .cg-home-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cg-hero-grid { padding-block: 34px 48px; }
  .cg-hero h1 { max-width: 21ch; font-size: clamp(2.2rem, 7.4vw, 3.65rem); }
  .cg-hero-question { max-width: 76ch; padding: 28px 30px; }
  .cg-hero-question h2, .cg-hero-question h3, .cg-hero-question > strong { font-size: 1.5rem; }
  .cg-jumps > .container { gap: 4px 24px; padding-block: 12px; }
  .cg-jumps a { font-size: .875rem; }
  .cg-section-head { margin-bottom: 30px; }
  .cg-section-head h2 { max-width: 28ch; font-size: clamp(1.9rem, 5.7vw, 2.6rem); }
  .cg-benefits, .cg-legal-grid, .cg-options, .cg-checklist, .cg-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cg-benefit { padding-top: 24px; }
  .cg-benefit > .icon, .cg-benefit > svg { margin-bottom: 17px; }
  .cg-dependency { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 27px; }
  .cg-definition, .cg-prose .cg-definition { padding: 22px 24px; }
  .cg-callout, .cg-position { padding: 25px 28px; }
  .cg-options { margin-top: 30px; }
  .cg-option h3 { font-size: 1.375rem; }
  .cg-option .cg-tradeoff { margin-top: 4px; }
  .cg-table-wrap { margin-block: 28px; }
  .cg-table th, .cg-table td { padding: 22px 20px; }
  .cg-checklist > li, .cg-steps > li { padding-top: 23px; }
  .cg-checklist > li::before, .cg-steps > li::before { top: 25px; }
  .cg-contact .contact-banner, .cg-contact.contact-banner { display: block; padding: 32px; }
  .cg-contact .contact-banner .btn, .cg-contact.contact-banner .btn { margin-top: 24px; }
  .cg-related { align-items: flex-start; gap: 12px 24px; }
  .cg-related > h2, .cg-related > h3, .cg-related > p, .cg-related > strong { flex-basis: 100%; }
  .cg-source-list { padding-left: 1.5rem; }
  .cg-source-list > li { padding-left: 7px; }
  .cg-home-teaser.section { padding-block: 60px; }
  .cg-home-question { padding-block: 4px; }
  .cg-home-question h3, .cg-home-question > strong { font-size: 1.5rem; }
  .cg-inline-link { flex-direction: column; gap: 24px; padding-block: 28px; margin-block: 30px; }
  .cg-inline-link > a { max-width: 100%; }
}

@media (max-width: 460px) {
  .cg-page .section { padding-block: 52px; }
  .cg-hero-grid { padding-block: 30px 40px; }
  .cg-hero h1 { font-size: clamp(2.05rem, 8.5vw, 2.7rem); letter-spacing: -.04em; }
  .cg-hero-question { padding: 24px 22px; border-radius: 0 14px 14px 0; }
  .cg-hero .button-row { flex-direction: column; align-items: stretch; }
  .cg-meta { gap: 5px 16px; margin-top: 24px; }
  .cg-jumps > .container { gap: 2px 19px; }
  .cg-jumps a { min-height: 42px; }
  .cg-section-head h2 { font-size: 1.9rem; }
  .cg-definition, .cg-prose .cg-definition, .cg-callout, .cg-position { padding: 22px 20px; }
  .cg-checklist > li, .cg-steps > li { padding-left: 35px; }
  .cg-contact .contact-banner, .cg-contact.contact-banner { padding: 28px 22px; border-radius: 14px; }
  .cg-contact .contact-banner .btn, .cg-contact.contact-banner .btn { width: 100%; }
  .cg-home-question { padding-left: 22px; }
  .cg-home-teaser .btn { width: 100%; }
  .cg-inline-link .btn { align-self: stretch; }
}

@media print {
  .cg-page { font-size: 12pt; line-height: 1.6; }
  .cg-page .section { padding-block: 22px; }
  .cg-page .container, .cg-home-teaser .container { width: 100%; }
  .cg-hero, .cg-home-teaser, .cg-sources { background: #fff; color: #000; }
  .cg-hero-grid, .cg-benefits, .cg-dependency, .cg-legal-grid, .cg-options, .cg-checklist, .cg-steps, .cg-home-grid { display: block; }
  .cg-hero-grid { padding-block: 20px; }
  .cg-hero h1 { max-width: none; font-size: 28pt; }
  .cg-page h2 { font-size: 20pt; }
  .cg-page h3 { font-size: 15pt; }
  .cg-jumps, .cg-inline-link, .cg-contact, .cg-related { display: none; }
  .cg-hero-question, .cg-definition, .cg-prose .cg-definition, .cg-callout, .cg-position, .cg-home-question { margin-block: 20px; background: #fff; color: #000; border-color: #777; border-radius: 0; }
  .cg-hero-question h2, .cg-hero-question h3, .cg-hero-question > strong, .cg-hero-question p, .cg-hero-question .eyebrow { color: #000; }
  .cg-page p, .cg-prose li, .cg-table tbody td, .cg-home-teaser p:not(.eyebrow) { color: #222; }
  .cg-benefit, .cg-legal-card, .cg-option, .cg-checklist > li, .cg-steps > li, .cg-source-list > li { break-inside: avoid; margin-bottom: 20px; }
  .cg-dependency { break-inside: avoid; padding-block: 20px; }
  .cg-dependency h3 { margin-bottom: 12px; }
  .cg-option .cg-tradeoff { margin-top: 14px; }
  .cg-table-wrap { overflow: visible; margin-block: 20px; }
  .cg-table { min-width: 0; width: 100%; font-size: 10.5pt; line-height: 1.5; }
  .cg-table caption { font-size: 10.5pt; }
  .cg-table th, .cg-table td { padding: 10px; border-color: #aaa; }
  .cg-table thead { display: table-header-group; }
  .cg-table thead th { background: #eee; color: #000; font-size: 10.5pt; border-bottom: 1px solid #aaa; }
  .cg-table thead th + th { border-left-color: #aaa; }
  .cg-table tbody th, .cg-table tbody tr:nth-child(even) td { background: #fff; }
  .cg-table tr { break-inside: avoid; }
  .cg-table strong, .cg-table thead strong { color: #000; }
  .cg-source-list { max-width: none; }
  .cg-source-list h3 { font-size: 12pt; }
  .cg-page a, .cg-home-teaser a { color: #000; text-decoration: underline; }
  .cg-hero h1 span, .cg-checklist > li::before, .cg-steps > li::before, .cg-source-list > li::marker { color: #000; }
}
