/* ============================================
   RATGEBER-SYSTEM - CSS
   Basierend auf migrando.de Design
   ============================================ */

:root {
    --ratgeber-primary: #6f42c1;
    --ratgeber-secondary: #6c757d;
    --ratgeber-success: #28a745;
    --ratgeber-info: #17a2b8;
    --ratgeber-warning: #ffc107;
    --ratgeber-danger: #dc3545;
    --ratgeber-light: #f8f9fa;
    --ratgeber-dark: #343a40;
    --ratgeber-text: #333;
    --ratgeber-text-light: #666;
    --ratgeber-border: #ddd;
}

/* =================
   ÜBERSICHTSSEITE
   ================= */

.ratgeber-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    padding-top:calc(var(--abstand_oben) + var(--social_bar) + 40px);
}

/* Header der Übersichtsseite */
.ratgeber-header {
    text-align: center;
    padding: 40px 20px;
    background: var(--rot);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
}

.ratgeber-header h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.ratgeber-header p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.95;
}

/* Kategorien-Navigation */
.kategorie-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--kategorie-navigation-bg, var(--ratgeber-light));
    border-radius: 8px;
}

.kategorie-btn {
    padding: 12px 24px;
    border: 2px solid var(--ratgeber-border);
    border-radius: 25px;
    background: white;
    color: var(--ratgeber-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kategorie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--rot);
    color: var(--rot);
}

.kategorie-btn.active {
    background: var(--rot);
    color: white;
    border-color: var(--rot);
}

.kategorie-btn .icon {
    font-size: 1.2em;
}

/* Such- und Filterleiste */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--ratgeber-text);
    white-space: nowrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--ratgeber-border);
    border-radius: 25px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--rot);
    box-shadow: 0 0 0 3px rgba(var(--rot-rgb, 220, 53, 69), 0.1);
}

.search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: var(--ratgeber-text-light);
    pointer-events: none;
}

/* Artikel-Grid */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Artikel-Card */
.artikel-card {
    background: var(--artikel-card-bg, white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.artikel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.artikel-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.artikel-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artikel-kategorie-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--ratgeber-light);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--ratgeber-text);
    margin-bottom: 12px;
    width: fit-content;
}

.artikel-card-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--artikel-card-title-color, var(--ratgeber-dark));
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.artikel-card-teaser {
    font-size: 0.95em;
    color: var(--ratgeber-text-light);
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.artikel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--ratgeber-border);
    font-size: 0.85em;
    color: var(--ratgeber-text-light);
}

.artikel-datum {
    display: flex;
    align-items: center;
    gap: 5px;
}

.artikel-autor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.artikel-autor-bild {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* =================
   EINZELARTIKEL
   ================= */

.artikel-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

/* Header */
.artikel-header {
    position: relative;
    margin-bottom: 30px;
}

.artikel-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

.artikel-meta-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 30px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.9em;
    color: var(--ratgeber-text-light);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--rot);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--ratgeber-border);
}

/* Veröffentlichungsdatum */
.veroeffentlicht-datum {
    font-size: 0.9em;
    color: var(--ratgeber-text-light);
    margin-bottom: 20px;
}

/* Titel */
.artikel-titel {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    line-height: 1.2;
    margin: 0 0 20px 0;
}

/* Teaser/Einleitung */
.artikel-intro {
    font-size: 1.15em;
    line-height: 1.7;
    color: var(--ratgeber-text);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Autoren-Box */
.autoren-box {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    background-color: var(--ratgeber-light);
    border-radius: 10px;
    margin-bottom: 25px;
}

.autor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 250px;
}

.autor-item-bild {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.autor-item-info {
    flex: 1;
}

.autor-item-label {
    font-size: 0.8em;
    color: var(--ratgeber-text-light);
    margin-bottom: 4px;
}

.autor-item-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 0;
}

.autor-item-rolle {
    font-size: 0.9em;
    color: var(--ratgeber-text-light);
    margin: 0;
}

