/* Theme Name: Bernd Schmidt PFAFI
Theme URI: https://www.pfafi.de
Description: Offizielles WP Theme für pfafi.de based on Hello Theme
Author: MarketingVibes EOOD
Author URI: https://www.marketingvibes.de
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

	/* =======================================================
   GLOBAL FIX: Grüne Bullets für Elementor Text-Widgets
   Mit !important und erhöhter Spezifität
   ======================================================= */

/* 1. Die Liste selbst */
/* Wir setzen 'body' davor, um die Priorität zu erhöhen */
body .elementor-widget-text-editor ul {
    list-style: none !important; /* Zwingend Standard-Bullets ausblenden */
    list-style-type: none !important;
    padding-left: 1.2rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* 2. Das einzelne Listen-Element */
body .elementor-widget-text-editor ul li {
    position: relative !important;
    padding-left: 1.8rem !important; /* Platz für den grünen Punkt */
    margin-bottom: 0.6rem !important;
    list-style: none !important;
}

/* 3. Der grüne Punkt (Pfafi Style) */
body .elementor-widget-text-editor ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    /* Top: Justierung, falls <p> Tags im <li> sind (wie in deinem Code) */
    top: 0.6em !important; 
    width: 0.6rem !important;
    height: 0.6rem !important;
    background-color: #5acc5a !important; /* Pfafi Grün */
    border-radius: 50% !important;
    display: block !important;
    z-index: 1 !important;
}

/* Style Class fpr Portfoliop class *" 
 * * * Alle Klassen mit Portfolio werden in diese ektion geknallt */

.portfolio-reports {
	background: black;
	padding: 0px 15px 0px 15px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5em;
	display: inline; 
}

.formidable_list {
	
display: inline;
}


/* FAQ Glossar Styling */


.faq-section {
}

.faq-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.faq-accordion {
  border-radius: 10px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

/* --- Frage-Button --- */
.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  outline: none;
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  color: #222;
}

/* Hover-Effekt (nur für inaktive Items) */
.faq-item:not(.active) .faq-question:hover {
  background: #f2fdf4; /* superhelles Grün */
  color: #2E7D32;     /* Text grün */
}

.faq-item:not(.active) .faq-question:hover .faq-icon {
  color: #2E7D32;
}

/* --- Icon --- */
.faq-icon {
  font-size: 1.3rem;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* --- Antwort --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  padding: 0 1.2rem;
  transition: all 0.35s ease;
  border-left: 3px solid transparent;
}

.faq-answer p {
  margin: 0.8rem 0;
  color: #444;
  line-height: 1.6;
}

/* --- Active State (geöffnete Frage) --- */
.faq-item.active .faq-question {
  background: #2E7D32; /* Hintergrund grün */
  color: #fff;         /* Text weiß */
  font-weight: 600;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
  color: #fff; /* Icon auch weiß */
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1rem 1.2rem;
  background: #fafafa; /* Antwortbox leicht grau */
  border-left: 3px solid #2E7D32;
}

/* Container */
.glossar-synonyme {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Chips */
.synonym-chip {
    display: inline-block;
    background-color: #f1f5f9; /* helles Grau */
    color: #111827; /* dunkles Grau */
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: default;
}

/* Hover für Links */
a.synonym-chip {
    cursor: pointer;
}
a.synonym-chip:hover {
    background-color: #10b981; /* dein Grün */
    border-color: #10b981;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* Wrapper */
.related-glossar {
    background: #f9fafb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

/* Überschrift kompakter */
.related-heading {
    font-size: 0.8 rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
    border-left: 3px solid #28a745;
    padding-left: 10px;
}

/* Liste enger */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Einzelner Eintrag – kompakter */
.related-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
}

.related-item:hover {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Titel enger & farbig */
.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #28a745;
}

/* Auszug schöner kürzen */
.related-excerpt {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 10px;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* auf 2 Zeilen begrenzen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Mehr erfahren – stärker hervorheben */
.related-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #28a745;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.related-link::after {
    content: "→";
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.related-link:hover {
    color: #1a1a1a;
}

.related-link:hover::after {
    transform: translateX(3px);
}

/* Quellen Box */
.sources-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    padding: 15px 20px;
}

/* Titel (dezenter Button-Style) */
.sources-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    user-select: none;
}

.sources-heading:hover {
    color: #28a745;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    transition: transform 0.2s ease;
}

/* Einleitung */
.sources-intro {
    font-size: 0.85rem;
    color: #555;
    margin: 10px 0 15px;
    line-height: 1.5;
}

/* Aufklappbarer Content */
.sources-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

.sources-heading[aria-expanded="true"] + .sources-intro + .sources-content {
    max-height: 500px; /* genug Platz für Liste */
    opacity: 1;
}

/* Liste */
.sources-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f2f2f2;
}

