@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 800;
    src: url('/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0 auto; 
    background-color: white;
}

/*mini nav / lowernavbar */
.mini_nav {
    height: 55px;
    width: auto;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.mini_nav a {
    color: black;
    font-family: "Montserrat", "Inter", sans-serif;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    margin: 0 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.mini_nav_icons {
    margin-right: 6px; 
    color: black;
    font-size: 15px;
}

.mini_nav a::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -5px;
    top: -5px;
    background-color: rgba(109, 109, 109, 0.2);
    border-radius: 4px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: scale(0.55);
}

.mini_nav a:hover::after {
    opacity: 1;
    transform: scale(1); 
}

.newsletter-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: all;
}

.newsletter-close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.newsletter-close-button:hover {
    color: #333;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.newsletter-header .h2 {
    margin-bottom: 0.5rem;
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    color: black;
}

.newsletter-header p {
    color: #666;
    font-family: "Inter", sans-serif;
}

.newsletter-form-group {
    margin-bottom: 1rem;
}

.newsletter-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.9rem;
}

.newsletter-form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Montserrat", "Inter", sans-serif;
}

.newsletter-checkbox-group {
    display: flex;
    align-items: center; 
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.newsletter-checkbox-group input[type="checkbox"] {
    margin-top: -24px; 
}

.newsletter-checkbox-group label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.2; 
}

.newsletter-submit-button {
    width: 100%;
    padding: 0.75rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Montserrat", "Inter", sans-serif;
    transition: background-color 0.2s;
}

.newsletter-submit-button:hover {
    background-color: #333;
}

.newsletter-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    min-height: 400px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex; 
    flex-direction: column;  
    justify-content: center; 
}

.newsletter-success-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%; /* Etwas schmaler als der Container */
    padding: 2rem;
}

.newsletter-form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Rest der Styles bleiben gleich */
.newsletter-success-message.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.newsletter-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.newsletter-success-icon::before {
    content: "✓";
    color: white;
    font-size: 2rem;
}

.newsletter-success-title {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-family: "Montserrat", "Inter", sans-serif;
}

.newsletter-success-text {
    color: #666;
    font-family: "Montserrat", "Inter", sans-serif;
}

