/* Stable NEXAKI design system for detail and knowledge pages. */
.content-page {
  --content-width: 1180px;
  --reading-width: 860px;
  padding-bottom: clamp(56px, 7vw, 88px);
  color: var(--text);
}

/* Cookie-Informationen: komfortabler Leserand auf allen Bildschirmgrößen. */
.cookie-page > .section {
  width: min(var(--content-width), calc(100% - 48px));
}

/* Kontaktseite nutzt die volle Inhaltsbreite statt der rechten Lesespalte. */
.contact-page > .cta-section {
  display: block !important;
  width: min(1280px, calc(100% - 36px)) !important;
  margin-inline: auto;
}

.contact-page > .cta-section > .contact-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(42px, 6vw, 72px);
  width: 100%;
  margin: 0;
}

.contact-page .contact-form {
  order: 2;
  width: 100%;
  max-width: 940px;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-page .contact-details {
  order: 1;
  width: 100%;
  max-width: 940px;
  padding: 0;
}

.booking-panel {
  order: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  width: 100%;
  max-width: 940px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
}

.booking-panel-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent);
  color: #17130f;
}

.booking-panel-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-panel h2 {
  margin: 0 0 12px;
}

.booking-panel p:not(.eyebrow) {
  max-width: 68ch;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.booking-panel-button {
  width: fit-content;
}

.booking-panel-button .lang-en {
  display: none;
}

body[data-lang="en"] .booking-panel-button .lang-de {
  display: none;
}

body[data-lang="en"] .booking-panel-button .lang-en {
  display: inline-block;
}

@media (max-width: 640px) {
  .booking-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .booking-panel-icon {
    width: 52px;
    height: 52px;
  }

  .booking-panel h2 {
    margin-bottom: 14px;
  }

  .booking-panel-button {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
}

.contact-form-heading {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.contact-form-heading h2 {
  margin: 0 0 12px;
}

.contact-form-heading > p:not(.eyebrow) {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-context-copy {
  order: 4;
  max-width: 780px;
  margin-top: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-context-copy h2 {
  margin: 0 0 12px;
}

.contact-context-copy p + p {
  margin-top: 12px;
}

.contact-page .contact-list > a {
  border-radius: 12px;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.contact-page .contact-list > a:hover,
.contact-page .contact-list > a:focus-visible {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  transform: translateX(4px);
}

/* Der ausführliche NEXAKI-Vergleich nutzt auf der Crew-Seite die volle Breite. */
.crew-page > #struktur-vor-tools {
  display: block;
  width: min(1440px, calc(100% - 36px));
}

.crew-page > #struktur-vor-tools > h2,
.crew-page > #struktur-vor-tools > .nexaki-approach-intro,
.crew-page > #struktur-vor-tools > .comparison-detail-grid {
  width: 100%;
  max-width: none;
}

.crew-page > #struktur-vor-tools > h2 {
  margin-bottom: 18px;
}

.content-page .page-intro {
  padding: clamp(34px, 5vw, 64px) 0 clamp(22px, 3vw, 38px);
}

.content-page .page-intro .container {
  position: relative;
  min-height: clamp(270px, 30vw, 360px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 24%, color-mix(in srgb, var(--accent) 18%, transparent) 0 8%, transparent 8.5%),
    radial-gradient(circle at 88% 24%, transparent 0 16%, color-mix(in srgb, var(--accent) 10%, transparent) 16.5% 18%, transparent 18.5%),
    linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--accent-soft) 64%, var(--panel)));
  box-shadow: 0 22px 58px color-mix(in srgb, var(--text) 9%, transparent);
}

.content-page .page-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.content-page .page-intro p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.65;
  color: var(--muted);
}

.content-page .eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
}

.page-context-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 24px;
}

.page-context-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.page-context-link:hover,
.page-context-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-page > .section,
.content-page > article,
.content-page > article > .section {
  width: min(var(--content-width), calc(100% - 36px));
  margin-inline: auto;
}

.content-page > article {
  display: block;
}

