    :root {
        --primary-color: #4361ee;
        --secondary-color: #3f37c9;
        --accent-color: #4895ef;
        --background-color: #f8f9fa;
        --text-color: #212529;
        --border-radius: 12px;
        --transition: all 0.3s ease;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        padding: 0;
        margin: 0;
        background: var(--background-color);
        color: var(--text-color);
        line-height: 1.6;
        display: flex;
        justify-content: center;
        min-height: 100vh;
    }
      .content {
          max-width: 800px;
          width: 100%;
          margin: 0 auto;
      }

      .loader-small-container {
          display: flex;
          flex-direction: column;
          align-items: center;
          background: rgba(255, 255, 255, 0.95);
          padding: 20px;
          border-radius: 12px;
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      }

      .loader-small {
          border: 4px solid #f3f3f3;
          border-top: 4px solid var(--primary-color);
          border-radius: 50%;
          width: 30px;
          height: 30px;
          animation: spin 1s linear infinite;
          margin: 15px auto;
      }

      .loader-text {
          font-size: 14px;
          color: #666;
          margin-top: 10px;
          font-weight: 500;
      }

      @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
      }

      h1 {
          text-align: center;
          margin-bottom: 20px;
          font-size: 28px;
          text-shadow: 0 0 5px white; /* Weißen Glow hinzufügen */
      }

      h2 {
          margin-bottom: 10px;
          font-size: 16px;
      }

      h3 {
          margin-bottom: 10px;
          font-size: 12px;
      }

        h4 {
            text-align: center;
            font-size: 22px;
            text-shadow: 0 0 5px white; /* Weißen Glow hinzufügen */
        }

      .tip-box {
          display: flex;
          align-items: center; /* Zentriert den Inhalt vertikal */
          background-color: #f9f9f9;
          border-left: 5px solid #2196F3;
          padding: 10px 20px;
          margin: 20px 0;
          box-shadow: 0 2px 4px rgba(0,0,0,0.1);
          font-size: 14px;
          line-height: 1.5;
          color: #333;
      }

      .tip-content {
          margin-left: 10px; /* Fügt Abstand zwischen Icon und Text hinzu */
      }


      label {
          display: block;
          margin-bottom: 10px;
          font-size: 16px;
      }

      slabel {
          display: block;
          margin-bottom: 10px;
          font-size: 10px;
      }

      slabel2 {
            display: block;
            margin-bottom: 5px;
            margin-top: 5px;
            font-size: 10px;
        }

      button {
          width: 100%;
          padding: 15px 25px;
          margin-bottom: 20px;
          font-size: 16px;
          border-radius: var(--border-radius);
          color: white;
          border: none;
          cursor: pointer;
          background: var(--primary-color);
          transition: var(--transition);
          box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      }

      button:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 8px rgba(0,0,0,0.2);
          background: var(--secondary-color);
      }

      button:active {
          transform: translateY(0);
      }

      .green-button {
          background-color: #4CAF50; /* Green */
      }

      .green-button:hover {
          background-color: #45a049; /* Darker Green */
      }

      .loader {
        width: 24px;
        height: 80px;
        display: block;
        margin: 35px auto 0;
        border: 1px solid #FFF;
        border-radius: 0 0 50px 50px;
        position: relative;
        box-shadow: 0px 0px #FF3D00 inset;
        background-image: linear-gradient(#FF3D00 100px, transparent 0);
        background-position: 0px 0px;
        background-size: 22px 80px;
        background-repeat: no-repeat;
        box-sizing: border-box;
        animation: animloader 6s linear infinite;
      }
      .loader::after {
        content: '';  
        box-sizing: border-box;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        border: 1px solid #FFF;
        border-radius: 50%;
        width: 28px;
        height: 6px;
      }
      .loader::before {
        content: '';  
        box-sizing: border-box;
        left: 0;
        bottom: -4px;
        border-radius: 50%;
        position: absolute;
        width: 6px;
        height: 6px;
        animation: animloader1 6s linear infinite;
      }

      @keyframes animloader {
        0% {
          background-position: 0px 80px;
        }
        100% {
          background-position: 0px 0px;
        }
      }

      @keyframes animloader1 {
        0% {
          box-shadow: 4px -10px rgba(255, 255, 255, 0), 6px 0px rgba(255, 255, 255, 0), 8px -15px rgba(255, 255, 255, 0), 12px 0px rgba(255, 255, 255, 0);
        }
        20% {
          box-shadow: 4px -20px rgba(255, 255, 255, 0), 8px -10px rgba(255, 255, 255, 0), 10px -30px rgba(255, 255, 255, 0.5), 15px -5px rgba(255, 255, 255, 0);
        }
        40% {
          box-shadow: 2px -40px rgba(255, 255, 255, 0.5), 8px -30px rgba(255, 255, 255, 0.4), 8px -60px rgba(255, 255, 255, 0.5), 12px -15px rgba(255, 255, 255, 0.5);
        }
        60% {
          box-shadow: 4px -60px rgba(255, 255, 255, 0.5), 6px -50px rgba(255, 255, 255, 0.4), 10px -90px rgba(255, 255, 255, 0.5), 15px -25px rgba(255, 255, 255, 0.5);
        }
        80% {
          box-shadow: 2px -80px rgba(255, 255, 255, 0.5), 4px -70px rgba(255, 255, 255, 0.4), 8px -120px rgba(255, 255, 255, 0), 12px -35px rgba(255, 255, 255, 0.5);
        }
        100% {
          box-shadow: 4px -100px rgba(255, 255, 255, 0), 8px -90px rgba(255, 255, 255, 0), 10px -120px rgba(255, 255, 255, 0), 15px -45px rgba(255, 255, 255, 0);
        }
      }


      .wert-container {
          display: flex;
          padding: 12px 15px;
          background-color: #ffffff;
          border: 1px solid rgba(173, 216, 230, 0.5);
          border-radius: 8px;
          position: relative;
          padding-bottom: 45px;
          margin-bottom: 8px;
          box-shadow: 0 2px 4px rgba(0,0,0,0.04);
          transition: all 0.2s ease;
      }

      .wert-container:hover {
          border-color: rgba(173, 216, 230, 0.8);
          box-shadow: 0 4px 8px rgba(0,0,0,0.08);
          transform: translateY(-1px);
      }

      .status-indicator {
          width: 8px;
          height: 8px;
          margin-left: auto;
          border-radius: 50%;
          box-shadow: 0 0 4px rgba(0,0,0,0.1);
      }

      .label {
          margin-right: 8px;
          font-weight: 500;
          color: #444;
          font-size: 0.95em;
      }

      .wert {
          flex-grow: 1;
          text-align: left;
          font-weight: 600;
          color: #2c3e50;
      }

      .unit {
          font-size: 70%;
          margin-left: 6px;
          color: #666;
          font-weight: 400;
      }

      #containerWrapper {
          display: flex;
          flex-direction: column;
          width: 100%;
          gap: 0px;
      }

      #resultsContainer,
      #acidBaseBalanceContainer,
      #anionGapContainer,
      #respiratoricContainer,
      #elyteContainer,
      #hbFraktionenContainer,
      #odccontainer,
      #EmpfehlungenContainer {
          width: 100%;
          background-color: white;
          border-radius: var(--border-radius);
          box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
          padding: 20px;
          margin-bottom: 20px;
          box-sizing: border-box;
          transition: var(--transition);
      }

      #resultsContainer:hover,
      #acidBaseBalanceContainer:hover,
      #anionGapContainer:hover,
      #respiratoricContainer:hover,
      #elyteContainer:hover,
      #hbFraktionenContainer:hover,
      #odccontainer:hover,
      #EmpfehlungenContainer:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
      }

      /* Entfernen Sie den #rightSideContainer-Stil, da er nicht mehr benötigt wird */

      @media (min-width: 768px) {
          #containerWrapper {
              flex-direction: column;
          }
          #resultsContainer,
          #acidBaseBalanceContainer,
          #anionGapContainer,
          #respiratoricContainer,
          #elyteContainer,
          #hbFraktionenContainer,
          #odccontainer,
          #EmpfehlungenContainer {
              width: 100%;
              max-width: 100%;
          }
      }

      .results-columns {
        display: flex;
        justify-content: space-between;
      }

      .results-column {
        width: 48%; /* Etwas weniger als 50% für einen kleinen Abstand zwischen den Spalten */
      }

      .left-column, .right-column {
        display: flex;
        flex-direction: column;
      }

      /* Für kleinere Bildschirme */
      @media (max-width: 480px) {
        .results-columns {
          flex-direction: column;
        }
        .results-column {
          width: 100%;
        }
      }


      #age {
          width: 80%; /* Relative Breite */
          max-width: 300px; /* Maximale Breite, um Überdehnung zu vermeiden */
          font-size: 16px; /* Angenehme Schriftgröße */
          padding: 5px; /* Etwas Polsterung für bessere Bedienbarkeit */
      }

      .switch {
          position: relative;
          display: inline-block;
          width: 60px;
          height: 34px;
      }

      .switch input { 
          opacity: 0;
          width: 0;
          height: 0;
      }

      .slider {
          position: absolute;
          cursor: pointer;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background-color: #ff0000; /* Rot */
          -webkit-transition: .4s;
          transition: .4s;
      }

      .slider:before {
          position: absolute;
          content: "";
          height: 26px;
          width: 26px;
          left: 4px;
          bottom: 4px;
          background-color: white;
          -webkit-transition: .4s;
          transition: .4s;
      }

      input:checked + .slider {
          background-color: #2196F3;
      }

      input:focus + .slider {
          box-shadow: 0 0 1px #2196F3;
      }

      input:checked + .slider:before {
          -webkit-transform: translateX(26px);
          -ms-transform: translateX(26px);
          transform: translateX(26px);
      }

      .slider.round {
          border-radius: 34px;
      }

      .slider.round:before {
          border-radius: 50%;
      }

     /* Modal Stil */
     .modal {
       display: none; /* Versteckt das Modal standardmäßig */
       position: fixed; /* Bleibt fest, auch beim Scrollen */
       z-index: 1000; /* Legt das Modal über andere Elemente */
       left: 0;
       top: 0;
       width: 100%; /* Volle Breite */
       height: 100%; /* Volle Höhe */
       overflow: auto; /* Aktiviert Scrollen, falls nötig */
       background-color: rgba(0,0,0,0.4); /* Schwarzer Hintergrund mit Opazität */
     }

     .modal-content.disclaimer-modal {
      background: #ffffff;
      margin: 10% auto;
      padding: 0;
      border-radius: 20px;
      width: 90%;
      max-width: 600px;
      box-shadow: 0 15px 30px rgba(0,0,0,0.2);
      overflow: hidden;
    }

    .disclaimer-header {
      background: linear-gradient(135deg, #ff4b4b, #ff6b6b);
      padding: 15px;
      text-align: center;
      color: white;
    }

    .disclaimer-header h1 {
      margin: 0;
      font-size: 22px;
      font-weight: 600;
      text-shadow: none;
    }

    .disclaimer-icon {
      width: 60px;
      height: auto;
      margin-bottom: 15px;
    }

    .disclaimer-body {
      padding: 20px;
    }

    .disclaimer-body p {
      margin: 8px 0;
      line-height: 1.5;
      font-size: 14px;
      color: #4a4a4a;
    }

    .warning-text {
      background: #fff3f3;
      padding: 15px;
      border-radius: 8px;
      border-left: 4px solid #ff4b4b;
    }

    .disclaimer-link {
      color: #ff4b4b;
      text-decoration: none;
      border-bottom: 1px dotted #ff4b4b;
    }

    .disclaimer-link:hover {
      color: #ff6b6b;
      border-bottom-style: solid;
    }

    .understand-button {
      display: block;
      width: calc(100% - 40px);
      margin: 10px 20px 15px;
      padding: 12px;
      background: linear-gradient(135deg, #4CAF50, #45a049);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: transform 0.2s, background 0.2s;
    }

    .understand-button:hover {
      transform: translateY(-2px);
      background: linear-gradient(135deg, #45a049, #3d8b40);
    }

    .understand-button:active {
      transform: translateY(0);
    }

      /* Modal Styles for Values */
      .value-modal {
        display: none; /* Hide by default */
        position: fixed;
        z-index: 1001; /* Ensure it is above other content */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
      }

      .value-modal-content {
        background-color: rgba(254, 254, 254, 0.97);
        margin: 10% auto; /* Centering */
        padding: 20px;
        border: 6px solid #ADD8E6; /* Light blue border */
        width: 80%;
        max-width: 600px;
      }
      .value-modal .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
      }
      .value-modal .close:hover,
      .value-modal .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
      }

      #valueNorm {
        font-style: italic;
        color: #666;
      }

      .template-checkbox {
          display: none;
      }
      .template-label {
          display: inline-block;
          margin: 5px 0;
          padding: 5px 10px;
          background-color: #f0f0f0;
          border: 1px solid #ccc;
          border-radius: 15px;
          cursor: pointer;
          font-size: 12px;
          transition: all 0.3s ease;
      }
      .template-checkbox:checked + .template-label {
          background-color: #2196F3;
          color: white;
          border-color: #2196F3;
      }
      #templatesHeader {
          background-color: #e0e0e0;
          padding: 5px 10px;
          border-radius: 5px;
          margin-bottom: 5px;
      }

      #templatesContent {
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease-out;
      }
      #templatesContent.open {
          max-height: 200px; /* Adjust this value based on your content */
      }

      /* Modern floating action button */
      .menu-button {
          position: fixed;
          top: 20px;
          right: 20px;
          width: 56px;
          height: 56px;
          border-radius: 50%;
          background: var(--primary-color);
          border: none;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
          z-index: 1001;
      }

      .menu-button:hover {
          transform: scale(1.05);
          box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
          background: var(--secondary-color);
      }

      .menu-button:active {
          transform: scale(0.95);
      }

      .menu-icon {
          width: 24px;
          height: 24px;
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;
      }

      .menu-icon::before,
      .menu-icon::after {
          content: '';
          position: absolute;
          width: 16px;
          height: 2px;
          background-color: white;
          border-radius: 1px;
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .menu-icon::before {
          transform: translateY(-4px);
      }

      .menu-icon::after {
          transform: translateY(4px);
      }

      .menu-icon .middle-line {
          width: 16px;
          height: 2px;
          background-color: white;
          border-radius: 1px;
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      /* Animation when menu is open */
      .menu-open .menu-icon::before {
          transform: rotate(45deg);
      }

      .menu-open .menu-icon::after {
          transform: rotate(-45deg);
      }

      .menu-open .menu-icon .middle-line {
          opacity: 0;
          transform: scale(0);
      }

      /* The Overlay (background) */
      .overlay {
          height: 0;
          width: 100%;
          position: fixed;
          z-index: 1000;
          left: 0;
          top: 0;
          background-color: rgba(0,0,0, 0.9);
          overflow-y: hidden;
          transition: 0.5s;
      }

      /* Position the content inside the overlay */
      .overlay-content {
          position: relative;
          top: 10%;
          width: 100%;
          text-align: center;
          margin-top: 30px;
      }

      /* The navigation links inside the overlay */
      .overlay a {
          padding: 8px;
          text-decoration: none;
          font-size: 36px;
          color: #818181;
          display: block;
          transition: 0.3s;
      }

      .overlay a:hover, .overlay a:focus {
          color: #f1f1f1;
      }

      /* Position the close button (top right corner) */
      .overlay .closebtn {
          position: absolute;
          top: 20px;
          right: 45px;
          font-size: 60px;
      }

      @media screen and (max-height: 450px) {
          .overlay a {font-size: 20px}
          .overlay .closebtn {
              font-size: 40px;
              top: 15px;
              right: 35px;
          }
      }

      .boxplot {
          position: absolute;
          bottom: 5px;
          left: 0;
          right: 0;
          height: 30px;
          background-color: #f5f5f5;
          margin-top: 5px;
          overflow: visible;
      }
      .normal-range {
          position: absolute;
          height: 100%;
          background-color: #e3f2fd;
          z-index: 1;
      }
      .whisker-left, .whisker-right {
          position: absolute;
          width: 1px;
          height: 100%;
          background-color: #424242;
          z-index: 3;
      }
      .measured-value {
          position: absolute;
          width: 2px;
          height: 140%;
          top: -20%;
          z-index: 4;
      }
      .boxplot-info-text {
          position: absolute;
          width: 100%;
          text-align: center;
          font-size: 11px;
          color: #424242;
          font-weight: 500;
          top: -18px;
          z-index: 5;
      }

        .boxplot-indicator {
          position: absolute;
          top: 0;
          height: 100%;
          width: 20px;
          display: flex;
          align-items: center;
          justify-content: center;
          color: red;
          z-index: 5;
        }
        .boxplot-indicator-left {
          left: 10px;
        }
        .boxplot-indicator-right {
          right: 10px;
        }

      /* Patientendaten-Container + BGA-Button: Zustand (arteriell/venös) über Klassen statt Inline-Styles */
      .patient-data-container {
          width: 95%;
          margin: 0 auto 20px;
          border: 1px solid rgba(0,0,0,0.1);
          border-radius: 12px;
          overflow: hidden;
      }
      .patient-data-container.arterial { border-color: #FF0000; }
      .patient-data-container.venous  { border-color: #2196F3; }

      #bgaButton.arterial { background-color: #FF0000; }
      #bgaButton.venous   { background-color: #2196F3; }

      /* Säure/Base-Kompensationstabelle (zuvor per JS injiziert) */
      .acid-base-table {
        font-size: 10px;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
      }
      .acid-base-table th, .acid-base-table td {
        padding: 2px;
        border: 1px solid #ddd;
      }
      .acid-base-table th {
        background-color: #f2f2f2;
        font-weight: bold;
      }
      .acid-base-table td:nth-child(2) {
        border-right: 3px solid black;
      }

