/* HDC Wissen: the lean page around the knowledge pages. The content itself brings its own look
   (class hdc-lex, inline in every post); this file only replaces what Elementor used to provide:
   base typography, header, footer, cover, table of contents, related pages, topic lists. */

:root {
  --w-ink: #2A1650;
  --w-text: #3D3D3D;
  --w-violet: #7F56D9;
  --w-violet-dark: #6A40CF;
  --w-crumb: #57308A;
  --w-line: #E3D8F7;
  --w-soft-bg: #F4F5F7;
  --w-dark: #131416;
  --w-head: "Plus Jakarta Sans (local)", system-ui, sans-serif;
  --w-body: "Manrope (local)", system-ui, sans-serif;
  --w-wide: 1140px;
  --w-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.hdc-w { margin: 0; background: #FFFFFF; color: var(--w-text); font-family: var(--w-body); font-size: 16px; line-height: 1.4; }
.hdc-w img { max-width: 100%; height: auto; }
.hdc-w a { color: var(--w-violet); text-decoration: none; }
.hdc-w h1, .hdc-w h2, .hdc-w h3, .hdc-w h4 { font-family: var(--w-head); font-weight: 800; color: var(--w-ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.hdc-w h2 { font-size: 24px; }
.hdc-w h3 { font-size: 20px; }
.hdc-w p { margin: 0 0 14.4px; }
.hdc-w :focus-visible { outline: 3px solid var(--w-violet); outline-offset: 3px; border-radius: 4px; }

.hdc-w-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: #FFFFFF; }
.hdc-w-skip:focus { left: 16px; top: 16px; }

/* Buttons: as in the old header, round and violet; pressing gives way a little. */
.hdc-w-button { display: inline-block; padding: 12px 48px; border-radius: 100px; background: var(--w-violet); color: #FFFFFF !important; font-family: var(--w-head); font-size: 14.4px; font-weight: 700; line-height: 1.2; white-space: nowrap; transition: transform 160ms var(--w-ease), background-color 160ms ease; }
.hdc-w-button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hdc-w-button:hover { background: var(--w-violet-dark); } }

/* Header */
.hdc-w-bar { display: block; margin: 0; padding: 10px 16px; background: linear-gradient(90deg, #1D2C63 0%, #D70378 100%); color: #FFFFFF !important; font-size: 14px; line-height: 1.5; text-align: center; }
.hdc-w-bar b, .hdc-w-bar strong { font-family: var(--w-head); font-weight: 800; }
.hdc-w-nav { display: flex; align-items: center; gap: 24px; max-width: var(--w-wide); height: 100px; margin: 0 auto; padding: 0 20px; }
.hdc-w-logo { display: flex; align-items: center; flex: none; color: var(--w-ink); }
.hdc-w-logo-img { display: block; width: 104px; height: auto; }
.hdc-w-logo-mobile { display: none; width: 40px; height: auto; }
.hdc-w-menu { flex: 1; display: flex; justify-content: center; }
.hdc-w-menu ul, .hdc-w-burger ul { list-style: none; margin: 0; padding: 0; }
.hdc-w-menu ul { display: flex; gap: 6px; }
.hdc-w-menu a { display: block; padding: 10px 10px; color: var(--w-text); font-family: var(--w-head); font-size: 14.4px; font-weight: 700; }
.hdc-w-menu .current-menu-item > a { color: var(--w-violet); }
@media (hover: hover) and (pointer: fine) { .hdc-w-menu a:hover { color: var(--w-violet); } }
.hdc-w-cta-mobile, .hdc-w-burger { display: none; }
.hdc-w-burger summary { list-style: none; display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; cursor: pointer; }
.hdc-w-burger summary::-webkit-details-marker { display: none; }
.hdc-w-burger summary span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--w-text); }
.hdc-w-burger nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; padding: 8px 20px 20px; background: #FFFFFF; box-shadow: 0 12px 24px rgba(42, 22, 80, 0.08); }
.hdc-w-burger nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--w-line); color: var(--w-text); font-family: var(--w-head); font-size: 16px; font-weight: 700; }

/* Page */
.hdc-w-main { max-width: var(--w-wide); margin: 0 auto; padding: 20px 20px 0; }
.hdc-w-crumbs { margin: 0 0 18px; color: var(--w-crumb); font-size: 16px; font-weight: 600; }
.hdc-w-crumbs a { color: var(--w-crumb); }
.hdc-w-crumbs .separator { margin: 0 4px; }
.hdc-w-title { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.hdc-w-cover { margin: 0 0 40px; }
.hdc-w-cover img { display: block; width: 100%; height: 400px; object-fit: cover; object-position: 50% 0%; border-radius: 16px; }
/* The old talent and gate templates showed a taller cover: 500 px on desktop, 350 px on tablet,
   natural 16:9 on phones (the phone rule further down applies). */
@media (min-width: 1025px) {
  .single-talente-kanaele .hdc-w-cover img,
  .single-coisar-tore .hdc-w-cover img { height: 500px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .single-talente-kanaele .hdc-w-cover img,
  .single-coisar-tore .hdc-w-cover img { height: 350px; }
}
.hdc-w-excerpt { max-width: 68ch; margin: 0 0 32px; font-size: 18px; line-height: 1.7; }

.hdc-w-toc { max-width: 560px; margin: 0 0 48px; padding: 0 24px; border-radius: 16px; background: var(--w-soft-bg); }
.hdc-w-toc summary { position: relative; padding: 20px 28px 20px 0; cursor: pointer; list-style: none; font-family: var(--w-head); font-size: 18px; font-weight: 700; color: var(--w-text); }
.hdc-w-toc summary::-webkit-details-marker { display: none; }
.hdc-w-toc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; }
.hdc-w-toc[open] summary::after { content: "−"; }
.hdc-w-toc ul { list-style: none; margin: 0; padding: 0 0 20px; }
.hdc-w-toc li { position: relative; margin: 0 0 8px; padding-left: 14px; font-size: 15px; line-height: 1.4; }
.hdc-w-toc li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--w-violet); }
.hdc-w-toc .hdc-w-toc-3 { margin-left: 16px; }
.hdc-w-toc a { color: var(--w-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .hdc-w-toc a:hover { color: var(--w-violet); } }

.hdc-w-content { margin: 0 0 88px; }
.hdc-w-content h2, .hdc-w-content h3 { scroll-margin-top: 24px; }

/* Related pages */
.hdc-w-related { margin: 0 0 72px; }
.hdc-w-related h2 { font-size: 32px; margin-bottom: 24px; }
.hdc-w-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.hdc-w-related-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: start; color: var(--w-text) !important; }
.hdc-w-related-item img { display: block; width: 160px; height: 100px; object-fit: cover; object-position: 0% 0%; border-radius: 10px; }
.hdc-w-related-text strong { display: block; margin: 0 0 6px; font-family: var(--w-head); font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--w-ink); }
.hdc-w-related-text span { display: block; font-size: 14px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .hdc-w-related-item:hover strong { color: var(--w-violet); } }

