/* =========================================================
   E-Hausverwaltung — Ergänzendes Stylesheet
   (baut auf style.css + portal.css auf, gleiches Design)
   ========================================================= */

/* ---------- Logo ---------- */
.ehv-logo { height: 34px; width: auto; }
@media (max-width: 560px) { .ehv-logo { height: 28px; } }

/* ---------- "powered by AC Immobilien"-Badge ---------- */
.powered-by {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.powered-by:hover { opacity: 1; transform: translateY(-1px); }
.powered-by img { height: 16px; width: auto; opacity: 0.9; }
@media (max-width: 560px) {
  .powered-by { right: 10px; bottom: 10px; padding: 0.35rem 0.55rem; }
  .powered-by span { display: none; }
}

/* ---------- Login-Hub: Vermieter-CTA-Button ---------- */
.login-cta {
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.login-cta .btn { margin-top: 0.4rem; }

/* ---------- Passwort-Richtlinie / Stärkeanzeige ---------- */
.pw-policy {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.pw-policy ul { margin: 0.4rem 0 0; padding: 0; }
.pw-policy li {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.1rem 0;
  transition: color 0.2s var(--ease);
}
.pw-policy li::before {
  content: '○';
  font-size: 0.8rem;
  color: var(--grey-400);
}
.pw-policy li.met { color: var(--grey-800); }
.pw-policy li.met::before { content: '●'; color: #1f8a4c; }
.pw-meter {
  height: 5px; border-radius: 3px; background: var(--grey-200);
  margin: 0.7rem 0 0.2rem; overflow: hidden;
}
.pw-meter > span {
  display: block; height: 100%; width: 0;
  background: var(--grey-400);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.pw-meter.s1 > span { width: 25%;  background: #c0392b; }
.pw-meter.s2 > span { width: 50%;  background: #e08a1e; }
.pw-meter.s3 > span { width: 75%;  background: #c9b037; }
.pw-meter.s4 > span { width: 100%; background: #1f8a4c; }
.pw-meter-label { font-size: 0.72rem; color: var(--text-soft); }

/* ---------- Abo-/Status-Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: var(--grey-50);
}
.badge--aktiv      { color: #1f8a4c; border-color: #b6dcc4; background: #eef8f1; }
.badge--testphase  { color: #2563a8; border-color: #bcd4ee; background: #eef4fb; }
.badge--gesperrt   { color: #c0392b; border-color: #e6bdb7; background: #fbeeec; }
.badge--gekuendigt { color: #5e5e5c; border-color: var(--grey-300); background: var(--grey-100); }

/* ---------- kleine Statistik-Kacheln ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  background: var(--bg);
}
.stat-card .num { font-size: 2rem; font-weight: 400; line-height: 1; }
.stat-card .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.5rem; }

/* ---------- Hinweis-Box ---------- */
.notice {
  border: 1px solid var(--line);
  background: var(--grey-50);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.notice strong { color: var(--text); }
.notice--warn { background: #fbf6ec; border-color: #ecdcb8; }

/* ---------- Passwort-Feld mit Auge ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 3rem !important; }
.pw-eye {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; color: var(--grey-500);
  border-radius: 8px; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.pw-eye:hover { color: var(--text); background: var(--grey-100); }

/* ---------- Modal / Drawer ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1400;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(22,22,21,0.55); backdrop-filter: blur(3px);
  padding: clamp(1rem, 5vh, 4rem) 1rem; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); width: 100%; max-width: 640px;
  border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.modal h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 1.4rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.modal__close {
  font-size: 1.6rem; line-height: 1; color: var(--text-soft);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--grey-100); color: var(--text); }
.modal .form-actions { display: flex; gap: 0.8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.fieldset-title {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft); margin: 1.6rem 0 0.4rem; font-weight: 500;
}