.content-page > .section,
.content-page > article > .section {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px clamp(32px, 4vw, 56px);
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.content-page > .section:last-child,
.content-page > article > .section:last-child {
  border-bottom: 0;
}

.content-page > .section > h2,
.content-page > article > .section > h2 {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.content-page > .section > h2::before,
.content-page > article > .section > h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 7px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}

.content-page > .section > :not(h2),
.content-page > article > .section > :not(h2) {
  grid-column: 2;
  min-width: 0;
}

.content-page:not(.knowledge-page) > .section > h2 + * {
  padding-top: 32px;
}

.content-page .section p {
  max-width: var(--reading-width);
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.content-page .section p + p,
.content-page .section p + ul,
.content-page .section p + ol,
.content-page .section h3 + p {
  margin-top: 16px;
}

.content-page .section h3 {
  margin: 18px 0 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.content-page .section ul,
.content-page .section ol {
  display: grid;
  gap: 10px;
  max-width: var(--reading-width);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: content-list;
}

.content-page .section li {
  position: relative;
  min-height: 52px;
  padding: 14px 18px 14px 46px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.55;
}

.content-page .section ul > li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 20px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.content-page .section ol > li {
  counter-increment: content-list;
  padding-left: 58px;
}

.content-page .section ol > li::before {
  content: counter(content-list, decimal-leading-zero);
  position: absolute;
  top: 13px;
  left: 18px;
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 800;
}

.content-page .section a:not(.button) {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.content-page .icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  margin: 10px 0 8px;
}

.content-page .icon-card {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--text) 5%, transparent);
  transition: translate .2s ease, border-color .2s ease;
}

.content-page .icon-card:hover {
  translate: 0 -3px;
  border-color: var(--accent-line);
}

.content-page .icon-card h3 {
  margin: 18px 0 0;
  font-size: clamp(.95rem, 1.35vw, 1.08rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.content-page .icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.content-page .icon-svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Editorial articles stay compact and easy to read. */
.article-page .page-intro .container {
  min-height: 250px;
  max-width: 980px;
  padding: clamp(32px, 5vw, 54px);
}

.article-page .page-intro h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 4.7vw, 4.15rem);
}

.article-page > article {
  width: min(920px, calc(100% - 36px));
}

.article-page > article > .section {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(38px, 5vw, 58px) 0;
}

.article-page > article > .section > h2,
.article-page > article > .section > :not(h2) {
  grid-column: 1;
  grid-row: auto;
}

.article-page > article > .section > h2 {
  max-width: 760px;
}

.article-page > article > .section:last-child p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.article-page > article > .section:last-child p:last-child > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  text-decoration: none;
}

/* Knowledge overview cards. */
.knowledge-page > .section:not(:last-child) {
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
}

.knowledge-page > .section h3,
.knowledge-page > .section h3 + p {
  grid-column: 2;
  margin: 0;
  border-inline: 1px solid var(--line);
  background: var(--panel);
}

.knowledge-page > .section h3 {
  border-top: 1px solid var(--line);
  border-radius: 17px 17px 0 0;
}

.knowledge-page > .section h3:not(:first-of-type) {
  margin-top: 10px;
}

.knowledge-page > .section h3 > a {
  position: relative;
  display: block;
  min-height: 66px;
  padding: 20px 62px 10px 20px;
  color: var(--text);
  text-decoration: none;
}

.knowledge-page > .section h3 > a::after {
  content: "→";
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  transition: translate .2s ease;
}

.knowledge-page > .section h3 > a:hover::after,
.knowledge-page > .section h3 > a:focus-visible::after {
  translate: 4px 0;
}

.knowledge-page > .section h3 + p {
  padding: 0 62px 20px 20px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 17px 17px;
}

/* Use existing imagery only where it adds page-specific context. */
.crew-page .page-intro .container,
.hub-page .page-intro .container,
.knowledge-page .page-intro .container {
  padding-right: clamp(300px, 40vw, 500px);
  background-repeat: no-repeat;
}

.crew-page .page-intro .container {
  background: linear-gradient(90deg, var(--panel), color-mix(in srgb, var(--panel) 94%, var(--accent-soft)));
}

.crew-page .page-intro .container::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 44%;
  background: url("Assets/nexaki-founder-portrait-02.jpg") center center / cover no-repeat;
}

.crew-page .page-intro .container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 36% 0 auto;
  width: 16%;
  background: linear-gradient(90deg, var(--panel), transparent);
  pointer-events: none;
}

.hub-page .page-intro .container {
  background-image: linear-gradient(90deg, var(--panel) 0 55%, transparent 78%), url("Assets/hub-overview-de-light.png") !important;
  background-position: left top, right center;
  background-size: 100% 100%, 44% auto;
}

.knowledge-page .page-intro .container {
  background-image: linear-gradient(90deg, var(--panel) 0 55%, transparent 78%), url("Assets/nexaki-intro-visual-light-v2.png");
  background-position: left top, right center;
  background-size: 100% 100%, 44% auto;
}

body[data-theme="dark"] .hub-page .page-intro .container {
  background-image: linear-gradient(90deg, var(--panel) 0 55%, transparent 78%), url("Assets/digital-hub-overview-de-dark-2026-black.png") !important;
}

body[data-lang="en"] .hub-page .page-intro .container {
  background-image: linear-gradient(90deg, var(--panel) 0 55%, transparent 78%), url("Assets/hub-overview-en-light.png") !important;
}

body[data-lang="en"][data-theme="dark"] .hub-page .page-intro .container {
  background-image: linear-gradient(90deg, var(--panel) 0 55%, transparent 78%), url("Assets/digital-hub-overview-en-dark-2026-black.png") !important;
}

body[data-theme="dark"] .knowledge-page .page-intro .container {
  background-image: linear-gradient(90deg, var(--panel) 0 55%, transparent 78%), url("Assets/nexaki-intro-visual-dark-v2.png");
}

