/* Modular Text - inherit text color for headings */
.modular-text h1,
.modular-text h2,
.modular-text h3,
.modular-text h4,
.modular-text h5,
.modular-text h6 {
    color: inherit;
}

/* Hero Sektion Modular */

/* Split Layout: Remove padding from hero section so background colors fill full area */
.hero.hero-split {
    padding: 0;
}

.hero.hero-split > .container {
    padding: 0;
    max-width: 100%;
}

.hero.hero-split .columns {
    margin: 0;
}

.hero-split-left,
.hero-split-right {
    padding: 6rem 3rem;
}

.hero-split-left h1{
    text-align: left;
}

  .trust-badges{
      margin-top: 4rem;
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      animation: fadeInUp 1s ease-out 0.3s backwards;
  }

  .trust-badge{
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(10px);
      padding: 1rem 1.5rem;
      border-radius: 15px;
      font-size: 0.9rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: all 0.3s ease;
  }

  .trust-badge:hover {
      background: rgba(255, 255, 255, 0.25);
      transform: translateY(-2px);
  }

  .logo_slider {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 1rem;
      width: 100vw;
      height: 6em;
      background-color: var(--primary-bg);
      box-shadow:
      inset 0px 10px 10px -5px rgba(0, 0, 0, 0.3),
      inset 0 -10px 10px -5px rgba(0, 0, 0, 0.3);
      
      overflow: hidden; 
      position: relative;
      padding: 0;
  }

  .logo_slider a {
      height: 100%;
      display: flex;
      align-items: center;
  }

  .logo_slider_logo {
      height: 100%;
      display: flex;
      align-items: center; 
      padding: 0 1rem;
      box-sizing: border-box;
  }

  .logo_slider_logo img {
      max-height: 75%;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      display: block;
  }

  .hero-cta {
      display: inline-block;
      background: white;
      color: var(--highlight);
      padding: 1rem 2.2rem;
      margin-top: 1rem;
      margin-bottom: 1rem;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.1rem;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      max-width: 600px;
      line-height: 1.4;
  }

/* Header Navigation */

#header {
    position: relative;
    z-index: 9999;
}

.desktop-menu{
    flex-direction: row-reverse;
}


#header > section > nav > section.navbar-section.mobile-menu{
    display: none;
}

@media (max-width: 840px) {
    #header > section > nav > section.navbar-section.mobile-menu{
        display: flex;
    }
}

/* Forms */
#cart-submit-form > div.buttons{
    margin-top: 1rem;
    margin-inline: auto;
}

.basic-captcha{
    justify-self: center;
    margin-bottom: 2rem;
}

/* Features */
.feature-header {
    min-height: calc(2 * 1.5rem);
}

.feature-content p{
    font-size: 1em;
}

.feature-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-content ul li {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-left: 3px solid var(--accent1);
    transition: all 0.3s;
}

.feature-content ul li:hover {
    background: rgba(0,212,255,0.1);
    border-left-color: var(--accent2);
    transform: translateX(5px);
}

.feature-content a {
    color: var(--accent1);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.feature-content a:hover {
    color: var(--accent1);
}

.feature-card:hover{
    transform: scale(1.02);
    transition: ease-in-out 0.3s;
    box-shadow: 0 0 20px var(--accent1);
}

/* Features Layout - Mobile: Text und Cards untereinander */
@media (max-width: 768px) {
    .features-layout {
        flex-direction: column !important;
    }

    .features-layout .features-content {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        text-align: center;
    }

    .features-layout .features-grid {
        width: 100%;
    }
}

.feature-content input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--accent1);
    border-radius: 10px;
    font-size: 1em;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.feature-content input[type="email"]:focus {
    outline: none;
    border-color: var(--accent1);
    background: rgba(255,255,255,0.1);
}

.feature-content button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.feature-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,255,136,0.3);
}

/* Blog-Search Module */

.search-form {
    background: var(--primary-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--accent1);
}

.search-form .form-group {
    margin-bottom: 15px;
}

.results-header {
    padding: 15px 0;
    border-bottom: 2px solid #e9ecef;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 16px;
}

.btn-link:hover {
    text-decoration: underline;
}

#resultsContainer {
    transition: opacity 0.2s ease;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

/* ============================================
   Styled List Component for Grav CMS - FIXED
   ============================================ */