.source-item:last-child {
    border-bottom: none;
}

.source-icon img {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.source-content {
    display: flex;
    flex-direction: column;
}

.source-link {
    font-weight: 500;
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #28a745;
    text-decoration: underline;
}

.source-author {
    font-size: 0.75rem;
    color: #777;
    margin-top: 2px;
}

/* === Pfafi Authorbox Layout Fix === */

/* Hauptcontainer: horizontale Anordnung */
.pfafi-authorbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: nowrap;
    width: 100%;
}

/* Linker Block: Autor + Fact Checker nebeneinander */
.pfafi-authorbox-left,
.pfafi-authorbox-center {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Beide Personen nebeneinander */
.pfafi-authorbox-left,
.pfafi-authorbox-center {
    margin-right: 30px;
}

/* Gemeinsamer Wrapper für linke Personen */
.pfafi-authorbox > .pfafi-authorbox-left,
.pfafi-authorbox > .pfafi-authorbox-center {
    display: flex;
    align-items: center;
}

/* Bild 100% rund */
.pfafi-authorbox-image {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #f0f0f0 !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    display: block !important;
}

/* Text unter dem Namen */
.pfafi-authorbox-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

/* Check Icon + "Geprüft von" inline */
.pfafi-verified {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Rechte Spalte (Datum) nach rechts schieben */
.pfafi-authorbox-right {
    margin-left: auto;
    text-align: right;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .pfafi-authorbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pfafi-authorbox-right {
        text-align: left;
        margin-left: 0;
    }
}

/* =========================================
    Mobile-Optimierung der Autorenbox
    (Bilder ausblenden, kompakte Darstellung)
    ========================================= */
@media (max-width: 768px) {
  .pfafi-authorbox-image {
    display: none !important; /* Versteckt Autorenbilder auf Mobile */
  }

  .pfafi-authorbox {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    text-align: left !important;
  }

  .pfafi-authorbox-left,
  .pfafi-authorbox-right {
    flex: none !important;
    width: 100% !important;
  }

  .pfafi-authorbox-name {
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .pfafi-authorbox-role {
    font-size: 13px !important;
    color: #777 !important;
  }
}

/* Glossar Übersicht Seite */

.glossar-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

/* =========================================
   PFAFI AUTHORBOX: COMPACT MODE (Ultra-Slim)
   Triggered via [pfafi_authorbox layout="compact"]
   ========================================= */

.pfafi-authorbox--compact {
    /* Minimale Außenabstände */
    margin: 5px 0 15px 0;
    padding: 8px 0;
    
    /* Layout: Eng beisammen */
    justify-content: flex-start;
    gap: 20px; /* Abstand zwischen den Gruppen verringert */
    
    border-bottom: 1px solid #f5f5f5; /* Sehr feine Linie */
}

/* Linker und mittlerer Block enger zusammen */
.pfafi-authorbox--compact .pfafi-authorbox-left,
.pfafi-authorbox--compact .pfafi-authorbox-center {
    gap: 8px; /* Abstand Bild zu Text verringert */
    margin-right: 0; /* Alten Margin entfernen */
}

/* Bilder: Ultra-Klein (Avatar-Größe) */
.pfafi-authorbox--compact .pfafi-authorbox-image {
    width: 35px !important;  /* Vorher 32px */
    height: 35px !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

/* Text-Container enger */
.pfafi-authorbox--compact .pfafi-authorbox-text {
    line-height: 1.1;
    justify-content: center;
}

/* Namen (Autor/Checker): ca. 13px */
.pfafi-authorbox--compact strong {
    font-size: 15px; 
    font-weight: 700;
    color: #333;
}

/* Labels (Von, Geprüft): ca. 10px, Uppercase für Lesbarkeit */
.pfafi-authorbox--compact .pfafi-label,
.pfafi-authorbox--compact .pfafi-verified,
.pfafi-authorbox--compact .pfafi-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 1px;
}

/* Icon winzig machen */
.pfafi-authorbox--compact .pfafi-check-icon {
    width: 10px;
    height: 10px;
    margin-right: 2px;
}

/* Datum Block: Dezent rechts oder angehängt */
.pfafi-authorbox--compact .pfafi-authorbox-right {
    margin-left: auto; 
    padding-left: 15px;
    border-left: 1px solid #eee;
    
    /* Datum selbst kleiner */
    font-size: 11px;
    color: #999;
}

/* --- MOBILE OPTIMIERUNG (Compact) --- */
@media (max-width: 768px) {
    .pfafi-authorbox--compact {
        gap: 15px;
        flex-wrap: wrap;
    }

    /* Bilder mobil anzeigen (da sie jetzt so klein sind, stören sie nicht) */
    .pfafi-authorbox--compact .pfafi-authorbox-image {
        display: block !important;
    }

    /* Datum in neue Zeile, wenn kein Platz */
    .pfafi-authorbox--compact .pfafi-authorbox-right {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        width: 100%;
        margin-top: -5px;
    }
}

/* =========================================
   PFAFI HERO SEARCH & LIVE DROPDOWN
   ========================================= */

.pfafi-hero-search-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
    /* Angehängt am Ende: Hier steuern wir den Abstand */
    margin: 30px 0 0 0; 
    z-index: 100; /* Muss über dem restlichen Content liegen */
}

/* --- Input Container (7px Radius) --- */
.pfafi-search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    
    /* HIER: Deine gewünschten 7px */
    border-radius: 7px; 
    
    padding: 6px 15px; /* Kompakter */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Dezenter Schatten */
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    gap: 12px;
}

.pfafi-search-input-group:focus-within {
    border-color: var(--pfafi-green-primary, #2b8a3e);
    box-shadow: 0 4px 15px rgba(43, 138, 62, 0.15);
}

/* Icon */
.pfafi-search-input-group .pfafi-search-icon {
    display: flex;
    color: var(--pfafi-green-primary, #2b8a3e);
    flex-shrink: 0;
    width: 20px;
}

/* Input Feld */
input.pfafi-hero-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    flex-grow: 1;
    width: auto !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Clear "X" Button */
.pfafi-search-clear {
    cursor: pointer;
    color: #999;
    font-weight: bold;
    padding: 0 5px;
    transition: color 0.2s;
}
.pfafi-search-clear:hover { color: #d00; }


/* --- LIVE DROPDOWN (Die Magie) --- */
.pfafi-search-results {
    display: none; /* Standardmäßig versteckt */
    position: absolute;
    top: calc(100% + 8px); /* 8px Abstand unter der Leiste */
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 7px; /* Auch hier konsistent 7px */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    overflow: hidden;
    z-index: 999;
}

/* Einzelnes Ergebnis */
.pfafi-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s ease;
    color: #333;
}

.pfafi-result-item:last-child {
    border-bottom: none;
}

.pfafi-result-item:hover {
    background-color: #f0fdf4; /* Pfafi Pale Green */
    color: var(--pfafi-green-primary, #2b8a3e);
}

/* Ergebnis Text Styles */
.pfafi-result-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    opacity: 0.6;
}

.pfafi-result-text {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.pfafi-result-text strong {
    color: var(--pfafi-green-primary, #2b8a3e);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.pfafi-result-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: var(--pfafi-green-primary, #2b8a3e);
    font-weight: bold;
}

.pfafi-result-item:hover .pfafi-result-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* "Keine Ergebnisse" State */
.pfafi-no-match {
    padding: 15px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pfafi-hero-search-wrapper {
        margin-top: 20px;
    }
}
.glossar-letter {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00a36d;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: .4rem;
}

.glossar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.glossar-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  border: 1px solid #e9e9e9;
  transition: all 0.35s ease;
}

.glossar-card:hover {
  background-color: #42A546; /* Pfafi-Grün */
  border-color: #42A546;
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 163, 109, 0.25);
	}

.glossar-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
	
.glossar-card p {
  font-size: 12px; /* 👈 Standardmäßig 12 px für Excerpts */
  line-height: 1.6;
  color: #555;
  transition: color 0.3s ease;
}

.glossar-card:hover h3,
.glossar-card:hover p {
  color: #fff; /* Weißer Text bei Hover */
}

.glossar-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* =======================================================
    🎨 Pfafi.de – Ratgeber Content Styling
    Ziel: Modernes, konsistentes Design für UL & OL-Listen
    Ort: Im CSS-Widget beim Post-Content des Ratgebers
    ======================================================= */

/* --- Basis-Styling für den Content-Bereich --- */
.ratgeber-content {
  line-height: 1.8;
  color: #333;
  font-size: 1.05rem;
}

/* --- Ungeordnete Listen (Bullets) --- */
.ratgeber-content ul {
  list-style: none; /* Standardpunkte entfernen */
  padding-left: 1.2rem;
  margin: 1rem 0;
}

.ratgeber-content ul li {
  position: relative;
  padding-left: 1.8rem; /* Platz für den grünen Bullet */
  margin-bottom: 0.6rem;
}

/* Grüner, moderner Bullet */
.ratgeber-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: #5acc5a;
  border-radius: 50%; /* rund */
}

/* --- Geordnete Listen (Nummern) --- */
.ratgeber-content ol {
  list-style: none; /* Standardnummerierung entfernen */
  counter-reset: pfafi-counter;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.ratgeber-content ol li {
  position: relative;
  padding-left: 2.3rem; /* Platz für den Kreis mit Zahl */
  margin-bottom: 0.8rem;
  counter-increment: pfafi-counter;
}

/* Nummer im grünen Kreis */
.ratgeber-content ol li::before {
  content: counter(pfafi-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: rgba(90, 204, 90, 0.12); /* dezenter grüner Kreis */
  color: #5acc5a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}


/* ==========================================================
   Blog Infobox – Glühbirne auf eigener Zeile
   ========================================================== */

.blog_infobox {
  background-color: #f0fdf4; /* sehr helles Grün */
  border-left: 5px solid #38a169;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

/* Hover-Effekt beibehalten */
.blog_infobox:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Titel / Text */
.blog_infobox strong {
  color: #2f855a;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Glühbirne oben auf eigener Zeile */
.blog_infobox::before {
  content: "💡";
  display: block;              /* jetzt eigene Zeile */
  font-size: 1.6rem;
  margin-bottom: 0.6rem;       /* Abstand zur Textzeile */
  text-align: left;            /* oder center, wenn du es mittig möchtest */
  color: #38a169;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  .blog_infobox {
    padding: 1.25rem;
    font-size: 0.95rem;
  }
}
/* ==========================================================
    Moderne Tabellen im QB Berichte-Design (Pfafi)
    Nur innerhalb von #qb-content
    ========================================================== */

#qb-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Tabellenkopf */
#qb-content table thead {
  background-color: #42A546; /* helles Pfafi-Grün */
  color: #fff !important;
  font-weight: 600;
  text-align: left;
}

#qb-content table th {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

/* Tabelleninhalt */
#qb-content table td {
  padding: 0.9rem 1rem;
  color: #fff;
  vertical-align: middle;
  border: none; /* keine klassischen Linien */
}

/* Abwechselnde Zeilenfarben */
#qb-content table tbody tr:nth-child(odd) {
  background-color: #f9fcfa; /* ganz helles Grün */
}

#qb-content table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* Hover-Effekt für moderne UX */
.ratgeber-content table tbody tr:hover {
  background-color: #f0fdf4; /* minimal kräftiger Grünton beim Hover */
  transition: background-color 0.2s ease-in-out;
}

/* Erste Spalte leicht betonen */
#qb-content table td:first-child {
  font-weight: 500;
  color: #000;
}

/* Mobile Darstellung optimieren */
@media (max-width: 768px) {
#qb-content table,
#qb-contentt thead,
#qb-content tbody,
#qb-content th,
#qb-content td,
#qb-content tr {
    display: block;
  }

#qb-content thead {
    display: none;
  }

#qb-content tr {
    margin-bottom: 1rem;
    background: #f9fcfa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  }

#qb-content td {
    padding: 0.7rem 1rem;
    text-align: right;
    position: relative;
  }

