/**
 * Custom styles for the "Show Modules for Articles" plugin.
 *
 * Available hooks (added by the plugin around every module it renders):
 *
 *   .plg-smfa                        - every wrapper the plugin renders, regardless of position
 *   .plg-smfa-position-before        - wrapper for modules shown before the article text
 *   .plg-smfa-position-after         - wrapper for modules shown after the article text
 *   .plg-smfa-position-left          - wrapper for modules shown to the left of the article text
 *   .plg-smfa-position-right         - wrapper for modules shown to the right of the article text
 *   .plg-smfa-sticky                 - present on both the left and right wrappers (they can stick
 *                                       to the top of the viewport while scrolling)
 *   .plg-smfa-sticky.plg-smfa-stuck  - added only while a left/right module is currently pinned
 *                                       (position: fixed)
 *   .plg-smfa-sticky-placeholder     - the (empty, invisible) placeholder the plugin inserts next
 *                                       to a left/right module to reserve its layout space while it
 *                                       is pinned
 *
 * Example:
 *
 * .plg-smfa-position-right {
 *     border-radius: 10px;
 *     box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
 * }
 */
.com-content-article__body.article-showmodules { 


  .ae-content-table{ font-size:inherit; line-height:1.7; width:100%; }
  .ae-content-table td, .ae-content-table th{ font-size:inherit; line-height:inherit; padding:14px; vertical-align:top; }
  .ae-caption{ margin-top:12px; padding-top:10px; border-top:1px solid #e5e7eb; font-size:14px; line-height:1.5; color:#6b7280; text-align:center; font-style:italic; max-width:85%; margin-left:auto; margin-right:auto; }
  .ae-figure{ margin:50px 0; }
  .ae-figure img{ border-radius:10px; }
  .prose a { color: var(--main); text-decoration: underline; }
  .prose table { width:100%; margin:32px 0; border-collapse:collapse; }
  .prose th { background-color: var(--main); color:#fff; padding:12px 16px; text-align:left; font-weight:600; }
  .prose td { padding:10px 16px; vertical-align:top; border-bottom:1px solid #e5e7eb; }
  .table > :not(:first-child) {
    border-top-color: #e5e7eb;
    }
.prose h2 { 
    font-size: 26px !important; 
    color: var(--main) !important; 
    font-weight: 700 !important; 
    margin-top: 0.8em;
    scroll-margin-top: 50px; 
  }
  .prose h3, .prose h4, .prose h5, .prose h6 { 
    color: #1a1a1a !important; 
    font-weight: 800 !important; 
    margin-top: 1.5em;
    scroll-margin-top: 100px; 
  }

  .prose .ae-highlight {
    background-color: #f0fbfb; 
    border-left: 4px solid var(--main); 
    padding: 18px 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0; 
    color: #1a1a1a;
    line-height: 1.6;
  }
  
  .prose .ae-highlight p {
    margin: 0; 
  }
  
  .prose .ae-highlight strong {
    color: var(--main);
    font-weight: 700;
  }
  .keyfact { font-size: 1.15em; font-weight: 500; border-left: 4px solid var(--main); padding-left: 18px; margin: 28px 0; color: #1a1a1a; }
  .keyfact .src { display: block; font-size: 0.8em; font-weight: normal; color: #6b7280; margin-top: 8px; font-style: normal; }
  .keyfact .src a { color: var(--main); text-decoration: underline; }
  .srcs { font-size: 15px; color: #555; line-height: 1.6; padding-left: 20px; }
  .srcs li { margin-bottom: 10px; }

  /* ---- 3-Spalten-Layout ---- */
  .ae-layout{
    display:grid;
    grid-template-columns: minmax(170px,0.5fr) minmax(0,3fr) minmax(210px,0.6fr);
    gap: 36px;
    align-items: start;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .ae-toc-title{ font-size:12px; text-transform:uppercase; letter-spacing:1px; font-weight:700; color:#6b7280; margin:0 0 12px 0; }
  .ae-toc-list{ list-style:none !important; margin:0 !important; padding:0 !important; }
  .ae-toc-list li{ margin:0 0 2px 0 !important; padding:0 !important; list-style: none !important; }
  .ae-toc-list a{ display:block; padding:7px 10px; border-left:2px solid #e5e7eb; border-radius:0 4px 4px 0; font-size:14px; line-height:1.4; color:#4b5563; text-decoration:none; }
  .ae-toc-list a:hover{ color:var(--main); border-left-color:#cbd5e1; background:#f3f6f8; }
  .ae-toc-list a.is-active{ background:var(--main); border-left-color:var(--main); color:#fff; font-weight:600; border-radius:4px; }
  .ae-toc-box > summary{ list-style:none; cursor:pointer; }
  .ae-toc-box > summary::-webkit-details-marker{ display:none; }
  


  @media (max-width: 640px){
    .prose .ae-content-figure{ padding:14px; max-width:100%; margin:32px auto; }
    .prose table{ display:block; overflow-x:auto; }
  }


    h1 {
        margin: 0 0 0.5rem 0;
        font-size: clamp(2rem, 4.5vw, 2.75rem);
        color: #1a1a1a;
        font-weight: 800;
        line-height: 1.2;
        text-align: left;
    }
    hr {
        border: 0;
        border-top: 1px solid #eee;
        margin: 1.5rem 0 1.25rem 0;
    }
    .ae-key-takeaways {
        border: 1px solid #d8e2ec;
        border-left: 4px solid var(--main);
        background: #f8fafc;
        padding: 20px 24px;
        margin: 0 0 36px 0;
        border-radius: 4px;    
    }
    .ae-key-takeaways .ae-kt-title {
        font-weight: 700;
        margin: 0 0 12px 0;
        text-transform: uppercase;
        font-size: 0.85em;
        letter-spacing: 0.05em;
        color: var(--main);
    }
    ul {
        list-style: disc;
        padding-left: 22px;
        margin: 16px 0;
    }
    li {
        margin-bottom: 10px;
        line-height: 1.6;
    }
    a.ae-kt-src {
        color: var(--main);
        text-decoration: underline;        
    }
    .homebanner-cat2 {
        background-color: #F4F5F5;
        border-radius: 8px;
        padding: 32px;
        margin: 48px 0;
        text-align: center;
    }
    .homebanner-cat2 p {
        font-size: 20px;
        color: #1a1a1a;
        margin-bottom: 20px;
        font-weight: 600;
        line-height: 1.4;        
    }
    a.btn.btn-primary {
        color: #fff;
        text-decoration: none;
    }
    .ae-author-signoff {
        margin-top: 2rem;
        padding: .9rem 0 0 1rem;
        border-left: 3px solid var(--main);      
    }
    .ae-author-signoff-name {
        color: #1a1a1a;
        font-size: 1.05rem;
        font-weight: 700;
        font-style: italic;
        line-height: 1.4;        
    }
    .ae-author-signoff-role {
        margin-top: .2rem;
        color: #6b7280;
        font-size: .9rem;
        font-style: italic;
        line-height: 1.4;
    }
    .muster-und-grosshandel {
        background-color: #F4F5F5;
        border-radius: 8px;

        padding: 2px 32px 28px;

        margin: 40px 0;

    } 
    .prose .muster-und-grosshandel h3 {
        font-size: 26px;
        color: var(--main)!important;
        font-weight: 700 !important; 
        margin-bottom: 20px;       
    } 
    .quellen-block h3{
        font-size: 26px;
        color: var(--main)!important;
        font-weight: 700 !important; 
        margin-bottom: 16px;         
    }
    .quellen-block a {
        color: var(--main);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid currentColor;        
    } 
    #haeufige-fragen {
        margin: 40px 0;
        border-top: 2px solid var(--main);
        padding-top: 24px;
    }    
    #haeufige-fragen h3 {
        color: var(--main);
        font-size: 26px;
        line-height: 1.3;
        font-weight: 600;
        margin-bottom: 16px;
    }
    #haeufige-fragen > details {
        border-bottom: 1px solid #E0E0E0;
        padding: 4px 0;        
    }
    #haeufige-fragen  summary {
        font-size: 17px;
        font-weight: 600;
        color: #303030;
        padding: 14px 0;
        cursor: pointer;
    }
    #haeufige-fragen > details div {
        padding: 0 0 16px 0;
        font-size: 16px;
        color: #303030;
        line-height: 1.6;
    }
}