/* Kundenbereich-Login als On-Site-Modal */
.ea-login[hidden] { display: none !important; }

.ea-login {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ea-login__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 18, 0.62);
  backdrop-filter: blur(4px);
}

.ea-login__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 30px 30px 24px;
  border-radius: 22px;
  background: #fbf8f1;
  color: #17281f;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.55);
  animation: ea-login-in 0.28s ease both;
}

@keyframes ea-login-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ea-login__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 40, 31, 0.07);
  color: #17281f;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ea-login__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #2f6b4f;
  font: 700 0.68rem/1.2 "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ea-login h2 {
  margin: 0 0 8px;
  color: #123c2c;
  font: 700 clamp(1.45rem, 4vw, 1.85rem)/1.15 "Archivo", "Segoe UI", sans-serif;
}

.ea-login__intro {
  margin: 0 0 20px;
  color: #4c6156;
  font: 400 0.92rem/1.55 "Inter", "Segoe UI", sans-serif;
}

.ea-login form {
  display: grid;
  gap: 7px;
}

.ea-login label {
  margin-top: 5px;
  color: #17281f;
  font: 600 0.83rem/1.3 "Inter", "Segoe UI", sans-serif;
}

.ea-login input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1.5px solid rgba(23, 40, 31, 0.18);
  border-radius: 11px;
  background: #fff;
  color: #17281f;
  font: 400 0.95rem/1.3 "Inter", "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.ea-login input:focus {
  outline: none;
  border-color: #2f6b4f;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.14);
}

.ea-login__status {
  display: none;
  margin: 4px 0;
  padding: 9px 11px;
  border-radius: 9px;
  font: 500 0.84rem/1.4 "Inter", "Segoe UI", sans-serif;
}

.ea-login__status.is-visible { display: block; }
.ea-login__status.is-error { color: #8c2f1b; background: #fde6dd; }
.ea-login__status.is-success { color: #1f5c40; background: #e4eee6; }

.ea-login__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: #123c2c;
  color: #fff;
  font: 700 0.95rem/1 "Inter", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.ea-login__submit:hover { background: #1c5240; }
.ea-login__submit:disabled { opacity: 0.6; cursor: wait; }

.ea-login__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 40, 31, 0.1);
  font: 400 0.8rem/1.4 "Inter", "Segoe UI", sans-serif;
}

.ea-login__footer a {
  color: #2f6b4f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ea-login__footer a:hover { color: #123c2c; }

body.ea-login-open { overflow: hidden; }

@media (max-width: 520px) {
  .ea-login { padding: 12px; }
  .ea-login__dialog { padding: 26px 20px 20px; border-radius: 18px; }
  .ea-login__footer { flex-direction: column; }
  .ea-login__footer a { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .ea-login__dialog { animation: none; }
}

/* Header-Login + mobiler Menüpunkt */
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(23, 40, 31, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #0b2a1f;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.header-login svg { width: 21px; height: 21px; }
.header-login:hover { border-color: #f26b44; transform: translateY(-2px); }

.nav-login-item { display: none; }

@media (max-width: 900px) {
  .header-login {
    width: 44px;
    height: 44px;
  }
  .header-login svg { width: 21px; height: 21px; }

  .nav-login-item { display: block; margin-top: 12px; }

  .nav-login-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(248, 245, 236, 0.4);
    border-radius: 999px;
    color: inherit;
    font: 600 0.9rem/1.2 "Inter", "Segoe UI", sans-serif;
    text-decoration: none;
  }

  .nav-login-item a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.75;
  }
}

@media (max-width: 520px) {
  .header-login {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .header-login svg { width: 21px; height: 21px; }
}
/* Mobile: Hero-Bild zuerst, Text darunter */
@media (max-width: 900px) {
  .hero .hero__visual {
    order: -1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.4rem;
  }
  .hero .hero__content {
    order: 2;
  }
}