/* page-wissen.css – Wissens-Hub /wissen/
   Design abgenommen 2026-07-06 (relaunch/entwuerfe/wissen-hub.html) */

:root {
  --tt-teal: #34d399;
  --tt-teal-deep: #2aa97a;
  --dim-a: #2aa97a;
  --dim-b: #3b82f6;
  --dim-c: #34d399;
  --dim-d: #64748b;
}

/* Globale .container-Zentrierung aufheben */
.whero .container, .topduo .container, .wpfad .container, .wcta .container {
  text-align: left;
}

.wi-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tt-teal-deep);
  margin-bottom: 0.75rem;
}
.wi-sub { color: var(--text-muted); max-width: 640px; }

/* Flipchart-Marker */
.tt-marker { position: relative; display: inline-block; white-space: nowrap; }
.tt-marker-stroke {
  position: absolute; left: -3%; bottom: -0.14em; width: 106%; height: 0.55em;
  color: var(--tt-teal); opacity: 0.85; pointer-events: none;
}
.tt-marker-stroke path {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: wiMarkerDraw 0.7s ease-out 0.5s forwards;
}
@keyframes wiMarkerDraw { to { stroke-dashoffset: 0; } }

/* ── Hero ── */
.whero {
  background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
  padding: calc(var(--header-height) + 4rem) 0 3rem;
}
.whero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 820px;
  color: var(--text-dark);
}
.whero .sub { font-size: 1.15rem; color: var(--text-muted); margin-top: 1.25rem; max-width: 640px; }