#qb-content td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: 50%;
    padding-right: 10px;
    font-weight: 600;
    text-align: left;
    color: #2f855a;
  }
}

/* Chip-Design allgemein */
#qb-content .number-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* positive Werte */
#qb-content .number-chip.positive {
  background-color: #e6f4ea;
  color: #000;
}

/* negative Werte */
#qb-content .number-chip.negative {
  background-color: #fdecea;
  color: #b00020;
}

/* neutrale Werte */
#qb-content .number-chip.neutral {
  background-color: #f5f5f5;
  color: #444;
}

/* --- Blaue Box für Rechenformeln (passend zur grünen Infobox) --- */

/* Hauptcontainer für die Rechen-Box */
.rechen-box {
  background-color: #f0f7ff; /* Sehr helles, dezentes Blau */
  border-left: 5px solid #7aade9; /* Sanfter blauer Akzentstreifen, passend zum Grün-Beispiel */
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 8px; /* Abgerundete Ecken wie bei Ihrer Infobox */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Titel für die Rechen-Box */
.rechen-box .rechen-box-title {
  font-weight: 600;
  font-size: 1.1em;
  color: #34495e; /* Weiches Dunkelblau */
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6e8ff; /* Leichte Trennlinie */
}

/* Flex-Container für den Formel-Inhalt */
.rechen-box .rechen-box-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.2em;
  color: #34495e;
  flex-wrap: wrap;
  gap: 15px;
}

