/* ================================================
   INTERVIEW ZITATE – SPEECH BUBBLE
   proalpha Brand CSS · Version 1.0
   ================================================ */

/* ── Grid ─────────────────────────────────────── */
.qb-section {
  box-sizing: border-box;
  width: 100%;
}

.qb-grid {
  display: grid;
  grid-template-columns: repeat(var(--qb-cols, 3), 1fr);
  gap: var(--qb-gap, 24px);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* ── Karte ────────────────────────────────────── */
.qb-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

/* ── Sprechblase ──────────────────────────────── */
.qb-bubble {
  position: relative;
  background-color: var(--qb-bg, #e3e9ec);
  border-radius: var(--qb-radius, 12px);
  padding: 28px 28px 24px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover nur wenn verlinkt */
.qb-bubble--linked:hover {
  box-shadow: 0 6px 24px rgba(0, 82, 134, 0.14);
  transform: translateY(-2px);
  cursor: pointer;
}

/* ── Sprechblasen-Pfeil (Triangle) ────────────── */
.qb-bubble__tail {
  display: block;
  position: absolute;
  bottom: -12px;          /* kürzer als zuvor (war -20px) */
  left: 36px;             /* bleibt über dem Avatar/Namen */
  width: 0;
  height: 0;
  border-left: 0 solid transparent;     /* senkrechte Kante links */
  border-right: 16px solid transparent; /* schräge Kante zurück in die Blase */
  border-top: 12px solid var(--qb-bg, #e3e9ec); /* Länge der Spitze, kürzer */
}

/* ── Logo ─────────────────────────────────────── */
.qb-bubble__logo-wrap {
  display: flex;
  align-items: center;
  min-height: var(--qb-logo-h, 40px);
}

.qb-bubble__logo {
  max-height: var(--qb-logo-h, 40px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0px!important;
}

/* ── Zitat Text ───────────────────────────────── */
.qb-bubble__text {
  font-family: var(--qb-font, "Encode CP", "Segoe UI", sans-serif);
  font-size: var(--qb-font-size, 16px);
  color: var(--qb-font-color, #2d373b);
  font-va
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border: none;
}

/* RichText Reset innerhalb der Bubble */
.qb-bubble__text p {
  margin: 0;
}

.qb-bubble__text p + p {
  margin-top: 0.5em;
}

/* ── Autor Infobox ────────────────────────────── */
.qb-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px; /* Abstand vom Pfeil */
  padding-left: 4px;
  width: 100%;
}

/* Avatar Wrapper – hält Platz auch ohne Bild */
.qb-author__avatar {
  flex-shrink: 0;
  width: var(--qb-avatar, 52px);
  height: var(--qb-avatar, 52px);
}

.qb-author__img {
  width: var(--qb-avatar, 52px);
  height: var(--qb-avatar, 52px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Kein Bild → leere Fläche, kein Platzhalter-Icon */
.qb-author__avatar:empty {
  display: none;
}

/* ── Autor Text ───────────────────────────────── */
.qb-author__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qb-author__name {
  display: block;
  font-family: var(--qb-font, "Encode CP", "Segoe UI", sans-serif);
  font-size: var(--qb-nm-size, 15px);
  font-weight: 600;
  color: var(--qb-nm-color, #2d373b);
  line-height: 1.3;
}

.qb-author__position {
  display: block;
  font-family: var(--qb-font, "Encode CP", "Segoe UI", sans-serif);
  font-size: var(--qb-pos-size, 13px);
  font-weight: 400;
  color: var(--qb-pos-color, #626a6e);
  line-height: 1.3;
}

/* ── Leer-State ───────────────────────────────── */
.qb-empty {
  grid-column: 1 / -1;
  color: var(--qb-pos-color, #626a6e);
  font-family: var(--qb-font, "Encode CP", "Segoe UI", sans-serif);
  font-size: 14px;
  padding: 20px 0;
}

/* ── Responsive: Tablet ────────────────────────── */
@media (max-width: 1024px) {
  .qb-grid {
    grid-template-columns: repeat(var(--qb-cols-tablet, 2), 1fr);
  }
}

/* ── Responsive: Mobile ───────────────────────── */
@media (max-width: 640px) {
  .qb-grid {
    grid-template-columns: 1fr;
  }

  .qb-bubble {
    padding: 20px 20px 18px;
  }

  .qb-bubble__tail {
    left: 28px;
  }

  .qb-author {
    padding-top: 14px;
  }
}

/* ── Barrierefreiheit ─────────────────────────── */
.qb-bubble--linked:focus-visible {
  outline: 3px solid #0098d4;
  outline-offset: 3px;
}