/* v7 (01.12.2026) – weiss, Space Grotesk, Gold #e2b84a wie risingliberty.com; Licht-Flecken + Punkte-Netz, echtes Logo */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f4f4;
  --bg-2: #ffffff;
  --field: rgba(255, 255, 255, 0.92);
  --field-hover: #ffffff;
  --line: rgba(20, 20, 20, 0.10);
  --line-strong: rgba(20, 20, 20, 0.18);
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6e6e6e;
  --red: #e2b84a;
  --red-hover: #ebc762;
  --red-press: #cfa236;
  --red-soft: rgba(226, 184, 74, 0.16);
  --red-text: #9a7414;
  --gold: #e2b84a;
  --gold-fg: #1a1408;
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
}

html, body { background: var(--bg) !important; color: var(--ink) !important; }
body.rl-body.rl-light {
  font-family: var(--font) !important;
  min-height: 100svh; margin: 0;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 2px; }

/* ---------- Hintergrund: weiss mit Licht und Netz ---------- */
html, body { background: #ffffff !important; }
.rl-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #fff; }
.rl-bg__net { position: absolute; inset: 0; width: 100%; height: 100%; }
.rl-bg__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.rl-bg__blob--a { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle, rgba(226,184,74,.55), transparent 65%); animation: rl-drift-a 22s ease-in-out infinite alternate; }
.rl-bg__blob--b { width: 42vmax; height: 42vmax; right: -14vmax; bottom: -14vmax; background: radial-gradient(circle, rgba(62,124,177,.45), transparent 65%); animation: rl-drift-b 26s ease-in-out infinite alternate; }
.rl-bg__blob--c { width: 30vmax; height: 30vmax; left: 40%; top: 30%; background: radial-gradient(circle, rgba(226,184,74,.25), transparent 70%); animation: rl-drift-c 30s ease-in-out infinite alternate; }
@keyframes rl-drift-a { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes rl-drift-b { to { transform: translate(-12vmax, -8vmax) scale(1.15); } }
@keyframes rl-drift-c { to { transform: translate(-18vmax, 12vmax) scale(.9); } }

/* ---------- Kopfzeile ---------- */
.rl-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3vw, 34px) 16px;
}
.rl-bar__word {
  font-family: var(--font); font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem); color: var(--ink) !important; text-decoration: none;
}
.rl-bar__actions { display: flex; gap: 10px; }
.rl-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.55rem; padding: 0 1.15rem; border-radius: 999px;
  font: 600 .72rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
}
.rl-pill--glass {
  background: var(--gold); color: var(--gold-fg) !important;
  border: 1px solid transparent; box-shadow: 0 8px 22px -10px rgba(190, 140, 30, .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.rl-pill--glass:hover { transform: translateY(-1px); color: var(--gold-fg) !important; }

/* ---------- Bühne ---------- */
.rl-stage {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 18px max(18px, env(safe-area-inset-bottom));
}
.rl-mark { position: relative; width: clamp(120px, 15vw, 170px); aspect-ratio: 1; margin: 0 0 20px; perspective: 600px; }
.rl-mark picture, .rl-mark__img { display: block; width: 100%; height: 100%; }
.rl-mark__img {
  position: relative; z-index: 1; object-fit: contain;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 14px 22px rgba(30, 40, 60, .18));
  animation: rl-float 6s ease-in-out infinite, rl-in .9s cubic-bezier(.2, .8, .2, 1) both;
}
.rl-mark__halo {
  position: absolute; inset: -22%; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, rgba(226,184,74,.0), rgba(226,184,74,.35), rgba(62,124,177,.3), rgba(226,184,74,.0));
  filter: blur(26px); animation: rl-spin 14s linear infinite;
}
@keyframes rl-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes rl-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes rl-spin { to { transform: rotate(360deg); } }