/* Stil für die Beschriftungen (z.B. '=') */
.rechen-box .rechen-box-label {
  font-weight: 500;
}

/* Container für den Bruch (Zähler/Nenner) */
.rechen-box .fraction {
  display: inline-flex;
  flex-direction: column;
  text-align: center;
  vertical-align: middle;
}

/* Zähler (oben) */
.rechen-box .numerator {
  padding: 0 8px;
  border-bottom: 2px solid #34495e;
}

/* Nenner (unten) */
.rechen-box .denominator {
  padding: 0 8px;
}

/* Blockquote-Styling im Ratgeber */
.ratgeber-content blockquote {
  font-size: 16px;
  font-style: italic;
  color: #444;
  background: #f8faf8;
  border-left: 4px solid #9bc4a0;
  margin: 1.5em 0;
  padding: 1em 1.25em;
  border-radius: 6px;
  line-height: 1.6;
  position: relative;
}

/* Zitatzeichen optional – dezente optische Note */
.ratgeber-content blockquote::before {
  content: "“";
  font-family: Georgia, serif;
  color: #a9c9ad;
  font-size: 3em;
  position: absolute;
  left: 10px;
  top: -10px;
  line-height: 1;
  opacity: 0.2;
}

/* Quelle oder Verweis innerhalb des Zitats */
.ratgeber-content blockquote cite {
  display: block;
  margin-top: 0.75em;
  font-size: 14px;
  color: #6b6b6b;
  font-style: normal;
  text-align: right;
}

