  /* ── Modal / Dialog ── */
  /* Registrierung als Tippgeber — dark card overlay */

  .modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    background-color: rgba(255, 255, 255, 0.84);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .modal.open {
    opacity: 1;
    pointer-events: auto;
  }

  .modal__card {
    position: relative;
    width: 100%;
    max-width: 549px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #161413;
    color: var(--black);
    border-radius: 3px;
    background: rgba(190, 182, 180, 0.79);
    padding: 3.75rem;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: thin;
  }

  .modal.open .modal__card {
    transform: translateY(0) scale(1);
  }

  .modal__close {
    position: absolute;
    top: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
  }

  .modal__close:hover { opacity: 1; }

  .modal__close::before,
  .modal__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: var(--black);
  }

  .modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
  .modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

  .modal__logo {
    display: block;
    width: 133px;
    height: auto;
    margin-bottom: 3.5rem;
    /* Force the SVG to render solid black */
    filter: brightness(0);
  }

  .modal__title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-heading);
    line-height: 1.50;
    margin-bottom: 1.5rem;
  }

  .modal__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 1.1rem;
  }

  .modal__checks {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .modal__check {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.45;
    color: var(--black);
    padding-top: 1.25rem;
  }

  .modal__check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--amber);
    cursor: pointer;
  }

  .modal__check a {
    color: inherit;
    text-decoration: underline;
  }

  .modal__check a:hover { color: var(--amber); }

  .modal__input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 3px;
    background: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    color: var(--black);
    outline: none;
    margin-bottom: 1.5rem;
  }

  .modal__input::placeholder {
    color: var(--darkgrey);
    font-weight: 400;
  }

  /* Captioned field (e.g. the date input, which can't show a placeholder) */
  .modal__field {
    display: block;
    margin-bottom: 1.5rem;
  }

  .modal__field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-small);
    color: var(--darkgrey);
  }

  .modal__field .modal__input {
    margin-bottom: 0;
  }

  .modal__submit {
    border: none;
  }

  .modal__submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .modal__msg {
    padding: 0.85rem 1.25rem;
    border-radius: 3px;
    background: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.4;
    color: var(--black);
    margin-bottom: 1.5rem;
  }

  .modal__msg--ok {
    border-left: 3px solid var(--amber);
  }

  .modal__msg--err {
    border-left: 3px solid #b86b6b;
  }

  @media (max-width: 480px) {
    .modal__card {
      border-radius: 14px;
    }
  }
