/* ----------------------------------------------------------------------------------------------------[ Allgemein ]---------------------------------------------------------------------------------------------------- */

/*
 * This is a detailed explanation
 * of something that should require
 * several paragraphs of information.
 */

/* ------------------------------------------------------------[ Root ]------------------------------------------------------------ */

/*
 * This is a detailed explanation
 * of something that should require
 * several paragraphs of information.
 */

/* =============================================
   Compare scoped styles – Glasig (externalisiert)
   =============================================
   Namenskanon (nur neue Klassen):
     .compare-scope          · isoliert die Vergleichsseite logisch vom Rest
     .compare-container      · bündelt Inhalte im Maximalbreiten-Container
     .compare-table          · Abschnitt für Tabelle & mobile Karten (Scrollanker)
     .compare-weights-note   · Hinweistext unter den Gewichtungsreglern
     .compare-footer-copy    · kompakte Rechtszeile im Footer
   ============================================= */

/* -----------------------------------------------------------------
   1) Design Tokens – Farben, Abstände & Oberflächen
   ----------------------------------------------------------------- */
:root {
  --compare-max: 1180px;
  --compare-blue-700: #1e40af;
  --compare-blue-600: #2563eb;
  --compare-blue-500: #3b82f6;
  --compare-blue-300: #7dd3fc;
  --compare-cyan-500: #06b6d4;
  --compare-cyan-400: #22d3ee;
  --compare-accent: #2563eb;
  --compare-bg: #f7faff;
  --compare-text: #0f172a;
  --compare-glass: rgba(255, 255, 255, 0.6);
  --compare-border: rgba(2, 6, 23, 0.1);
  --compare-shadow: 0 14px 28px rgba(2, 6, 23, 0.06),
    0 6px 14px rgba(2, 6, 23, 0.05);
  --compare-radius: 18px;
  --compare-gap: 18px;
  --compare-hero-grad: linear-gradient(
    108deg,
    #eaf6ff 0%,
    #e6f7ff 46%,
    #e0f2ff 100%
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --compare-bg: #0b1220;
    --compare-text: #e5eaf5;
    --compare-glass: rgba(15, 23, 42, 0.55);
    --compare-border: rgba(148, 163, 184, 0.22);
    --compare-shadow: 0 18px 36px rgba(0, 0, 0, 0.4),
      0 8px 20px rgba(0, 0, 0, 0.28);
  }
}

/* -----------------------------------------------------------------
     2) Grundgerüst – Body, Container, Typografie
     ----------------------------------------------------------------- */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--compare-bg);
  color: var(--compare-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.6;
}

.et_pb_section.et_pb_section_0_tb_body.et_section_regular {
  background: var(--compare-hero-grad);
  border-top: 1px solid var(--compare-border);
  border-bottom: 1px solid var(--compare-border);
}

.et_pb_section {
  padding: 0 !important;
  background: var(--compare-bg);
}

/* ------------------------------------------------------------[ Inhaltsverzeichnis ]------------------------------------------------------------ */

/*
 * This is a detailed explanation
 * of something that should require
 * several paragraphs of information.
 */

/* --------------------------[ Mobil ]-------------------------- */

@media (max-width: 768px) {
  .table-of-contents {
    .list-container {
      width: 100% !important;
      margin-right: 0 !important;
    }
  }
}

/* --------------------------[ Allgemein ]-------------------------- */