/* =======================================================
   Quartalsberichte Übersicht Design
   ======================================================= */

/* Hauptcontainer für Filter und Suche */
.pfafi-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center; /* Korrektur: Vertikale Ausrichtung */
}

/* Container nur für die Filter-Buttons */
.pfafi-filterbar.dropdown-style {
    display: flex;
    gap: 1rem;
}


/* Container rechtsbündig wie gehabt */
.pfafi-search-bar {
  position: relative;
  width: 280px;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  z-index: 1;
}

/* Icon bleibt sichtbar in allen States */
.pfafi-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #2b8a3e;
  pointer-events: none;
  z-index: 4; /* über Input & Ripples */
  transition: color .3s ease, transform .3s ease;
}

/* Input unverändert */
#pfafi-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  border: 2px solid #2b8a3e;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: #1a1a1a;
  transition: all .3s ease-in-out;
  position: relative;
  z-index: 2;
}

/* 🌊 Dunklere, sichtbare Wellen – eigene Ebene, exakt über dem Input geklippt */
.pfafi-search-ripples {
  position: absolute;
  inset: 0;                 /* gleiche Größe wie Input */
  border-radius: 12px;      /* Clip auf Input-Radius */
  overflow: hidden;         /* Wellen bleiben im Feld */
  pointer-events: none;     /* blockiert keine Klicks */
  z-index: 3;               /* über Input, unter Icon */
  mix-blend-mode: multiply; /* dezenter auf Weiß */
}