/* ---------- Karte ---------- */
.rl-form-wrap {
  position: relative; width: 100%; max-width: 440px; margin: 0 !important;
  padding: 34px 34px 30px !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(255, 255, 255, .9) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .28), 0 2px 0 rgba(255, 255, 255, .6) inset !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  animation: rl-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
.rl-form-wrap::before { display: none !important; }
@keyframes rl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rl-form-header { margin: 0 0 22px !important; }
.rl-form-header .heading {
  font-family: var(--font) !important; font-weight: 700 !important; letter-spacing: -0.04em !important;
  font-size: 30px !important; line-height: 1.1 !important; color: var(--ink) !important; margin: 0 !important;
}

.rl-page-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 0 18px;
  border-radius: 18px; background: rgba(226, 184, 74, .16); border: 1px solid rgba(226, 184, 74, .45);
  color: #9a7414; box-shadow: 0 10px 30px rgba(226, 184, 74, .25); position: relative;
}
.rl-page-icon svg { width: 32px; height: 32px; }
.rl-page-icon__ring, .rl-page-icon__pulse { display: none; }

.rl-user-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0 !important; }
.rl-user-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.rl-user-chip__ava {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--gold-fg); font-size: 13px; font-weight: 700;
}
.rl-user-chip strong { color: var(--ink) !important; font-weight: 600 !important; font-size: 14px; }
#reset-login { font-size: 14px; font-weight: 600; color: var(--red-text); }

/* ---------- Felder ---------- */
.rl-field__label, #kc-content label { color: var(--ink-2) !important; font-weight: 500 !important; }
#kc-content .rl-field__input, #kc-content input[type="text"], #kc-content input[type="password"],
#kc-content input[type="email"], #kc-content input[type="tel"], #kc-content textarea, #kc-content select {
  background: var(--field) !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 14px !important;
  box-shadow: none !important; font-family: var(--font) !important;
}
#kc-content .rl-field__input:hover, #kc-content input:hover { border-color: rgba(20, 20, 20, .3) !important; }
#kc-content .rl-field__input:focus, #kc-content input:focus, #kc-content select:focus {
  border-color: var(--gold) !important; box-shadow: 0 0 0 4px rgba(226, 184, 74, .22) !important;
}
#kc-content input:-webkit-autofill, #kc-content input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important; -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}
#kc-content input::placeholder { color: #9a9a9a !important; }
.rl-field__toggle { color: var(--muted) !important; }

