/* =========================
   PAGE: WISSEN
   Curated technical knowledge platform
   Final tuned version
========================= */

.tm-wissen-page {
  --wissen-blue: #2563eb;
  --wissen-blue-dark: #1d4ed8;
  --wissen-navy: #0f172a;
  --wissen-muted: #64748b;
  --wissen-line: #e2e8f0;
  --wissen-soft: #f8fafc;
  --wissen-card: #ffffff;
  --wissen-shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.07);

  background:
    radial-gradient(circle at 0% 8%, rgba(37, 99, 235, 0.07), transparent 24rem),
    radial-gradient(circle at 100% 22%, rgba(14, 165, 233, 0.06), transparent 28rem),
    #ffffff;
  color: var(--wissen-navy);
}

.tm-wissen-page,
.tm-wissen-page * {
  box-sizing: border-box;
}

.tm-wissen-page,
.tm-wissen-shell,
.tm-wissen-shell-grid,
.tm-wissen-main,
.tm-page-inner-wide {
  overflow: visible;
}

.tm-wissen-shell {
  padding: clamp(12px, 1.7vw, 24px) 0 clamp(52px, 6vw, 78px);
}

.tm-wissen-shell-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 286px) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}

/* =========================
   SIDEBAR
========================= */

.tm-wissen-sidebar {
  grid-column: 1;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 72px;
  height: fit-content;
  z-index: 20;
}

.tm-wissen-sidebar-inner {
  display: grid;
  gap: 16px;
}

.tm-wissen-sidebar-head {
  padding: 0 4px 0;
}

.tm-wissen-sidebar-head .tm-eyebrow {
  color: var(--wissen-blue);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  margin: 0 0 7px;
}

.tm-wissen-sidebar-head h1 {
  margin: 0 0 12px;
  color: var(--wissen-navy);
  font-size: clamp(2.45rem, 3.7vw, 4.1rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.tm-wissen-sidebar-head p:not(.tm-eyebrow) {
  max-width: 23rem;
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
}

.tm-wissen-sidebar-search {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  width: 100%;
}

.tm-wissen-sidebar-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 15px;
  padding: 0 15px;
  color: var(--wissen-navy);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  outline: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tm-wissen-sidebar-search input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.1),
    0 10px 26px rgba(15, 23, 42, 0.05);
}

.tm-wissen-sidebar-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--wissen-blue), var(--wissen-blue-dark));
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.tm-wissen-sidebar-search svg {
  width: 18px;
  height: 18px;
}

.tm-wissen-side-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 21px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.052);
  backdrop-filter: blur(18px);
}

.tm-wissen-side-card > p,
.tm-wissen-check-card > p {
  margin: 0 0 10px;
  color: var(--wissen-blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tm-wissen-side-nav {
  display: grid;
  gap: 3px;
}

.tm-wissen-side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  min-height: 39px;
  padding: 8px 9px;
  border-radius: 13px;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 740;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tm-wissen-side-nav a:hover,
.tm-wissen-side-nav a.is-active {
  color: var(--wissen-blue-dark);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(37, 99, 235, 0.045));
}

.tm-wissen-side-nav a:hover {
  transform: translateX(2px);
}

.tm-wissen-side-nav span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tm-wissen-side-nav svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.tm-wissen-side-nav strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #64748b;
  background: rgba(241, 245, 249, 0.94);
  font-size: 0.74rem;
  font-weight: 800;
}

.tm-wissen-popular {
  display: grid;
  gap: 7px;
}

.tm-wissen-popular a {
  display: block;
  padding: 3px 0;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.34;
  text-decoration: none;
}

.tm-wissen-popular a:hover {
  color: var(--wissen-blue);
}