/* Share-Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.share-buttons span {
    font-weight: 600;
    color: var(--ratgeber-text);
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ratgeber-light);
    color: var(--ratgeber-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.share-button:hover {
    transform: scale(1.1);
    background-color: var(--rot);
    color: white;
}

/* Inhaltsverzeichnis */
.inhaltsverzeichnis {
    background-color: var(--ratgeber-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.inhaltsverzeichnis h2 {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: var(--ratgeber-dark);
}

.inhaltsverzeichnis ol {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    counter-reset: toc-counter;
}

.inhaltsverzeichnis li {
    counter-increment: toc-counter;
    margin-bottom: 8px;
}

.inhaltsverzeichnis li::before {
    content: counter(toc-counter) ". ";
    font-weight: bold;
    color: var(--rot);
}

.inhaltsverzeichnis a {
    color: var(--ratgeber-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.inhaltsverzeichnis a:hover {
    color: var(--rot);
}

/* Artikel-Content */
.artikel-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--ratgeber-text);
}

.artikel-content h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--artikel-content-h2-color, var(--color_welcome));
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ratgeber-light);
}

.artikel-content h3 {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 30px 0 15px 0;
}

.artikel-content h4 {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 25px 0 12px 0;
}

.artikel-content p {
    margin: 0 0 20px 0;
}

.artikel-content ul,
.artikel-content ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.toc-list .artikel-content li {
    margin-bottom: 0px;
}

.artikel-content a {
    color: var(--artikel-content-link-color, var(--rot));
    text-decoration: underline;
}

