.av_gkv_vs_pkv_container {
    background: #f6f9fc;
    color: #05164d;
    max-width: 1400px;
    margin: 30px auto 60px;
    border-radius: 8px;
    padding: 40px 60px 65px 60px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  }

  .av_gkv_vs_pkv_headline {
    text-align: center;
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 0px;
    color: #05164d;
    line-height: 1.6;
  }

@media (max-width: 768px) {
  .av_gkv_vs_pkv_headline {
    font-size: 1.2em;
  }
}

  .av_gkv_vs_pkv_desc {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.6;
  }

@media (max-width: 768px) {
  .av_gkv_vs_pkv_desc {
    font-size: 1.0em;
  }
}

  .av_gkv_vs_pkv_btn_group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    margin-top: 20px;
  }
  .av_gkv_vs_pkv_btn {
    background: #fff;
    color: #05164d;
    border: 2px solid #05164d;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 250px;
    transition: transform 0.3s;
    transition: background 0.3s, color 0.3s;
  }

@media (max-width: 768px) {
  .av_gkv_vs_pkv_btn {
    width: 100%;
  }
}

  .av_gkv_vs_pkv_btn_2 {
    background: #fff;
    color: #05164d;
    border: 1px solid #05164d;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 320px;
  }
  .av_gkv_vs_pkv_btn_2 {
    background: #fff;
    color: #05164d;
    border: 1px solid #05164d;
    border-radius: 4px;
    padding: 14px 24px;
    font-size: 1.2em;
    width: 352px;
          font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 360px;
  }

  .av_gkv_vs_pkv_btn_2:hover {
    background: #fff;
    color: #05164d;
    border: 1px solid #05164d;

  }

  .av_gkv_vs_pkv_btn.av_gkv_vs_pkv_active, .av_gkv_vs_pkv_btn:hover {
    background: #05164d;
    color: #fff;
  }

  .av_gkv_vs_pkv_btn:hover {
    transform: translateY(-2px);
  }


  .av_gkv_vs_pkv_blue_box {
    background: #fff;
    color: #05164d;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 32px 24px 32px;
    margin-bottom: 32px;
    min-height: 220px;
    transition: all 0.3s;
    line-height: 1.6;
    gap: 10px;
    font-size: 1.2em;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
    border-top: solid 4px #05164d;
  }

@media (max-width: 768px) {
  .av_gkv_vs_pkv_blue_box {
    font-size: 1.0em;
  }
}


  .av_gkv_vs_pkv_blue_box_content {
    flex: 1 1 60%;
    margin-right: 32px;
  }
  .av_gkv_vs_pkv_diagram {
    flex: 0 0 215px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    background: #f6f9fc;
    padding: 20px 0px 10px;
    border: 0px solid #fff;
    border-radius: 6px;  
    position: relative;
    transition: transform 0.3s;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    border: solid 2px #05164d;
  }
  .av_gkv_vs_pkv_diagram:hover {
    transform: translateY(-4px);
     box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
  }
  .av_gkv_vs_pkv_diagram_title {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.6;
    color: #05164d;
    z-index: 10;
    pointer-events: none;
    user-select: none;
  }
  .av_gkv_vs_pkv_bars {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 185px;
    margin-bottom: 15px;
    margin-top: 25px;
  }
  .av_gkv_vs_pkv_bar {
    width: 70px;
    display: block;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s;
    position: relative;
    overflow: hidden;
  }
