/* ==========================================
   SP-Lexikon – vollständige custom.css
   Header, Startseite, Footer, Geschichte, FAQ
   ========================================== */

/* HEADER */
#sp-header {
  height: 80px;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 12px rgba(23, 43, 67, .045);
}

#sp-header > .container,
#sp-header > .container-fluid {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

#sp-header .row {
  align-items: center;
}

#sp-header .logo {
  display: flex;
  align-items: center;
  height: 80px;
}

#sp-header .logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

#sp-header .logo img {
  width: auto !important;
  height: 60px !important;
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

/* DESKTOP-NAVIGATION */
@media (min-width: 992px) {
  #sp-header #sp-menu > .sp-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 80px;
  }

  #sp-header .sp-megamenu-wrapper {
    margin-left: auto;
  }

  #sp-header .sp-megamenu-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    float: none;
  }

  #sp-header .sp-megamenu-parent > li {
    margin: 0;
    padding: 0;
  }

  #sp-header .sp-megamenu-parent > li > a,
  #sp-header .sp-megamenu-parent > li > span {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 12px;
    background-color: transparent;
    color: #26384d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: color .18s ease;
  }

  #sp-header .sp-megamenu-parent > li:hover > a {
    color: #981b1e;
    background-color: transparent;
    text-decoration: none;
  }

  #sp-header .sp-megamenu-parent > li.active > a,
  #sp-header .sp-megamenu-parent > li.current > a {
    color: #981b1e;
    background-image: linear-gradient(#981b1e, #981b1e);
    background-repeat: no-repeat;
    background-size: calc(100% - 24px) 2px;
    background-position: center bottom 18px;
  }

  #sp-header:has(.sp-megamenu-parent > li) #offcanvas-toggler {
    display: none !important;
  }
}

/* UNTERMENÜS */
#sp-header .sp-dropdown .sp-dropdown-inner {
  padding: 12px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(23, 43, 67, .08);
}

#sp-header .sp-dropdown li.sp-menu-item > a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #26384d;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

#sp-header .sp-dropdown li.sp-menu-item:hover > a,
#sp-header .sp-dropdown li.sp-menu-item.active > a {
  background: #f5f7fa;
  color: #981b1e;
  text-decoration: none;
}

#sp-header a:focus-visible {
  outline: 2px solid #981b1e;
  outline-offset: 4px;
}

/* WILLKOMMENSBEREICH */
.splex-hero {
  --splex-ink: #172b43;
  --splex-accent: #981b1e;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  padding: clamp(24px, 3vw, 38px) clamp(22px, 3vw, 38px);
  border: 0;
  border-radius: 14px;
  background: linear-gradient(
    110deg, #f3f5f7 0%, #f1f2f5 62%, #ebe8ed 100%
  );
  color: var(--splex-ink);
  font-family: inherit;
  text-align: left;
}

.splex-hero::before,
.splex-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: rgba(137, 69, 82, .045);
}

.splex-hero::before {
  width: 360px;
  height: 320px;
  right: -60px;
  top: -135px;
  border-radius: 46% 54% 58% 42% / 58% 44% 56% 42%;
  transform: rotate(-27deg);
}

.splex-hero::after {
  width: 380px;
  height: 250px;
  right: -75px;
  bottom: -170px;
  border-radius: 62% 38% 44% 56% / 58% 52% 48% 42%;
  transform: rotate(22deg);
}

.splex-hero .splex-hero__content {
  position: relative;
  max-width: 760px;
}