/* Newsletter */
.hdc-w-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 80px; padding: 36px 40px; border-radius: 16px; background: linear-gradient(135deg, #F1EFEC 0%, #FAF8F6 100%); }
.hdc-w-newsletter-lead { max-width: 52ch; margin: 0 0 8px; font-family: var(--w-head); font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--w-text); }
.hdc-w-newsletter-title { margin: 0; font-family: var(--w-head); font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--w-text); }

/* Podcast: head with title, platform buttons and square cover, as in the old podcast template. */
.hdc-w-pod-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; margin: 0 0 48px; padding: 48px; border-radius: 24px; background: radial-gradient(at 0% 0%, #E8E4E1 0%, #F1EEEC 100%); }
.hdc-w-pod-hero .hdc-w-title { margin: 0 0 28px; font-size: 44px; }
.hdc-w-pod-platforms { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hdc-w-pod-platforms a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--w-violet); color: #FFFFFF !important; transition: transform 160ms var(--w-ease), background-color 160ms ease; }
.hdc-w-pod-platforms a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .hdc-w-pod-platforms a:hover { background: var(--w-violet-dark); } }
.hdc-w-pod-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
/* Podcast: the two notes under the episode. */
.hdc-w-pod-notes { display: grid; gap: 24px; margin: 0 0 72px; }
.hdc-w-pod-note { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 32px 40px; border-radius: 16px; background: linear-gradient(135deg, #F1EFEC 0%, #FAF8F6 100%); }
.hdc-w-pod-note-text { max-width: 640px; }
.hdc-w-pod-note h2 { font-size: 26px; margin: 0 0 10px; }
.hdc-w-pod-note p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.hdc-w-pod-note img.hdc-w-pod-note-img { display: block; flex: none; width: 220px; height: auto; border-radius: 12px; }
/* Podcast: the other episodes with their square covers. */
.hdc-w-related--pod .hdc-w-related-item { grid-template-columns: 120px minmax(0, 1fr); }
.hdc-w-related--pod .hdc-w-related-item img { width: 120px; height: 120px; object-position: 50% 50%; }

/* Topic lists */
.hdc-w-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin: 0 0 80px; }
.hdc-w-topic-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #E6E6E6; font-family: var(--w-head); font-size: 16px; font-weight: 700; color: var(--w-text); }
.hdc-w-topic ul { list-style: none; margin: 0; padding: 0; }
.hdc-w-topic li { margin: 0 0 4px; font-size: 13px; line-height: 1.45; }
.hdc-w-topic li::before { content: "• "; color: var(--w-text); }
.hdc-w-topic a { color: var(--w-text); }
@media (hover: hover) and (pointer: fine) { .hdc-w-topic a:hover { color: var(--w-violet); } }

/* Footer */
.hdc-w-footer { position: relative; background: var(--w-dark); color: #D9D9D9; font-size: 14px; }
.hdc-w-footer a { color: #D9D9D9; }
@media (hover: hover) and (pointer: fine) { .hdc-w-footer a:hover { color: #FFFFFF; } }
.hdc-w-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; max-width: var(--w-wide); margin: 0 auto; padding: 64px 20px 40px; }
.hdc-w-footer-brand img { display: block; width: 140px; height: auto; margin: 0 0 18px; }
.hdc-w-rating { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.hdc-w-stars { display: flex; gap: 2px; margin: 0 0 2px; color: #F5A623; }
.hdc-w-stars svg { width: 15px; height: 15px; }
.hdc-w-trust { margin: 0 0 14px; min-height: 100px; }
.hdc-w-social { display: flex; gap: 10px; list-style: none; margin: 0 0 18px; padding: 0; }
.hdc-w-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #2A2C30; }
.hdc-w-social svg { width: 16px; height: 16px; }
.hdc-w-disclaimer { font-size: 13px; }
.hdc-w-footer-title { margin: 0 0 16px; font-family: var(--w-head); font-size: 18px; font-weight: 700; color: #FFFFFF; }
.hdc-w-footer-col ul { list-style: none; margin: 0; padding: 0; }
.hdc-w-footer-col li { margin: 0 0 10px; line-height: 1.4; }
.hdc-w-contact li { display: flex; gap: 10px; align-items: flex-start; }
.hdc-w-contact svg { flex: none; margin-top: 1px; }
.hdc-w-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: var(--w-wide); margin: 0 auto; padding: 20px 20px 32px; border-top: 1px solid #2A2C30; font-size: 13px; }
.hdc-w-footer-bottom p { margin: 0; }
.hdc-w-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.hdc-w-top { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--w-violet); color: #FFFFFF !important; box-shadow: 0 6px 18px rgba(42, 22, 80, 0.25); }

@media (max-width: 1024px) {
  .hdc-w-menu, .hdc-w-cta { display: none; }
  .hdc-w-cta-mobile, .hdc-w-burger { display: block; }
  .hdc-w-nav { position: relative; justify-content: space-between; height: 76px; }
  .hdc-w-logo:has(.hdc-w-logo-mobile) .hdc-w-logo-img { display: none; }
  .hdc-w-logo-mobile { display: block; }
  .hdc-w-cta-mobile { padding: 10px 20px; }
  .hdc-w-footer-grid { grid-template-columns: 1fr 1fr; }
  .hdc-w-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hdc-w-bar { font-size: 13px; }
  .hdc-w-main { padding: 16px 16px 0; }
  .hdc-w-crumbs { font-size: 14px; }
  .hdc-w-title { font-size: 26px; }
  .hdc-w-cover img { height: auto; aspect-ratio: 16 / 9; }
  .hdc-w-related h2 { font-size: 26px; }
  .hdc-w-related-grid { grid-template-columns: minmax(0, 1fr); }
  .hdc-w-related-item { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .hdc-w-related-item img { width: 112px; height: 70px; }
  .hdc-w-pod-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; border-radius: 16px; }
  .hdc-w-pod-hero .hdc-w-title { font-size: 26px; margin-bottom: 18px; }
  .hdc-w-pod-notes { gap: 20px; }
  .hdc-w-pod-note { flex-direction: column-reverse; align-items: flex-start; gap: 20px; padding: 24px 22px; }
  .hdc-w-pod-note img.hdc-w-pod-note-img { width: 160px; }
  .hdc-w-related--pod .hdc-w-related-item { grid-template-columns: 88px minmax(0, 1fr); }
  .hdc-w-related--pod .hdc-w-related-item img { width: 88px; height: 88px; }
  .hdc-w-newsletter { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .hdc-w-topics { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hdc-w-footer-grid { grid-template-columns: minmax(0, 1fr); padding: 48px 16px 32px; }
  .hdc-w-footer-bottom { padding: 20px 16px 72px; }
}
