body header.main-header{
  position: fixed;
  width: 100%;
}
main .blog-hero{
    padding-top: 100px;
}

main .blog-hero .blog-hero__lede{
    text-align: justify;
}

/* === Layoutstruktur === */
.blog-surface{
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(34,197,94,.06), transparent),
    radial-gradient(900px 520px at 120% -20%, rgba(99,102,241,.05), transparent),
    linear-gradient(180deg, #f7fafc 0%, #f9fbfd 40%, #ffffff 100%);
  padding: clamp(18px, 3vw, 0px) 0;
}
body.theme-deep .blog-surface{
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(34,197,94,.12), transparent),
    radial-gradient(900px 520px at 120% -20%, rgba(99,102,241,.12), transparent),
    linear-gradient(180deg, #0b1220 0%, #0e172a 100%);
}

/* Artikelcontainer */
.blog-surface .article{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow: var(--shadow);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 28px);
}
body.theme-deep .blog-surface .article{
  background: rgba(255,255,255,.05);
  border:1px solid var(--line-deep, rgba(255,255,255,.12));
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

/* === Article Grid (Content + Contact) === */
.article-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}
@media (min-width: 1100px){
  .article-grid{
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
.article-main,
.article-aside,
.contact-area{
  min-width: 0;
}
.article-aside{
  align-self: start;
}
@media (min-width: 1100px){
  .article-aside{
    position: sticky;
    top: calc(var(--header-height, 76px) + 16px);
  }
}

.article #cg-configurator{
  padding-top: 0px;
  padding-bottom: 50px;
}

@media (min-width: 981px) {
  .article .cg-configurator .cg-booking .calendar-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


.article #cg-configurator .cg-wrap .cg-step h2{
  margin-top: .75rem;
}

body.theme-deep .article #cg-configurator .cg-wrap{
  background: transparent;
  background-color: transparent;
}

img.text-img{
  max-height: 250px;
  margin-left: 10px;
  margin-bottom: 10px;
  border-radius: 14px;
}

img.text-img.right{
  float: right;
}

img.text-img.left{
  float: left;
}

img.text-img.ribbon{
  width: 100%;
  object-fit: cover;
  margin: 0;
}

/* Contact Area */
.contact-area{
  margin: 0;
  max-width: 360px;
  width: 100%;
}
@media (max-width: 1099px){
  .contact-area{
    max-width: 100%;
    width: 100%;
  }
}

/* === Experten-Karte (ersetzt .booking in der Sidebar) === */
.cg-expert-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.theme-deep .cg-expert-card {
  background: rgba(255,255,255,.05);
  border-color: var(--line-deep, rgba(255,255,255,.12));
}