.splex-hero .splex-hero__eyebrow {
  margin: 0 0 7px;
  padding: 0;
  color: var(--splex-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.splex-hero .splex-hero__title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--splex-ink);
  font-family: inherit;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

.splex-hero .splex-hero__intro {
  max-width: 720px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--splex-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.splex-hero .splex-hero__note {
  margin: 0;
  padding: 0;
  color: #34445b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* STARTSEITENKARTEN */
.splex-entry,
.splex-topics,
.splex-about {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 24px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #edf0f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(23, 43, 67, .035);
  color: #172b43;
  font-family: inherit;
  text-align: left;
}

.splex-entry .splex-entry__title,
.splex-topics .splex-topics__title,
.splex-about .splex-about__title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #172b43;
  font-family: inherit;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.splex-entry .splex-entry__intro,
.splex-topics .splex-topics__intro,
.splex-about .splex-about__intro {
  margin: 0;
  padding: 0;
  color: #65758b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

/* EINSTIEG */
.splex-entry .splex-entry__hint {
  padding: 30px 0 4px;
  text-align: center;
}

.splex-entry .splex-entry__icon {
  display: block;
  width: 76px;
  height: 61px;
  margin: 0 auto 15px;
  color: #7c8691;
}

.splex-entry .splex-entry__question {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #172b43;
  font-family: inherit;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.35;
}

.splex-entry .splex-entry__note {
  margin: 0;
  padding: 0;
  color: #65758b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

/* RUBRIKKARTEN */
.splex-topics .splex-topics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.splex-topics a.splex-topic {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 110px;
  padding: 20px 16px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
  color: #172b43;
  text-decoration: none;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.splex-topics a.splex-topic:hover {
  border-color: #bfcbd8;
  background: #f8fafc;
  color: #172b43;
  text-decoration: none;
}

.splex-topics a.splex-topic:focus-visible,
.splex-topics a.splex-topics__all:focus-visible {
  outline: 2px solid #981b1e;
  outline-offset: 4px;
}

.splex-topics .splex-topic svg {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.splex-topics .splex-topic__text {
  display: block;
  flex: 1;
  min-width: 0;
}

.splex-topics .splex-topic__name {
  display: block;
  margin-bottom: 5px;
  color: #172b43;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.splex-topics .splex-topic__description {
  display: block;
  color: #65758b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.splex-topics .splex-topic__arrow {
  flex: 0 0 auto;
  align-self: center;
  color: #172b43;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.splex-topics a.splex-topics__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #981b1e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.splex-topics a.splex-topics__all:hover {
  color: #681215;
  text-decoration: none;
}

/* TECHNIK VERSTEHEN */
.splex-about .splex-about__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.splex-about .splex-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.splex-about .splex-feature + .splex-feature {
  border-left: 1px solid #e3e9ef;
  padding-left: 20px;
}

.splex-about .splex-feature svg {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #981b1e;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.splex-about .splex-feature__text {
  min-width: 0;
}

.splex-about .splex-feature__title {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #172b43;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.splex-about .splex-feature__description {
  margin: 0;
  padding: 0;
  color: #65758b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* GEMEINSAME AUFTEILUNG – STARTSEITE, GESCHICHTE UND FAQ */
#sp-main-body:has(.splex-hero, .cw-history, .cw-faq)
.row:has(> #sp-component):has(> #sp-right) {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 30px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

#sp-component #sp-page-builder:has(.splex-hero, .cw-history, .cw-faq),
#sp-component #sp-page-builder:has(.splex-hero, .cw-history, .cw-faq)
.sppb-section:has(
  .splex-hero, .splex-entry, .splex-topics, .splex-about, .cw-history, .cw-faq
) .sppb-row-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

#sp-component #sp-page-builder:has(.splex-hero, .cw-history, .cw-faq)
.sppb-section:has(
  .splex-hero, .splex-entry, .splex-topics, .splex-about, .cw-history, .cw-faq
) .sppb-row-container {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  #sp-main-body:has(.splex-hero, .cw-history, .cw-faq)
  .row:has(> #sp-component):has(> #sp-right) > #sp-component {
    flex: 0 0 80% !important;
    width: 80% !important;
    max-width: 80% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  #sp-main-body:has(.splex-hero, .cw-history, .cw-faq)
  .row:has(> #sp-component):has(> #sp-right) > #sp-right {
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* FOOTER */
#sp-footer:has(.splex-footer) {
  padding: 0;
  border-top: 1px solid #e3e9ef;
  background: #fff;
  color: #65758b;
}

#sp-footer:has(.splex-footer) > .container,
#sp-footer:has(.splex-footer) > .container-fluid {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

#sp-footer #sp-footer1:has(.splex-footer) {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#sp-footer .sp-copyright:has(.splex-footer) {
  display: block;
  width: 100%;
}

#sp-footer .splex-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 76px;
  padding: 20px 0;
  box-sizing: border-box;
  color: #65758b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

#sp-footer .splex-footer__copyright {
  display: block;
}

#sp-footer .splex-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 26px;
  margin-left: auto;
}

#sp-footer .splex-footer__links a {
  color: #34445b;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color .18s ease;
}

#sp-footer .splex-footer__links a:hover {
  color: #981b1e;
  text-decoration: none;
}

#sp-footer .splex-footer__links a:focus-visible {
  outline: 2px solid #981b1e;
  outline-offset: 4px;
  border-radius: 2px;
}

/* TABLET UND MOBIL */
@media (max-width: 991px) {
  #sp-header,
  #sp-header .logo {
    height: 64px;
  }

  #sp-header .logo img {
    height: 46px !important;
    max-height: 46px;
  }

  #sp-header #offcanvas-toggler {
    color: #26384d;
    line-height: 64px;
  }

  #sp-header #offcanvas-toggler:hover {
    color: #981b1e;
  }

  #sp-main-body:has(.splex-hero, .cw-history, .cw-faq)
  .row:has(> #sp-component):has(> #sp-right) > #sp-component,

  #sp-main-body:has(.splex-hero, .cw-history, .cw-faq)
  .row:has(> #sp-component):has(> #sp-right) > #sp-right {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  #sp-main-body:has(.splex-hero, .cw-history, .cw-faq) #sp-right {
    margin-top: 24px;
  }

  .splex-topics .splex-topics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .splex-about .splex-about__features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .splex-about .splex-feature + .splex-feature {
    border-left: 0;
    border-top: 1px solid #e3e9ef;
    padding-left: 0;
    padding-top: 18px;
  }
}

/* KLEINE MOBILGERÄTE */
@media (max-width: 575px) {
  .splex-hero,
  .splex-entry,
  .splex-topics,
  .splex-about {
    margin-bottom: 18px;
    border-radius: 12px;
  }

  .splex-hero .splex-hero__intro,
  .splex-entry .splex-entry__intro,
  .splex-entry .splex-entry__note,
  .splex-topics .splex-topics__intro,
  .splex-about .splex-about__intro {
    font-size: 15px;
  }

  .splex-hero .splex-hero__note {
    font-size: 13px;
  }

  .splex-hero::before,
  .splex-hero::after {
    opacity: .6;
    right: -180px;
  }

  .splex-entry .splex-entry__hint {
    padding-top: 24px;
  }

  .splex-topics .splex-topics__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .splex-topics a.splex-topic {
    min-height: 0;
    padding: 18px 16px;
  }

  #sp-footer .splex-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
  }

  #sp-footer .splex-footer__links {
    justify-content: flex-start;
    margin-left: 0;
    gap: 22px;
  }
}