/* ── Top-Duo: Engpass + Standort-Check ── */
.topduo { background: #fff; padding: 3rem 0 4rem; }
.topduo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.top-box {
  display: flex; flex-direction: column; text-decoration: none;
  background: linear-gradient(150deg, #1e293b 0%, #2c3e52 60%, #1f3a33 100%);
  border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: 0 18px 50px rgba(26, 26, 46, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.top-box:hover { transform: translateY(-5px); box-shadow: 0 26px 64px rgba(26, 26, 46, 0.3); }
.top-box::before { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 6px; background: var(--tt-teal); border-radius: 0 0 6px 6px; z-index: 2; }
.top-box .visual { height: 210px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.top-box .visual img { width: 100%; height: 100%; object-fit: cover; }
.top-box .visual svg { width: 82%; height: auto; }
.top-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.top-body .wi-label { color: var(--tt-teal); margin-bottom: 0.5rem; }
.top-body .wi-label.blau { color: #60a5fa; }
.top-body h2 { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 0.5rem; }
.top-body p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin: 0; }
.top-body .btn-gold {
  margin-top: auto; align-self: flex-start; margin-top: 1.25rem;
  display: inline-block; background: var(--accent); color: var(--text-dark);
  font-weight: 800; font-size: 0.98rem; border-radius: 10px; padding: 0.85rem 1.5rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.top-box:hover .btn-gold { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35); }

/* ── Pfade ── */
.wpfad { background: var(--bg-light); padding: 4.5rem 0; }
.wpfad-weiss { background: #fff; }
.w-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.25rem; }
.w-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(26, 26, 46, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
  text-align: left;
}
.w-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(26, 26, 46, 0.12); }
.w-header { position: relative; min-height: 150px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.w-header::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.68), rgba(0,0,0,0.1)); }
.w-header .w-kicker { position: absolute; top: 0.85rem; left: 1.3rem; z-index: 1; color: #fff; margin: 0; }
.w-header .w-kicker::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--dim-color, var(--tt-teal)); margin-right: 0.5rem; vertical-align: -1px; }
.w-header h3 { position: relative; z-index: 1; color: #fff; font-size: 1.3rem; font-weight: 800; padding: 1rem 1.3rem; line-height: 1.25; margin: 0; }
.w-kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.w-body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.w-body > p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }
.w-links { margin-top: 1rem; display: grid; gap: 0.5rem; }
.w-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-decoration: none; color: var(--text-dark);
  background: var(--bg-light); border-radius: 10px; padding: 0.65rem 0.9rem;
  font-weight: 700; font-size: 0.92rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.w-link:hover { background: #eef6f2; transform: translateX(3px); }
.w-link .pfeil { color: var(--tt-teal-deep); }
.w-badge {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 99px; padding: 0.2rem 0.6rem; flex-shrink: 0;
}
.w-badge-live { background: #eefaf4; color: var(--tt-teal-deep); }
.w-badge-bald { background: #e8eaee; color: var(--text-muted); }
.w-badge-neu { background: var(--accent); color: var(--text-dark); }

/* ── CTA-Band ── */
.wcta { background: #fff; padding: 3rem 0 4.5rem; }
.wcta-box {
  display: flex; align-items: center; justify-content: center; gap: 1.75rem;
  background: linear-gradient(150deg, #1e293b 0%, #2c3e52 60%, #1f3a33 100%);
  border-radius: var(--radius); position: relative;
  padding: 2.2rem 2rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.85);
  text-align: left;
}
.wcta-box::before { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 6px; background: var(--tt-teal); border-radius: 0 0 6px 6px; }
.wcta-face { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--tt-teal); flex-shrink: 0; }
.wcta-box strong { font-weight: 800; color: #fff; }
.wcta-box a { color: var(--tt-teal); text-decoration: none; border-bottom: 2px solid var(--tt-teal); padding-bottom: 1px; font-weight: 800; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .whero h1 { font-size: 1.9rem; }
}
@media (max-width: 860px) {
  .topduo-grid { grid-template-columns: 1fr; }
  /* Dimensions-Karten + Produktleute-Kacheln: mobil horizontal wischbar */
  .w-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 0.75rem;
  }
  .w-grid::-webkit-scrollbar { display: none; }
  .w-grid > * { flex: 0 0 85%; scroll-snap-align: start; }
  .wcta-box { flex-direction: column; text-align: center; }
}

/* Hinweis unter den Dimensions-Karten */
.wi-hinweis { margin-top: 1.5rem; font-size: 0.92rem; color: var(--text-muted); }
.wi-hinweis a { color: var(--tt-teal-deep); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--tt-teal); padding-bottom: 1px; }

/* ── Nachschlagewerk-Karussell "Für Produktleute" (wnk) ── */
.wnk-track {
  display: flex; gap: 1.25rem; margin-top: 2.25rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 0.75rem;
}
.wnk-track::-webkit-scrollbar { display: none; }
.wnk-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.2rem; position: relative; overflow: hidden;
  text-decoration: none; color: var(--text-dark);
  display: flex; flex-direction: column;
  box-shadow: 0 6px 24px rgba(26, 26, 46, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wnk-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(26, 26, 46, 0.10); }
.wnk-card::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 5px;
  background: var(--tt-teal); border-radius: 0 0 5px 5px;
}
.wnk-kicker {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--tt-teal-deep); margin-bottom: 0.5rem;
}
.wnk-card h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; margin: 0 0 0.45rem; }
.wnk-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.wnk-link { margin-top: auto; padding-top: 0.9rem; font-weight: 700; color: var(--accent-blue); font-size: 0.9rem; }
.wnk-blogrow { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .wnk-card { flex-basis: 78%; }
}

/* ── Subnav (Muster von page-cspo.css, Seite laedt page-cspo nicht) ── */
.training-subnav {
  position: sticky;
  top: var(--nav-height);
  z-index: 800;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.training-subnav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.training-subnav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #34d399;
  transition: width 0.3s;
}
.training-subnav a:hover { color: #34d399; }
.training-subnav a:hover::after,
.training-subnav a.active::after { width: 70%; }
.training-subnav a.active { color: #34d399; }

/* Anker-Sprungziele: Platz fuer Nav + Subnav */
#allgemein, #organisationen, #produktmanager { scroll-margin-top: 120px; }

/* ── Nachschlagewerk-Kacheln im Blog-Look (Bild oben) ── */
.wnk-card { padding: 0; }
.wnk-img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-light);
}
.wnk-body {
  padding: 1.1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
