/* Panel "Anmelden | Registrieren" – Inhalt nach Layout Checkout v8,
   Schritt 2; Rahmen wie die Lieferland-Auswahl (Slide-in am rechten Rand). */
html.dw-konto-offen { overflow: hidden; }

.dw-konto {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.3);
}
.dw-konto[hidden] { display: none; }

.dw-konto__dialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 442px;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 24px 22px 24px 21px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  z-index: 1201;
  animation: dw-konto-rein 0.2s ease-out;
}
@keyframes dw-konto-rein {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-konto__dialog { animation: none; }
}

.dw-konto__kopf { margin: 0 0 19px; padding-right: 40px; }
.dw-konto__titel {
  display: block;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: #212529;
}
.dw-konto__zu {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: #212529;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dw-konto__zu svg { width: 26px; height: 26px; stroke-width: 1.6; }
.dw-konto__zu:hover { color: #b32d2f; }

.dw-konto__laden { padding: 24px 0; text-align: center; color: #6b7580; }

/* Reiter */
.dw-konto__tabs { display: flex; margin: 0 0 22px; }
.dw-konto__tab {
  flex: 1 1 50%;
  height: 64px;
  border: 0;
  background: #f2f3f5;
  color: #222;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.dw-konto__tab.is-active { background: #b32d2f; color: #fff; }
.dw-konto__tab:not(.is-active):hover { color: #b32d2f; }

/* Formulare */
.dw-konto form { max-width: none; margin: 0; }
.dw-konto .form-item { margin: 0 0 10px; }
.dw-konto .form-item > label:not(.option),
.dw-konto .form-item__label:not(.option) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.dw-konto :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select) {
  display: block;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 2px solid #c9d1d9;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 17px;
}
.dw-konto select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10' fill='none' stroke='%23416681' stroke-width='1.8'%3E%3Cpolyline points='1,1 9,9 17,1'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.dw-konto ::placeholder { color: #5f6a75; opacity: 1; }
.dw-konto :is(input, select):focus { border-color: #416681; }

.dw-konto .form-type-checkbox,
.dw-konto .form-type--checkbox,
.dw-konto .js-form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
}
.dw-konto input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: #416681;
}
.dw-konto .form-item label.option { color: #333; font-size: 16px; line-height: 1.5; font-weight: 400; }
.dw-konto label.option a { color: #b32d2f; text-decoration: none; }

/* Hinweise/Beschreibungen von Drupal im Overlay ausblenden */
.dw-konto :is(.description, .form-item__description, .password-strength, .password-confirm, .password-suggestions) { display: none; }
.dw-konto .form-item--password-confirm,
.dw-konto .password-confirm-wrapper { margin: 0; }
/* Honeypot-Feld (die CSS des Moduls fehlt im nachgeladenen Fragment) */
.dw-konto .url-textfield { display: none !important; }

.dw-konto .form-actions { margin: 18px 0 0; }
.dw-konto .form-actions .button,
.dw-konto .form-actions input[type="submit"] {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: #416681;
  color: #fff;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.dw-konto .form-actions .button:hover,
.dw-konto .form-actions input[type="submit"]:hover { background: #34546b; }
.dw-konto__vergessen { margin: 14px 0 0; text-align: center; font-size: 15px; }
.dw-konto__vergessen a { color: #416681; }

@media (max-width: 480px) {
  .dw-konto__dialog { width: calc(100vw - 44px); }
  .dw-konto__tab { height: 54px; font-size: 16px; }
}
