:root {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --accent-color: #2ddbd0;
  --link-hover: #40e0d0;
  --max-width: 800px;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
}

.container {
  max-width: var(--max-width);
  width: 100%;
}

h1, h2, h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

p, li {
  margin-bottom: 1rem;
  font-size: 1rem;
}

ul {
  padding-left: 1.2rem;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover);
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}
/* Footer-Link-Stil */
.footer-legal-links {
  text-align: center;
  margin-top: 2rem;
}

.footer-legal-links a {
  color: #2ddbd0;
  margin: 0 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Modal Fenster – zentriert & abgedunkelt */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
}


.modal {
  display: none; /* Wird per JS zu "flex" gemacht */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* dunkler, halbtransparenter Hintergrund */
  backdrop-filter: blur(4px); /* Unschärfe im Hintergrund */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 2rem;
  border: 1px solid #2ddbd0;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: fadeIn 0.3s ease-out;
  z-index: 10000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
  color: #2ddbd0;
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #2ddbd0;
  cursor: pointer;
}

<script>
  // Modal öffnen
  document.querySelectorAll('[data-modal]').forEach(link => {
    link.addEventListener('click', function (e) {
      e.preventDefault();
      const modalId = this.getAttribute('data-modal');
      const modal = document.getElementById(modalId);
      if (modal) {
        modal.style.display = 'flex'; // nicht block!
      }
    });
  });

  // Modal schließen über X
  document.querySelectorAll('.close').forEach(btn => {
    btn.addEventListener('click', function () {
      this.closest('.modal').style.display = 'none';
    });
  });

  // Modal schließen durch Klick außerhalb
  window.addEventListener('click', function (event) {
    if (event.target.classList.contains('modal')) {
      event.target.style.display = 'none';
    }
  });
</script>
