
/* --- home.css --- */
:root {
  --sunrise-red: #DA291C;
  --sunrise-red-hover: #b82116;
  --surface-page: #f9fafb;
  --surface-card: #ffffff;
  --surface-hover: #f1f5f9;
  --border-subtle: #e2e8f0;
  --text-color-content: #1e293b;
  --rec-head-bg: #312e81;
  --rec-head-border: #3730a3;
  --rec-head-text: #eef2ff;
  --rec-head-btn-bg: #3730a3;
  --rec-head-btn-border: #818cf8;
  --rec-head-btn-hover: #4338ca;
  --rec-sidebar-bg: #312e81;
  --rec-sidebar-border: #3730a3;
  --rec-sidebar-text: #e0e7ff;
  --rec-sidebar-link-hover: #3730a3;
  --rec-sidebar-link-active: #3730a3;
  --rec-sidebar-toggle-bg: #3730a3;
  --rec-sidebar-toggle-border: #4f46e5;
  --rec-sidebar-toggle-hover: #4338ca;
  --rec-sidebar-shadow: rgba(49, 46, 129, 0.22);
  --auth-ui-primary: #5d5fef;
  --auth-ui-primary-hover: #4f51e5;
}

html.rec-theme-dark {
  --surface-page: #0f141c;
  --surface-card: #1a2332;
  --surface-hover: #243044;
  --border-subtle: #2e3d52;
  --text-color-content: #e8eef5;
  --rec-head-bg: #1e1b4b;
  --rec-head-border: #312e81;
  --rec-head-text: #e0e7ff;
  --rec-head-btn-bg: #312e81;
  --rec-head-btn-border: #6366f1;
  --rec-head-btn-hover: #3730a3;
  --rec-sidebar-bg: #1e1b4b;
  --rec-sidebar-border: #312e81;
  --rec-sidebar-text: #e0e7ff;
  --rec-sidebar-link-hover: #312e81;
  --rec-sidebar-link-active: #312e81;
  --rec-sidebar-toggle-bg: #312e81;
  --rec-sidebar-toggle-border: #6366f1;
  --rec-sidebar-toggle-hover: #3730a3;
  --rec-sidebar-shadow: rgba(15, 20, 28, 0.45);
  --auth-ui-primary: #5d5fef;
  --auth-ui-primary-hover: #4f51e5;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  background: var(--surface-page);
  color: var(--text-color-content);
}

body.rec-app-shell {
  height: 100%;
  overflow: hidden;
}

.rec-dev-head + .rec-service-head {
  top: 22px;
}

.rec-service-head {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  flex-shrink: 0;
  padding: 0 14px;
  background: var(--rec-head-bg);
  color: var(--rec-head-text);
  border-bottom: 1px solid var(--rec-head-border);
  box-sizing: border-box;
}

.rec-service-head-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rec-service-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rec-head-logout-btn {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--rec-head-btn-border);
  border-radius: 6px;
  background: var(--rec-head-btn-bg);
  color: var(--rec-head-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1;
}

.rec-head-logout-btn:hover {
  background: var(--rec-head-btn-hover);
}

html.rec-theme-dark .rec-head-logout-btn:hover {
  background: var(--rec-head-btn-hover);
}

.rec-head-logout-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.rec-lang-picker {
  position: relative;
  flex-shrink: 0;
}

.rec-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--rec-head-btn-border);
  border-radius: 50%;
  background: var(--rec-head-btn-bg);
  color: var(--rec-head-text);
  cursor: pointer;
  line-height: 1;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.rec-flag-icon {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.rec-flag-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rec-flag-btn {
  position: relative;
  width: 20px;
  height: 20px;
}

.rec-flag-btn-item {
  position: absolute;
  inset: 0;
}

.rec-flag-btn-item[hidden] {
  display: none !important;
}

.rec-lang-option-flag .rec-flag-icon {
  width: 18px;
  height: 18px;
}

.rec-lang-btn:hover,
.rec-lang-picker.rec-lang-picker--open .rec-lang-btn {
  background: var(--rec-head-btn-hover);
}

html.rec-theme-dark .rec-lang-btn:hover,
html.rec-theme-dark .rec-lang-picker.rec-lang-picker--open .rec-lang-btn {
  background: var(--rec-head-btn-hover);
}

.rec-lang-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.rec-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 4px;
  border: 1px solid var(--rec-head-btn-border);
  border-radius: 10px;
  background: var(--rec-head-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 1001;
}

.rec-lang-menu[hidden] {
  display: none !important;
}

.rec-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--rec-head-text);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.rec-lang-option-label {
  flex: 1;
  min-width: 0;
}