/* Person-Block */
.cg-expert-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cg-expert-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border, #e2e8f0);
}
.cg-expert-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cg-expert-card__name {
  font-weight: 700;
  font-size: .9375rem;
  color: var(--ink, #334155);
  line-height: 1.3;
}
body.theme-deep .cg-expert-card__name { color: #fff; }
.cg-expert-card__role {
  font-size: .8125rem;
  color: var(--ink-muted, #64748b);
  line-height: 1.4;
}

/* Label + Intro */
.cg-expert-card__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark, #16a34a);
  margin: 0 0 4px;
}
.cg-expert-card__intro {
  font-size: .9rem;
  color: var(--ink-muted, #64748b);
  line-height: 1.55;
  margin: 0 0 14px;
}
body.theme-deep .cg-expert-card__intro { color: rgba(255,255,255,.65); }

/* Was erwartet Sie */
.cg-expert-card__expect {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cg-expert-card__expect li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--ink, #334155);
}
body.theme-deep .cg-expert-card__expect li { color: rgba(255,255,255,.85); }
.cg-expert-card__expect li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #22c55e);
}

/* Kontakt-Links (dezent) */
.cg-expert-card__contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e2e8f0);
}
body.theme-deep .cg-expert-card__contact {
  border-top-color: var(--line-deep, rgba(255,255,255,.12));
}
.cg-expert-card__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--ink-muted, #64748b);
  text-decoration: none;
  transition: color .15s;
}
.cg-expert-card__contact-link:hover { color: var(--accent-dark, #16a34a); }
.cg-expert-card__contact-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .6;
}

/* CTA */
.cg-expert-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}
.cg-expert-card__cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* === Hero === */
.blog-hero{
  position: relative;
  isolation: isolate;
  padding: clamp(32px, 6vw, 72px) 0;
  background:
    radial-gradient(860px 520px at 10% -10%, rgba(34,197,94,.10), transparent),
    radial-gradient(860px 520px at 110% -30%, rgba(99,102,241,.10), transparent),
    var(--section-bg, #fff);
  overflow: hidden;
}
.blog-hero::before{
  content:"";
  position:absolute; inset:0;
  z-index:-1;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.03);
}
.blog-hero::after{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.68) 35%,
    rgba(0,0,0,.58) 60%,
    rgba(0,0,0,.50) 100%
  );
}
.blog-hero__in{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}
.blog-hero__title{
  margin: 6px 0 40px;
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  font-size: clamp(28px, 22px + 2.4vw, 46px);
  text-wrap: balance;
}
.blog-hero__lede{
  color: rgba(255,255,255,.92);
  max-width: 72ch;
  margin: 0 0 14px;
}

.article-wave-underline{
  position: relative;
  display: inline-block;
  padding-bottom: .2em;
}

.article-wave-underline__text{
  position: relative;
  z-index: 1;
}

.article-wave-underline__svg{
  position: absolute;
  left: -2%;
  bottom: -.05em;
  width: 104%;
  height: .64em;
  overflow: visible;
  pointer-events: none;
}