.tm-wissen-check-card {
  border-radius: 21px;
  padding: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.48), transparent 42%),
    linear-gradient(145deg, #071426, #0d2a63 64%, #1d4ed8);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

.tm-wissen-check-card > p {
  color: #93c5fd;
}

.tm-wissen-check-card h2 {
  max-width: 16rem;
  margin: 0 0 9px;
  color: #ffffff;
  font-size: 1.04rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.tm-wissen-check-card span {
  display: block;
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.88rem;
  line-height: 1.52;
}

.tm-wissen-check-card .tm-btn {
  width: 100%;
  justify-content: center;
  min-height: 42px;
}

/* =========================
   MAIN CONTENT
========================= */

.tm-wissen-main {
  grid-column: 2;
  min-width: 0;
  display: grid;
  gap: 30px;
  padding-top: 0;
}

.tm-wissen-topic-list {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

.tm-wissen-topic {
  --topic-color: var(--wissen-blue);
  --topic-soft: rgba(37, 99, 235, 0.1);

  position: relative;
  padding: 0 0 clamp(16px, 1.8vw, 22px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  scroll-margin-top: 92px;
}

.tm-wissen-topic:last-child {
  border-bottom: 0;
}

/* Topic color system */

.tm-wissen-tone-maintenance,
.tm-wissen-tone-maintenance .tm-wissen-article-meta span:first-child,
.tm-wissen-tone-maintenance.tm-wissen-pill,
.tm-wissen-topic.tm-wissen-tone-maintenance,
.tm-wissen-topic.tm-wissen-tone-maintenance .tm-wissen-topic-link {
  --topic-color: #16a34a;
  --topic-soft: rgba(22, 163, 74, 0.12);
}

.tm-wissen-tone-security,
.tm-wissen-tone-security .tm-wissen-article-meta span:first-child,
.tm-wissen-tone-security.tm-wissen-pill,
.tm-wissen-topic.tm-wissen-tone-security,
.tm-wissen-topic.tm-wissen-tone-security .tm-wissen-topic-link {
  --topic-color: #ef4444;
  --topic-soft: rgba(239, 68, 68, 0.12);
}

.tm-wissen-tone-performance,
.tm-wissen-tone-performance .tm-wissen-article-meta span:first-child,
.tm-wissen-tone-performance.tm-wissen-pill,
.tm-wissen-topic.tm-wissen-tone-performance,
.tm-wissen-topic.tm-wissen-tone-performance .tm-wissen-topic-link {
  --topic-color: #2563eb;
  --topic-soft: rgba(37, 99, 235, 0.12);
}

.tm-wissen-tone-backup,
.tm-wissen-tone-backup .tm-wissen-article-meta span:first-child,
.tm-wissen-tone-backup.tm-wissen-pill,
.tm-wissen-topic.tm-wissen-tone-backup,
.tm-wissen-topic.tm-wissen-tone-backup .tm-wissen-topic-link {
  --topic-color: #7c3aed;
  --topic-soft: rgba(124, 58, 237, 0.12);
}

.tm-wissen-tone-plugins,
.tm-wissen-tone-plugins .tm-wissen-article-meta span:first-child,
.tm-wissen-tone-plugins.tm-wissen-pill,
.tm-wissen-topic.tm-wissen-tone-plugins,
.tm-wissen-topic.tm-wissen-tone-plugins .tm-wissen-topic-link {
  --topic-color: #f97316;
  --topic-soft: rgba(249, 115, 22, 0.12);
}

.tm-wissen-tone-infra,
.tm-wissen-tone-infra .tm-wissen-article-meta span:first-child,
.tm-wissen-tone-infra.tm-wissen-pill,
.tm-wissen-topic.tm-wissen-tone-infra,
.tm-wissen-topic.tm-wissen-tone-infra .tm-wissen-topic-link {
  --topic-color: #4f46e5;
  --topic-soft: rgba(79, 70, 229, 0.12);
}

/* Topic header */

.tm-wissen-topic-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 2.6vw, 34px);
  align-items: center;
  margin-bottom: clamp(14px, 1.8vw, 18px);
}

.tm-wissen-topic-title {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.5vw, 17px);
  min-width: 0;
}

.tm-wissen-topic-title p,
.tm-wissen-topic-description {
  display: none;
}

.tm-wissen-topic-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  color: var(--topic-color);
  background: var(--topic-soft);
}

.tm-wissen-topic-icon svg {
  width: 24px;
  height: 24px;
}