/* Zwei versetzte Ripple-Kreise, Startpunkt direkt unter dem Icon */
.pfafi-search-ripples::before,
.pfafi-search-ripples::after {
  content: "";
  position: absolute;
  left: 2.4rem;             /* unter dem 🔍 */
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.5);
  background: radial-gradient(circle, rgba(18, 94, 36, 0.55) 0%, rgba(18, 94, 36, 0) 70%);
  animation: pfafi-wave-ripple 4.2s ease-in-out infinite;
  opacity: .85;             /* dunkler = sichtbarer */
}

.pfafi-search-ripples::after {
  animation-delay: 2.1s;
  background: radial-gradient(circle, rgba(30, 130, 52, 0.45) 0%, rgba(30, 130, 52, 0) 78%);
  opacity: .75;
}

/* Ripple-Animation – größer & dunkler für weißen Hintergrund */
@keyframes pfafi-wave-ripple {
  0%   { transform: translate(-50%, -50%) scale(.55); opacity: .85; }
  45%  { transform: translate(-50%, -50%) scale(4.8); opacity: .18; }
  70%  { transform: translate(-50%, -50%) scale(6.5); opacity: .08; }
  100% { transform: translate(-50%, -50%) scale(.55); opacity: 0; }
}

/* Hover/Fokus (deine bestehenden States bleiben erhalten) */
.pfafi-search-bar:hover #pfafi-search-input {
  border-color: #ff9933;
  background: linear-gradient(145deg, #fff8f2, #ffffff);
  box-shadow: 0 0 10px rgba(255,153,51,.25), 0 0 8px rgba(43,138,62,.25);
}
.pfafi-search-bar:hover .pfafi-search-icon {
  color: #ff9933; transform: translateY(-50%) scale(1.1);
}
#pfafi-search-input:focus {
  outline: none;
  border-color: #2b8a3e;
  box-shadow: 0 0 14px rgba(43,138,62,.35), 0 0 8px rgba(255,140,0,.18);
  background: #fff;
}
.pfafi-search-bar:focus-within .pfafi-search-icon { color:#2b8a3e; }

/* Mobile */
@media (max-width: 768px) {
  .pfafi-search-bar { width: 100%; margin-left: 0; }
}

/* =======================================================
   Filter Drop Down Styling
======================================================= */

.pfafi-filter-dropdown {
    position: relative;
}

.pfafi-filter-toggle {
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    color: #222;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    width: 100%;
    text-align: left;
}

.pfafi-filter-toggle:hover,
.pfafi-filter-dropdown.active .pfafi-filter-toggle {
    background: #2b8a3e;
    color: #fff;
    border-color: #2b8a3e;
}

.pfafi-filter-options {
    display: none; 
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(15,20,30,0.1);
    z-index: 40;
    
    grid-template-columns: repeat(3, auto);
    gap: 0.5rem 1rem;
    min-width: 300px;
}

.pfafi-filter-dropdown[data-filter="quartal"] .pfafi-filter-options {
    grid-template-columns: 1fr;
    min-width: 180px;
}

.pfafi-filter-dropdown.active .pfafi-filter-options {
    display: grid; 
}

.pfafi-filter-label {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-weight: 500;
}

.pfafi-filter-label:hover {
    background-color: #f5f5f5;
}

.pfafi-filter-label input[type="checkbox"] {
    display: none;
}

.pfafi-filter-label span {
    position: relative;
    padding-left: 28px;
}

.pfafi-filter-label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.pfafi-filter-label input:checked + span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
}

.pfafi-filter-label input:checked + span::before {
    background-color: #2b8a3e;
    border-color: #2b8a3e;
}

.pfafi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pfafi-year {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.4rem;
}

.pfafi-year-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: #222;
}

.pfafi-entry {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.4rem 0;
}

.pfafi-chip {
    background: #f4f4f4;
    color: #222;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.83rem;
    border: 1px solid #ddd;
    flex-grow: 1;
    text-align: center;
}

.pfafi-chip:hover {
    background: #2b8a3e;
    color: #fff !important;
    border-color: #2b8a3e;
}

/* =======================================================
   📥 QB Download-Icon (individuelles Icon mit Hover-Farben)
   ======================================================= */

.pfafi-icon.pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #2b8a3e; /* Pfafi-Grün im Normalzustand */
  border: none;
  transition: all 0.25s ease-in-out;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Icon-Bild einsetzen */
.pfafi-icon.pdf::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/downloading.png');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1); /* Weißes Icon auf Grün */
  transition: filter 0.25s ease;
}

