.cookie-background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5);
	z-index: 8888;
}

.cookie-modal {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    max-width: 500px;
    width: 95%;
    max-height: 80vh; /* Begrenze die Höhe für Scrollbarkeit */
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 9999;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
  }
  
  .cookie-modal-content {
    display: flex;
    flex-direction: column;
    padding: 1em;
    overflow-y: auto;
    max-height: calc(80vh - 60px); /* Abzüglich Buttonhöhe */
  }
  
  .cookie-modal-content h3 {
    margin-top: 0;
  }
  
  .cookie-section {
    margin-bottom: 1em;
  }
  
  .toggle-section {
    background: #eee;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.5em;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
  }
  
  .section-content {
    display: none;
    padding: 0.5em 0;
  }
  
  .section-content.open {
    display: block;
  }
  
  .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em;
    padding: 0.5em 1em;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
  }
  
  .cookie-buttons button {
    flex: 1 1 calc(33% - 0.5em);
    padding: 0.5em;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
  }
  
  #btn-decline { background: #ccc; }
  #btn-accept-selection { background: #007bff; color: white; }
  #btn-accept-all { background: #28a745; color: white; }
  
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin-top: 0.5em;
  }
  
  th, td {
    border: 1px solid #ddd;
    padding: 0.3em;
    text-align: left;
  }
  
  /* Mobile Optimierung */
  @media (max-width: 480px) {
    .cookie-buttons {
      flex-direction: column;
    }
  
    .cookie-buttons button {
      flex: 1 1 100%;
    }
  
    .cookie-modal {
      bottom: 10px;
    }
  }
  