.tm-wissen-topic-title h2,
.tm-wissen-topic-title > h2 {
  margin: 0;
  color: var(--wissen-navy);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.tm-wissen-topic-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  border: 0;
  color: var(--topic-color);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.tm-wissen-topic-link svg {
  display: none;
}

.tm-wissen-topic-link span[aria-hidden="true"] {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.18s ease;
}

.tm-wissen-topic-link:hover span[aria-hidden="true"] {
  transform: translate(3px, -1px);
}

/* Article cards */

.tm-wissen-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.1vw, 28px);
}

.tm-wissen-article-card {
  --topic-color: var(--wissen-blue);

  position: relative;
  min-width: 0;
  border-radius: 18px;
  background: transparent;
}

.tm-wissen-article-image {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.tm-wissen-article-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.55;
  height: auto;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.tm-wissen-article-card:hover .tm-wissen-article-image img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.tm-wissen-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 8.55;
  color: var(--topic-color);
  background: var(--topic-soft);
}

.tm-wissen-image-fallback svg {
  width: 34px;
  height: 34px;
}

.tm-wissen-article-body {
  padding: 13px 2px 0;
}

.tm-wissen-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-wissen-article-meta span:first-child {
  color: var(--topic-color);
}

.tm-wissen-article-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: #cbd5e1;
}

.tm-wissen-article-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 1.14vw, 1.16rem);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.tm-wissen-article-card h3 a {
  color: #020617;
  text-decoration: none;
}

.tm-wissen-article-card h3 a:hover {
  color: var(--topic-color);
}

/* Topic pills */

.tm-wissen-topic-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: -16px;
}

.tm-wissen-pill {
  --topic-color: var(--wissen-blue);
  --topic-soft: rgba(37, 99, 235, 0.1);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  text-decoration: none;
}

.tm-wissen-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--topic-color);
  font-size: 0.81rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-wissen-pill svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.tm-wissen-pill strong {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

/* =========================
   TAX / SEARCH ARCHIVE VIEW
========================= */

.tm-wissen-archive-view {
  display: grid;
  gap: 26px;
}

.tm-wissen-archive-head {
  max-width: 46rem;
}

.tm-wissen-archive-head .tm-eyebrow {
  color: var(--wissen-blue);
  margin: 0 0 8px;
}

.tm-wissen-archive-head h2 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.tm-wissen-archive-head p {
  max-width: 38rem;
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.tm-wissen-archive-head a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--wissen-blue);
  font-weight: 800;
  text-decoration: none;
}

.tm-wissen-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.tm-wissen-empty {
  max-width: 38rem;
  padding: 32px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--wissen-shadow-soft);
}

.tm-wissen-empty h3 {
  margin: 0 0 10px;
}

.tm-wissen-empty p {
  margin: 0 0 20px;
  color: #64748b;
}

/* =========================
   FINAL CTA
========================= */

.tm-wissen-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: -8px;
  padding: clamp(26px, 3.6vw, 40px);
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 18%, rgba(37, 99, 235, 0.62), transparent 34%),
    linear-gradient(145deg, #071426, #0d2a63 68%, #1d4ed8);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.tm-wissen-final-cta p {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-wissen-final-cta h2 {
  max-width: 34rem;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.tm-wissen-final-cta span {
  display: block;
  max-width: 40rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.65;
}

.tm-wissen-final-cta .tm-btn {
  white-space: nowrap;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

/* =========================
   JS BOUNDED SIDEBAR SUPPORT
   The archive template controls fixed/absolute states.
========================= */

@media (min-width: 981px) {
  .tm-wissen-sidebar[style*="position: fixed"],
  .tm-wissen-sidebar[style*="position: absolute"] {
    max-width: 286px;
  }
}

/* =========================
   PAGINATION
========================= */

.tm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tm-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  color: #1e293b;
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.tm-pagination .page-numbers.current,
.tm-pagination a.page-numbers:hover {
  color: #ffffff;
  background: var(--wissen-blue);
  border-color: var(--wissen-blue);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
  .tm-wissen-shell-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
  }

  .tm-wissen-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tm-wissen-topic-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .tm-wissen-shell {
    padding-top: 28px;
  }

  .tm-wissen-shell-grid {
    grid-template-columns: 1fr;
  }

  .tm-wissen-sidebar {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
  }

  .tm-wissen-sidebar-inner {
    display: grid;
    gap: 18px;
  }

  .tm-wissen-sidebar-head h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .tm-wissen-side-nav {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, max-content);
    padding-bottom: 2px;
  }

  .tm-wissen-side-nav a {
    min-width: 190px;
  }

  .tm-wissen-popular,
  .tm-wissen-check-card {
    display: none;
  }

  .tm-wissen-main {
    grid-column: auto;
    padding-top: 0;
  }

  .tm-wissen-topic-grid,
  .tm-wissen-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-wissen-topic-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tm-wissen-topic-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .tm-wissen-topic-title > h2,
  .tm-wissen-topic-title h2 {
    white-space: normal;
  }

  .tm-wissen-topic-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .tm-wissen-shell {
    padding: 20px 0 64px;
  }

  .tm-wissen-shell-grid {
    gap: 30px;
  }

  .tm-wissen-sidebar-head p:not(.tm-eyebrow) {
    font-size: 0.95rem;
  }

  .tm-wissen-topic-list {
    gap: 42px;
  }

  .tm-wissen-topic {
    padding-bottom: 38px;
  }

  .tm-wissen-topic-title {
    gap: 13px;
  }

  .tm-wissen-topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .tm-wissen-topic-title h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .tm-wissen-topic-grid,
  .tm-wissen-archive-grid,
  .tm-wissen-topic-pills {
    grid-template-columns: 1fr;
  }

  .tm-wissen-article-image img,
  .tm-wissen-image-fallback {
    aspect-ratio: 16 / 8.7;
  }

  .tm-wissen-final-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tm-wissen-final-cta .tm-btn {
    width: 100%;
    justify-content: center;
  }
}