/* ---------- Knöpfe ---------- */
#kc-content .rl-btn--primary,
#kc-content input[type="submit"],
#kc-content input[type="button"].rl-btn--primary,
#kc-content .pf-m-primary, #kc-content .btn-primary {
  position: relative; overflow: hidden;
  border-radius: 999px !important; border: 0 !important;
  font-family: var(--font) !important; font-weight: 600 !important; letter-spacing: .14em !important;
  text-transform: uppercase; font-size: 14px !important;
  color: var(--gold-fg) !important;
  background:
    radial-gradient(160px circle at var(--bx, 50%) 50%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(180deg, #ecc65e, #d9ab3a) !important;
  box-shadow: 0 12px 30px -10px rgba(190, 140, 30, .65), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, filter .2s !important;
  animation: none;
}
#kc-content .rl-btn--primary:hover, #kc-content input[type="submit"]:hover {
  transform: translateY(-1px); filter: brightness(1.04);
  box-shadow: 0 16px 36px -10px rgba(190, 140, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}
#kc-content .rl-btn--primary:active, #kc-content input[type="submit"]:active { transform: translateY(1px) scale(.99); }
#kc-content input[type="button"].rl-btn--primary { animation: rl-gold 3s ease-in-out 1s infinite; }
@keyframes rl-gold {
  0%, 100% { box-shadow: 0 12px 30px -10px rgba(190, 140, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
  50%      { box-shadow: 0 16px 44px -8px rgba(190, 140, 30, .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
}
#kc-content .btn-default, #kc-content .pf-m-secondary, #kc-content input[name="cancel-aia"], .rl-wa-alt {
  background: rgba(255, 255, 255, .85) !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 999px !important;
  font-family: var(--font) !important;
}
#kc-content .btn-default:hover, .rl-wa-alt:hover { border-color: rgba(226, 184, 74, .8) !important; }
.rl-linkbtn, .rl-2fa-links button { color: var(--red-text) !important; font-family: var(--font) !important; }
.rl-linkbtn:hover, .rl-2fa-links button:hover { color: var(--ink) !important; }

/* ---------- Auswahl / Hinweise ---------- */
.rl-choice { background: rgba(255, 255, 255, .85) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.rl-choice:hover { background: #fff !important; border-color: rgba(226, 184, 74, .7) !important; }
.rl-choice--main { background: rgba(226, 184, 74, .12) !important; border-color: rgba(226, 184, 74, .6) !important; }
.rl-choice__icon { background: rgba(20, 20, 20, .05) !important; color: var(--ink-2) !important; }
.rl-choice--main .rl-choice__icon { background: var(--gold) !important; color: var(--gold-fg) !important; }
.rl-2fa-option__body { background: rgba(255, 255, 255, .85) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.rl-2fa-option input:checked + .rl-2fa-option__body { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(226, 184, 74, .22) !important; }
.rl-alert { border-radius: 14px !important; }
.rl-alert--error { background: rgba(220, 38, 38, .08) !important; border-color: rgba(220, 38, 38, .3) !important; color: #991b1b !important; }
.rl-alert--success { background: rgba(22, 163, 74, .08) !important; border-color: rgba(22, 163, 74, .3) !important; color: #166534 !important; }
.rl-alert--warning, .rl-alert--info { background: rgba(226, 184, 74, .14) !important; border-color: rgba(226, 184, 74, .45) !important; color: #6b4f0c !important; }
.rl-field__error, .kc-feedback-text, #kc-content span[id^="input-error"] { color: #b91c1c !important; }
#kc-content p, .instruction, #kc-info-message p, .rl-wa-hint { color: var(--ink-2) !important; }
.rl-wa-hint strong { color: var(--ink) !important; }
.rl-app-key code, #kc-totp-secret-key { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }

.rl-switch { color: var(--muted) !important; text-align: center; margin: 22px 0 0 !important; }
.rl-switch a { color: var(--red-text) !important; font-weight: 600; }
.rl-foot { margin: 22px 0 0 !important; color: #8a8a8a !important; font-size: 13px; text-align: center; }

/* Reihenfolge-Einblendung */
.rl-form-header > *, #kc-content-wrapper > *, .rl-switch { animation: rl-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
#kc-content-wrapper > *:nth-child(1) { animation-delay: .08s; }
#kc-content-wrapper > *:nth-child(2) { animation-delay: .14s; }
#kc-content-wrapper > *:nth-child(n+3) { animation-delay: .2s; }

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  .rl-bar { padding: max(12px, env(safe-area-inset-top)) 14px 10px; }
  .rl-bar__word { font-size: 1.02rem; }
  .rl-pill { height: 2.3rem; padding: 0 .8rem; font-size: .64rem; letter-spacing: .08em; }
  .rl-stage { justify-content: flex-start; padding-top: 4vh; }
  .rl-mark { width: 110px; margin-bottom: 16px; }
  .rl-form-wrap { padding: 26px 20px 22px !important; border-radius: 22px !important; }
  .rl-form-header .heading { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-mark__halo, .rl-mark__img, .rl-bg__blob, .rl-form-wrap, .rl-form-header > *, #kc-content-wrapper > *, .rl-switch,
  #kc-content input[type="button"].rl-btn--primary { animation: none !important; }
}

/* «Noch kein Konto?» unter dem Formular */
#kc-registration { text-align: center; margin-top: 20px; color: var(--muted); }
#kc-registration a { color: var(--red-text) !important; font-weight: 600; }
