/* ============================================
   Event Components
   Wiederkehrende Patterns — semantische Klassen
   ============================================ */

/* Brand-Lockup im Navbar */
.brand-mark {
  font-size: 1.125rem;
  color: var(--bulma-text-strong);
}
.brand-tagline {
  margin-left: 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bulma-text);
}

/* Brand-Logo: überschreibt Bulma's navbar-item img max-height */
.navbar-item .brand-logo {
  max-height: 5rem !important;
  max-width: 280px;
}

/* Mehr vertikaler Abstand um das Logo */
.navbar-brand .navbar-item {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer__brand .brand-logo {
  max-height: 4rem;
  max-width: 200px;
}

/* Kategorie-Tags: dunkler Text auf Pastell-Hintergrund */
.tags .tag[style*="background: hsl"],
.popover__tag[style*="background"] {
  color: var(--bulma-scheme-invert) !important;
}

/* Suchfeld: Placeholder besser lesbar im Dark Mode */
input.input::placeholder,
.input::placeholder {
  color: var(--bulma-text) !important;
  opacity: 0.6 !important;
}

/* Display-Headline mit fluider Größe */
.display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}
/* Subtitle mit Standard-Lesebreite */
.subtitle-readable {
  max-width: 60ch;
  color: var(--bulma-text);
}
.subtitle-readable strong {
  color: var(--bulma-text-strong);
}

/* ============================================
   Recap Card — Mediathek + Index Top-3
   ============================================ */
.recap-card {
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.recap-card__link {
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.recap-card .card-content {
  flex: 1;
  gap: 14px;
}

/* Category-Tags mit Accent-Farbe */
.tag.is-track {
  background: var(--accent-tint-12);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent-tint-25);
}

/* Action-Button: einheitlicher Outlined-Button im Public-Frontend */
.action-button {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  --bulma-button-border-width: max(1px, 0.0625em);
}
.action-button:hover {
  background: var(--accent-tint-12);
  --bulma-button-border-width: max(1px, 0.0625em);
}
.action-button__icon {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
}

/* Card — Accent-Border + Hover */
.recap-card {
  border: 1.5px solid var(--accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.recap-card:hover {
  box-shadow: 0 4px 16px var(--accent-tint-25);
  border-color: var(--accent);
  filter: brightness(1.1);
}

.recap-card__head {
  gap: 10px;
}
.recap-card__tags {
  gap: 6px;
}

/* Meta-Zeile (Jahr · Stage · Dauer) */
.recap-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bulma-text-weak);
  margin: 0;
}

/* Recap-Titel innerhalb der Karte */
.recap-card__title {
  font-family: var(--bulma-family-secondary);
  line-height: 1.2;
  margin: 0;
  color: var(--bulma-text-strong);
}

/* Zitat auf der Karte — Wrapper mit großem Anführungszeichen */
.recap-card__quote-wrap {
  position: relative;
  padding-top: 6px;
}
.recap-card__quote-wrap::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: -2px;
  font-family: var(--bulma-family-secondary);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent);
}
.recap-card__quote {
  margin: 0;
  padding: 0 0 0 20px;
  border: none;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--bulma-text);
}

/* Pill-Listen (Keywords + Products) */
.pill-list {
  margin: 0;
  gap: 6px;
}
.pill-list .tag {
  font-size: 0.85rem;
}

/* Meta-Zeile unter Categories (Room · Duration) */
.recap-card__meta {
  font-family: var(--bulma-family-secondary);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bulma-text-weak);
  margin: 0;
}

