/* Das Anmelde-/Registrierfenster — EIN Aussehen für Landingpage und Risikokarte (24.09.2026). Aufbau: auth-fenster.js.
   Jede Regel hängt an #auth-overlay.af (die Klasse setzt das Skript) — ohne das Skript bleibt das Fenster der Seite, wie
   es war. Die Kennungen im Selektor und !important schlagen die älteren Stile beider Seiten (riskmap.html, ui-neu.css,
   landing.html), damit das Fenster überall gleich aussieht. */

#auth-overlay.af { background: rgba(2,6,16,0.34) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#auth-overlay.af #auth-modal {
  display: flex; width: min(880px, 100%); max-height: calc(100vh - 32px); padding: 0 !important; overflow: hidden; position: relative;
  border: 0 !important; border-radius: 28px !important; color: #F2F6FF;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), rgba(8,16,36,0.66) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 40px 90px rgba(0,0,0,0.6) !important;
  font-family: var(--font, 'Inter Tight', system-ui, sans-serif);
}

/* ── Foto-Seite ──────────────────────────────────────────────────────────────────────────────────────────────── */
#auth-overlay.af .af-bild { position: relative; flex: 0 0 44%; min-height: 560px; overflow: hidden; }
#auth-overlay.af .af-bild picture { position: absolute !important; inset: 0; display: block; width: 100%; height: 100%; }
#auth-overlay.af .af-bild img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 38% 50%; }
#auth-overlay.af .af-text {
  position: absolute; inset: 0; z-index: 1; padding: 28px 30px 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  background: linear-gradient(180deg, rgba(6,12,28,0.10) 0%, rgba(6,12,28,0.18) 32%, rgba(6,12,28,0.78) 58%, rgba(6,12,28,0.96) 100%);
}
#auth-overlay.af .af-marke { margin: 0; font: 600 13px/1 'Unbounded', var(--font, system-ui), sans-serif; letter-spacing: -0.01em; color: #F2F6FF; }
#auth-overlay.af .af-marke span { color: #3DE0FF; }
#auth-overlay.af .af-satz {
  margin: 0; font: 500 24px/1.18 'Unbounded', var(--font, system-ui), sans-serif; letter-spacing: -0.03em; color: #F2F6FF; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
#auth-overlay.af .af-zurueck { display: none; }
#auth-overlay.af:has(#auth-tabs [data-mode="signin"].active) .af-neu { display: none; }
#auth-overlay.af:has(#auth-tabs [data-mode="signin"].active) .af-zurueck { display: block; }

/* Vorteile (nur beim Registrieren): helle Häkchen, kein Kasten */
#auth-overlay.af #auth-vorteile {
  list-style: none; display: grid; gap: 8px; margin: 4px 0 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-size: 13px; line-height: 1.45; color: rgba(236,244,255,0.9);
}
#auth-overlay.af #auth-vorteile[hidden] { display: none !important; }
#auth-overlay.af #auth-vorteile li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
#auth-overlay.af #auth-vorteile li::before { content: "✓"; color: #3DE0FF; font-weight: 700; }
#auth-overlay.af #auth-vorteile li.av-fuss { grid-template-columns: 1fr; font-size: 11.5px; color: rgba(223,235,255,0.6); }
#auth-overlay.af #auth-vorteile li.av-fuss::before { content: none; }
/* Über dem Formular (Handy): mit feiner Linie links */
#auth-overlay.af .af-formular #auth-vorteile {
  margin: 0 0 18px !important; padding: 2px 0 2px 14px !important; border-left: 2px solid rgba(61,224,255,0.35) !important; color: rgba(223,235,255,0.82);
}

/* ── Formular-Seite ──────────────────────────────────────────────────────────────────────────────────────────── */
#auth-overlay.af .af-formular { flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 30px 34px 26px; scrollbar-width: thin; }
#auth-overlay.af #auth-modal-close {
  position: absolute !important; z-index: 3; top: 16px !important; right: 16px !important; left: auto !important;
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50% !important; border: 0 !important;
  background: rgba(255,255,255,0.06) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12) !important; color: rgba(236,244,255,0.85); cursor: pointer;
}
#auth-overlay.af #auth-modal-close:hover { background: rgba(255,255,255,0.12) !important; color: #fff; }