/* Hover-Zustand: Orange + Weißer Glow */
.pfafi-icon.pdf:hover {
  background-color: #ff9933; /* Orange beim Hover */
  box-shadow: 0 0 10px rgba(255,153,51,0.4);
  transform: translateY(-2px);
}

.pfafi-icon.pdf:hover::before {
  filter: brightness(1) invert(0); /* Originalfarbe auf Orange */
}

/* Optional: sanfter Klick-Effekt */
.pfafi-icon.pdf:active {
  transform: scale(0.95);
}

/* --- RESPONSIVE ANPASSUNGEN für Quartalsberichte --- */
@media(max-width:760px) {
    .pfafi-filter-container {
        flex-direction: column;
        align-items: stretch; /* Volle Breite für alle Elemente */
    }
    
.pfafi-filterbar.dropdown-style {
  overflow: visible !important;
  z-index: 50 !important;
  position: relative !important;
}


/* =======================================================
   Styling für Suchergebnisse der Quartalsberichte
   ======================================================= */

/* Layout-Anpassung für den Ergebnis-Container */
.pfafi-entry.is-search-result {
    /* Ändert die Anordnung von horizontal zu vertikal */
    flex-direction: column; 
    align-items: stretch; /* Elemente auf volle Breite strecken */
    gap: 0.8rem; /* Abstand zwischen Titel-Zeile und Snippet */
}

/* Header-Zeile mit Chip und Icon */
.pfafi-entry-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Der Textausschnitt (Snippet) */
.pfafi-search-excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #eee;
}

/* Die Texthervorhebung */
.search-highlight {
    background-color: #d4edda; /* Sanftes Grün, passend zum Design */
    color: #155724;
    font-weight: 600;
    padding: 1px 3px;
    border-radius: 3px;
}
	
	/* =========================================
   PFAFI SIMPLE RATING
   ========================================= */

.pfafi-rating-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: var(--pfafi-radius, 12px);
    text-align: center;
    margin: 30px 0;
    border: 1px solid #eee;
}

.pfafi-rating-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--pfafi-text, #1a1a1a);
}

/* Flexbox um die Reihenfolge der Sterne visuell zu steuern */
.pfafi-stars {
    display: inline-flex;
    flex-direction: row-reverse; /* Wichtig für den Hover-Effekt */
    gap: 5px;
    cursor: pointer;
}

.pfafi-star {
    font-size: 2.5rem;
    color: #ddd; /* Grau inaktiv */
    transition: color 0.2s;
    line-height: 1;
}