.newsletter-form.hide {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.newsletter-success-icon {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Button of lower-navbar */ 
.button {
    position: relative;
    margin-left: 60px;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #191919;
  }
  
  .button:before,
  .button:after {
    position: absolute;
    content: "";
    width: 150%;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    z-index: -1000;
    background-repeat: no-repeat;
  }
  
  .button:hover:before {
    top: -70%;
    background-image: radial-gradient(circle, #252E40 20%, transparent 20%),
      radial-gradient(circle, transparent 20%, #e8992a 0%, transparent 30%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, transparent 10%, #252E40 15%, transparent 20%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, #252E40 20%, transparent 20%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, #252E40 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
      10% 10%, 18% 18%;
    background-position: 50% 120%;
    animation: greentopBubbles 0.6s ease;
  }
  
  @keyframes greentopBubbles {
    0% {
      background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
        40% 90%, 55% 90%, 70% 90%;
    }
  
    50% {
      background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
        50% 50%, 65% 20%, 90% 30%;
    }
  
    100% {
      background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
        50% 40%, 65% 10%, 90% 20%;
      background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
  }
  
  .button:hover::after {
    bottom: -70%;
    background-image: radial-gradient(circle, #252E40 20%, transparent 20%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, transparent 10%, #e8992a 15%, transparent 20%),
      radial-gradient(circle, #252E40 20%, transparent 20%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, #e8992a 20%, transparent 20%),
      radial-gradient(circle, #252E40 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    background-position: 50% 0%;
    animation: greenbottomBubbles 0.6s ease;
  }
  
  @keyframes greenbottomBubbles {
    0% {
      background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
        70% -10%, 70% 0%;
    }
  
    50% {
      background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
        105% 0%;
    }
  
    100% {
      background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
        110% 10%;
      background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
  }

/*Progess-bar*/
  .reading-progress-bar {
    position: fixed;
    top: 55px; /* Direkt unter der mini_nav */
    left: 0;
    width: 0%;
    height: 4px;
    background-color: black;
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Article Container */
.article-container {
    display: flex;
    gap: 1rem;
    margin: 0 auto;
    padding: 2rem 1rem; 
}

/* Sidebar / Table of Contents */
.toc-container {
    width: 280px;
    height: calc(100vh - 55px);
    position: sticky;
    top: 80px;
    padding: 2rem 1rem;
    background-color: white;
    overflow-y: auto;
}

/* Mobile TOC Trigger */
.mobile-toc-trigger {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #1d1d1d;
    color: white;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    z-index: 1000;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
}

.toc_sort {
    position: relative;
    top: 5px;
    margin-right: 4px;
}

/* Mobile TOC Container */
.mobile-toc {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: white;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-toc.active {
    transform: translateY(0);
}

.mobile-toc-header {
    display: flex;
    justify-content: flex-end; 
    padding: 1rem;
}

.mobile-toc-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toc-content {
    padding: 0 1rem 4rem 0 ; 
    overflow-y: auto;
    height: calc(100% - 50px);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    padding-left: 20px; 
}

.toc-list::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #333;
    height: 100%;
}

.toc-list li {
    margin-bottom: 1rem;
    position: relative;
}

.toc-list a {
    color: #999896;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    font-family: sans-serif;
    font-weight: 300;
    display: block;
    line-height: 1.4;
    padding-left: 20px;
}

.toc-list a.active, .toc-list a:hover {
    color: black;
}

.toc-list a.active::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background-color: #A88DFF;
    left: 2px; 
    z-index: -1000;
}

/* Main Article Content */
.article {
    flex: 1;
    background-color: white;
    padding: 2rem 3rem 2rem 5rem;
}

.article section {
    margin-bottom: 4rem;
}

.article h1 {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 2.8rem;
    color: black;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    padding: 0 3rem;
}

.article h2 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: black;
    margin: 3rem 0 2rem;
    /* Counter */
    counter-increment: h2counter;
    display: flex;
    align-items: baseline;
    gap: 10px; 
}

.article h2::before {
    content: counter(h2counter) ".";
    color: #666;
    font-weight: bold;
    min-width: 25px; /* Reserviert Platz für die Nummer */
    text-align: right; /* Rechtsausrichtung der Nummer */
}
        
.article {
    counter-reset: h2counter;
}

.article h3 {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
    color: black;
    margin: 2rem 0 1rem;
}

.article p, .article li{
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    line-height: 31px;
    color: black;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.article img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.article .r {
    text-decoration: none;
    color: black;
}

.article ul, .article ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article li {
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}


.article a {
    color: #252E40;
    text-decoration: underline;
    transition: color 0.15s;
}

.article a:hover {
    color: #e8992a;
}

.article b {
    font-weight: 600;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    padding: 15px 0 15px 25px;
    text-align: left;
  }
  
.article th {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 15px 0 15px 25px;
    font-weight: 500;
    vertical-align: top; 
}
  
.article td {
    padding: 15px 0 15px 25px;
    font-weight: 300;
    border-top: 0.5px solid gray;
    border-bottom: 0.5px solid gray;
}

.article tr:nth-child(even) {
    background-color: #f1f1f1;
}

/*keypoints*/
.key {
    padding: 2rem 3rem;
    background-color: #eeeeee;
}

/*Benefits*/
.benefits, .benefits_small, .side-effects {
    padding: 1px 3rem 3rem 3rem;
    background-color: #eeeeee;
    list-style: none; 
}

.benefits li, .benefits_small li, .side-effects li {
    position: relative;
    margin-bottom: 2rem;
    margin-left: 1rem;
    padding-left: 25px; 
    list-style: none; 
}
.side-effects  li, .benefits_small li {
    margin-bottom: 0.4rem;
}

.side-effects p {
    margin-bottom: -10px;
}

.benefits li::before, .benefits_small li::before {
    content: "+"; 
    position: absolute;
    left: 0;
    top: 0;
    color: black; 
    font-weight: 800;
}

.side-effects li::before {
    content: "-"; 
    position: absolute;
    left: 0;
    top: 0;
    color: black; 
    font-weight: 800;
}

/*Disclaimer*/

.disclaimer {
    background-color: #EFE9FE;
    padding: 2rem 10rem 1rem 2rem;
}

/* Meta Information */
.article-meta {
    color: #999896;
    font-size: 15px;
    font-weight: 300;
    padding: 0 3.2rem 1rem;
}

.article-meta span {
    margin-right: 3rem;
}

/* a-linking button */
.article a.a-linking {
    color: white !important;
    font-family: "Montserrat", sans-serif;
    background-color: #191919;
    padding: 14px 25px;
    border-radius: 4px;
    display: block;
    width: fit-content;
    margin: 2rem auto;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.article a.a-linking:hover {
    transform: scale(1.04);
    background-color: #2F2F2D;
}

/*Promo-Box*/

.promo-box {
    margin-top: 3rem;
    width: 100%;
    background-color: #f0f9f6;
    padding: 0 2.5rem 0rem 4rem;
    position: relative;
    overflow: hidden;
}
                        
.promo-box-content {
    border-left: 3px solid #000;
    opacity: 0;
    transform: translateY(20px);
    padding-left: 1.2rem; 
    transition: all 0.6s ease-out; 
    transition-delay: 0.2s; 
}
                                                
.promo-box-content.visible {
    opacity: 1;
    transform: translateY(0);
}
                        
.promo-box h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
}
                        
.promo-box p {
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
}

/*Video Container (YT)*/
.video-container {
    width: 560px;  /* Standardbreite */
    margin: 0 auto;  /* Zentriert den Container selbst */

}
                    
.video-container iframe {
    width: 560px;
    height: 315px;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .toc-container {
        display: block;
    }
    .mobile-toc-trigger,
    .mobile-toc {
        display: none;
    }
}

@media (max-width: 1023px) {
    .toc-container {
        display: none;
    }
    .mobile-toc-trigger,
    .mobile-toc {
        display: block;
    }
    .article-container {
        padding: 0 0.5rem;
    }
    .article {
        padding: 1.5rem;
        padding-bottom: 80px;
    }
    
    .article h1 {
        font-size: 2.6rem;
        margin-top: 2rem;
    }
    
    .article h2 {
        font-size: 1.75rem;
    }
    
    .article h3 {
        font-size: 1.3rem;
    }
    
    .article p, .article li {
        font-size: 1rem;
    }
    
    .only_desktop {
      display: none;
    }
    
    .video-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
    }
                      
    .video-container iframe {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 950px) {
    .button {
        display: none;
    }
}

@media (max-width: 768px) {
    .benefits, .benefits_small, .side-effects, .key, .promo-box, .article table {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 1px 1.5rem 2rem 1.5rem;
        width: calc(100% + 3rem);
    }
    
    .key {
        padding-top: 2rem;
    }

    .disclaimer {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        padding: 1.5rem;
    }

    /* Bilder auf volle Breite */
    .article img {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        max-width: none;
    }

    .article-meta {
        padding: 0 0.5rem 1rem;
    }

    .article-meta span {
        margin-right: 1.2rem;
        white-space: nowrap;
    }

    .article h1 {
        padding: 0 0.3rem;

    }

    .article li {
        margin-left: 0rem;
    }
    
    /*Promo Box*/
    .promo-box { 
        padding-left: 1.5rem;
        padding-right: 1rem;
    }
    
    .promo-box h3 {
        font-size: 1.25rem;
    }
                            
    .promo-box p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .article {
        padding: 1rem;
    }
    
    .article h1 {
        font-size: 2.5rem;
    }
    
    .article h2 {
        font-size: 1.5rem;
    }
    
    .article h3 {
        font-size: 1.2rem;
    }
    
    .mini_nav {
            height: 55px;
            width: 100%;
            justify-content: center;
            padding: 0 10px;
            box-sizing: border-box;
        }
}

@media (max-width: 400px) {
        .mini_nav a {
            margin: 0 5%;
        }
    }



    /* Q&A Section Styles */
.qa-section {
    margin: 4rem 0;
}

.qa-container {
    max-width: 100%;
    margin: 0 auto;
}

.qa-item {
    margin-bottom: 1rem;
    overflow: hidden;
}

.qa-question {
    background-color: #f0f0f0;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.qa-question:hover {
    background-color: #EDEBFB;
}

.qa-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    flex-grow: 1;
    padding-right: 2rem;
}

.qa-toggle {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.qa-toggle::before,
.qa-toggle::after {
    content: '';
    position: absolute;
    background-color: black;
    transition: transform 0.2s ease;
}

.qa-toggle::before {
    width: 2px;
    height: 16px;
    top: 4px;
    left: 11px;
}

.qa-toggle::after {
    width: 16px;
    height: 2px;
    top: 11px;
    left: 4px;
}

.qa-item.active .qa-toggle::before {
    transform: rotate(90deg);
}

.qa-answer {
    background-color: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.qa-item.active .qa-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

@media (max-width: 768px) {

    
    .qa-question {
        padding: 1.2rem;
    }
    
    .qa-question h3 {
        font-size: 1rem;
    }
    
    .qa-item.active .qa-answer {
        padding: 1.2rem;
    }
}

/*recommended_Article*/

.recommended_container {
    margin: 0 auto;
    background-color: #F9F9F9;
    padding: 50px 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.recommended_title_h1 {
    font-size: 2.5rem;
    text-align: center;
    font-family: "Inter", sans-serif;
    margin-bottom: 30px;
}

@media (max-width: 992px) { /* Die folgenden 2 größen lassen sich safe noch in andere größen umändern */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}