.table-of-contents {
  background-image: linear-gradient(0deg, #eff3f7 0%, #ecf1f5 100%);
  padding: 30px;
  border-radius: 10px;

  &:after {
    display: table;
    clear: both;
    content: "";
  }

  h2,
  h3,
  h4 {
    letter-spacing: 1px;
  }

  h2 {
    font-size: 32px;
  }

  h3,
  h4 {
    font-size: 22px;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 0;
  }

  .list-container {
    box-sizing: border-box;
    float: left;
    width: 48%;
    margin-bottom: 28px;
    margin-right: 28px !important;
    padding: 20px;
    background-image: linear-gradient(0deg, #eff3f7 0%, #ecf1f5 100%);
    border: 1px solid #cccccc;
    border-radius: 8px;
    letter-spacing: 1px;
    font-weight: normal;
    color: #50a3ed;
    span {
      display: block;
      padding: 10px;
      font-size: 24px;
      letter-spacing: 1px;
      text-align: center;
      font-weight: bold;
      text-decoration: underline;
      color: black;
    }

    ul {
      list-style-type: none;
      padding-left: 20px;

      li {
        padding: 5px;
        a.wichtig {
          font-weight: bold;
          color: #f18a59;
        }

        a {
          font-weight: inherit;
          color: inherit;
        }
      }

      &.ebene1 {
        counter-reset: listenpunkt_ebene1;

        li:before {
          content: counter(listenpunkt_ebene1) ". ";
          counter-increment: listenpunkt_ebene1;
        }
      }

      &.ebene2 {
        counter-reset: listenpunkt_ebene2;

        li:before {
          content: counter(listenpunkt_ebene1) "."
            counter(listenpunkt_ebene2, decimal) ". ";
          counter-increment: listenpunkt_ebene2;
        }
      }
    }
  }

  .info-container {
    margin: 20px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    letter-spacing: 1px;
  }
}

/* ------------------------------------------------------------[ Boxen ]------------------------------------------------------------ */

/*
 * This is a detailed explanation
 * of something that should require
 * several paragraphs of information.
 */

/* --------------------------[ Mobil ]-------------------------- */

@media (max-width: 768px) {
}

/* --------------------------[ Allgemein ]-------------------------- */

.box-container {
  padding: 25px;
  background-image: linear-gradient(0deg, #a0c2e3 0%, #dce8f2 100%);
  border: 1px #cccccc solid;
  border-radius: 5px;

  h2,
  h3,
  h4 {
    letter-spacing: 1px;
    font-weight: bold;
  }

  h2 {
    font-size: 30px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #bed7ee;
    border-radius: 10px;
  }

  h3 {
    font-size: 25px;
    text-decoration: underline;
  }

  h4 {
    font-size: 20px;
    text-decoration: underline;
  }

  ul {
    list-style: none;
  }

  img {
    float: left;
    width: 50%;
    margin-right: 25px;
    margin-bottom: 25px;
    border: 1px #cccccc solid;
    border-radius: 5px;
  }

  .box-content {
    padding: 20px;
    background-color: #ecf1f5;
    border: 1px #cccccc solid;
    border-radius: 5px;
  }

  .box-content:not(:last-child) {
    margin-bottom: 20px;
  }
}

/* ========= Vergleichsportal – Header & Footer (für Divi) ========= */

/* Custom */

.et_pb_row.et_pb_row_0_tb_header {
  padding: 0 !important;
}

/* Container */
.compare-container {
  max-width: var(--compare-max);
  margin-inline: auto;
  padding-inline: 22px;
}

/* Header */
.compare-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow 0.18s ease;
}
.compare-header.is-scrolled {
  box-shadow: 0 5px 14px rgba(2, 6, 23, 0.06);
}
.compare-header .compare-container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
}

/* Logo + Titel */
.compare-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: var(--compare-shadow);
}
.compare-title {
  font-weight: 700;
}

/* Navigation (Pills) */
.compare-nav {
  margin-left: auto;
  display: flex;
  gap: 12px;
}
.compare-nav a {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.compare-nav a[aria-current="page"],
.compare-nav a:hover {
  border-color: var(--compare-border);
  background: var(--compare-glass);
}

/* Footer */
footer.compare-footer {
  padding-block: 20px;
  border-top: none !important;
  background: none !important;
  backdrop-filter: saturate(120%) blur(6px);
}
.compare-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.compare-footer-copy {
  font-size: 14px;
  opacity: 0.72;
}
.compare-footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.et_pb_section.et_pb_section_0_tb_footer.et_section_regular {
  border-top: 1px solid var(--compare-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)) !important;
}

footer .et_pb_row.et_pb_row_0_tb_footer {
  padding: 0;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .compare-header {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.7),
      rgba(15, 23, 42, 0.48)
    );
  }
  footer.compare-footer {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.72),
      rgba(15, 23, 42, 0.52)
    );
  }
}