body[data-theme="dark"] .content-page .page-intro .container,
body[data-theme="dark"] .content-page .icon-card,
body[data-theme="dark"] .knowledge-page > .section h3,
body[data-theme="dark"] .knowledge-page > .section h3 + p {
  border-color: var(--line);
  box-shadow: none;
}

body[data-theme="dark"] .content-page .section li {
  background: color-mix(in srgb, var(--panel) 88%, var(--accent) 12%);
}

/* Seminar lists stay visually integrated with the page in dark mode. */
body[data-theme="dark"] .training-page .section .training-format-grid > li,
body[data-theme="dark"] .training-page .section .training-audience-grid > li,
body[data-theme="dark"] .training-page .section .training-vertical-list > li {
  background: transparent;
}

.content-page :is(.reveal, .reveal.is-visible) {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .content-page > .section,
  .content-page > article > .section,
  .knowledge-page > .section:not(:last-child) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .content-page > .section > h2,
  .content-page > article > .section > h2,
  .content-page > .section > :not(h2),
  .content-page > article > .section > :not(h2),
  .knowledge-page > .section h3,
  .knowledge-page > .section h3 + p {
    grid-column: 1;
    grid-row: auto;
  }

  .content-page:not(.knowledge-page) > .section > h2 + * {
    padding-top: 0;
  }

  .content-page .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .hub-page .page-intro .container,
  .knowledge-page .page-intro .container,
  body[data-theme="dark"] .hub-page .page-intro .container,
  body[data-theme="dark"] .knowledge-page .page-intro .container {
    min-height: auto;
    padding-right: clamp(24px, 6vw, 46px);
    padding-bottom: clamp(210px, 58vw, 330px);
    background-position: left top, center bottom;
    background-size: 100% 62%, 100% auto;
  }

  .crew-page .page-intro .container {
    min-height: auto;
    padding-right: clamp(24px, 6vw, 46px);
    padding-bottom: clamp(230px, 64vw, 350px);
  }

  .crew-page .page-intro .container::after {
    inset: auto 0 0;
    width: 100%;
    height: clamp(200px, 56vw, 310px);
    background-position: center 38%;
  }

  .crew-page .page-intro .container::before {
    z-index: 1;
    inset: auto 0 calc(clamp(200px, 56vw, 310px) - 36px);
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg, var(--panel), transparent);
  }
}

@media (max-width: 640px) {
  .content-page {
    padding-bottom: 44px;
  }

  .content-page .page-intro {
    padding: 22px 0 12px;
  }

  .content-page .page-intro .container {
    width: min(100% - 24px, var(--content-width));
    min-height: 230px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .content-page .page-intro h1,
  .article-page .page-intro h1 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
  }

  .content-page > .section,
  .content-page > article,
  .content-page > article > .section {
    width: min(100% - 28px, var(--content-width));
  }

  .content-page > .section,
  .content-page > article > .section {
    padding: 34px 0;
  }

  .content-page .icon-grid {
    grid-template-columns: 1fr;
  }

  .content-page .icon-card {
    min-height: 128px;
  }

  .hub-page .page-intro .container,
  .knowledge-page .page-intro .container,
  body[data-theme="dark"] .hub-page .page-intro .container,
  body[data-theme="dark"] .knowledge-page .page-intro .container {
    padding-bottom: clamp(190px, 62vw, 280px);
  }
}

/* Langer Beratungstitel bleibt auf schmalen Smartphones vollständig sichtbar. */
@media (max-width: 560px) {
  .services-page .page-intro h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 8vw, 2.35rem);
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .services-page .section .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .services-page .section .icon-card {
    min-height: 98px;
    padding: 13px;
    border-radius: 15px;
  }

  .services-page .section .icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .services-page .section .icon-svg {
    width: 19px;
    height: 19px;
  }

  .services-page .section .icon-card h3 {
    margin-top: 10px;
    font-size: .86rem;
    line-height: 1.25;
  }
}

/* Schulungsseite: horizontale Themen, Formatband, Zielgruppenraster und vertikale Ergebnisse. */
.training-page .section .topic-swipe {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.training-page .section .topic-swipe > .icon-card {
  flex: 0 0 clamp(220px, 31%, 270px);
  min-height: 170px;
  scroll-snap-align: start;
}

.training-page .section .training-format-strip {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px 18px;
  counter-reset: training-format;
  scroll-snap-type: x mandatory;
  cursor: grab;
}

.content-page .section .training-format-strip > li {
  counter-increment: training-format;
  flex: 0 0 clamp(230px, 34%, 290px);
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 52px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  font-weight: 700;
  background: var(--panel);
  scroll-snap-align: start;
}

.content-page .section .training-format-strip > li::before {
  content: counter(training-format, decimal-leading-zero);
  top: 17px;
  left: 18px;
  width: auto;
  height: auto;
  border: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
}

.content-page .section .training-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  max-width: 100%;
}

.content-page .section .training-audience-grid > li {
  min-height: 0;
  padding: 16px 0 16px 26px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.content-page .section .training-audience-grid > li::before {
  left: 2px;
  top: 22px;
  border-color: var(--accent);
}

.content-page .section .training-vertical-list {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 100%;
  counter-reset: training-result;
}

.content-page .section .training-vertical-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), var(--accent), var(--line));
}

