/**
 * OIT Knowledge Base â Content-Styles
 * Stellt Listenformatierung, Ãberschriften und AbstÃ¤nde fÃ¼r KB-Artikel wieder her.
 */

/* Geordnete Listen (Schritt-fÃ¼r-Schritt-Anleitungen) */
.type-knowledge .entry-content ol:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content ol:where(:not(#oit-home-host *),[slot],[slot] *){
    list-style: decimal !important;
    padding-left: 1.8em !important;
    margin: 0 0 1.2em 0 !important;
}

/* Ungeordnete Listen */
.type-knowledge .entry-content ul:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content ul:where(:not(#oit-home-host *),[slot],[slot] *){
    list-style: disc !important;
    padding-left: 1.8em !important;
    margin: 0 0 1.2em 0 !important;
}

/* Listenpunkte */
.type-knowledge .entry-content ol li:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content ol li:where(:not(#oit-home-host *),[slot],[slot] *),
.type-knowledge .entry-content ul li:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content ul li:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* wp-block-list (Gutenberg) */
.type-knowledge .entry-content .wp-block-list:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content .wp-block-list:where(:not(#oit-home-host *),[slot],[slot] *){
    padding-left: 1.8em !important;
}
.type-knowledge .entry-content ol.wp-block-list:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content ol.wp-block-list:where(:not(#oit-home-host *),[slot],[slot] *){
    list-style: decimal !important;
}
.type-knowledge .entry-content ul.wp-block-list:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content ul.wp-block-list:where(:not(#oit-home-host *),[slot],[slot] *){
    list-style: disc !important;
}

/* Ãberschriften */
.type-knowledge .entry-content h2:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content h2:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 1.4em;
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    line-height: 1.3;
}

.type-knowledge .entry-content h3:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content h3:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 1.15em;
    font-weight: 600;
    margin: 1.4em 0 0.5em;
    line-height: 1.3;
}

/* AbsÃ¤tze */
.type-knowledge .entry-content p:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content p:where(:not(#oit-home-host *),[slot],[slot] *){
    margin-bottom: 1em;
    line-height: 1.7;
}

/* Code / Pre */
.type-knowledge .entry-content code:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content code:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: monospace;
}

.type-knowledge .entry-content pre:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content pre:where(:not(#oit-home-host *),[slot],[slot] *){
    background: rgba(255,255,255,0.08);
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

/* Bilder */
.type-knowledge .entry-content img:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content img:where(:not(#oit-home-host *),[slot],[slot] *){
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5em 0 1em;
}

/* Figures/Captions */
.type-knowledge .entry-content figure:where(:not(#oit-home-host *),[slot],[slot] *),
.single-knowledge .entry-content figure:where(:not(#oit-home-host *),[slot],[slot] *){
    margin: 0 0 1.2em;
}

/* IT-Wissen topbar: white icon */
.oit-topbar a:where(:not(#oit-home-host *),[slot],[slot] *){
  color: #ffffff !important;
}
.oit-topbar a svg path:where(:not(#oit-home-host *),[slot],[slot] *), .oit-topbar a svg circle:where(:not(#oit-home-host *),[slot],[slot] *), .oit-topbar a svg rect:where(:not(#oit-home-host *),[slot],[slot] *), .oit-topbar a svg polyline:where(:not(#oit-home-host *),[slot],[slot] *), .oit-topbar a svg line:where(:not(#oit-home-host *),[slot],[slot] *){
  stroke: #ffffff !important;
}

/* Team-Seite: KB-Artikel Sektion */
.team-kb-articles:where(:not(#oit-home-host *),[slot],[slot] *){
    background: #111;
    padding: 60px 0;
    margin-top: 40px;
}
.team-kb-headline:where(:not(#oit-home-host *),[slot],[slot] *){
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}
.team-kb-grid:where(:not(#oit-home-host *),[slot],[slot] *){
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.team-kb-card:where(:not(#oit-home-host *),[slot],[slot] *){
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-kb-card:hover:where(:not(#oit-home-host *),[slot],[slot] *){
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.team-kb-card__img:where(:not(#oit-home-host *),[slot],[slot] *){
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #222;
}
.team-kb-card__body:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 16px;
}
.team-kb-card__topic:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff7700;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
.team-kb-card__title:where(:not(#oit-home-host *),[slot],[slot] *){
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* ── Team KB compact list (inside Kasten) ── */
.team-kb-list:where(:not(#oit-home-host *),[slot],[slot] *){ margin: 0 0 0 0; padding: 24px 32px 8px; }
.team-kb-list__title:where(:not(#oit-home-host *),[slot],[slot] *){ color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px;  }
.team-kb-list__items:where(:not(#oit-home-host *),[slot],[slot] *){ list-style: none; margin: 0; padding: 0; }
.team-kb-list__item:where(:not(#oit-home-host *),[slot],[slot] *){ border-bottom: 1px solid rgba(255,255,255,0.07); }
.team-kb-list__item:last-child:where(:not(#oit-home-host *),[slot],[slot] *){ border-bottom: none; }
.team-kb-list__item a:where(:not(#oit-home-host *),[slot],[slot] *){ display: flex; align-items: center; gap: 10px; padding: 10px 0; text-decoration: none; color: #fff; transition: color 0.15s; }
.team-kb-list__item a:hover:where(:not(#oit-home-host *),[slot],[slot] *){ color: #FF7700; }
.team-kb-list__cat:where(:not(#oit-home-host *),[slot],[slot] *){ font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #FF7700; background: rgba(255,119,0,0.1); border-radius: 4px; padding: 2px 6px; white-space: nowrap; flex-shrink: 0; }
.team-kb-list__label:where(:not(#oit-home-host *),[slot],[slot] *){ flex: 1; font-size: 14px; font-weight: 500; line-height: 1.4; }
.team-kb-list__arrow:where(:not(#oit-home-host *),[slot],[slot] *){ flex-shrink: 0; opacity: 0.4; }
.team-kb-list__item a:hover .team-kb-list__arrow:where(:not(#oit-home-host *),[slot],[slot] *){ opacity: 1; color: #FF7700; }

/* ââ Team KB divider before Wir sind OIT ââ */
.team-kb-divider:where(:not(#oit-home-host *),[slot],[slot] *){ border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 8px 32px 0; }

/* ââ Fix projects overflow ââ */
.kiboteam-member:where(:not(#oit-home-host *),[slot],[slot] *){ overflow: hidden; }
.kiboteam-projekte:where(:not(#oit-home-host *),[slot],[slot] *){ overflow: hidden; }


/* =============================================================
   OIT Knowledge Article Layout System (.oit-*)
   Diese Klassen ersetzen inline styles fuer alle Layout-kritischen
   CSS-Properties (display, grid, flex, background, etc.) die
   WordPress via wp_kses_post herausfiltert.
   ============================================================= */

/* --- Wrapper & Sections --- */
.oit-outer:where(:not(#oit-home-host *),[slot],[slot] *){
  font-family: inherit;
  line-height: 1.6;
  color: inherit;
}

.oit-section--revolution:where(:not(#oit-home-host *),[slot],[slot] *){
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 48px 32px;
  border-radius: 12px;
  margin: 32px 0;
}

.oit-section--dark:where(:not(#oit-home-host *),[slot],[slot] *){
  background: #1e1e1e;
  color: #f0f0f0;
  padding: 40px 32px;
  border-radius: 12px;
  margin: 32px 0;
}

.oit-section--cta:where(:not(#oit-home-host *),[slot],[slot] *){
  background: linear-gradient(135deg, #FF7700 0%, #ff9940 100%);
  color: #fff;
  padding: 48px 40px;
  border-radius: 12px;
  margin: 40px 0;
  text-align: center;
}

.oit-section--glossary:where(:not(#oit-home-host *),[slot],[slot] *){
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 40px 32px;
  margin: 40px 0;
}

/* --- Grid Layouts --- */
.oit-grid:where(:not(#oit-home-host *),[slot],[slot] *){
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.oit-grid--2:where(:not(#oit-home-host *),[slot],[slot] *){
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.oit-grid--3:where(:not(#oit-home-host *),[slot],[slot] *){
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.oit-grid--cta:where(:not(#oit-home-host *),[slot],[slot] *){
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  justify-items: center;
  margin-top: 32px;
}

/* --- Flex Layouts --- */
.oit-flex--row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.oit-flex--col:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oit-flex--step:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

/* --- Cards --- */
.oit-card:where(:not(#oit-home-host *),[slot],[slot] *){
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px;
}

.oit-card--orange:where(:not(#oit-home-host *),[slot],[slot] *){
  background: rgba(255,119,0,0.12);
  border: 1px solid rgba(255,119,0,0.3);
  border-radius: 10px;
  padding: 24px;
}

.oit-card--blue:where(:not(#oit-home-host *),[slot],[slot] *){
  background: rgba(15,52,96,0.08);
  border: 1px solid rgba(15,52,96,0.2);
  border-radius: 10px;
  padding: 24px;
}

.oit-card--cta:where(:not(#oit-home-host *),[slot],[slot] *){
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  min-width: 200px;
}

/* --- Step Number Badge --- */
.oit-step-num:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #FF7700;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Author Box --- */
.oit-author:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #FF7700;
  margin: 32px 0;
}

.oit-author img:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Benefit Item --- */
.oit-benefit:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.oit-benefit__icon:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

/* --- Glossary Entries --- */
.oit-glossary-entry:where(:not(#oit-home-host *),[slot],[slot] *){
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  border-left: 4px solid #FF7700;
}

.oit-glossary-entry--blue:where(:not(#oit-home-host *),[slot],[slot] *){
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  border-left: 4px solid #0f3460;
}

.oit-glossary-entry h4:where(:not(#oit-home-host *),[slot],[slot] *),
.oit-glossary-entry--blue h4:where(:not(#oit-home-host *),[slot],[slot] *){
  margin: 0 0 8px 0;
  font-size: 1em;
  font-weight: 700;
}

/* --- CTA Button --- */
.oit-cta-btn:where(:not(#oit-home-host *),[slot],[slot] *){
  display: inline-block;
  background: #fff;
  color: #FF7700;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.oit-cta-btn:hover:where(:not(#oit-home-host *),[slot],[slot] *){
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #FF7700;
  text-decoration: none;
}

.oit-cta-btn--dark:where(:not(#oit-home-host *),[slot],[slot] *){
  display: inline-block;
  background: #FF7700;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.oit-cta-btn--dark:hover:where(:not(#oit-home-host *),[slot],[slot] *){
  background: #e66900;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

/* --- Team Photo Card (Knowledge Articles) --- */
.oit-team-card:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.oit-team-card img:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,119,0,0.5);
}

/* --- Utility --- */
.oit-tag:where(:not(#oit-home-host *),[slot],[slot] *){
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,119,0,0.15);
  border: 1px solid rgba(255,119,0,0.3);
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  color: #FF7700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.oit-tag--dark:where(:not(#oit-home-host *),[slot],[slot] *){
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,119,0,0.2);
  border: 1px solid rgba(255,119,0,0.4);
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Typography helpers --- */
.oit-overline:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.oit-headline:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 2em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.oit-sub:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 1.1em;
  opacity: 0.85;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* Responsive: single column on mobile */
@media (max-width: 600px) {
  .oit-grid--2:where(:not(#oit-home-host *),[slot],[slot] *),
  .oit-grid--3:where(:not(#oit-home-host *),[slot],[slot] *),
  .oit-grid--cta:where(:not(#oit-home-host *),[slot],[slot] *){
    grid-template-columns: 1fr;
  }
  .oit-flex--step:where(:not(#oit-home-host *),[slot],[slot] *),
  .oit-author:where(:not(#oit-home-host *),[slot],[slot] *){
    flex-direction: column;
  }
  .oit-section--revolution:where(:not(#oit-home-host *),[slot],[slot] *),
  .oit-section--dark:where(:not(#oit-home-host *),[slot],[slot] *),
  .oit-section--cta:where(:not(#oit-home-host *),[slot],[slot] *),
  .oit-section--glossary:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 28px 20px;
  }
  .oit-headline:where(:not(#oit-home-host *),[slot],[slot] *){
    font-size: 1.5em;
  }
}


/* --- Standalone Glossar-Seite (/glossar/): dunkle Darstellung wiederherstellen --- */
/* Verhindert, dass der weisse Karten-Stil der .oit-glossary-entry-Regel
   im dunklen .oit-glossary-Widget weisse/hellgraue Schrift unlesbar macht. */
.oit-glossary .oit-glossary-entry:where(:not(#oit-home-host *),[slot],[slot] *),
.oit-glossary .oit-glossary-entry--blue:where(:not(#oit-home-host *),[slot],[slot] *){
  background: transparent;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 0;
  border-left: none;
  padding: 0 0 18px;
}
.oit-glossary .oit-glossary-entry:last-child:where(:not(#oit-home-host *),[slot],[slot] *),
.oit-glossary .oit-glossary-entry--blue:last-child:where(:not(#oit-home-host *),[slot],[slot] *){
  border-bottom: none;
}
