/*
Theme Name: Mueller CI Template
Theme URI: https://itsmind.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: Fabian Müller
Author URI: https://fabian-mueller.eu
template: bb-theme
*/

/*@import url('webfonts.css');*/
@import url('/wp-content/plugins/bb-plugin/fonts/fontawesome/5.15.4/css/all.min.css?ver=2.9.4');

/***********
* FAQ
***********/

/* In style.css deines Themes einfügen und anpassen */
.faq-accordion-container {
    margin-top: 20px;
}

.faq-category-section {
    margin-bottom: 30px;
}

.faq-category-section h3 { /* Kategorie-Titel */
    font-size: 1.8em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden; /* Für abgerundete Ecken bei inneren Elementen */
}

.faq-item .faq-question { /* Dies ist das H4 Element */
    margin: 0;
    padding: 0;
    font-size: 1.2em; /* Schriftgröße der Frage anpassen */
}

.faq-item .faq-question a[role="button"] {
    display: block;
    padding: 15px 20px;
    background-color: #f7f7f7;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative; /* Für Pseudo-Elemente (Indikator) */
}

.faq-item .faq-question a[role="button"]:hover,
.faq-item .faq-question a[role="button"]:focus {
    background-color: #e9e9e9;
}

/* Indikator für geöffnet/geschlossen (optional) */
.faq-item .faq-question a[role="button"]::after {
    content: '+'; /* Plus-Symbol */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: bold;
}

.faq-item .faq-question a[aria-expanded="true"]::after {
    content: '−'; /* Minus-Symbol, wenn geöffnet */
}

.faq-answer {
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    line-height: 1.6;
}

/* Initial versteckt durch JS (style="display: none;"), aber Klasse für Übergänge wäre schöner */
.faq-answer[aria-hidden="true"] {
    /* display: none;  -- wird per Inline-Style gesetzt */
}
.faq-answer[aria-hidden="false"] {
    /* display: block; -- wird per Inline-Style gesetzt */
}

/****
* Glossar
****/

.glossar-term-link {
    text-decoration: none; /* Standard-Unterstreichung entfernen */
    border-bottom: 1px dashed #0073aa; /* Gestrichelte Unterstreichung */
    color: inherit; /* Farbe vom umgebenden Text übernehmen oder eigene definieren */
    cursor: help; /* Fragezeichen-Cursor */
    position: relative; /* Für potenzielle Pseudo-Elemente oder Tooltip-Positionierung */
}

.glossar-term-link:hover {
    border-bottom-style: solid;
    /* color: #005177; */ /* Optional: Farbe beim Hover ändern */
}

/* Glossar Tooltip Stile */
.glossar-tooltip {
    position: absolute; /* Wichtig für Positionierung via JS */
    z-index: 10000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 10px 15px;
    width: auto; /* Passt sich dem Inhalt an */
    max-width: 300px; /* Maximale Breite */
    opacity: 0; /* Startet unsichtbar, JS macht es sichtbar */
    transition: opacity 0.2s ease-in-out;
    font-size: 0.9em;
    line-height: 1.4;
}

.glossar-tooltip-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.glossar-tooltip-title a {
    color: #0073aa;
    text-decoration: none;
}
.glossar-tooltip-title a:hover {
    text-decoration: underline;
}

.glossar-tooltip-definition {
    margin: 0;
}

.glossar-tooltip-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #777;
}
.glossar-tooltip-close:hover {
    color: #333;
}



/* Glossar Akkordeon Container (für [glossar_overview] Shortcode) */
.glossar-accordion-container {
    margin-top: 20px;
}

.glossar-item {
    border: 1px solid #e0e0e0; /* Etwas hellere Border als bei FAQ vielleicht */
    margin-bottom: 8px; /* Weniger Abstand als bei FAQ Items */
    border-radius: 4px;
    overflow: hidden;
}

.glossar-item .glossar-term { /* Dies ist das H4 Element */
    margin: 0;
    padding: 0;
    font-size: 1.1em; /* Ggf. etwas kleiner als FAQ-Fragen */
}

.glossar-item .glossar-term a.glossar-term-link-toggle {
    display: block;
    padding: 12px 18px; /* Etwas kompakter */
    background-color: #f9f9f9; /* Leicht anderer Hintergrund */
    color: #333;
    text-decoration: none;
    font-weight: bold; /* Beibehalten */
    transition: background-color 0.3s ease;
    position: relative;
}

.glossar-item .glossar-term a.glossar-term-link-toggle:hover,
.glossar-item .glossar-term a.glossar-term-link-toggle:focus {
    background-color: #f0f0f0; /* Leicht anderer Hover-Hintergrund */
}

/* Indikator für geöffnet/geschlossen (wie bei FAQ) */
.glossar-item .glossar-term a.glossar-term-link-toggle::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    font-weight: bold;
}

.glossar-item .glossar-term a.glossar-term-link-toggle[aria-expanded="true"]::after {
    content: '−';
}

.glossar-definition {
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
}

.glossar-definition > *:first-child {
    margin-top: 0;
}
.glossar-definition > *:last-child {
    margin-bottom: 0;
}

/****
* Breadcrumbs
****/

/* In style.css deines Themes einfügen und anpassen */
/* In style.css deines Themes einfügen und anpassen */
.faq-breadcrumbs,
.glossar-breadcrumbs {
    margin-bottom: 20px; /* Abstand nach unten */
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* Optionale Trennlinie */
    font-size: 0.9em;
}

.faq-breadcrumbs ol,
.glossar-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-breadcrumbs li,
.glossar-breadcrumbs li {
    display: inline-block; /* Elemente nebeneinander */
    margin: 0;
}

.faq-breadcrumbs li:not(:last-child)::after,
.glossar-breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #666;
}

.faq-breadcrumbs a,
.glossar-breadcrumbs a {
    text-decoration: none;
    color: #0073aa;
}

.faq-breadcrumbs a:hover,
.glossar-breadcrumbs a:hover {
    text-decoration: underline;
}

.faq-breadcrumbs li[aria-current="page"] span,
.glossar-breadcrumbs li[aria-current="page"] span {
    color: #333;
    font-weight: bold;
}