.av_gkv_vs_pkv_bar.av_gkv_vs_pkv_income {
    background: #05164d;
    display: flex; /* Aktiviert Flexbox */
    align-items: center; /* Zentriert den Inhalt vertikal */
    justify-content: center; /* Zentriert den Inhalt horizontal */
    color: #fff; /* Textfarbe für bessere Lesbarkeit */
    font-size: 0.5em; /* Schriftgröße anpassen */
    font-weight: 700; /* Schriftgewicht für bessere Sichtbarkeit */
    position: relative; /* Ermöglicht die Platzierung des Textes */
    overflow: visible; /* Sicherstellen, dass der Text nicht abgeschnitten wird */
    text-align: center;
}
  .av_gkv_vs_pkv_bar.av_gkv_vs_pkv_costs {
    background: transparent;
    position: relative;
  }
  .av_gkv_vs_pkv_bar_costs_yellow {
    background: #ffad00;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 0.4s;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.5em;
    font-weight: 700;
  }
  .av_gkv_vs_pkv_bar_costs_red {
    background: #e53935;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.5em;
    font-weight: 700;
    text-align: center;
    height: 100%; /* Sicherstellen, dass der gesamte Bereich genutzt wird */
  }
  .av_gkv_vs_pkv_warn_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* Entfernt absolute Positionierung */
    z-index: 10;
    pointer-events: none;
    height: 100%;
  }
  .av_gkv_vs_pkv_labels {
    display: flex;
    gap: 8px;
    font-size: 0.7rem;
    color: #05164d;
    justify-content: center;
  }
  .av_gkv_vs_pkv_labels span {
    width: 82px;
    text-align: center;
    display: block;
  }
  .av_gkv_vs_pkv_footer {
    text-align: center;
    margin-top: 50px;
    font-size: 1.4em;
    font-weight: 600;
  }

  .av_gkv_vs_pkv_footer img {
    width: 47px;
    height: 47px;
    vertical-align: middle;
    margin-right: 5px;
    position: relative;
    top: -2px;
    display: inline;
  }


  .av_gkv_vs_pkv_footer_desc {
    text-align: center;
    margin: auto;
    font-size: 1.0em;
    margin-top: 4px;
    color: #05164d;
    line-height: 1.6;
  }

@media (max-width: 768px) {
  .av_gkv_vs_pkv_footer_desc {
    font-size: 0.9em;
  }
}

  @media (max-width: 700px) {
    .av_gkv_vs_pkv_container { padding: 20px 20px; }
    .av_gkv_vs_pkv_blue_box { flex-direction: column; padding: 20px 10px;text-align: center; }
    .av_gkv_vs_pkv_blue_box_content { margin-right: 0; margin-bottom: 18px; }
    .av_gkv_vs_pkv_diagram { margin: 0 auto; width: 90%}
    .av_gkv_vs_pkv_btn_group {flex-direction: column; align-items: center;}
  }

.av_gkv_vs_pkv_hr {
 margin:15px auto 15px;
 max-width: 250px;
  background: linear-gradient(90deg, rgba(204, 204, 204, 0) 0%, rgb(5 22 77) 50%, rgba(204, 204, 204, 0) 100%);
   height: 4px;
}

.av_gkv_vs_pkv_auswahl {
 margin:30px auto 0px;
 text-align: center;
 font-size: 0.9em;
}

.av_gkv_vs_pkv_hinweis {
    margin: 15px auto 0px;
    max-width: 761px;
    padding: 17px;
    background: #fff;
    border: solid 1px #05164d;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
    transition: transform 0.3s;
}

@media (max-width: 768px) {
.av_gkv_vs_pkv_hinweis {
    padding: 11px;
    margin: 20px 20px 30px;
}
}

.av_gkv_vs_pkv_hinweis:hover {
 transform: translateY(-4px);
}



.av_gkv_vs_pkv_blue_box_content.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.av_gkv_vs_pkv_blue_box_content.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* This rule is no longer needed with the new structure */
/*
.av_gkv_vs_pkv_warn_icon {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 10;
  pointer-events: none;
  display: none;
}
*/

.av_gkv_vs_pkv_warn_icon img {
  width: 22px;
  filter: brightness(0) invert(1);
  margin: -6px 0 4px;
}

.av_gkv_vs_pkv_warn_icon p {
    margin: -6px;
    text-align: center;
    filter: brightness(0) invert(1);
    font-size: 1em;
    font-weight: 700;
}

/* Fade-Out-Effekt */
.av_gkv_vs_pkv_fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* Fade-In-Effekt */
.av_gkv_vs_pkv_fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}  