.article-wave-underline__svg path{
  fill: none;
  stroke: color-mix(in srgb, var(--accent, #22c55e) 78%, white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
  filter: drop-shadow(0 1px 6px color-mix(in srgb, var(--accent, #22c55e) 22%, transparent));
}

.article-text-circle{
  position: relative;
  display: inline-block;
  white-space: nowrap;
  margin: 0 .03em;
  padding: .02em .34em .06em;
}

.article-text-circle__text{
  position: relative;
  z-index: 1;
}

.article-text-circle::before,
.article-text-circle::after{
  content: "";
  position: absolute;
  left: -.18em;
  right: -.18em;
  top: -.16em;
  bottom: -.14em;
  border: 2px solid color-mix(in srgb, var(--accent, #22c55e) 76%, white);
  border-radius: 999px;
  pointer-events: none;
}

.article-text-circle::before{
  opacity: .74;
}

.article-text-circle::after{
  opacity: .5;
  transform: translate(1px, 1px) rotate(-1.4deg);
}

/* Breadcrumbs */
.cg-breadcrumbs{
  max-width:1100px; margin:0 auto; padding:0px 30px 20px;
  font-size:.9375rem; line-height:1.5;
}
.cg-breadcrumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0; }
.cg-breadcrumbs li{ color:var(--ink-muted, #64748b); }
.cg-breadcrumbs a{ color:var(--accent-dark); text-decoration:none; }
.cg-breadcrumbs a:hover{ text-decoration:underline; }
.cg-breadcrumbs li+li::before{
  content:"/"; margin:0 6px 0 2px; color:var(--ink-muted, #94a3b8);
}
.cg-breadcrumbs [aria-current="page"]{ color:var(--ink, #334155); font-weight:500; }
body.theme-deep .cg-breadcrumbs [aria-current="page"]{ color:#fff; }

/* === Article Text === */
/* --- Silbentrennung / Wortumbruch für Fließtext --- */
.article,
.article p,
.article li,
.article blockquote,
.blog-hero__lede {
  -webkit-hyphens: auto; /* Safari/iOS */
  -ms-hyphens: auto;     /* älteres Edge/IE */
  hyphens: auto;         /* Standard */
  word-break: normal;
  overflow-wrap: anywhere; /* lange Komposita sauber umbrechen */
}

/* Links: keine Silbentrennung, aber bei Bedarf umbrechen */
.article a {
  hyphens: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Code/Pre/Abkürzungen: niemals trennen */
.article code,
.article pre,
.article kbd,
.article abbr {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.article{
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem;
  font-family: inherit;
  line-height: 1.6;
  color: #334155;
  min-width: 0;
  box-sizing: border-box;
}
.article h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.article h2 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}
.article p {
  margin-bottom: 1rem;
  text-align: justify;
}
.article h1,
.article h2,
.article h3,
.article h4,
.article p,
.article li,
.article blockquote,
.article figcaption,
.article td,
.article th{
  max-width: 100%;
}
.article ul{
    list-style: circle;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.article ol{
    list-style: numeric;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.article p a{
  color: var(--accent-dark);
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .18s ease;
}
.article p a:hover{
  background-size: 100% 2px;
  color: var(--accent-dark);
}
body.theme-deep .article{
  color: white;
}
body.theme-deep .article h1,
body.theme-deep .article h2{
  color: white;
}
body.theme-deep .article h3{
  color: var(--ink-muted);
}

.articles-overview {
  column-count: 2;
  column-gap: 1.25rem;
}

.articles-overview .card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.25rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
}

.articles-overview .card a { display: block; text-decoration: none; }

.articles-overview .card img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .articles-overview { column-count: 1; }
}

.table.compare{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line, var(--border, #e2e8f0));
  border-radius:14px;
  overflow:hidden;
  font-size:0.95rem;
  background:#fff;
  margin-bottom: 15px;
}
.table.compare caption{
  text-align:left;
  font-weight:600;
  padding:14px 16px;
  color:var(--ink, #334155);
}
.table.compare thead th{
  text-align:left;
  padding:14px 16px;
  font-weight:700;
  background:var(--cg-bg, #f5f8ff);
  color:var(--ink, #334155);
  border-bottom:1px solid var(--line, #e2e8f0);
}
.table.compare tbody td{
  padding:14px 16px;
  vertical-align:top;
  border-bottom:1px solid var(--line, #e2e8f0);
}
.table.compare tbody tr:nth-child(2n){
  background:rgba(2,6,23,0.015);
}

/* Dark Mode */
body.theme-deep .table.compare{
  background:rgba(255,255,255,0.04);
  border-color:var(--line-deep, rgba(255,255,255,.12));
  box-shadow:0 22px 60px rgba(0,0,0,.45);
}
body.theme-deep .table.compare caption{ color:#fff; }
body.theme-deep .table.compare thead th{
  background:#1e2d45;
  color:#fff;
  border-bottom:1px solid var(--line-deep, rgba(255,255,255,.12));
}
body.theme-deep .table.compare tbody td{
  color:#e5e7eb;
  border-bottom:1px solid var(--line-deep, rgba(255,255,255,.12));
}
body.theme-deep .table.compare tbody tr:nth-child(2n){
  background:rgba(255,255,255,0.03);
}

@media (max-width: 768px){
  .table.compare{
    border:0;
    border-radius:0;
    background:transparent;
  }
  .table.compare thead{ 
    position:absolute; 
    left:-9999px; 
    top:auto; 
    height:1px; 
    width:1px; 
    overflow:hidden; 
  }
  .table.compare tbody{
    display:grid;
    gap:12px;
  }
  .table.compare tbody tr{
    display:block;
    border:1px solid var(--line, var(--border, #e2e8f0));
    border-radius:12px;
    background:#fff;
    overflow:hidden;
  }
  .table.compare tbody td{
    display:flex;
    gap:12px;
    justify-content:space-between;
    align-items:flex-start;
    border-bottom:1px solid var(--line, #e2e8f0);
    padding:12px 14px;
  }
  .table.compare tbody td:last-child{ border-bottom:0; }
  .table.compare tbody td::before{
    content:attr(data-label);
    flex:0 0 46%;
    font-weight:600;
    color:var(--ink-muted, #64748b);
  }

  /* Dark Mode */
  body.theme-deep .table.compare tbody tr{ 
    background:rgba(255,255,255,0.04);
    border-color:var(--line-deep, rgba(255,255,255,.12));
  }
  body.theme-deep .table.compare tbody td{
    border-bottom:1px solid var(--line-deep, rgba(255,255,255,.12));
  }
  body.theme-deep .table.compare tbody td::before{
    color:#cbd5e1;
  }
}



/* === Reading Progress Bar === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: calc(var(--rp, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #22c55e), color-mix(in srgb, var(--accent, #22c55e) 70%, #6366f1));
  transition: width .1s linear;
  pointer-events: none;
}

/* === Hero Trust Bar === */
.blog-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 18px;
}
.blog-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.blog-hero__trust-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--accent, #22c55e);
}

/* === Inline CTA (nach Artikel-Content) === */
.article-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 8px;
  padding: 22px 26px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent, #22c55e) 8%, white),
    color-mix(in srgb, #6366f1 6%, white)
  );
  border: 1.5px solid color-mix(in srgb, var(--accent, #22c55e) 28%, transparent);
  border-radius: 14px;
}
body.theme-deep .article-inline-cta {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent, #22c55e) 10%, transparent),
    color-mix(in srgb, #6366f1 8%, transparent)
  );
  border-color: color-mix(in srgb, var(--accent, #22c55e) 30%, transparent);
}
.article-inline-cta__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink, #334155);
  margin-bottom: 4px;
}
body.theme-deep .article-inline-cta__text strong {
  color: #fff;
}
.article-inline-cta__text p {
  margin: 0;
  font-size: .9375rem;
  color: var(--ink-muted, #64748b);
  text-align: left;
}
body.theme-deep .article-inline-cta__text p {
  color: rgba(255, 255, 255, .7);
}
.article-inline-cta__btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* All mobile adjustments */
@media (max-width: 600px){
  .blog-surface{
    padding-left: 0;
    padding-right: 0;
  }

  .blog-surface .article,
  .article{
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 2rem auto;
    padding: 1.25rem;
    overflow: hidden;
  }

  .article-grid,
  .article-main,
  .article-aside,
  .contact-area{
    width: 100%;
    max-width: 100%;
  }

  .article p,
  .article li,
  .blog-hero__lede{
    text-align: left;
    overflow-wrap: anywhere;
  }

  .article table{
    max-width: 100%;
  }

  .article pre{
    max-width: 100%;
    overflow-x: auto;
  }

  .article-wave-underline__svg{
    display: none;
  }

  .article-wave-underline{
    display: inline;
    padding-bottom: 0;
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, var(--accent, #22c55e) 72%, white);
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .article-wave-underline__text{
    overflow-wrap: normal;
  }

  .article-text-circle{
    padding: .02em .28em .05em;
  }

  .article-text-circle::before,
  .article-text-circle::after{
    border-width: 1.8px;
    left: -.16em;
    right: -.16em;
    top: -.15em;
    bottom: -.12em;
  }

  .blog-hero__ctas a{
    width: 100%;
    margin: 5px;
  }

  .blog-hero__trust {
    gap: 6px 14px;
  }

  .article-inline-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
  }
  .article-inline-cta__btn {
    width: 100%;
    text-align: center;
  }
  .article-inline-cta__text p {
    text-align: left;
  }

  .contact-bar-wrap{
    visibility: visible;
  }

  .cg-breadcrumbs{
    padding: 0px 20px 20px;
  }

  img.text-img{
    float: none !important;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
  }

  .cg-footer-teaser{
    padding: 56px 16px 70px !important;
  }
}