.artikel-content a:hover {
    color: var(--artikel-content-link-hover-color, #5a32a3);
}

.artikel-content strong {
    font-weight: 700;
    color: var(--ratgeber-dark);
}

/* Wichtig-Box */
.wichtig-box {
    background-color: #e7f1ff;
    border-left: 4px solid var(--rot);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.wichtig-box h3 {
    margin-top: 0;
    color: var(--rot);
}

/* Zusammenfassung-Box */
.zusammenfassung-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.zusammenfassung-box h3 {
    color: white;
    margin-top: 0;
}

.zusammenfassung-box ul {
    margin: 0;
}

.zusammenfassung-box li {
    margin-bottom: 12px;
}

/* Experten-Tipp Box */
.experten-tipp {
    background-color: #fff9e6;
    border: 2px solid var(--ratgeber-warning);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.experten-tipp::before {
    content: "💡 Experten-Tipp";
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: #856404;
    margin-bottom: 10px;
}

.experten-tipp-autor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.experten-tipp-autor-bild {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.experten-tipp-autor-info {
    flex: 1;
}

.experten-tipp-autor-name {
    font-weight: bold;
    margin: 0;
    color: var(--ratgeber-dark);
}

.experten-tipp-autor-rolle {
    font-size: 0.9em;
    color: var(--ratgeber-text-light);
    margin: 0;
}

/* Bilder im Content */
.artikel-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

.artikel-content figure {
    margin: 30px 0;
}

.artikel-content figcaption {
    text-align: center;
    font-size: 0.9em;
    color: var(--ratgeber-text-light);
    font-style: italic;
    margin-top: 10px;
}

/* Zwei-Spalten Layout */
.zwei-spalten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

/* CTA-Box */
.cta-box {
    background: linear-gradient(135deg, var(--block-cta-bg, var(--rot)) 0%, var(--block-cta-bg2, #5a32a3) 100%);
    color: var(--block-cta-text-color, white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: var(--block-cta-h3-color, var(--block-cta-text-color, white));
    margin-top: 0;
    font-size: 1.8em;
}

.cta-box p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--block-cta-text-color, white);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--cta-button-bg, white);
    color: var(--cta-button-color, var(--rot));
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* FAQ-Bereich */
.faq-container {
    margin: 40px 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--ratgeber-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-frage {
    padding: 20px;
    background-color: var(--ratgeber-light);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-frage:hover {
    background-color: #e9ecef;
}

.faq-icon,
.faq-toggle {
    font-size: 1.2em;
    transition: transform 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.faq-item.active .faq-icon,
.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-antwort {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-antwort {
    padding: 20px;
    max-height: 500px;
}

/* Footer-Bereich */
.artikel-footer {
    display: none; /* Ausgeblendet - wird später neu gestaltet */
}

.artikel-footer-share {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.artikel-footer-share > div:first-child {
    flex: 1;
    min-width: 200px;
}

.artikel-footer-share > div:first-child strong {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--ratgeber-text);
}

.feedback-box {
    flex: 1;
    min-width: 250px;
    padding: 20px 25px;
    background-color: var(--ratgeber-light);
    border-radius: 10px;
    text-align: left;
}

.feedback-box p {
    margin: 0 0 10px 0;
    color: var(--ratgeber-text);
    line-height: 1.6;
}

.feedback-box p:last-child {
    margin-bottom: 0;
}

.feedback-box strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ratgeber-text);
    font-size: 1.05em;
}

.feedback-box a {
    color: var(--rot);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.feedback-box a:hover {
    color: var(--rot);
    text-decoration: underline;
}

/* Verwandte Artikel */
.verwandte-artikel {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: var(--ratgeber-light);
}

.verwandte-artikel h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.verwandte-artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ratgeber-header h1 {
        font-size: 1.8em;
    }
    
    .artikel-grid {
        grid-template-columns: 1fr;
    }
    
    .zwei-spalten {
        grid-template-columns: 1fr;
    }
    
    .artikel-titel {
        font-size: 1.8em;
    }
    
    .artikel-header-image {
        height: 250px;
    }
    
    .kategorie-navigation {
        flex-direction: column;
    }
    
    .autoren-box {
        flex-direction: column;
    }
    
    .artikel-footer-share {
        flex-direction: column;
        gap: 20px;
    }
    
    .artikel-footer-share > div:first-child,
    .feedback-box {
        min-width: 100%;
        width: 100%;
    }
    
    .feedback-box {
        text-align: center;
    }
}

/* Loading und Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artikel-card {
    animation: fadeIn 0.5s ease-out;
}

.artikel-card:nth-child(1) { animation-delay: 0.1s; }
.artikel-card:nth-child(2) { animation-delay: 0.2s; }
.artikel-card:nth-child(3) { animation-delay: 0.3s; }

/* ===============================================
   CONTENT BLOCKS - Umfassende Block-Typen
   =============================================== */

/* Container für alle Content-Blöcke */
.content-block {
    margin-bottom: 40px;
}

/* ========== INHALTSVERZEICHNIS (TOC) ========== */
.block-toc {
    background: linear-gradient(135deg, var(--block-toc-bg1, #f0f4ff) 0%, var(--block-toc-bg2, #ffffff) 100%);
    border: 2px solid var(--toc-border-color, #d0e0ff);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--toc-border-color, #d0e0ff);
}

.toc-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--toc-title-color, #1e3a8a);
    margin: 0;
}

.toc-icon {
    font-size: 1.5em;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 12px;
}

.toc-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    color: var(--toc-item-color, #1e40af);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.5;
}

.toc-item a:hover {
    background: var(--toc-item-hover-bg, white);
    color: var(--rot);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toc-number {
    font-weight: bold;
    color: var(--toc-number-color, #1e3a8a);
    min-width: 25px;
    font-size: 1.1em;
}

.toc-item.toc-level-2 {
    margin-left: 20px;
}

.toc-item.toc-level-2 a {
    font-size: 0.95em;
    font-weight: normal;
}

.toc-item.toc-level-3 {
    margin-left: 40px;
}

.toc-item.toc-level-3 a {
    font-size: 0.9em;
    font-weight: normal;
    color: var(--toc-level-3-color, #64748b);
}

/* Sticky TOC für Desktop */
@media (min-width: 1200px) {
    .block-toc.sticky {
        position: sticky;
        top: 100px;
        z-index: 100;
    }
}

/* ========== DAS WICHTIGSTE IN KÜRZE ========== */
.block-summary {
    color: var(--summary-text-color, var(--color-welcome));
    background: var(--block-summary-bg, var(--bg-welcome));
    border-radius: 15px;
    padding: 35px 40px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
}

.block-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.summary-icon {
    font-size: 2.5em;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.summary-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--summary-title-color, white)!important;
    margin: 0;
}

.summary-content {
    position: relative;
    z-index: 1;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: var(--summary-item-bg, rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 15px;
    color: var(--summary-text-color, white);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.summary-item:hover {
    filter: brightness(1.08);
    transform: translateX(5px);
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-check {
    font-size: 1.5em;
    flex-shrink: 0;
    background: var(--summary-check-bg, var(--bg-welcome));
    color: var(--summary-check-color, #ffffff);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.summary-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.summary-text .summary-label {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: var(--summary-label-color, var(--summary-text-color, white));
}

.summary-text .summary-content-text {
    display: block;
    background: var(--summary-item-bg, rgba(255, 255, 255, 0.4));
    padding: 8px 12px;
    margin-top: 6px;
    border-radius: 6px;
}

/* ========== EXPERTEN-TIPP BOX (wie Screenshot 3) ========== */
.block-expert-tip {
    background: linear-gradient(135deg, var(--expert-tip-bg1, #f0fdf4) 0%, var(--expert-tip-bg2, #dcfce7) 100%);
    border: 2px solid var(--expert-tip-border-color, #86efac);
    border-left: 6px solid var(--expert-tip-border-left-color, #22c55e);
    border-radius: 12px;
    padding: 30px 35px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
    position: relative;
}

.expert-tip-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.expert-tip-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--expert-tip-avatar-border-color, #22c55e);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.expert-tip-label {
    flex: 1;
}

.expert-tip-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--expert-tip-title-color, #166534);
    margin: 0 0 5px 0;
}

.expert-tip-subtitle {
    font-size: 0.95em;
    color: var(--expert-tip-subtitle-color, #15803d);
    margin: 0;
}

.expert-tip-content {
    color: var(--expert-tip-content-color, #166534);
    line-height: 1.8;
    font-size: 1.05em;
}

.expert-tip-content p {
    margin: 0 0 15px 0;
}

.expert-tip-content p:last-child {
    margin-bottom: 0;
}

.expert-tip-quote {
    font-style: italic;
    padding-left: 20px;
    border-left: 3px solid var(--expert-tip-quote-border-color, #22c55e);
    margin: 20px 0;
    color: var(--expert-tip-quote-color, #15803d);
}

/* Alternative: Blaue Variante für Info-Tipps */
.block-expert-tip.variant-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    border-left-color: #3b82f6;
}

.block-expert-tip.variant-info .expert-tip-avatar {
    border-color: #3b82f6;
}

.block-expert-tip.variant-info .expert-tip-title {
    color: #1e40af;
}

.block-expert-tip.variant-info .expert-tip-subtitle {
    color: #1e3a8a;
}

.block-expert-tip.variant-info .expert-tip-content {
    color: #1e40af;
}

.block-expert-tip.variant-info .expert-tip-quote {
    border-left-color: #3b82f6;
    color: #1e3a8a;
}

/* Responsive Anpassungen für die neuen Blöcke */
@media (max-width: 768px) {
    .block-toc {
        padding: 20px;
    }
    
    .toc-title {
        font-size: 1.2em;
    }
    
    .toc-item.toc-level-2 {
        margin-left: 10px;
    }
    
    .toc-item.toc-level-3 {
        margin-left: 20px;
    }
    
    .block-summary {
        padding: 25px 20px;
    }
    
    .summary-title {
        font-size: 1.4em;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    
    .block-expert-tip {
        padding: 20px 25px;
    }
    
    .expert-tip-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expert-tip-avatar {
        width: 50px;
        height: 50px;
    }
}

/* ========== HERO IMAGE ========== */
.block-hero-image {
    width: 100%;
    margin-bottom: 40px;
}

.block-hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.block-hero-image .image-caption {
    text-align: center;
    font-size: 0.9em;
    color: var(--ratgeber-text-light);
    margin-top: 15px;
    font-style: italic;
}

/* ========== ALERT BOXES ========== */
.block-alert {
    padding: 20px 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 5px solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.block-alert strong {
    font-size: 1.1em;
}

.block-alert ul {
    margin: 10px 0 0 20px;
}

.block-alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.block-alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.block-alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.block-alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* ========== TWO COLUMN LAYOUT ========== */
.block-two-column {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.block-two-column.ratio-50-50 {
    grid-template-columns: 1fr 1fr;
}

.block-two-column.ratio-60-40 {
    grid-template-columns: 60% 40%;
}

.block-two-column.ratio-70-30 {
    grid-template-columns: 70% 30%;
}

.block-two-column img {
    width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .block-two-column {
        grid-template-columns: 1fr !important;
    }
}

/* ========== CHECKLIST ========== */
.block-checklist {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.block-checklist h3 {
    margin-top: 0;
    color: var(--ratgeber-dark);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checklist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--rot);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checklist-item.checked .checklist-checkbox {
    background: var(--rot);
    color: white;
}

.checklist-checkbox::after {
    content: '✓';
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checklist-item.checked .checklist-checkbox::after {
    opacity: 1;
}

.checklist-text {
    flex: 1;
    line-height: 1.6;
}

.checklist-item.checked .checklist-text {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ========== TIP BOX ========== */
.block-tip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.block-tip strong {
    font-size: 1.15em;
    display: block;
    margin-bottom: 10px;
}

.block-tip-author {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.9;
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
}

/* ========== TABLE ========== */
.block-table {
    margin: 30px 0;
    overflow-x: auto;
}

.block-table h3 {
    margin-bottom: 20px;
}

.block-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.block-table thead {
    background: var(--block-table-header-bg, var(--rot));
    color: white;
}

.block-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.block-table td {
    padding: 15px;
    border-bottom: 1px solid var(--ratgeber-border);
}

.block-table tbody tr:hover {
    background: #f8f9fa;
}

.block-table tbody tr:last-child td {
    border-bottom: none;
}

.block-table.striped tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* ========== STEPS (Schritt-für-Schritt) ========== */
.block-steps {
    margin: 40px 0;
}

.block-steps h2 {
    text-align: center;
    margin-bottom: 40px;
}

.step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% - 60px);
    background: linear-gradient(to bottom, var(--block-steps-bg, var(--rot)), transparent);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--block-steps-bg, var(--rot)) 0%, #c92a40 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    flex-shrink: 0;
}

.step-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--rot);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.step-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 0 0 15px 0;
}

.step-description {
    line-height: 1.6;
    color: var(--ratgeber-text);
}

/* ========== QUOTE / TESTIMONIAL ========== */
.block-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid var(--rot);
    margin: 40px 0;
    position: relative;
}

.block-quote::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: var(--rot);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.2em;
    line-height: 1.8;
    font-style: italic;
    color: var(--ratgeber-text);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.quote-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quote-author-info {
    flex: 1;
}

.quote-author-name {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--ratgeber-dark);
}

.quote-author-role {
    color: var(--ratgeber-text-light);
    font-size: 0.9em;
}

/* ========== STATISTICS ========== */
.block-stats {
    margin: 40px 0;
}

.block-stats h3 {
    text-align: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--rot);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 0.95em;
    color: var(--ratgeber-text);
    line-height: 1.4;
}

/* ========== CALL TO ACTION ========== */
.block-cta {
    background: linear-gradient(135deg, var(--block-cta-bg, var(--rot)) 0%, var(--block-cta-bg2, #c92a40) 100%);
    color: var(--block-cta-text-color, white);
    padding: 50px 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.3);
}

.block-cta h3 {
    font-size: 2em;
    margin: 0 0 15px 0;
    color: var(--block-cta-h3-color, var(--block-cta-text-color, white));
}

.block-cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
    color: var(--block-cta-text-color, white);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--cta-button-bg, white);
    color: var(--cta-button-color, var(--rot));
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 50px;
    text-decoration: none!important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* ========== TIMELINE ========== */
.block-timeline {
    margin: 40px 0;
}

.block-timeline h2 {
    text-align: center;
    margin-bottom: 50px;
}

.timeline-event {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-event:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 75px;
    top: 60px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, var(--block-steps-bg, var(--rot)), transparent);
}

.timeline-time {
    text-align: right;
    padding-right: 20px;
    font-weight: bold;
    color: var(--block-steps-bg, var(--rot));
    font-size: 1.1em;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-event-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 0 0 10px 0;
}

.timeline-event-description {
    color: var(--ratgeber-text);
    line-height: 1.6;
}

/* ========== COMPARISON CARDS ========== */
.block-comparison {
    margin: 40px 0;
}

.block-comparison h2 {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--rot);
}

.comparison-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
}

.comparison-title {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: var(--ratgeber-dark);
    margin-bottom: 20px;
}

.comparison-pros,
.comparison-cons {
    margin-bottom: 20px;
}

.comparison-pros h4,
.comparison-cons h4 {
    font-size: 1em;
    margin-bottom: 10px;
}

.comparison-pros h4 {
    color: #28a745;
}

.comparison-cons h4 {
    color: #dc3545;
}

.comparison-pros ul,
.comparison-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-pros li::before {
    content: '✓ ';
    color: #28a745;
    font-weight: bold;
}

.comparison-cons li::before {
    content: '✗ ';
    color: #dc3545;
    font-weight: bold;
}

.comparison-best-for {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    color: var(--ratgeber-text);
}

.comparison-best-for strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ratgeber-dark);
}

/* ========== DOWNLOAD BOX ========== */
.block-download {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.block-download h3 {
    margin-top: 0;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--ratgeber-text);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--rot);
}

.download-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.download-size {
    font-size: 0.85em;
    color: var(--ratgeber-text-light);
}

.download-arrow {
    font-size: 1.5em;
    color: var(--rot);
}

/* ========== VIDEO EMBED ========== */
.block-video {
    margin: 40px 0;
}

.block-video h3 {
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== RELATED ARTICLES ========== */
.block-related {
    margin: 60px 0;
}

.block-related h2 {
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.related-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.related-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-article-content {
    padding: 20px;
}

.related-article-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 0;
}

/* ========== AUTHOR BOX ========== */
.block-author {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 50px 0;
    align-items: center;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--ratgeber-dark);
    margin: 0 0 5px 0;
}

.author-role {
    color: var(--rot);
    font-weight: 600;
    margin-bottom: 15px;
}

.author-bio {
    line-height: 1.6;
    color: var(--ratgeber-text);
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: var(--rot);
    text-decoration: none;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.author-social a:hover {
    transform: scale(1.2);
}

/* Responsive Design für Content-Blöcke */
@media (max-width: 768px) {
    .step-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
    
    .step-item:not(:last-child)::after {
        left: 30px;
        top: 60px;
    }
    
    .timeline-event {
        grid-template-columns: 1fr;
    }
    
    .timeline-time {
        text-align: left;
        padding-right: 0;
    }
    
    .timeline-event:not(:last-child)::after {
        display: none;
    }
    
    .block-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .block-cta {
        padding: 30px 20px;
    }
    
    .block-cta h3 {
        font-size: 1.5em;
    }
}

