/* ── login.css ───────────────────────────────────────────────────────────────
   Styles für login.php, passwort-*.php und Auth-Seiten
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Sticky Footer ── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ── Auth Forms ── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 40px 80px;
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  gap: 56px;
}
.auth-hero {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 40px;
  min-width: 0;
}
.auth-hero-inst {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.auth-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.auth-hero-sub {
  font-size: 0.82rem;
  color: rgba(232, 223, 200, 0.5);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  line-height: 1.7;
}
.auth-hero-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(232, 223, 200, 0.65);
  max-width: 440px;
  margin-bottom: 36px;
}
.auth-hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.auth-hero-feature .feat-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  height: 1.55em;
}
.auth-hero-feature strong {
  color: rgba(232, 223, 200, 0.8);
  font-weight: 400;
}
.auth-divider {
  width: 1px;
  background: rgba(201, 168, 76, 0.12);
  align-self: stretch;
  margin: 32px 0;
  flex-shrink: 0;
}
.auth-form-col {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.auth-page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface, #1a1814);
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  z-index: 100;
}
@media (orientation: landscape) and (max-height: 500px) {
  .auth-page-footer {
    position: static;
  }
}
.auth-page-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
@media (hover: hover) {
  .auth-page-footer a:hover {
    color: var(--gold);
  }
}
.auth-page-footer a:active {
  color: var(--gold);
}
.auth-page-footer span {
  opacity: 0.5;
}
:root.light .auth-divider {
  background: rgba(131, 98, 0, 0.1);
}
:root.light .auth-hero-desc {
  color: #5a4a30;
}
:root.light .auth-hero-sub {
  color: #8a7a60;
}
:root.light .auth-hero-feature {
  color: #8a7a60;
}
:root.light .auth-hero-feature strong {
  color: #3a2a1a;
}
/* Einspaltig ab 860px */
@media (max-width: 860px) {
  .auth-wrap {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    gap: 20px;
    padding: clamp(16px, 6vh, 48px) 24px 80px;
    max-width: 420px;
  }
  .auth-hero {
    padding: 0;
    justify-content: center;
    flex: none;
    width: 100%;
    text-align: center;
  }
  .auth-hero-inst {
    text-align: center;
  }
  .auth-hero-title {
    font-size: 1.6rem;
  }
  .auth-hero-sub {
    margin-bottom: 16px;
  }
  .auth-hero-desc {
    display: none;
  }
  .auth-hero-features {
    display: none;
  }
  .auth-divider {
    display: none;
  }
  .auth-hero::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(201, 168, 76, 0.4);
    margin: 0 auto;
  }
  .auth-form-col {
    flex: none;
    padding: 0;
    width: 100%;
    max-width: 380px;
  }
}
/* Handy Querformat schmal: Hero kompakter */
@media (max-width: 860px) and (orientation: landscape) {
  .auth-wrap {
    flex: 1;
    padding: 12px 24px 12px;
    gap: 12px;
    max-width: 500px;
  }
  .auth-hero-sub {
    display: none;
  }
  .auth-hero-title {
    font-size: 1.3rem;
  }
}
:root.light .auth-card {
  background: var(--card);
  box-shadow: 0 4px 20px rgba(131, 98, 0, 0.1);
  border-color: rgba(131, 98, 0, 0.15);
}
.auth-hero-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.auth-hero-profile .auth-hero-title {
  margin-bottom: 0;
}
.auth-hero-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(201, 168, 76, 0.25);
}
@media (max-width: 860px) {
  .auth-hero-profile {
    justify-content: center;
  }
}
.auth-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.auth-card .subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.form-group input:focus {
  border-color: var(--gold);
}
:root.light .form-group input {
  border-color: rgba(131, 98, 0, 0.2);
}
:root.light .form-group input:focus {
  border-color: var(--gold);
}

.form-group .hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 38px;
}
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
@media (hover: hover) {
  .pw-eye:hover {
    opacity: 1;
  }
}
.pw-eye:active {
  opacity: 1;
}

.btn-full {
  width: 100%;
}
.btn-auth {
  padding: 10px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--gold);
  text-decoration: none;
}
@media (hover: hover) {
  .auth-footer a:hover {
    text-decoration: underline;
  }
}
.auth-footer a:active {
  text-decoration: underline;
}

.error-msg {
  background: rgba(192, 57, 43, 0.1);
  color: #e07060;
  border: 1px solid rgba(192, 57, 43, 0.2);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.84rem;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .auth-card {
    padding: 28px 20px;
  }
}

/* ── Avatar-Zoom ── */
.avatar-zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
  background: none;
  border: none;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}
.avatar-zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.avatar-zoom__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.avatar-zoom:hover .avatar-zoom__overlay,
.avatar-zoom:focus-visible .avatar-zoom__overlay {
  opacity: 1;
}
.avatar-zoom__overlay .ti {
  font-size: 1.1rem;
  color: #fff;
}

/* ── Lightbox (wie impressum) ── */
.ds-lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s;
}
.ds-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.ds-lightbox img {
  max-width: min(420px, 90vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.7);
  cursor: default;
  transform: scale(0.95);
  transition: transform 0.22s ease;
}
.ds-lightbox.is-open img {
  transform: scale(1);
}
.ds-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}
@media (hover: hover) {
  .ds-lightbox__close:hover {
    color: #fff;
  }
}
.ds-lightbox__close:active {
  color: #fff;
}
.ds-lightbox__caption {
  position: absolute;
  bottom: 20px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}