.recap-card__foot {
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}
.recap-card__foot .avatar-mono {
  width: 56px;
  height: 56px;
  font-size: 0.9375rem;
}
.recap-card__speaker {
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.recap-card__more-speakers {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bulma-text-weak);
  padding: 4px 8px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--accent-tint-12);
  flex-shrink: 0;
}
.recap-card__speaker-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bulma-text-strong);
  margin: 0;
}
.recap-card__speaker-org {
  font-size: 0.75rem;
  color: var(--bulma-text-weak);
  margin: 0;
}
/* Nur auf der Card abschneiden, nicht auf der Detail-Seite */
.recap-card__foot .recap-card__speaker > div {
  overflow: hidden;
  min-width: 0;
}
.recap-card__foot .recap-card__speaker-name,
.recap-card__foot .recap-card__speaker-org {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ============================================
   Takeaway Card (Talk-Detail Band)
   ============================================ */
.takeaway-card {
  height: 100%;
}
.takeaway-card .card-content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.takeaway-card__num {
  font-family: var(--bulma-family-secondary);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.takeaway-card__text {
  line-height: 1.45;
  margin: 0;
  color: var(--bulma-text-strong);
}


/* ============================================
   AI Notice Bar (Talk-Detail oben)
   ============================================ */
.notice-bar__inner {
  gap: 12px;
}
.notice-bar__text {
  font-size: 0.8125rem;
}

/* ============================================
   Talk Hero (Split: Title + Media-Placeholder)
   ============================================ */
.talk-hero {
  padding: 32px 0;
}
.talk-hero__frame {
  margin: 0;
  min-height: 340px;
  border: 1.5px solid var(--accent);
  border-radius: var(--bulma-radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.talk-hero__left-inner {
  padding: 48px 56px;
  gap: 40px;
  flex: 1;
}
.talk-hero__topbar {
  gap: 18px;
}
.meta-mono {
  font-family: var(--bulma-family-primary);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bulma-text);
}
.talk-hero__title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.05;
}
.talk-hero__speakers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
/* Media player */
.talk-hero__right {
  padding: 0;
  background: hsl(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-scheme-main-l));
  min-height: 300px;
}
.talk-hero__player {
  width: 100%;
  max-height: 100%;
}
audio.talk-hero__player {
  width: 100%;
  padding: 24px;
}


/* ============================================
   Section-Bar (Eyebrow + rechts-bündige Meta)
   ============================================ */

/* ============================================
   Talk Body (Two-Column: Summary + Quote-Sidebar)
   ============================================ */
.talk-summary {
  line-height: 1.55;
  color: var(--bulma-text-strong);
  margin-bottom: 32px;
}
.talk-body {
  line-height: 1.7;
}
.quote-sidebar {
  position: sticky;
  top: 24px;
  gap: 24px;
}
.quote-sidebar__item {
  position: relative;
  padding-top: 2.5rem;
}
.quote-sidebar__item::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--bulma-family-secondary);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  z-index: 1;
}
.quote-sidebar__quote {
  margin: 0;
  line-height: 1.5;
  color: var(--bulma-text);
  font-style: italic;
}

/* ============================================
   Share Bar (Talk-Detail: Social Sharing)
   ============================================ */
}

/* ============================================
   Banded Section (mit Top + Bottom Border)
   ============================================ */
.section-banded {
  border-top: 1px solid var(--bulma-border);
  border-bottom: 1px solid var(--bulma-border);
}

/* ============================================
   Mention Tag (Name fett + Rolle in weak)
   ============================================ */
.tag.mention strong {
  font-weight: 600;
  color: var(--bulma-text-strong);
}
.tag.mention .role {
  color: var(--bulma-text-weak);
}

/* ============================================
   Match-Ring (KI-Match-Score)
   ============================================ */
.match-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.match-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.match-ring__track {
  fill: none;
  stroke: var(--bulma-border);
  stroke-width: 3;
}
.match-ring__bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}
.match-ring__inner {
  position: absolute;
  inset: 0;
}
.match-ring__num {
  font-family: var(--bulma-family-secondary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.match-ring.is-large {
  width: 68px;
  height: 68px;
}
.match-ring.is-large .match-ring__num {
  font-size: 1.375rem;
}
/* ============================================
   Interests Row (Mein-Recap)
   ============================================ */
.interests-row {
  gap: 8px;
}
/* ============================================
   Curated Card (Mein-Recap — Top-3 Auswahl)
   ============================================ */
.curated-card {
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.curated-card:hover {
  box-shadow: 0 4px 16px var(--accent-tint-18);
}
.curated-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.curated-card__inner {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 28px 32px;
}
.curated-card__rail {
  gap: 12px;
}
.curated-card__rank {
  font-family: var(--bulma-family-primary);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--bulma-text-weak);
}
.curated-card__body {
  gap: 14px;
  min-width: 0;
}
.curated-card__tags {
  gap: 6px;
}
.curated-card__tags .recap-meta {
  margin-left: 6px;
}
.curated-card__title {
  font-family: var(--bulma-family-secondary);
  line-height: 1.15;
  margin: 0;
  color: var(--bulma-text-strong);
}
.curated-card__short {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--bulma-text);
  margin: 0;
}
.curated-card__reason {
  padding: 12px 16px;
  background: var(--accent-tint-18);
  border-left: 2px solid var(--accent);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--bulma-text-strong);
}
.curated-card__reason-label {
  font-family: var(--bulma-family-primary);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bulma-text-weak);
  margin: 0 0 4px;
}
.curated-card__foot {
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bulma-border);
}
/* Speaker in curated-card nutzt das gemeinsame recap-card__speaker Partial */

/* Generating-Page Loader + Status Messages */
.recap-loader {
  display: inline-block;
  width: 48px;
  height: 48px;
}
/* Utility: white-space pre-line für mehrzeilige Fehlermeldungen */
.is-pre-line {
  white-space: pre-line;
}

.recap-status-message {
  transition: opacity 0.3s ease;
}

/* ============================================
   Footer
   ============================================ */
