/* ============================================================
   CTLS COMPONENT: BREADCRUMB NAVIGATION
   ------------------------------------------------------------
   Einheitliche Brotkrumennavigation mit globalem Gutter
   Floating-Version: liegt optisch über dem ersten Segment
   ============================================================ */
/* ============================================================
   FIX: Breadcrumb-Schriftgröße unabhängig von globalen <li>
   ============================================================ */

.breadcrumb-inner,
.breadcrumb,
.breadcrumb li,
.breadcrumb a,
.breadcrumb .current span {
  font-size: 0.8rem !important;
  line-height: 1.35;
}

/* --- Wrapper (Positionierung über Segment) --- */
.breadcrumb-nav {
  position: relative;
  z-index: 10; /* über Segment-Hintergrund */
  width: 100%;
  box-sizing: border-box;
  margin: 0; /* kein Abstand, damit sie nicht drückt */
  background: transparent;
}

/* --- Innerer Container (floating Box) --- */
.breadcrumb-inner {
  position: absolute;
  bottom: -1.6em; /* schiebt sie optisch leicht in das erste Segment hinein */
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: var(--max-width);
  width: calc(100% - 3em);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
}

/* --- Breadcrumb-Liste --- */
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Einträge & Trenner --- */
.breadcrumb li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.6em;
  color: var(--color-text);
  opacity: 0.5;
}

/* --- Links --- */
.breadcrumb a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

/* --- Aktuelle Seite --- */
.breadcrumb .current span {
  font-weight: 600;
  color: var(--color-text);
}

/* --- Home-Icon --- */
.icon-home {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('/wp-content/themes/ctls-base-v1.1/assets/icons/home-button.svg') center / contain no-repeat;
  vertical-align: middle;
}

/* ============================================================
   MOBILE: Breadcrumb vollständig ausblenden (< 995px)
   ============================================================ */
@media screen and (max-width: 995px) {
  .breadcrumb-nav {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}