/**
 * Whistleblower External Pages - Custom Styles
 * Sonderlösungen für die externen Hinweisgeber-Seiten
 */

/* ============================================
   HINT-CARD SPACING (nur für External Pages)
   ============================================ */
.card-body .hint-card {
  margin-bottom: 24px;
}

/* ============================================
   DOWNLOAD BUTTON für hint-card
   ============================================ */

/* Button rechtsbündig in hint-card - NUR für warning mit Button */
.hint-card--warning .hint-card-content > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hint-card--warning .hint-card-content > div:last-child > p {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.hint-card .btn-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--warning-color);
  color: #ffffff;
  border: 1px solid var(--warning-color);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.hint-card .btn-warning:hover {
  background-color: var(--warning-darken);
}

/* Warning hint-card: Icon oben ausrichten wenn Titel vorhanden */
.hint-card--warning:has(.hint-card-title) {
  align-items: flex-start;
  padding-top: 12px;
}

.hint-card--warning:has(.hint-card-title) .hint-card-icon {
  margin-top: 2px;
}

/* ============================================
   COMMUNICATION PAGE - LAYOUT
   ============================================ */

html:has(body.public-page):has(.comm-container) {
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

body.public-page:has(.comm-container) {
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

main:has(.comm-container) {
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 69px;
}

.comm-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 12px;
  padding-right: 140px;
}

.comm-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  padding-top: 0;
  min-height: 0;
}

.comm-container > .breadcrumb {
  grid-column: 2;
  grid-row: 1;
}

.comm-sidebar {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comm-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.comm-main > .section-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comm-main > .section-card > div:not(.tab-navigation) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.comm-main .chat-container {
  flex: 1;
  min-height: 0;
  height: auto;
}

.comm-main .section-card {
  padding:0;
}

.comm-main .tab-navigation {
  border-top-left-radius: var(--radius-lg, 8px);
  border-top-right-radius: var(--radius-lg, 8px);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.comm-main .chat-input-container {
  border-bottom-left-radius: var(--radius-lg, 8px);
  border-bottom-right-radius: var(--radius-lg, 8px);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}


@media (max-width: 768px) {
  .comm-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .comm-container > .breadcrumb {
    grid-column: 1;
    grid-row: 1;
  }
  .comm-sidebar {
    grid-column: 1;
    grid-row: 2;
  }
  .comm-main {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ============================================
   COMMUNICATION PAGE - STATUS CARD
   ============================================ */

.comm-status-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.comm-status-value {
  font-size: 18px;
  font-weight: 600;
}

.section-card-title.primary {
  margin: 16px 0;
  color: var(--text-primary)!important;
  border-bottom: 2px solid var(--primary-color);
}
.section-card-title.warning {
  margin: 16px 0;
  color: var(--text-primary)!important;
  border-bottom: 2px solid var(--warning-color);
}
.section-card-title.success {
  margin: 16px 0;
  color: var(--text-primary)!important;
  border-bottom: 2px solid var(--success-color);
}
/* ============================================
   COMMUNICATION PAGE - TIMELINE
   ============================================ */

.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Verbindungslinie */
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background-color: var(--grey-200);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.timeline-dot--completed {
  background-color: var(--success-color);
  color: #ffffff;
}

.timeline-dot--current {
  background-color: var(--warning-color);
  color: #ffffff;
}

.timeline-dot--pending {
  background-color: var(--grey-200);
  color: var(--grey-400);
}

.timeline-content {
  flex: 1;
  padding-top: 2px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-item--pending .timeline-title,
.timeline-item--pending .timeline-date {
  color: var(--text-muted);
}

/* ============================================
   INTRO PAGE - ACTION CARDS GLEICHE HÖHE
   ============================================ */

/* Action Cards Container - stretch für gleiche Höhe */
.ext-action-cards.row-fluid {
  align-items: stretch;
}

/* Span6 als Flex-Container */
.ext-action-cards.row-fluid .span6 {
  display: flex;
}

/* Form muss volle Breite haben */
.ext-action-cards form {
  display: flex;
  width: 100%;
}

/* Action Card - Flex-Column mit voller Höhe */
.ext-action-cards .ext-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Icon zentrieren */
.ext-action-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button am Ende der Card positionieren */
.ext-action-cards .ext-action-card-btn {
  margin-top: auto;
}

/* ============================================
   INTRO PAGE - HINT CARDS GLEICHE HÖHE
   ============================================ */

/* Hint Cards Container - stretch für gleiche Höhe */
.ext-intro-section .row-fluid .span6 {
  display: flex;
}

/* Hint Card volle Höhe */
.ext-intro-section .row-fluid .span6 .hint-card {
  height: 100%;
  flex: 1;
  box-sizing: border-box;
}