.content-page .section .training-vertical-list > li {
  counter-increment: training-result;
  min-height: 74px;
  padding: 18px 12px 18px 70px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.content-page .section .training-vertical-list > li::before {
  content: counter(training-result, decimal-leading-zero);
  z-index: 1;
  top: 17px;
  left: 2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  background: var(--accent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.training-page .subpage-faq {
  display: grid;
  max-width: 100%;
  border-top: 1px solid var(--line);
}

.training-page .subpage-faq details {
  border-bottom: 1px solid var(--line);
}

.training-page .subpage-faq summary {
  position: relative;
  padding: 18px 42px 18px 0;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.training-page .subpage-faq summary::-webkit-details-marker {
  display: none;
}

.training-page .subpage-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  translate: 0 -50%;
  color: var(--accent);
  font-size: 1.35rem;
}

.training-page .subpage-faq details[open] summary::after {
  content: "−";
}

.training-page .subpage-faq details > p {
  padding: 0 42px 18px 0;
}

@media (max-width: 720px) {
  .training-page .section .topic-swipe > .icon-card,
  .content-page .section .training-format-strip > li {
    flex-basis: min(78vw, 280px);
    scroll-snap-align: center;
  }

  .content-page .section .training-audience-grid {
    grid-template-columns: 1fr;
  }
}

/* Unterseiten Light Mode: Header exakt wie die weiße Hauptfläche. */
html:has(body:not([data-theme="dark"])),
body:not([data-theme="dark"]),
body:not([data-theme="dark"]) main,
body:not([data-theme="dark"]) main > section,
body:not([data-theme="dark"]) :is(.content-page, .knowledge-page, .hub-page) {
  background-color: #fff !important;
}

body:not([data-theme="dark"]) .site-header,
body:not([data-theme="dark"]) .site-header :is(
  .container,
  .nav,
  .nav-menu,
  .nav-controls
) {
  border-color: transparent !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Digital-Hub-Funktionen statisch und vollständig sichtbar statt wischbar. */
.content-page .section .feature-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 22px;
  max-width: 100%;
  counter-reset: hub-overview;
}

.content-page .section .feature-overview > li {
  counter-increment: hub-overview;
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 18px 0 18px 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-weight: 700;
  background: transparent;
}

.content-page .section .feature-overview > li::before {
  content: counter(hub-overview, decimal-leading-zero);
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  translate: 0 -50%;
  border: 3px solid var(--panel);
  border-radius: 50%;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  background: #f48312;
  box-shadow: 0 7px 18px rgba(244, 131, 18, .2);
}

@media (max-width: 980px) {
  .content-page .section .feature-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .content-page .section .feature-overview {
    grid-template-columns: 1fr;
  }

  .content-page .section .feature-overview > li {
    min-height: 72px;
    padding-block: 14px;
  }
}

/* Schulungsthemen als statische, anklickbare Wendekarten ohne horizontales Scrollen. */
.training-page .section .training-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
  overflow: visible;
  perspective: 1200px;
}

.training-flip-card {
  min-width: 0;
  min-height: 220px;
}

.training-flip-button {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  perspective: 1200px;
}

.training-flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .72, .2, 1);
}

.training-flip-card.is-flipped .training-flip-inner {
  transform: rotateY(180deg);
}

.training-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--panel), var(--surface-soft));
  box-shadow: 0 14px 32px color-mix(in srgb, var(--text) 7%, transparent);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.training-flip-face strong {
  margin-top: auto;
  font-size: 1.08rem;
  line-height: 1.3;
}

.training-flip-face small {
  color: var(--accent-dark);
  font-weight: 750;
}