/* Base Styled List Component */
.styled-list ul,
.styled-list-page .list-container ul {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Main list items (contains the emoji) */
.styled-list > ul > li,
.styled-list-page .list-container > ul > li {
  margin-left: 20px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  position: relative;
}

/* Emoji paragraph - styled as orange badge */
/* Adjust position with: --emoji-left and --emoji-top */
.styled-list > ul > li > p,
.styled-list-page .list-container > ul > li > p {
  --emoji-left: 10px;
  --emoji-top: 25px;

  display: block !important;
  position: absolute;
  left: var(--emoji-left);
  top: var(--emoji-top);
  background-color: var(--highlight);
  color: white;
  font-weight: bold;
  font-size: 22px;
  padding: 8px 14px;
  border-radius: 6px;
  min-width: 45px;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  z-index: 1;
}

/* Second level ul (wrapper around title + description) */
.styled-list > ul > li > ul,
.styled-list-page .list-container > ul > li > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Second level li - the main item box that contains title text node + description ul */
.styled-list > ul > li > ul > li,
.styled-list-page .list-container > ul > li > ul > li {
  display: block;
  position: relative;
  padding: 20px 20px 20px 80px;
  background-color: #f8f8f8;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1.4;
}

/* CSS Counter for automatic numbering */
.styled-list,
.styled-list-page .list-container {
  counter-reset: step-counter;
}

.styled-list > ul > li,
.styled-list-page .list-container > ul > li {
  counter-increment: step-counter;
}

/* Orange number box - hidden since we now use emoji from the p element */
.styled-list > ul > li > ul > li::before,
.styled-list-page .list-container > ul > li > ul > li::before {
  display: none;
}

/* Third level ul - description container */
.styled-list > ul > li > ul > li > ul,
.styled-list-page .list-container > ul > li > ul > li > ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

/* Description text (third level li) */
.styled-list > ul > li > ul > li > ul > li,
.styled-list-page .list-container > ul > li > ul > li > ul > li {
  font-weight: 400;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  padding: 0;
  background: none;
}

/* Remove the ::before from description li */
.styled-list > ul > li > ul > li > ul > li::before,
.styled-list-page .list-container > ul > li > ul > li > ul > li::before {
  display: none;
  content: none;
}

/* ============================================
   Alternative: Custom Markdown Shortcode Style
   ============================================ */

.numbered-list {
  counter-reset: step-counter;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.numbered-list > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.numbered-list > ul > li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  list-style: none;
}

.numbered-list > ul > li > p {
  display: none;
}

.numbered-list > ul > li > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.numbered-list > ul > li > ul > li {
  display: block;
  position: relative;
  padding: 20px 20px 20px 80px;
  background-color: #f8f8f8;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1.4;
}

.numbered-list > ul > li > ul > li::before {
  content: "0" counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: var(--highlight);
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 18px;
  border-radius: 6px;
  min-width: 45px;
  text-align: center;
  line-height: 1;
}

.numbered-list > ul > li > ul > li > ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.numbered-list > ul > li > ul > li > ul > li {
  font-weight: 400;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  padding: 0;
  background: none;
}

.numbered-list > ul > li > ul > li > ul > li::before {
  display: none;
  content: none;
}

/* ============================================
   FAQ Section Styling
   ============================================ */

.modular-faq {
  background-color: var(--faq-bg-color, #E8DED0);
  background-size: cover;
  background-position: center;
  padding: 60px 0;
}

.modular-faq h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: var(--h2-final-size);
  color: var(--h2-final-color);
}

.modular-faq .faq-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
  font-size: var(--p-final-size);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-weight: var(--h3-final-weight);
  font-size: calc(var(--h3-final-size) * 0.75);
  color: var(--h3-final-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--highlight);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item[open] .faq-question::after {
  content: '×';
  font-size: 2.2rem;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  color: var(--text-dark);
  font-size: var(--p-final-size);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0.5rem 0;
}

.faq-answer a {
  color: #3182ce;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .modular-faq h2 {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 16px 20px;
  }

  .faq-answer {
    padding: 0 20px 20px 20px;
  }
}

p:has(.section-label) {
  margin-top: 1rem;
  color: var(--highlight);
  text-align: center;
}

/* ============================================
   Mobile Fixes
   ============================================ */

@media (max-width: 768px) {
  /* Fix: Schriftgrößen mit Multiplikatoren basierend auf Variablen */
  /* Mobile Skalierungsfaktoren - hier anpassen für alle Größen */
  :root {
    --mobile-h1-scale: 0.7;    /* h1 auf 70% der Desktop-Größe */
    --mobile-h2-scale: 0.6;    /* h2 auf 60% der Desktop-Größe */
    --mobile-h3-scale: 0.75;   /* h3 auf 75% der Desktop-Größe */
    --mobile-p-scale: 1.0;     /* p bleibt gleich */
  }

  h1, .h1 {
    font-size: calc(var(--h1-final-size) * var(--mobile-h1-scale));
  }

  h2, .h2 {
    font-size: calc(var(--h2-final-size) * var(--mobile-h2-scale));
  }

  h3, .h3 {
    font-size: calc(var(--h3-final-size) * var(--mobile-h3-scale));
  }

  p, .modular-text p, section p {
    font-size: calc(var(--p-final-size) * var(--mobile-p-scale));
  }

  /* Fix: styled-list Einträge mehr Abstand */
  .styled-list > ul > li,
  .styled-list-page .list-container > ul > li {
    margin-bottom: 30px;
  }

  .styled-list > ul > li > ul > li,
  .styled-list-page .list-container > ul > li > ul > li {
    padding: 15px 15px 15px 70px;
  }

  .styled-list > ul > li > p,
  .styled-list-page .list-container > ul > li > p {
    font-size: 18px;
    padding: 6px 10px;
    left: 5px;
    top: 20px;
  }

  /* Fix: Reines Text-Element mehr Padding */
  .modular-text .column.col-12 {
    padding-inline: 1.5rem;
  }

  /* Fix: Text-und-Bild Element weniger Padding */
  .modular-text .columns {
    padding: 1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .modular-text .column.col-md-12:not(.col-12) {
    padding-inline: 0.5rem !important;
  }

  /* Fix: Footer Divs mehr Abstand */
  #footer .columns {
    gap: 1.5rem;
  }

  #footer .column {
    margin-bottom: 1.5rem;
  }
}