.rec-lang-option:hover,
.rec-lang-option.rec-lang-option--active {
  background: rgba(255, 255, 255, 0.14);
}

.rec-lang-option:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .rec-lang-picker:hover .rec-lang-menu,
  .rec-lang-picker:focus-within .rec-lang-menu {
    display: block;
  }

  .rec-lang-picker:hover .rec-lang-menu[hidden],
  .rec-lang-picker:focus-within .rec-lang-menu[hidden] {
    display: block !important;
  }

  .rec-lang-picker:hover #recLangBtn,
  .rec-lang-picker:focus-within #recLangBtn {
    background: #4338ca;
  }
}

.rec-theme-toggle {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rec-theme-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.rec-theme-floater {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1.5px #ffffff,
    0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.rec-theme-toggle--dark .rec-theme-floater {
  transform: translateX(26px);
}

.rec-theme-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 28px;
  color: #ffffff;
  transition: opacity 0.18s ease;
}

.rec-theme-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.rec-theme-toggle:not(.rec-theme-toggle--dark) .rec-theme-icon-moon,
.rec-theme-toggle.rec-theme-toggle--dark .rec-theme-icon-sun {
  opacity: 0.42;
}

.rec-theme-toggle:not(.rec-theme-toggle--dark) .rec-theme-icon-sun,
.rec-theme-toggle.rec-theme-toggle--dark .rec-theme-icon-moon {
  opacity: 1;
}

.rec-theme-toggle:hover .rec-theme-track {
  background: rgba(255, 255, 255, 0.24);
}

.rec-theme-toggle:focus-visible .rec-theme-track {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.rec-dev-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 22px;
  flex-shrink: 0;
  padding: 0 8px;
  background: #0d1b2a;
  color: #cce3f7;
  border-bottom: 1px solid #1b3a5c;
  box-sizing: border-box;
}

.rec-dev-head-label {
  grid-column: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.rec-dev-head-handoff-btn {
  grid-column: 3;
  justify-self: end;
  height: 16px;
  line-height: 14px;
  padding: 0 8px;
  border: 1px solid #3d6a9a;
  border-radius: 4px;
  background: #1b3a5c;
  color: #cce3f7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.rec-dev-head-handoff-btn:hover {
  background: #254a73;
}

html.rec-theme-dark input[type="text"],
html.rec-theme-dark input[type="password"] {
  background: var(--surface-card);
  color: var(--text-color-content);
}

/* Surface-Buttons: Browser-Default ist oft schwarz â€” Theme-Farbe erzwingen */
.index-handover-btn {
  color: var(--text-color-content);
}
/* --- login.css --- */
body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.login-page-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-container {
    background: var(--surface-card, #fff);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(49, 46, 129, 0.12);
    border: 1px solid var(--border-subtle, #e2e8f0);
    width: min(600px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-container h2 {
    text-align: center;
    margin: 0 0 1rem;
    color: #312e81;
    letter-spacing: 0.04em;
}

label {
    font-weight: 500;
}

input[type="text"], input[type="password"] {
    padding: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: 2px solid color-mix(in srgb, var(--auth-ui-primary) 65%, #818cf8);
    outline-offset: 1px;
    border-color: var(--auth-ui-primary);
}

body.login-page .rec-login-form input:-webkit-autofill,
body.login-page .rec-login-form input:-webkit-autofill:hover,
body.login-page .rec-login-form input:-webkit-autofill:focus,
body.login-page .rec-login-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--surface-card, #1a2332) inset !important;
    -webkit-text-fill-color: var(--text-color-content, #e8eef5) !important;
    caret-color: var(--text-color-content, #e8eef5);
    transition: background-color 99999s ease-in-out 0s;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#loginForm button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.65rem;
    padding: 0.85rem;
    background: var(--sunrise-red);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

#loginForm button[type="submit"]:hover {
    background: var(--sunrise-red-hover);
}

.error {
    color: #ff4d4f;
    text-align: center;
    min-height: 1.2em;
}

.login-subtitle {
    text-align: center;
    margin: -0.5rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-color-muted, #64748b);
}

.error.info {
    color: #1d4ed8;
}
/* --- auth-ui-shell.css --- */
/* B0 shell + embedded login */

.rec-session-user--guest {
  min-height: 74px;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  box-sizing: border-box;
}

.rec-session-guest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

/* Eingeloggt: Kachel fÃ¼llt die normale Rail (wie B1), Spalte unverÃ¤ndert 1fr */
body.rec-authenticated .rec-session-rail .rec-session-user {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.rec-session-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  background: color-mix(in srgb, var(--text-color-content, #1e1b4b) 5%, var(--surface-card, #fff));
  color: var(--text-color-content, #1e1b4b);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.15;
  box-sizing: border-box;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rec-session-login-btn:hover,
.rec-session-login-btn.rec-session-login-btn--active {
  background: color-mix(in srgb, var(--auth-ui-primary) 12%, var(--surface-card, #fff));
  border-color: color-mix(in srgb, var(--auth-ui-primary) 40%, var(--border-subtle, #e2e8f0));
  color: var(--text-color-content, #1e1b4b);
}

.rec-session-login-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--auth-ui-primary) 55%, transparent);
  outline-offset: 2px;
}

html.rec-theme-dark .rec-session-login-btn {
  background: color-mix(in srgb, #fff 6%, transparent);
  border-color: var(--border-subtle, #334155);
  color: var(--text-color-content, #e2e8f0);
}

html.rec-theme-dark .rec-session-login-btn:hover,
html.rec-theme-dark .rec-session-login-btn.rec-session-login-btn--active {
  background: color-mix(in srgb, var(--auth-ui-primary) 18%, transparent);
  border-color: color-mix(in srgb, var(--auth-ui-primary) 50%, var(--border-subtle, #334155));
  color: var(--text-color-content, #e2e8f0);
}

.rec-login-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 40px;
  box-sizing: border-box;
  width: 100%;
}

.rec-login-panel[hidden] {
  display: none !important;
}

.rec-login-panel-card {
  width: min(440px, 100%);
}

.rec-login-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 0.5rem;
}

.rec-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0 0.85rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
  color: var(--text-color-content, #1e1b4b);
}

.rec-auth-divider::before,
.rec-auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border-subtle, #e2e8f0);
}

.rec-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 10px;
  background: var(--surface-card, #fff);
  color: var(--text-color-content, #1e1b4b);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.rec-google-btn-icon {
  flex: 0 0 auto;
  display: block;
}

.rec-google-btn-label {
  line-height: 1.2;
}

.rec-google-btn:hover {
  background: color-mix(in srgb, var(--text-color-content, #1e1b4b) 6%, var(--surface-card, #fff));
}

html.rec-theme-dark .rec-google-btn {
  background: color-mix(in srgb, #fff 6%, transparent);
}

.rec-google-ff-help {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, #b45309 35%, var(--border-subtle, #e2e8f0));
  border-radius: 10px;
  background: color-mix(in srgb, #f59e0b 12%, var(--surface-card, #fff));
  color: var(--text-color-content, #1e1b4b);
  text-align: left;
}

.rec-google-ff-help[hidden] {
  display: none !important;
}

.rec-google-ff-help-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.rec-google-ff-help-text,
.rec-google-ff-help-steps {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.92;
}

.rec-google-ff-help-steps {
  padding-left: 1.2rem;
}

.rec-google-ff-help-btn {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 0.45rem;
  border: 0;
  border-radius: 8px;
  background: var(--text-color-content, #1e1b4b);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rec-google-ff-help-btn--secondary {
  background: transparent;
  color: var(--text-color-content, #1e1b4b);
  border: 1px solid var(--border-subtle, #e2e8f0);
}

html.rec-theme-dark .rec-google-ff-help {
  background: color-mix(in srgb, #f59e0b 18%, transparent);
}

.rec-login-mode-tab {
  height: 38px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 10px;
  background: transparent;
  color: var(--text-color-content, #1e1b4b);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.rec-login-mode-tab[aria-selected="true"] {
  background: var(--auth-ui-primary);
  border-color: var(--auth-ui-primary);
  color: #fff;
}

.rec-field-hint {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-color-muted, #64748b);
}

.rec-field-hint[hidden] {
  display: none !important;
}

.rec-field-hint--error {
  color: #b91c1c;
}

.rec-field-hint--ok {
  color: #15803d;
}

.rec-field-hint--muted {
  color: var(--text-color-muted, #64748b);
}

.rec-login-form input.rec-input-invalid {
  border-color: #b91c1c;
}

.rec-login-form input.rec-input-ok {
  border-color: #15803d;
}

.rec-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rec-login-form[hidden] {
  display: none !important;
}

.rec-otp-send-row {
  margin: 0.35rem 0 0.65rem;
}

.rec-otp-send-btn {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle, #c7d2fe);
  border-radius: 10px;
  background: color-mix(in srgb, var(--auth-ui-primary) 12%, transparent);
  color: var(--text-color-content, #312e81);
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}

.rec-otp-send-btn:hover {
  background: color-mix(in srgb, var(--auth-ui-primary) 22%, transparent);
}

.rec-login-form button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.65rem;
  padding: 0.85rem;
  min-height: 46px;
  background: var(--auth-ui-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
}

.rec-login-form button[type="submit"]:hover {
  background: var(--auth-ui-primary-hover);
  color: #fff;
}

.rec-forgot-link {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.rec-forgot-link:hover {
  color: #b91c1c;
  text-decoration: underline;
}

.rec-forgot-hint {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-color-muted, #64748b);
  line-height: 1.45;
}

.rec-forgot-submit {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.65rem;
  padding: 0.85rem;
  min-height: 46px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
}

.rec-forgot-submit:hover {
  background: #b91c1c;
}

.rec-forgot-back {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--border-subtle, #c7d2fe);
  border-radius: 10px;
  background: transparent;
  color: var(--text-color-content, #312e81);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rec-reset-login-link-wrap {
  margin-top: 1rem;
  text-align: center;
}

.rec-reset-login-link-wrap a {
  color: var(--auth-ui-primary);
  font-weight: 650;
  text-decoration: none;
}

.rec-reset-login-link-wrap a:hover {
  text-decoration: underline;
}

.rec-login-hint-ok {
  color: #16a34a !important;
}

html.rec-theme-dark .login-container h2 {
  color: #e2e8f0;
}

/* Property-Hintergrund: volle Content-FlÃ¤che inkl. rechter Rail (3D-Tiefe) */
@keyframes rec-shell-bg-depth {
  0%, 100% {
    transform: perspective(1400px) rotateY(-2.5deg) scale(1.05) translate3d(0, 0, 0);
  }
  50% {
    transform: perspective(1400px) rotateY(-3.5deg) scale(1.07) translate3d(0, -0.35%, 0);
  }
}

.rec-main-content.index-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  perspective: 1400px;
  background-color: var(--surface-page, #f8fafc);
}

.rec-main-content.index-shell::after {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background-image: url("../../img/b0-property-bg.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform-origin: center right;
  will-change: transform;
  animation: rec-shell-bg-depth 24s ease-in-out infinite;
}

.rec-main-content.index-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--surface-page) 82%, transparent) 0%,
    color-mix(in srgb, var(--surface-page) 55%, transparent) 42%,
    color-mix(in srgb, var(--surface-page) 28%, transparent) 100%
  );
}

.rec-main-content.index-shell > .rec-main-layout {
  position: relative;
  z-index: 2;
}

/* Galerie/User-Settings: halbtransparent im Content, Hintergrundfoto bleibt sichtbar */
.rec-main-content.index-shell .rec-main-stage,
.rec-main-content.index-shell .rec-main-stage > .rec-page--iframe,
.rec-main-content.index-shell .public-gallery-iframe-wrap {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .rec-main-content.index-shell::after {
    animation: none;
    transform: perspective(1400px) rotateY(-3deg) scale(1.06);
  }
}

html.rec-theme-dark .rec-main-content.index-shell::before {
  background: linear-gradient(
    105deg,
    rgba(15, 20, 28, 0.55) 0%,
    rgba(15, 20, 28, 0.28) 45%,
    rgba(15, 20, 28, 0.12) 100%
  );
}

/* iframe-Embed in B1/B0: kompakt, zentriert, kein Innen-Scroll */
body.login-page.rec-embed {
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

body.login-page.rec-embed .login-page-main {
  padding: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

body.login-page.rec-embed .login-container.rec-login-panel-card {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 1.15rem 1.35rem 1.35rem;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

body.login-page.rec-embed .login-container h2 {
  margin-bottom: 0.35rem;
}

body.login-page.rec-embed .login-subtitle {
  margin-bottom: 0.75rem;
}

body.login-page.rec-embed .rec-auth-divider {
  margin: 0.75rem 0 0.65rem;
}

body.login-page.rec-embed .rec-login-form {
  gap: 0.25rem;
}