.training-flip-back {
  justify-content: flex-start;
  transform: rotateY(180deg);
  border-color: color-mix(in srgb, #f48312 58%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--panel));
}

.training-flip-back strong {
  margin: 0 0 2px;
}

.training-flip-back > span:not(.icon-badge) {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.training-flip-back > span:not(.icon-badge)::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f48312;
}

.training-flip-back small {
  margin-top: auto;
}

.training-flip-button:hover .training-flip-face,
.training-flip-button:focus-visible .training-flip-face {
  border-color: color-mix(in srgb, #f48312 55%, var(--line));
}

.training-flip-button:focus-visible {
  outline: 3px solid color-mix(in srgb, #f48312 42%, transparent);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .training-page .section .training-topic-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .training-flip-card,
  .training-flip-button,
  .training-flip-inner {
    min-height: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .training-flip-inner {
    transition-duration: .01ms;
  }
}

/* Schulungsthemen kompakt und direkt sichtbar, ohne Drehung oder Interaktion. */
.training-page .section .training-topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
}

.training-topic-list > article {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}

.training-topic-list .icon-badge {
  margin: 0;
}

.training-topic-list h3 {
  margin: 1px 0 5px;
}

.training-page .section .training-topic-list p,
.training-page .section .training-topic-list p + p {
  margin: 2px 0 0;
  font-size: .94rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .training-page .section .training-topic-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .training-topic-list > article {
    padding: 17px;
  }
}

/* Schulungsformate vollständig sichtbar statt horizontal wischbar. */
.training-page .section .training-format-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 100%;
  overflow: visible;
  padding: 0;
  counter-reset: training-format;
}

.training-page .section .training-format-grid > li {
  counter-increment: training-format;
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 13px 10px 13px 52px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 750;
  line-height: 1.42;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}

.training-page .section .training-format-grid > li:first-child {
  border-top: 1px solid var(--line);
}

.training-page .section .training-format-grid > li::before {
  content: counter(training-format, decimal-leading-zero);
  top: 50%;
  left: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  translate: 0 -50%;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: .62rem;
  font-weight: 850;
  background: #f48312;
}

@media (max-width: 640px) {
  .training-page .section .training-format-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .training-page .section .training-format-grid > li {
    min-height: 56px;
    align-items: center;
    padding: 12px 8px 12px 50px;
  }

  .training-page .section .training-format-grid > li::before {
    top: 50%;
    left: 6px;
    translate: 0 -50%;
  }
}

/* Digital Hub: ruhige, gleichwertige Funktionskarten über die gesamte Inhaltsbreite. */
.hub-page > .hub-functions-section {
  grid-template-columns: 1fr;
  gap: 30px;
}

.hub-page > .hub-functions-section > h2,
.hub-page > .hub-functions-section > .feature-overview {
  grid-column: 1;
}

.hub-page > .hub-functions-section > h2 {
  grid-row: auto;
  max-width: 760px;
}

.hub-page > .hub-functions-section > h2 + .feature-overview {
  padding-top: 0;
}

.hub-page > .hub-functions-section .feature-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hub-page > .hub-functions-section .feature-overview > li {
  min-height: 132px;
  align-items: flex-end;
  padding: 58px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--panel), var(--surface-soft));
  line-height: 1.42;
  overflow-wrap: anywhere;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--text) 6%, transparent);
}

.hub-page > .hub-functions-section .feature-overview > li::before {
  top: 18px;
  left: 18px;
  width: 30px;
  height: 30px;
  translate: 0;
  border: 0;
  font-size: .6rem;
  background: #f48312;
  box-shadow: none;
}

@media (max-width: 980px) {
  .hub-page > .hub-functions-section .feature-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hub-page > .hub-functions-section {
    gap: 22px;
  }

  .hub-page > .hub-functions-section .feature-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-page > .hub-functions-section .feature-overview > li {
    min-height: 86px;
    align-items: center;
    padding: 18px 18px 18px 64px;
  }

  .hub-page > .hub-functions-section .feature-overview > li::before {
    top: 50%;
    translate: 0 -50%;
  }
}

/* Digital-Hub-Funktionen: kompakte horizontale Reihe, auch im mobilen Layout. */
.content-page .section .feature-swipe {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  counter-reset: hub-feature;
}

.content-page .section .feature-swipe::-webkit-scrollbar {
  display: none;
}

.content-page .section .feature-swipe > li {
  counter-increment: hub-feature;
  flex: 0 0 clamp(190px, 29%, 225px);
  min-height: 116px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 58px 12px 12px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
  scroll-snap-align: start;
}

.content-page .section .feature-swipe > li::before {
  content: counter(hub-feature, decimal-leading-zero);
  z-index: 2;
  top: 4px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  translate: -50% 0;
  border: 3px solid var(--panel);
  border-radius: 50%;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  background: var(--accent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.content-page .section .feature-swipe > li::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 50%;
  width: calc(100% + 12px);
  height: 2px;
  background: color-mix(in srgb, var(--accent) 58%, var(--line));
}

.content-page .section .feature-swipe > li:last-child::after {
  display: none;
}

.content-page .section .feature-swipe.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

@media (max-width: 720px) {
  .content-page .section .feature-swipe {
    margin-inline: -2px;
  }

  .content-page .section .feature-swipe > li {
    flex-basis: min(68vw, 230px);
    scroll-snap-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-page *,
  .content-page *::before,
  .content-page *::after {
    transition-duration: .01ms !important;
  }
}

/* Digital Hub: automatisch wechselnde Funktionsübersicht ohne Wisch- oder Scrollzwang. */
.hub-page > .hub-functions-section > .hub-function-explorer {
  grid-column: 1;
}

.hub-function-explorer {
  display: grid;
  grid-template-columns: minmax(190px, .82fr) minmax(360px, 1.5fr) minmax(190px, .82fr);
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 34px);
  width: 100%;
}

.hub-function-list {
  display: grid;
  grid-template-rows: repeat(4, 82px);
  align-content: space-between;
  gap: 12px;
}

.hub-function-option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 82px;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--text) 5%, transparent);
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.hub-function-option span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, #f48312 50%, var(--line));
  border-radius: 50%;
  color: #b75b08;
  font-size: .68rem;
  font-weight: 850;
  transition: inherit;
}