/* Reiter: zwei Wörter, das aktive hell mit feinem Verlauf darunter (kein Schieberegler) */
#auth-overlay.af #auth-modal #auth-tabs {
  display: flex; gap: 26px; height: auto; width: auto; padding: 0 !important; margin: 0 44px 24px 0;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
#auth-overlay.af #auth-modal #auth-tabs::before, #auth-overlay.af #auth-modal #auth-tabs::after { display: none !important; content: none !important; }
#auth-overlay.af #auth-modal #auth-tabs button {
  position: relative; flex: none; width: auto; height: auto; padding: 6px 0 10px !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: rgba(223,235,255,0.5) !important;
  font: 600 15px/1 var(--font, 'Inter Tight', system-ui, sans-serif) !important; letter-spacing: 0 !important; text-transform: none !important;
  cursor: pointer; transition: color 0.18s ease;
}
#auth-overlay.af #auth-modal #auth-tabs button:hover { color: rgba(236,244,255,0.85) !important; }
#auth-overlay.af #auth-modal #auth-tabs button.active { color: #F2F6FF !important; }
#auth-overlay.af #auth-modal #auth-tabs button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #3DE0FF, #FFB454); opacity: 0; transform: scaleX(0.4); transition: opacity 0.2s ease, transform 0.2s ease;
}
#auth-overlay.af #auth-modal #auth-tabs button.active::after { opacity: 1; transform: scaleX(1); }

#auth-overlay.af #auth-title {
  margin: 0 0 8px; font: 500 26px/1.12 'Unbounded', var(--font, system-ui), sans-serif; letter-spacing: -0.03em; color: #F2F6FF;
}
#auth-overlay.af #auth-subtitle { margin: 0 0 20px; font-size: 13.5px; line-height: 1.55; color: rgba(223,235,255,0.68); }

#auth-overlay.af .auth-field { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
#auth-overlay.af .auth-field label {
  font: 600 11px/1.2 var(--font, 'Inter Tight', system-ui, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(159,232,247,0.8);
}
#auth-overlay.af .auth-field input {
  width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 14px !important; border: 0 !important;
  background: rgba(255,255,255,0.06) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12) !important;
  color: #F2F6FF; font: 400 14.5px var(--font, 'Inter Tight', system-ui, sans-serif); transition: box-shadow 0.18s ease, background 0.18s ease;
}
#auth-overlay.af .auth-field input::placeholder { color: rgba(223,235,255,0.4); }
#auth-overlay.af .auth-field input:focus {
  outline: none; background: rgba(255,255,255,0.09) !important;
  box-shadow: inset 0 0 0 1px rgba(61,224,255,0.75), 0 0 0 4px rgba(61,224,255,0.12) !important;
}
#auth-overlay.af .auth-hint { margin: 0; font-size: 11.5px; color: rgba(223,235,255,0.5); }
#auth-overlay.af .auth-pw-toggle {
  position: absolute; right: 8px; top: 29px; height: 30px; padding: 0 10px; border: 0 !important; border-radius: 999px !important;
  background: none !important; box-shadow: none !important; color: rgba(223,235,255,0.6);
  font: 600 10.5px/1 var(--font, 'Inter Tight', system-ui, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
#auth-overlay.af .auth-pw-toggle:hover { color: #3DE0FF; background: rgba(255,255,255,0.06) !important; }
#auth-overlay.af .auth-pw-toggle[hidden] { display: none !important; }

#auth-overlay.af #auth-consent {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; padding: 4px 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  font-size: 12.5px; line-height: 1.5; color: rgba(223,235,255,0.72);
}
#auth-overlay.af #auth-consent[hidden] { display: none !important; }
#auth-overlay.af #auth-consent input { margin-top: 3px; flex-shrink: 0; accent-color: #3DE0FF; }
#auth-overlay.af #auth-consent a { color: #3DE0FF; text-decoration: underline; }
#auth-overlay.af #auth-consent strong { color: #F2F6FF; }

/* Absenden: die Kappen-Pille der Seite (Verlauf, rechts die Kappe mit Pfeil) */
#auth-overlay.af #auth-modal #auth-submit {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: flex-start;
  width: 100%; height: 46px; box-sizing: border-box; margin-top: 10px; padding: 0 56px 0 16px !important;
  border: 0 !important; border-radius: 999px !important; cursor: pointer; color: #F2F6FF !important; filter: none !important;
  background: linear-gradient(90deg, rgba(61,224,255,0.20), rgba(123,92,255,0.20)) !important;
  box-shadow: inset 0 0 0 1px rgba(61,224,255,0.45) !important;
  font: 700 11.5px/1 var(--font, 'Inter Tight', system-ui, sans-serif) !important; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
