/* === BASISZUSTÄNDE === */
html, body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  font-family: sans-serif;
  font-size: 16px;
}

/* Hintergrund */
body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

/* Logo */
.logo {
  margin-top: 1rem;
  margin-left: 1rem;
  width: 150px;
  background-color: #fff;
  border-radius: 5px;
  padding: 10px;
  box-sizing: border-box;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.header-img {
  width: 100%;
  height: auto;
  display: block;
}

/* === MODAL === */
#warning-modal {
  overflow: hidden;  
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;

}

/* Modal Inhalt */
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0px;
  width: 100%;
  max-width: 920px;
  text-align: left;
  border: 1px solid #e2e2e2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  overflow-y: auto;  height: 100%;  max-height: 100vh;
}

.modal-content h2 {
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  margin-top: 0;
  margin-bottom: 1rem;
}

.modal-content h3 {
  font-size: clamp(1rem, 4vw, 1.3rem);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.modal-content h4 {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.6;
  margin: 0.8rem 0;
  color: #333;
}

.modal-content a {
  color: #0078d7;
}

/* Header-Bereich */
.header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e2e2;
  text-align: center;
}

/* Abstände zwischen Abschnitten */
.top-dist {
  margin-top: 2.5rem !important;
}

/* Footer-Bereich */
.footer {
  color: #777777;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
}

.footer p {
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  color: #666;
}

/* === BUTTONS === */
a.btn-link {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #0078d7;
  color: #fff;
  cursor: pointer;
  display: block;
  min-width: 200px;
  text-decoration: none;
  text-align: center;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.btn-link-dark {
    background: #004A85 !important;

}

.btn-link:hover {
  background-color: #106ebe;
  transform: translateY(-2px);
}

.btn-link:active {
  transform: translateY(0);
}

/* Versteckt */
.hidden {
  display: none;
}

.important-hint {
  color: #C23A1F;
  font-weight: bold;
}


/* === TABLET (768px und größer) === */
@media (min-width: 768px) {
  .modal-content {
    padding: 2.5rem 3rem;
  }

  .header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }

  .top-dist {
    margin-top: 3rem !important;
  }
}

/* === MOBILE (unter 480px) === */
@media (max-width: 480px) {
  #warning-modal {
    padding: 0.5rem;
  }

  .modal-content {
    padding: 1.5rem 1rem;
    border-radius: 8px;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }

  .modal-content h3 {
    font-size: 1rem;
  }

  .btn-link {
    width: 100%;
    min-width: unset;
  }

  .logo {
    width: 120px;
    margin-top: 0.8rem;
    margin-left: 0.8rem;
  }
}

/* === KLEINE TABLETS / LANDSCAPE (480px - 767px) === */
@media (min-width: 480px) and (max-width: 767px) {
  .modal-content {
    padding: 1.8rem 1.5rem;
  }

  .btn-link {
    width: 100%;
  }

  .logo {
    width: 130px;
  }
}

/* === DRUCK === */
@media print {
  body {
    background: none;
  }

  #warning-modal {
    background: transparent;
    padding: 0;
  }

  .modal-content {
    box-shadow: none;
    page-break-inside: avoid;
  }
}