.footer__brand {
  color: var(--bulma-text-strong);
  font-size: 1.125rem;
}
.footer__detail {
  font-size: 0.8125rem;
  color: var(--bulma-text);
  margin: 4px 0 0;
}
.footer__link {
  color: var(--bulma-text);
}
.footer__copy {
  font-size: 0.8125rem;
  color: var(--bulma-text-weak);
}

/* ============================================
   Timetable / Agenda Grid
   Bulma hat kein Timetable-Component — custom CSS Grid nötig.
   Nutzt event-tokens.css Custom Properties für Farben/Spacing.
   ============================================ */
.timetable-wrapper {
  overflow-x: hidden;
}

@media (max-width: 1407px) {
  .timetable-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.timetable {
  display: grid;
  grid-template-columns: 5rem repeat(var(--room-count, 3), minmax(140px, 1fr));
  gap: 2px;
  transition: grid-template-columns 0.3s ease;
}

.timetable-corner {
  grid-row: 1;
  grid-column: 1;
}

.timetable-header {
  grid-row: 1;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  background: var(--bulma-scheme-main-bis);
  border-radius: 6px;
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timetable-header:hover {
  background: var(--bulma-scheme-main-ter);
}

.timetable-header.is-expanded {
  background: var(--accent);
  color: var(--bulma-scheme-main);
}

.timetable-time {
  grid-column: 1;
  font-size: 0.75rem;
  color: var(--bulma-text-weak);
  text-align: right;
  padding-right: 0.5rem;
  white-space: nowrap;
  line-height: 1;
}

.timetable-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 28px;
  z-index: 1;
}

.timetable-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  filter: brightness(0.95);
  color: inherit;
}

.timetable-item__time {
  font-size: 0.7rem;
  color: var(--bulma-text-weak);
  line-height: 1.2;
}

.timetable-item__title {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.25;
  overflow: hidden;
}

/* Kategorie-Hintergründe: dunkler Text auf Pastell-BG */
.timetable-item,
.timetable-mobile-item {
  color: var(--bulma-scheme-invert) !important;
}

.timetable-item__details,
.timetable-item__time,
.timetable-item__speakers,
.timetable-mobile-item__meta {
  color: var(--bulma-scheme-invert) !important;
  opacity: 0.7;
}

.timetable-item.is-in-expanded .timetable-item__title {
  overflow: visible;
  white-space: normal;
}

.timetable-item__details {
  display: none;
  flex-direction: column;
  gap: 1px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--bulma-text);
  overflow: hidden;
}

.timetable-item.is-in-expanded .timetable-item__details {
  display: flex;
}

.timetable-item__time {
  color: var(--bulma-text-weak);
}

.timetable-item__speakers {
  font-weight: 500;
}


.timetable-item__speakers {
  font-size: 0.7rem;
  color: var(--bulma-text-weak);
  line-height: 1.2;
}

/* Timetable "Jetzt"-Indikator */
.timetable-now {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--bulma-danger);
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.timetable-now::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--bulma-danger);
  border-radius: 50%;
}

/* Timetable Popover */
.timetable-wrapper {
  position: relative;
}

.timetable-popover {
  position: absolute;
  z-index: 10;
  width: 280px;
  padding: 12px;
  background: var(--bulma-scheme-main);
  border: 1px solid var(--bulma-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  font-size: 0.8rem;
  line-height: 1.4;
}

.popover__title {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.popover__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--bulma-text-weak);
  margin-bottom: 6px;
}

.popover__tags {
  gap: 3px;
  margin-bottom: 8px;
}

.popover__tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bulma-scheme-main-bis);
}

.popover__speaker {
  gap: 8px;
  margin-bottom: 6px;
}

.popover__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.popover__avatar-mono {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bulma-scheme-main-bis);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}


.popover__speaker-name {
  font-weight: 600;
  font-size: 0.75rem;
}

.popover__speaker-role {
  font-size: 0.65rem;
  color: var(--bulma-text-weak);
}

.popover__desc {
  font-size: 0.75rem;
  color: var(--bulma-text-weak);
  margin-top: 6px;
  border-top: 1px solid var(--bulma-border);
  padding-top: 6px;
}

/* Timetable Mobile: vertikale Liste nach Zeitslot */
.timetable-mobile-slot {
  margin-bottom: 1.25rem;
}

.timetable-mobile-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bulma-text-weak);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--bulma-border);
}

.timetable-mobile-item {
  display: block;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.4rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: filter 0.15s ease;
}

.timetable-mobile-item:hover {
  filter: brightness(0.95);
  color: inherit;
}

.timetable-mobile-item__title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.timetable-mobile-item__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--bulma-text-weak);
  margin-top: 2px;
}

@media (max-width: 1023px) {
  .timetable {
    grid-template-columns: 4rem repeat(var(--room-count, 3), minmax(150px, 1fr));
  }
  .timetable-time {
    position: sticky;
    left: 0;
    background: var(--bulma-scheme-main);
    z-index: 1;
  }
}