#auth-overlay.af #auth-modal #auth-submit:hover:not(:disabled) {
  background: linear-gradient(90deg, rgba(61,224,255,0.32), rgba(123,92,255,0.28)) !important;
  box-shadow: inset 0 0 0 1px rgba(61,224,255,0.6), 0 10px 26px rgba(61,224,255,0.25) !important;
}
#auth-overlay.af #auth-modal #auth-submit::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; margin: 0; background: #3DE0FF; opacity: .92;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; transition: width .18s ease;
}
#auth-overlay.af #auth-modal #auth-submit:hover::after { width: 48px; }
#auth-overlay.af #auth-modal #auth-submit::before {
  content: ''; position: absolute; right: 11px; top: 50%; width: 16px; height: 16px; margin: -8px 0 0; z-index: 1; pointer-events: none; display: block;
  background-color: #041018;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D%22M9%206l6%206-6%206%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat !important;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D%22M9%206l6%206-6%206%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat !important;
}
#auth-overlay.af #auth-modal #auth-submit:disabled { opacity: .6; cursor: default; }

#auth-overlay.af #auth-modal #auth-forgot-link {
  display: block !important; width: 100%; margin: 12px 0 0 !important; text-align: center !important; font: 500 12.5px var(--font, 'Inter Tight', system-ui, sans-serif);
  letter-spacing: 0; text-transform: none; color: rgba(223,235,255,0.62); text-decoration: none;
}
#auth-overlay.af #auth-modal #auth-forgot-link:hover { color: #3DE0FF; }
#auth-overlay.af #auth-message { margin-top: 10px; font-size: 13px; line-height: 1.5; border-radius: 12px; }
#auth-overlay.af #auth-message:empty { display: none; }
#auth-overlay.af #auth-message.error { padding: 10px 12px; background: rgba(206,35,80,0.14); color: #FFC2D0; box-shadow: inset 0 0 0 1px rgba(206,35,80,0.35); }
#auth-overlay.af #auth-message.success { padding: 10px 12px; background: rgba(17,137,122,0.16); color: #B9F0E2; box-shadow: inset 0 0 0 1px rgba(79,214,188,0.35); }
/* Zusatzknöpfe (Bestätigung erneut senden, Zu „Registrieren" wechseln): leise Glaspille */
#auth-overlay.af #auth-resend-confirm, #auth-overlay.af #auth-switch-signup {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 40px; margin-top: 10px; padding: 0 14px;
  border: 0 !important; border-radius: 999px !important; background: rgba(255,255,255,0.08) !important; box-shadow: none !important;
  color: #F2F6FF; font: 700 11px/1 var(--font, 'Inter Tight', system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
#auth-overlay.af #auth-resend-confirm:hover, #auth-overlay.af #auth-switch-signup:hover { background: rgba(255,255,255,0.14) !important; }
#auth-overlay.af #auth-resend-confirm[hidden], #auth-overlay.af #auth-switch-signup[hidden] { display: none !important; }

/* ── Handy / schmal: Foto als Kopfbild mit dem Satz, darunter das Formular ─────────────────────────────────────── */
@media (max-width: 820px) {
  #auth-overlay.af #auth-modal { flex-direction: column; overflow-y: auto; border-radius: 24px !important; }
  #auth-overlay.af .af-bild { flex: 0 0 auto; min-height: 0; height: 168px; }
  #auth-overlay.af .af-bild img { object-position: 30% 38%; }
  #auth-overlay.af .af-text { padding: 18px 20px; gap: 6px; background: linear-gradient(180deg, rgba(6,12,28,0.25) 0%, rgba(6,12,28,0.55) 45%, rgba(6,12,28,0.9) 100%); }
  #auth-overlay.af .af-satz { font-size: 19px; }
  #auth-overlay.af .af-formular { overflow: visible; padding: 20px 20px 22px; }
  #auth-overlay.af #auth-modal #auth-tabs { margin-right: 0; }
  #auth-overlay.af #auth-modal-close { background: rgba(6,12,28,0.55) !important; }
  #auth-overlay.af #auth-title { font-size: 22px; }
}