/* REDUZIERTE BEWEGUNG */
@media (prefers-reduced-motion: reduce) {
  #sp-header .sp-megamenu-parent > li > a,
  .splex-topics a.splex-topic,
  #sp-footer .splex-footer__links a {
    transition: none;
  }
}

/* UNSERE GESCHICHTE */
.cw-history {
  --cw-accent: #b9252c;
  --cw-text: #26313e;
  --cw-muted: #647080;
  --cw-border: #e5e9ef;
  --cw-surface: #f6f8fa;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 0 48px;
  color: var(--cw-text);
  font-family: inherit;
  line-height: 1.75;
}

.cw-history,
.cw-history * {
  box-sizing: border-box;
}

.cw-history a,
.cw-history a:hover,
.cw-history a:focus {
  text-decoration: none;
}

.cw-history a:focus-visible {
  outline: 3px solid var(--cw-accent);
  outline-offset: 5px;
}

.cw-history-intro {
  max-width: 850px;
  margin-bottom: 32px;
}

.cw-history-label {
  margin: 0 0 10px;
  color: var(--cw-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cw-history h1 {
  margin: 0 0 18px;
  color: var(--cw-text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
}

.cw-history-lead {
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.cw-history-intro > p:last-child {
  margin-bottom: 0;
  color: var(--cw-muted);
}

.cw-history-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.cw-history-fact {
  padding: 22px;
  border: 1px solid var(--cw-border);
  border-radius: 16px;
  background: var(--cw-surface);
}

.cw-history-fact strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cw-text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.cw-history-fact span {
  display: block;
  color: var(--cw-muted);
  font-size: 14px;
}

.cw-history-section-title {
  margin: 0 0 24px;
  color: var(--cw-text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.cw-history-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 32px;
}

.cw-history-timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 7px;
  width: 2px;
  background: var(--cw-border);
  content: "";
}

.cw-history-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--cw-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(28, 39, 53, .04);
}

.cw-history-card::before {
  position: absolute;
  top: 34px;
  left: -32px;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--cw-accent);
  box-shadow: 0 0 0 1px var(--cw-border);
  content: "";
}

.cw-history-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.cw-history-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 5px 13px;
  border-radius: 8px;
  background: var(--cw-surface);
  color: var(--cw-text);
  font-size: 16px;
  font-weight: 600;
}

.cw-history h3 {
  margin: 0;
  color: var(--cw-text);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.cw-history-card p {
  margin: 0 0 14px;
}

.cw-history-card p:last-child {
  margin-bottom: 0;
}

.cw-history-figure {
  margin: 22px 0 0;
}

.cw-history-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--cw-border);
  border-radius: 12px;
  background: var(--cw-surface);
}

