/* Custom Styles für wissen4vertrieb.de
 * --------------------------------
 * 
 * Hinweis: Die Styles für das Inhaltsverzeichnis wurden in die Komponenten-Datei
 * components/toc.css verschoben, um die Wartbarkeit zu verbessern und den
 * Best Practices für CSS-Organisation zu folgen.
 */ 

/* Feature-Liste auf der Startseite */
.feature-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    color: #004e92;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
}

.feature-item span {
    flex: 1;
    line-height: 1.5;
}

.feature-item strong {
    color: #003366;
}

/* CTA-Text am Ende der Feature-Liste */
.cta-text {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #004e92;
    text-align: center;
}

/* Benutzerdefinierte Anpassungen für die Hauptnavigation */

/* Verbessertes Layout für Filter-Anzeige im Header */
.active-filter-label {
    max-width: 120px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Spezielle Korrektur für Hauptmenü-Elemente bei gefilterter Ansicht */
@media (min-width: 992px) {
    /* Mehr Platz zwischen Navigation und Filter-Info */
    .navbar .container {
        position: relative !important;
    }

    /* "Über uns" immer rechts ausrichten */
    .navbar-nav .nav-item:nth-child(4) {
        margin-left: auto !important;
    }

    /* Einheitliche Formatierung für alle Kategorie-Filter im Header */
    .navbar a.btn-primary,
    .navbar button,
    .navbar .btn-primary span {
        max-width: 160px !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }
}

/* Korrektur für die Filteranzeige in der Seite */
.filter-options #active-category-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

#active-category-name {
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Einheitliche Formatierung für Kategorie- und Taxonomie-Seiten */
.taxonomy-page-header,
.category-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.category-title,
.taxonomy-title {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.category-title::after,
.taxonomy-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary, #0d6efd);
}

.category-description,
.taxonomy-description {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

/* Einheitliches Kartenlayout für Artikel in allen Listen */
.article-card,
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1) !important;
}

.article-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Einheitliches Badge-Styling */
.article-tag,
.category-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-badge:hover {
    transform: scale(1.05);
}

/* Verbesserte Kartenelemente */
.card-title a:hover {
    color: var(--bs-primary) !important;
    text-decoration: underline !important;
}

/* Kategorie-spezifische Farben für bessere Unterscheidbarkeit */
.category-badge.category-provisionsmodelle {
    background-color: #1e3a8a !important;
}

.category-badge.category-vertriebsstrategien {
    background-color: #10b981 !important;
}

.category-badge.category-digitalisierung {
    background-color: #8b5cf6 !important;
}

.category-badge.category-marketing {
    background-color: #f59e0b !important;
}

.category-badge.category-affiliate {
    background-color: #ef4444 !important;
}

/* Keyword-Links Styling */
.w4v-keyword-link, 
.w4v-glossary-link {
  color: var(--primary-color, #004e92);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  position: relative;
  padding-right: 1.25em;
}

.w4v-keyword-link:hover, 
.w4v-glossary-link:hover {
  background-color: rgba(0, 78, 146, 0.1);
  text-decoration: underline;
}

/* Hinweis-Icon für Links, die in einem neuen Tab geöffnet werden */
.w4v-keyword-link::after,
.w4v-glossary-link::after {
  content: '';
  position: absolute;
  right: 0.25em;
  top: 50%;
  transform: translateY(-50%);
  width: 0.85em;
  height: 0.85em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23004e92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.w4v-keyword-link:hover::after,
.w4v-glossary-link:hover::after {
  opacity: 1;
}

/* Kategorie-Badges direkt ansprechen */
.badge.bg-primary {
  padding: 6px 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  background-color: #0d6efd !important; /* Bootstrap default */
}

/* Kategorie-spezifische Farben können über Kategorieseiten-spezifische CSS hinzugefügt werden */

/* Call-to-Action-Buttons für Blog-Beiträge */
.cta-button {
  display: inline-block;
  padding: 12px 20px;
  margin: 8px 0;
  background: linear-gradient(135deg, #4db8ff 0%, #006bb3 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 450px;
}

.cta-button:hover {
  background: linear-gradient(135deg, #006bb3 0%, #004e92 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: white !important;
}

.cta-button i {
  margin-right: 8px;
}

.cta-button-secondary {
  background: white;
  color: #006bb3 !important;
  border: 2px solid #006bb3;
}

.cta-button-secondary:hover {
  background: #f5f9ff;
  color: #004e92 !important;
}

.cta-container {
  margin: 25px 0;
  padding: 15px;
  border-left: 4px solid #4db8ff;
  background-color: #f5f9ff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
} 