/* globale Primärfarbe, falls du sie anderswo brauchst */
:root {
  --bs-primary: #17a2b8;
  --bs-primary-rgb: 23, 162, 184;
}

/* Buttons in BS 5.0.2 wirklich überschreiben */
.btn-primary {
  background-color: #17a2b8 !important;
  border-color: #17a2b8 !important;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
  background-color: #148699 !important;
  border-color: #148699 !important;
  color: #fff;
}

/* Outline-Variante */
.btn-outline-primary {
  color: #17a2b8 !important;
  border-color: #17a2b8 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #17a2b8 !important;
  border-color: #17a2b8 !important;
  color: #fff;
}

a {
  color: #17a2b8;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: #148699;
  text-decoration: underline;
}

/* Danger, Secondary etc. analog */

/* Geschäftsideen Explorer / Master-Detail-Prototyp */
.idea-explorer .tool-shell {
  min-height: 640px;
}

.idea-explorer .master-card {
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  background: #fff;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.idea-explorer .master-card:hover,
.idea-explorer .master-card:focus {
  border-color: #17a2b8;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
  color: inherit;
  text-decoration: none;
}

.idea-explorer .master-card.active {
  border-color: #17a2b8;
  background: #e9f7fa;
}

.idea-explorer .master-card-add {
  border-color: #17a2b8;
}

.idea-explorer .status-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #adb5bd;
  flex-shrink: 0;
}

.idea-explorer .status-dot.complete {
  background: #198754;
}

.idea-explorer .status-dot.draft {
  background: #ffc107;
}

.idea-explorer .status-dot.archived {
  background: #6c757d;
}

.idea-explorer .detail-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.idea-explorer .info-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  margin-bottom: .75rem;
  overflow: visible;
}

.idea-explorer .info-card-body {
  padding: 1.5rem;
}

.idea-explorer .detail-main-card {
  min-height: 100%;
}

.idea-explorer .detail-main-card > .info-card-body {
  padding: 1.5rem 1.6rem;
}

.idea-explorer .detail-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 1.35rem 0 0;
}

.idea-explorer .detail-section + .detail-section {
  border-top: 1px solid #e9ecef;
  margin-top: 1.35rem;
}

.idea-explorer .detail-summary-section {
  padding-top: 0;
}

.idea-explorer .detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.idea-explorer .detail-title {
  line-height: 1.25;
}

.idea-explorer .detail-meta {
  margin-top: .45rem;
  font-size: .875rem;
  color: #6c757d;
}

.idea-explorer .detail-progress {
  max-width: 100%;
}

.idea-explorer .detail-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .75rem;
}

.idea-explorer .detail-workflow-hint {
  margin-top: .75rem;
  font-size: .8125rem;
  color: #6c757d;
}

.idea-explorer .progress {
  height: .75rem;
}

.idea-explorer .progress-bar {
  background-color: #17a2b8;
}

.idea-explorer .idea-intro-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background: #e9f7fa;
  color: #17a2b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex: 0 0 auto;
}

.idea-explorer .relation-tree {
  font-size: .95rem;
}

.idea-explorer .relation-node {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .55rem;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background: #fff;
  margin-bottom: .4rem;
}

.idea-explorer .relation-node.root {
  background: #e9f7fa;
  border-color: #17a2b8;
}

.idea-explorer .relation-branch {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #dee2e6;
}

.idea-explorer .relation-children {
  margin-left: 1.25rem;
  padding-left: 1rem;
  border-left: 2px dashed #dee2e6;
}

.idea-explorer .relation-icon {
  width: 1.4rem;
  display: inline-flex;
  justify-content: center;
  flex: 0 0 auto;
}

.idea-explorer aside,
.idea-explorer aside .d-grid,
.idea-explorer .master-card {
  min-width: 0;
}

.idea-explorer .master-card strong.text-truncate {
  max-width: 100%;
}

.idea-explorer .master-card .d-flex {
  min-width: 0;
}

.idea-explorer .master-card .min-w-0 {
  min-width: 0;
  overflow: hidden;
}

.idea-explorer .min-w-0 {
  min-width: 0;
}

@media (max-width: 767.98px) {
  .idea-explorer .detail-panel {
    margin-top: 1rem;
  }

  .idea-explorer .detail-header {
    flex-direction: column;
  }
}