.cw-history-image-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 340px;
  border-radius: 4px;
  transition: transform .2s ease;
}

.cw-history-image-link:hover img {
  transform: scale(1.015);
}

.cw-history-figure figcaption {
  margin-top: 10px;
  color: var(--cw-muted);
  font-size: 13px;
  text-align: center;
}

.cw-history-card-current {
  border-color: #d6dde5;
  background: linear-gradient(135deg, #fff 0%, #f6f8fa 100%);
}

.cw-history-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.cw-history-features li {
  padding: 11px 14px;
  border: 1px solid var(--cw-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.cw-history-outlook {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--cw-border);
  border-radius: 18px;
  background: var(--cw-surface);
}

.cw-history-outlook h2 {
  margin: 0 0 12px;
  color: var(--cw-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.cw-history-outlook p {
  margin: 0;
}

@media (max-width: 767px) {
  .cw-history {
    padding-top: 16px;
  }

  .cw-history-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .cw-history-fact {
    padding: 18px 20px;
  }

  .cw-history-timeline {
    gap: 18px;
    padding-left: 26px;
  }

  .cw-history-card {
    padding: 20px;
  }

  .cw-history-card::before {
    left: -26px;
  }

  .cw-history-image-link {
    padding: 10px;
  }

  .cw-history-features {
    grid-template-columns: 1fr;
  }

  .cw-history-outlook {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-history-image-link img {
    transition: none;
  }
}

/* VERGRÖSSERTE HISTORISCHE SCREENSHOTS */
.cw-history-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 56px 24px 24px;
  border: 0;
  background: transparent;
  color: #fff;
  box-sizing: border-box;
}

.cw-history-lightbox:not([open]) {
  display: none;
}

.cw-history-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-history-lightbox::backdrop {
  background: rgba(14, 22, 33, .92);
}

.cw-history-lightbox figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.cw-history-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 145px);
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
  cursor: zoom-out;
}

.cw-history-lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.cw-history-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cw-history-lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
}

.cw-history-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.cw-history-image-link {
  cursor: zoom-in;
}

html.cw-history-lightbox-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

@media (max-width: 767px) {
  .cw-history-lightbox {
    padding: 64px 12px 20px;
  }
}

/* HÄUFIGE FRAGEN */
.cw-faq {
  --cw-faq-text: #26313e;
  --cw-faq-muted: #647080;
  --cw-faq-border: #e5e9ef;
  --cw-faq-accent: #981b1e;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 0 48px;
  color: var(--cw-faq-text);
  font-family: inherit;
  line-height: 1.7;
}

.cw-faq,
.cw-faq * {
  box-sizing: border-box;
}

.cw-faq-intro {
  margin-bottom: 30px;
}

.cw-faq-label {
  margin: 0 0 10px;
  color: var(--cw-faq-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cw-faq h1 {
  margin: 0 0 16px;
  color: var(--cw-faq-text);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
}

.cw-faq-lead {
  max-width: 850px;
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.cw-faq-group {
  margin-bottom: 28px;
}

.cw-faq-group:last-child {
  margin-bottom: 0;
}

.cw-faq-group h2 {
  margin: 0 0 14px;
  color: var(--cw-faq-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.cw-faq-questions {
  overflow: hidden;
  border: 1px solid var(--cw-faq-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(28, 39, 53, .04);
}

.cw-faq details + details {
  border-top: 1px solid var(--cw-faq-border);
}

.cw-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: var(--cw-faq-text);
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.cw-faq summary::-webkit-details-marker {
  display: none;
}

.cw-faq summary::marker {
  content: "";
}

.cw-faq summary::after {
  content: "+";
  flex: 0 0 24px;
  width: 24px;
  color: var(--cw-faq-accent);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.cw-faq details[open] > summary::after {
  content: "−";
}

.cw-faq summary:hover {
  background: #f8fafc;
}

.cw-faq summary:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--cw-faq-accent);
  outline-offset: -4px;
  border-radius: 8px;
}

.cw-faq-answer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--cw-faq-border);
  color: var(--cw-faq-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.cw-faq-answer p {
  margin: 0 0 12px;
}

.cw-faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .cw-faq {
    padding-top: 16px;
  }

  .cw-faq-group h2 {
    font-size: 21px;
  }

  .cw-faq summary {
    gap: 12px;
    padding: 16px;
    font-size: 16px;
  }

  .cw-faq-answer {
    padding: 16px;
    font-size: 15px;
  }
}

/* DATENSCHUTZ UND IMPRESSUM
   Bestehende Joomla-Menüpunkte: Datenschutz 186, Impressum 187 */
body:is(.itemid-186, .itemid-187) #sp-main-body
.row:has(> #sp-component):has(> #sp-right) {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 30px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

body:is(.itemid-186, .itemid-187) #sp-component #sp-page-builder,
body:is(.itemid-186, .itemid-187) #sp-component .sppb-row-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

body:is(.itemid-186, .itemid-187) #sp-component .sppb-row-container {
  padding-left: 0;
  padding-right: 0;
}

body:is(.itemid-186, .itemid-187) #sp-component #sp-page-builder {
  padding-top: 24px;
}

body:is(.itemid-186, .itemid-187) #sp-component .sppb-addon-content {
  overflow-wrap: anywhere;
}

@media (min-width: 992px) {
  body:is(.itemid-186, .itemid-187) #sp-main-body
  .row:has(> #sp-component):has(> #sp-right) > #sp-component {
    flex: 0 0 80% !important;
    width: 80% !important;
    max-width: 80% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  body:is(.itemid-186, .itemid-187) #sp-main-body
  .row:has(> #sp-component):has(> #sp-right) > #sp-right {
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 991px) {
  body:is(.itemid-186, .itemid-187) #sp-main-body
  .row:has(> #sp-component):has(> #sp-right) > #sp-component,
  body:is(.itemid-186, .itemid-187) #sp-main-body
  .row:has(> #sp-component):has(> #sp-right) > #sp-right {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  body:is(.itemid-186, .itemid-187) #sp-right {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  body:is(.itemid-186, .itemid-187) #sp-component #sp-page-builder {
    padding-top: 16px;
  }
}

/* KOMPAKTER STARTSEITENEINSTIEG – SP-Lexikon 0.1.54 */
.splex-entry.splex-entry--compact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 30px;
}
.splex-entry--compact .splex-entry__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 34px;
  margin: 0;
  color: #7c8691;
}
.splex-entry--compact .splex-entry__content {
  min-width: 0;
}
.splex-entry--compact .splex-entry__title {
  font-size: clamp(20px, 2vw, 25px);
}
.sp-module:has(.itlexikon-module-empty),
.moduletable:has(.itlexikon-module-empty),
.itlexikon-module-chrome:has(.itlexikon-module-empty) {
  display: none !important;
}
@media (max-width: 575px) {
  .splex-entry.splex-entry--compact {
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }
  .splex-entry--compact .splex-entry__icon {
    flex-basis: 34px;
    width: 34px;
    height: 28px;
    margin-top: 3px;
  }
}