.hub-function-option strong {
  font-size: clamp(.78rem, .95vw, .92rem);
  line-height: 1.35;
}

.hub-function-option:is(:hover, :focus-visible),
.hub-function-option.is-active {
  border-color: #f48312;
  background: color-mix(in srgb, #f48312 10%, var(--panel));
  box-shadow: 0 14px 32px color-mix(in srgb, #f48312 15%, transparent);
  transform: translateY(-2px);
  outline: none;
}

.hub-function-option.is-active span {
  border-color: #f48312;
  color: #fff;
  background: #f48312;
}

.hub-function-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  height: 398px;
  min-height: 398px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #f48312 48%, var(--line));
  border-radius: 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, #f48312 18%, transparent), transparent 38%),
    linear-gradient(145deg, var(--panel), var(--surface-soft));
  box-shadow: 0 24px 54px color-mix(in srgb, var(--text) 9%, transparent);
}

.hub-function-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  border: 1px solid color-mix(in srgb, #f48312 55%, var(--line));
  border-radius: 50%;
}

.hub-function-orbit::before,
.hub-function-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, #f48312 25%, transparent);
  border-radius: inherit;
  inset: 14px;
}

.hub-function-orbit::after {
  inset: -12px;
  border-style: dashed;
  animation: hub-orbit-spin 18s linear infinite;
}

.hub-function-icon {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: #f48312;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .2s ease, transform .25s ease;
}

.hub-function-number {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  background: #f48312;
  transform:
    translate(-50%, -50%)
    rotate(var(--hub-number-angle, 0deg))
    translateY(-88px)
    rotate(calc(var(--hub-number-angle, 0deg) * -1));
  transition: transform .42s cubic-bezier(.22, .75, .2, 1);
}

.hub-function-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
  max-width: 460px;
  transition: opacity .2s ease, transform .25s ease;
}

.hub-function-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.hub-function-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hub-function-progress {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

.hub-function-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #f48312;
  transform: scaleX(0);
  transform-origin: left;
}

.hub-function-explorer.is-running .hub-function-progress span {
  animation: hub-function-progress 4.8s linear forwards;
}

.hub-function-stage.is-changing .hub-function-icon,
.hub-function-stage.is-changing .hub-function-copy {
  opacity: .25;
  transform: translateY(5px);
}

@keyframes hub-function-progress {
  to { transform: scaleX(1); }
}

@keyframes hub-orbit-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .hub-function-explorer {
    grid-template-columns: 1fr;
  }

  .hub-function-stage {
    order: -1;
    height: 360px;
    min-height: 360px;
  }

  .hub-function-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}