/* Hover-Logik: Wegen row-reverse werden alle folgenden (optisch linken) Sterne auch gefärbt */
.pfafi-star:hover,
.pfafi-star:hover ~ .pfafi-star {
    color: var(--pfafi-orange, #ff9933); /* Orange beim Hover */
}

/* Klick-Animation (optional via JS Klasse, hier Basis) */
.pfafi-star:active {
    transform: scale(0.9);
}

/* Erfolgsmeldung */
.pfafi-rating-message {
    margin-top: 10px;
    color: var(--pfafi-green-primary, #2b8a3e);
    font-weight: 700;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
	
	/* Update für Rating Stats */
.pfafi-rating-stats {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Zustand: Bereits abgestimmt (deaktiviert Sterne) */
.pfafi-rating-wrapper.has-voted .pfafi-stars {
    pointer-events: none; /* Klicks deaktivieren */
    opacity: 0.6; /* Ausgegraut */
}

.pfafi-rating-wrapper.has-voted .pfafi-rating-label {
    display: none; /* Frage ausblenden, da beantwortet */
}

/* =======================================================
   Ratgeber-Quellen (finale Version)
   ======================================================= */
.ratgeber-quellen {
  margin-top: 2.5rem;
}

.ratgeber-quellen-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  border: none;
}

.ratgeber-quellen-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.ratgeber-quellen-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: #111;
}

.ratgeber-quellen-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.ratgeber-quellen-list a {
  color: #2b8a3e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ratgeber-quellen-list a:hover {
  color: #1a5828;
  text-decoration: underline;
}

/* Key Takeaways Gutenberg */
:root{
  --pf-green:#0b5;          /* CI-Grün anpassen */
  --pf-bg:#f6fbf7;          /* zarter Hintergrund */
  --pf-border:#d9f1e0;
  --pf-text:#1f2937;
  --pf-radius:14px;
  --pf-shadow:0 6px 18px rgba(11,85,51,.08);
}
.pf-kt{
  background:var(--pf-bg);
  border:1px solid var(--pf-border);
  border-radius:var(--pf-radius);
  box-shadow:var(--pf-shadow);
  padding:18px 20px;
  color:var(--pf-text);
}
.pf-kt>h2{ margin:0 0 10px; font-size:1.1rem; line-height:1.3 }
.pf-kt>ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px }
.pf-kt>ul>li{ position:relative; padding-left:28px }
.pf-kt>ul>li::before{
  content:""; position:absolute; left:0; top:.35em; width:18px; height:18px; border-radius:50%;
  background:radial-gradient(circle,#fff 45%, var(--pf-green) 46%);
  box-shadow:0 0 0 4px rgba(11,85,51,.12) inset;
}
@media (min-width:800px){
  .pf-kt{ padding:22px 24px }
  .pf-kt>h2{ font-size:1.15rem }
}
@media (prefers-color-scheme:dark){
  :root{ --pf-bg:#0f1914; --pf-border:#163426; --pf-text:#e6f1ea; --pf-shadow:0 6px 18px rgba(0,0,0,.25) }
}

/* Robustes Targeting: erstes H2 irgendwo in der Box */
.pf-kt h2:first-of-type{
  color:#fff !important;            /* Titel wirklich weiß */
  margin:0 0 10px;
  font-size:1.15rem;
  line-height:1.3;
  font-weight:700;
  display:flex; align-items:center; gap:10px; /* für Icon/Spacing */
}

/* Body-Text in der Box gut lesbar auf dunklem BG */
.pf-kt{ color:#e8f6ee; }            /* Standardtext in der Box heller */
.pf-kt strong{ color:#fff; }        /* wichtige Hervorhebungen noch klarer */

/* Falls du das optionale H2-Icon nutzt, hier sauber ausrichten */
.pf-kt h2:first-of-type::before{
  content:""; width:18px; height:18px; border-radius:50%;
  background:radial-gradient(circle,#fff 45%, #0b5 46%); /* grüner Dot */
  box-shadow:0 0 0 4px rgba(11,85,51,.15) inset;
}

/* Bullets bleiben grün/weiß wie bisher */
.pf-kt > ul,
.pf-kt .wp-block-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.pf-kt li{ position:relative; padding-left:28px; }
.pf-kt li::before{
  content:""; position:absolute; left:0; top:.35em; width:18px; height:18px; border-radius:50%;
  background:radial-gradient(circle,#fff 45%, #0b5 46%);
  box-shadow:0 0 0 4px rgba(11,85,51,.12) inset;
}
	
	
/* ===== Key Takeaways (hell) ===== */
:root{
  --pf-green:#0b5;            /* CI-Grün */
  --pf-green-2:#0a4;
  --pf-bg-light:#f6fbf7;      /* zartes Grün */
  --pf-border-light:#dfeee6;  /* helle Kontur */
  --pf-text:#1f2937;          /* Standard-Text */
}

.pf-kt--light{
  background:var(--pf-bg-light);
  border:1px solid var(--pf-border-light);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(11,85,51,.06);
  padding:18px 20px;
  color:var(--pf-text);
}

.pf-kt--light h2:first-of-type{
  color:#0f2a1e;              /* dunkles Grün/Anthrazit */
  margin:0 0 10px;
  font-size:1.12rem; line-height:1.3; font-weight:800;
  display:flex; align-items:center; gap:10px;
}

.pf-kt--light h2:first-of-type::before{
  content:""; width:14px; height:14px; border-radius:50%;
  background:radial-gradient(circle,#fff 45%, var(--pf-green) 46%);
  box-shadow:0 0 0 3px rgba(11,85,51,.10) inset;
}

.pf-kt--light ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px }
.pf-kt--light li{ position:relative; padding-left:26px }
.pf-kt--light li::before{
  content:""; position:absolute; left:0; top:.42em; width:14px; height:14px; border-radius:50%;
  background:radial-gradient(circle,#fff 45%, var(--pf-green) 46%);
  box-shadow:0 0 0 3px rgba(11,85,51,.12) inset;
}

/* Responsive Feinschliff */
@media (min-width:800px){
  .pf-kt--light{ padding:22px 24px }
  .pf-kt--light h2:first-of-type{ font-size:1.18rem }
}