/** ABSTAND NACH OBEN **/

/* =========================
   WISSEN PAGE SECTION RESET
   Overrides global .toabai-page section spacing
========================= */

.tm-wissen-page section.tm-wissen-shell {
  padding-top: clamp(12px, 1.7vw, 24px);
  padding-bottom: clamp(52px, 6vw, 78px);
}

.tm-wissen-page section.tm-wissen-topic {
  padding-top: 0;
  padding-bottom: clamp(18px, 2vw, 28px);
}

.tm-wissen-page section.tm-wissen-archive-view {
  padding: 0;
}

.tm-wissen-page section.tm-wissen-final-cta {
  padding: clamp(26px, 3.6vw, 40px);
}
/* =========================
   LAUNCH FIX: Wissen hub sidebar
   Keep the knowledge sidebar readable and sticky on desktop.
========================= */
@media (min-width: 981px) {
  .tm-wissen-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .tm-wissen-sidebar[style*="position: fixed"],
  .tm-wissen-sidebar[style*="position: absolute"] {
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }

  .tm-wissen-sidebar-head h1 {
    font-size: clamp(2.15rem, 3vw, 3.35rem);
    line-height: 0.94;
  }

  .tm-wissen-archive-head h2 {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .tm-wissen-sidebar {
    max-height: none;
    overflow: visible;
  }
}


/* =========================
   LAUNCH MOBILE VIEWPORT ALIGNMENT: WISSEN ARCHIVE
========================= */

@media (max-width: 980px) {
  .tm-wissen-shell {
    padding-top: 56px;
  }

  .tm-wissen-page section.tm-wissen-shell {
    padding-top: 56px;
  }

  .tm-wissen-shell-grid {
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .tm-wissen-shell,
  .tm-wissen-page section.tm-wissen-shell {
    padding-top: 50px;
    padding-bottom: 64px;
  }

  .tm-wissen-sidebar-head h1 {
    margin-bottom: 10px;
  }
}


/* =========================
   LAUNCH FIX: Wissen mobile category chips
   Keep the Wissensbereiche navigation readable on small screens.
========================= */
@media (max-width: 767px) {
  .tm-wissen-side-card {
    padding: 14px;
    overflow: visible;
  }

  .tm-wissen-side-nav {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .tm-wissen-side-nav a {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 11px;
  }

  .tm-wissen-side-nav span {
    min-width: 0;
  }

  .tm-wissen-side-nav span span,
  .tm-wissen-side-nav span strong {
    min-width: 0;
  }

  .tm-wissen-side-nav a > span {
    flex: 1 1 auto;
  }

  .tm-wissen-side-nav a > strong {
    flex: 0 0 auto;
  }
}