@media (max-width: 560px) {
  .hub-function-explorer {
    gap: 18px;
  }

  .hub-function-stage {
    position: sticky;
    top: 66px;
    z-index: 8;
    height: 270px;
    min-height: 270px;
    max-height: 270px;
    gap: 12px;
    padding: 18px 16px 30px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 50% 28%, color-mix(in srgb, #f48312 14%, transparent), transparent 38%),
      var(--panel);
    box-shadow: 0 18px 42px color-mix(in srgb, #000 28%, transparent);
  }

  .hub-function-orbit {
    width: 92px;
    height: 92px;
  }

  .hub-function-icon {
    width: 40px;
    height: 40px;
  }

  .hub-function-number {
    width: 32px;
    height: 32px;
    transform:
      translate(-50%, -50%)
      rotate(var(--hub-number-angle, 0deg))
      translateY(-55px)
      rotate(calc(var(--hub-number-angle, 0deg) * -1));
  }

  .hub-function-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-function-option {
    grid-template-columns: 42px 1fr;
    gap: 13px;
    height: auto;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .hub-function-option span {
    width: 40px;
    height: 40px;
    font-size: .7rem;
  }

  .hub-function-option strong {
    font-size: .92rem;
    line-height: 1.4;
  }

  .hub-function-copy {
    min-height: 82px;
  }

  .hub-function-copy h3 {
    margin-bottom: 7px;
    font-size: clamp(1.2rem, 5.6vw, 1.55rem);
  }

  .hub-function-copy p:last-child {
    font-size: .88rem;
    line-height: 1.45;
  }

  .hub-function-progress {
    right: 16px;
    bottom: 12px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-function-orbit::after,
  .hub-function-explorer.is-running .hub-function-progress span {
    animation: none;
  }
}

/* Einheitliches, kompakteres Leseraster für alle Vertiefungsseiten. */
.content-page {
  padding-bottom: clamp(44px, 6vw, 68px);
}

.content-page .page-intro {
  padding-block: clamp(28px, 4vw, 46px) clamp(20px, 3vw, 30px);
}

.content-page .page-intro .container {
  min-height: clamp(240px, 27vw, 320px);
  padding: clamp(30px, 4vw, 48px);
}

.content-page > .section,
.content-page > article > .section {
  gap: 16px clamp(30px, 4vw, 50px);
  padding-block: clamp(38px, 5vw, 56px);
}

.content-page:not(.knowledge-page) > .section > h2 + * {
  padding-top: 28px;
}

.content-page .section p {
  line-height: 1.68;
}

.content-page .section p + p,
.content-page .section p + ul,
.content-page .section p + ol,
.content-page .section h3 + p {
  margin-top: 14px;
}

.content-page .section h3 {
  margin-top: 20px;
}

.content-page .section ul,
.content-page .section ol,
.content-page .icon-grid {
  gap: 10px;
}

.content-page .context-links,
.content-page .section .button {
  margin-top: 16px;
}

/* Keep primary subpage calls to action clearly visible in both themes. */
main .section .button:not(.button-secondary) {
  border-color: #f48312;
  background: #f48312;
  color: #171717;
}

main .section .button:not(.button-secondary):hover,
main .section .button:not(.button-secondary):focus-visible {
  border-color: #d96d00;
  background: #d96d00;
  color: #ffffff;
}

body[data-theme="dark"] main .section .button:not(.button-secondary) {
  border-color: #f48312;
  background: #f48312;
  color: #ffffff;
}

body[data-theme="dark"] main .section .button:not(.button-secondary):hover,
body[data-theme="dark"] main .section .button:not(.button-secondary):focus-visible {
  border-color: #ff9b3d;
  background: #d96d00;
  color: #ffffff;
}

@media (max-width: 720px) {
  .content-page {
    padding-bottom: 40px;
  }

  .cookie-page > .section {
    width: calc(100% - 36px);
  }

  .content-page .page-intro {
    padding-block: 22px 18px;
  }

  .content-page .page-intro .container {
    min-height: 220px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .content-page > .section,
  .content-page > article > .section {
    gap: 14px;
    padding-block: 34px;
  }

  .content-page:not(.knowledge-page) > .section > h2 + * {
    padding-top: 0;
  }
}

/* Crew-Hero: klare Trennung zwischen Text- und Bildspalte. */
@media (min-width: 981px) {
  .crew-page .page-intro .container {
    padding-right: 48%;
  }

  .crew-page .page-intro .container > .page-context-nav,
  .crew-page .page-intro .container > .eyebrow,
  .crew-page .page-intro .container > h1,
  .crew-page .page-intro .container > p {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .crew-page .page-intro .container > h1 {
    max-width: 620px;
  }

  .crew-page .page-intro .container > p:not(.eyebrow) {
    max-width: 590px;
  }

  .crew-page .page-intro .page-context-link {
    white-space: nowrap;
  }

  .crew-page .page-intro .container::after {
    width: 42%;
  }

  .crew-page .page-intro .container::before {
    inset: 0 38% 0 auto;
    width: 10%;
  }
}

@media (min-width: 801px) and (max-width: 980px) {
  .crew-page .page-intro .container {
    min-height: auto;
    padding-right: clamp(24px, 6vw, 46px);
    padding-bottom: clamp(300px, 46vw, 400px);
  }

  .crew-page .page-intro .container::after {
    inset: auto 0 0;
    width: 100%;
    height: clamp(270px, 40vw, 350px);
    background-position: center 38%;
  }

  .crew-page .page-intro .container::before {
    inset: auto 0 calc(clamp(270px, 40vw, 350px) - 36px);
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg, var(--panel), transparent);
  }
}

/* Vertikaler Arbeitsablauf auf der Beratungsseite. */
.content-page .subpage-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 0;
}

.content-page .subpage-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), #f48312, var(--line));
}

.content-page .subpage-timeline > li {
  min-height: 82px;
  padding: 18px 18px 18px 72px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.content-page .subpage-timeline > li:last-child {
  border-bottom: 0;
}

.content-page .subpage-timeline > li::before {
  z-index: 1;
  top: 19px;
  left: 5px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid var(--soft);
  border-radius: 50%;
  background: #f48312;
  color: #fff;
  font-size: .72rem;
  box-shadow: 0 7px 18px rgba(244, 131, 18, .2);
}

.content-page .subpage-timeline strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

/* Höhere Spezifität verhindert, dass allgemeine Listenabstände die Timeline überlagern. */
.content-page .section .subpage-timeline > li {
  padding: 18px 18px 18px 84px;
  background: transparent;
}

.content-page .section .subpage-timeline > li::before {
  top: 19px;
  left: 5px;
  color: #fff;
}

body[data-theme="dark"] .content-page .section .subpage-timeline > li {
  background: transparent;
}

@media (max-width: 720px) {
  .content-page .section .subpage-timeline > li {
    min-height: 92px;
    padding: 20px 12px 20px 82px;
  }

  .content-page .section .subpage-timeline > li::before {
    top: 21px;
  }
}

/* Horizontale, wischbare Inhaltsleisten. */
.content-page .subpage-swipe {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, #f48312 46%, var(--line)) transparent;
}

.content-page .subpage-gesture-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.3;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.content-page .subpage-gesture-hint span {
  color: #f48312;
  font-size: .95rem;
}

/* Crew-Hero als zwei eigenständige Karten statt Text und Bild in einem Rahmen. */
.crew-page .page-intro .crew-hero-shell {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.crew-page .page-intro .crew-hero-shell::before,
.crew-page .page-intro .crew-hero-shell::after {
  display: none;
}

.crew-hero-copy,
.crew-hero-media {
  min-width: 0;
  min-height: 440px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--text) 8%, transparent);
}

.crew-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 62px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.crew-hero-copy > h1,
.crew-hero-copy > p,
.crew-hero-copy > .page-context-nav {
  width: 100%;
  min-width: 0;
  max-width: 620px;
  overflow-wrap: normal;
  word-break: normal;
}

.crew-hero-copy > .page-context-nav {
  align-self: stretch;
}

.crew-hero-copy .crew-back-button {
  width: fit-content;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  transition: border-color .2s ease, background-color .2s ease, translate .2s ease;
}

.crew-hero-copy .crew-back-button:hover,
.crew-hero-copy .crew-back-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  translate: -2px 0;
}

.crew-hero-media {
  margin: 0;
}

.crew-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Das KI-generierte Porträt bleibt bewusst eine kleine Begleitvisualisierung. */
@media (min-width: 981px) {
  .crew-page .page-intro .crew-hero-shell {
    min-height: 340px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: center;
  }

  .crew-hero-copy {
    min-height: 340px;
  }

  .crew-hero-media {
    min-height: 0;
    height: 270px;
  }
}

/* FAQ nutzt die volle Leserasterbreite statt der versetzten Textspalte. */
.faq-page > .section {
  display: block;
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.faq-page > .section > .faq-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Beim Schließen verschwindet die Antwort sofort, während nur die Höhe einklappt. */
.faq-page .faq-container details.is-closing > :not(summary) {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (max-width: 640px) {
  .faq-page > .section {
    width: min(100% - 24px, 1320px);
  }
}

@media (max-width: 980px) {
  .crew-page .page-intro .crew-hero-shell {
    grid-template-columns: 1fr;
  }

  .crew-hero-copy {
    min-height: auto;
  }

  .crew-hero-media {
    width: min(100%, 430px);
    min-height: 0;
    height: clamp(220px, 44vw, 300px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .crew-page .page-intro .crew-hero-shell {
    width: min(100% - 24px, var(--content-width));
    gap: 12px;
  }

  .crew-hero-copy,
  .crew-hero-media {
    border-radius: 22px;
  }

  .crew-hero-copy {
    padding: 28px 22px;
  }

  .crew-hero-media {
    width: min(100%, 330px);
    height: 210px;
  }
}

.content-page .subpage-gesture-mobile {
  display: none;
}

.content-page .feature-swipe {
  cursor: grab;
}

.content-page .subpage-swipe.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.content-page .feature-swipe {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
}

.content-page .feature-swipe > li {
  flex: 0 0 clamp(210px, 31%, 280px);
  min-height: 126px;
  display: flex;
  align-items: flex-end;
  padding: 48px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--panel), var(--surface-soft));
  color: var(--text);
  font-weight: 700;
  scroll-snap-align: start;
}

.content-page .feature-swipe > li::before {
  top: 20px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-color: #f48312;
}

/* Wissensartikel als klare Karten; mobil mit Wischgeste. */
.knowledge-page > .section .knowledge-swipe {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.knowledge-page > .section .knowledge-swipe article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}

.knowledge-page > .section .knowledge-swipe h3,
.knowledge-page > .section .knowledge-swipe h3 + p {
  grid-column: auto;
  border: 0;
  border-radius: 0;
}

.knowledge-page > .section .knowledge-swipe h3 {
  margin: 0;
}

@media (max-width: 980px) {
  .knowledge-page > .section .knowledge-swipe {
    grid-column: 1;
  }
}

@media (max-width: 800px) {
  .content-page .subpage-gesture-mobile {
    display: flex;
  }

  .content-page .topic-swipe,
  .knowledge-page > .section .knowledge-swipe {
    cursor: grab;
  }

  .content-page .topic-swipe,
  .knowledge-page > .section .knowledge-swipe {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
  }

  .content-page .topic-swipe > .icon-card {
    flex: 0 0 min(230px, 72vw);
    scroll-snap-align: center;
  }

  .knowledge-page > .section .knowledge-swipe article {
    flex: 0 0 min(310px, 84vw);
    scroll-snap-align: center;
  }
}

/* Digital-Hub-Hero mobil: Text oben, Bild mit eigenem Platz darunter. */
@media (max-width: 720px) {
  .hub-page .page-intro .container,
  body[data-theme="dark"] .hub-page .page-intro .container {
    min-height: 0;
    padding: 26px 22px clamp(220px, 61vw, 290px);
    background-position: left top, center bottom;
    background-size: 100% 58%, calc(100% - 20px) auto;
    background-repeat: no-repeat;
  }

  .hub-page .page-intro .container > .page-context-nav,
  .hub-page .page-intro .container > h1,
  .hub-page .page-intro .container > p {
    position: relative;
    z-index: 1;
    max-width: 100%;
  }
}
