:root {
  /* 95% Schwarz / 95% Weiß für weniger harten Kontrast */
  --bg: #0d0d0d;
  --fg: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.72);
  --muted-2: rgba(242, 242, 242, 0.58);
  --line: rgba(242, 242, 242, 0.12);
  --card: rgba(242, 242, 242, 0.04);
  --shadow: rgba(0, 0, 0, 0.35);
  --focus: rgba(242, 242, 242, 0.35);
  --radius: 16px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration-color: rgba(242, 242, 242, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: rgba(242, 242, 242, 0.7);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 120ms ease;
  z-index: 999;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wrap {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.14);
  background: #f2f2f2; /* 95% Weiß: macht schwarzes Logo auf dunklem Header sichtbar */
  box-shadow: 0 10px 30px var(--shadow);
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-name {
  font-weight: 620;
  letter-spacing: -0.01em;
}
.brand-legal {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--fg);
}

.site-main {
  padding-bottom: 56px;
}

.hero {
  padding: 64px 0 38px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(242, 242, 242, 0.22);
  background: rgba(242, 242, 242, 0.08);
  text-decoration: none;
  color: var(--fg);
  font-weight: 560;
  letter-spacing: -0.01em;
}
.btn:hover {
  background: rgba(242, 242, 242, 0.12);
  border-color: rgba(242, 242, 242, 0.32);
}
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(242, 242, 242, 0.16);
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--fg);
  border-color: rgba(242, 242, 242, 0.28);
}

.btn-danger {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.35);
}
.btn-danger:hover {
  color: #ffd0d0;
  background: rgba(255, 80, 80, 0.12);
  border-color: rgba(255, 120, 120, 0.55);
}
.danger-zone {
  border-color: rgba(255, 120, 120, 0.25);
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.meta {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.meta-row {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 12px;
  align-items: baseline;
}
.meta-k {
  color: var(--muted-2);
  font-size: 0.92rem;
}
.meta-v {
  color: var(--fg);
}

.small {
  font-size: 0.92rem;
}
.subtle,
.muted {
  color: var(--muted);
}

.section {
  padding: 56px 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.subhead {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-block {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(242, 242, 242, 0.03);
  padding: 18px;
}
.contact-block p {
  margin: 0;
}
.contact-block p + p {
  margin-top: 8px;
}

.imprint {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(242, 242, 242, 0.03);
  padding: 18px;
  max-width: 82ch;
}
.imprint p {
  margin: 0;
}
.imprint p + p {
  margin-top: 10px;
}
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .meta-row {
    grid-template-columns: 110px 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

/* Immobilienportal */
.immo-app,
.immo-app body,
body.immo-auth,
body.immo-app-body {
  min-height: 100%;
}
body.immo-auth,
body.immo-app-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.immo-auth {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(242, 242, 242, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(242, 242, 242, 0.03), transparent 50%),
    var(--bg);
}
body.immo-auth .site-main-auth,
body.immo-app-body .site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
body.immo-auth .site-footer,
body.immo-app-body .site-footer {
  margin-top: auto;
}
.nav a.is-active {
  color: var(--fg);
}
.nav-form {
  margin: 0;
  display: inline;
}
.nav-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.nav-btn:hover {
  color: var(--fg);
}
.badge {
  display: inline-flex;
  min-width: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(242, 242, 242, 0.16);
  color: var(--fg);
  font-size: 0.75rem;
  line-height: 1.4;
  justify-content: center;
}
.badge-new {
  background: #e8c547;
  color: #111;
  font-weight: 700;
}
.nav-chat {
  font-weight: 650;
}
.alert-chat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: #111;
  background: #e8c547;
  border-color: rgba(232, 197, 71, 0.8);
}
.alert-chat:hover {
  filter: brightness(1.05);
}
.chat-fab {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 560;
}
.alert-error {
  border-color: rgba(232, 120, 120, 0.55);
  background: rgba(180, 40, 40, 0.28);
  color: #ffd6d6;
}
.alert-info {
  border-color: rgba(242, 242, 242, 0.28);
  background: rgba(242, 242, 242, 0.08);
  color: var(--fg);
}
.auth-card > .alert:first-child {
  margin-top: 0;
}

.site-main-auth {
  padding-bottom: 0;
}
.auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px 56px;
}
.auth-shell {
  width: min(100%, 440px);
  margin: 0 auto;
}
.auth-card {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(242, 242, 242, 0.045);
  padding: 32px 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.auth-card .kicker {
  margin: 0 0 12px;
}
.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.auth-card .subhead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: none;
}
.auth-form {
  display: grid;
  gap: 0;
}
.auth-form .field,
.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 18px;
}
.auth-form .field label,
.field label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.3;
}
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.field-link:hover {
  color: var(--fg);
}
.auth-form .field input,
.auth-form .field textarea,
.auth-form .field select,
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(242, 242, 242, 0.16);
  color: var(--fg);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  line-height: 1.4;
}
.field input::placeholder {
  color: var(--muted-2);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(242, 242, 242, 0.4);
  box-shadow: 0 0 0 3px var(--focus);
}
.btn-block {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  margin-top: 4px;
  font-size: 1rem;
}
.auth-alt {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.auth-alt a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 242, 242, 0.28);
}
.auth-alt a:hover {
  border-bottom-color: rgba(242, 242, 242, 0.7);
}
.field-wide {
  grid-column: 1 / -1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.check input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.card-form,
.card-block {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(242, 242, 242, 0.03);
  padding: 18px;
  margin-bottom: 18px;
}
.card-block h2,
.card-form h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.gallery-item {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
}
.gallery-item:hover img {
  border-color: rgba(242, 242, 242, 0.32);
}
.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
}
.gallery-item-label {
  display: grid;
  gap: 4px;
}
.gallery-item-label em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.media-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.upload-preview {
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.upload-preview img,
.upload-preview video {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 0 auto;
  border-radius: 8px;
}
.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.media-admin-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.media-admin-preview {
  aspect-ratio: 16 / 10;
  background: #111;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-admin-preview img,
.media-admin-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-admin-placeholder {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  text-decoration: none;
}
.media-admin-form {
  padding: 14px;
}
.portal-media-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.portal-media-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.portal-media-thumb {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  display: grid;
  place-items: center;
}
.portal-media-thumb img,
.portal-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-media-icon {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.portal-media-copy .media-title {
  margin: 4px 0;
  font-size: 0.98rem;
}
.portal-media-copy .media-description {
  margin: 0;
  font-size: 0.84rem;
}
.tour-video,
.embed iframe {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
}
.tour-video {
  max-height: 420px;
}
.embed {
  position: relative;
  padding-top: 56.25%;
  margin-bottom: 14px;
}
.embed iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}
.media-title {
  margin: 0 0 8px;
  font-size: 1rem;
}
.file-list,
.plain-list,
.conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.file-list li,
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.bid-teaser {
  margin: 0 0 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 197, 71, 0.12), rgba(255, 255, 255, 0.02));
}
.bid-teaser-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bid-teaser-amount {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #e8c547;
}
.bid-teaser-text {
  margin: 0 0 10px;
  line-height: 1.5;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.sort-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(242, 242, 242, 0.35);
}
.sort-link:hover,
.sort-link.is-active {
  color: var(--fg);
  border-bottom-color: rgba(242, 242, 242, 0.7);
}
tr.is-latest-bid td {
  background: rgba(232, 197, 71, 0.08);
}
.slot {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat.small-stat {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.35;
}
.chat-box.wa-chat,
.wa-chat.chat-box {
  max-height: min(65vh, 560px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px 12px 20px;
  background:
    linear-gradient(180deg, rgba(11, 20, 26, 0.92), rgba(11, 20, 26, 0.98)),
    #0b141a;
  display: grid !important;
  grid-auto-flow: row;
  gap: 10px;
  align-content: start;
}
.wa-chat .bubble {
  position: relative;
  width: fit-content;
  max-width: min(85%, 440px);
  padding: 8px 10px 6px;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}
.wa-chat .bubble-author {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}
.wa-chat .bubble.theirs {
  justify-self: start;
  margin-right: auto;
  background: #ffffff;
  color: #111;
  border-top-left-radius: 2px;
}
.wa-chat .bubble.theirs .bubble-author {
  color: #027eb5;
}
.wa-chat .bubble.theirs .bubble-text {
  color: #111b21;
}
.wa-chat .bubble.theirs .bubble-meta time {
  color: rgba(17, 27, 33, 0.55);
}
.wa-chat .bubble.mine {
  justify-self: end;
  margin-left: auto;
  background: #d9fdd3;
  color: #111;
  border-top-right-radius: 2px;
}
.wa-chat .bubble.mine .bubble-author {
  color: #027a4d;
}
.wa-chat .bubble.mine .bubble-text {
  color: #111b21;
}
.wa-chat .bubble.mine .bubble-meta time {
  color: rgba(17, 27, 33, 0.55);
}
.wa-chat .bubble-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  font-size: 0.98rem;
}
.wa-chat .bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  min-height: 16px;
}
.wa-chat .bubble-meta time {
  font-size: 0.72rem;
}
.wa-chat .chat-ticks {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  color: #667781;
}
.wa-chat .chat-ticks.is-sent {
  color: #667781;
}
.wa-chat .chat-ticks.is-read {
  color: #53bdeb !important;
}
.chat-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.chat-form textarea {
  background: rgba(242, 242, 242, 0.04);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.conv-list li {
  border-bottom: 1px solid var(--line);
}
.conv-list a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
}
.conv-list a:hover {
  color: var(--fg);
}

.ifc-viewer {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #141414;
  overflow: hidden;
}
.ifc-viewer canvas {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}
.ifc-idle {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: stretch;
  background: #141414;
}
.ifc-idle.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ifc-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.72;
}
.portal-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.portal-jump a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.92rem;
}
.portal-jump a:hover {
  border-color: rgba(242, 242, 242, 0.32);
  background: rgba(242, 242, 242, 0.06);
}
.ifc-idle-panel {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.92) 35%, rgba(20, 20, 20, 0.98) 100%);
}
.ifc-idle-text {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.ifc-load-btn {
  justify-self: start;
}
.ifc-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(20, 20, 20, 0.96);
  text-align: center;
  transition: opacity 0.35s ease;
}
.ifc-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ifc-loading.is-error .ifc-status-text {
  color: #ffb4b4;
}
.ifc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(242, 242, 242, 0.15);
  border-top-color: var(--fg);
  border-radius: 50%;
  animation: ifc-spin 0.9s linear infinite;
}
.ifc-status-text {
  margin: 0;
  max-width: 28rem;
}
.ifc-progress {
  width: min(320px, 90%);
  height: 6px;
  border-radius: 999px;
  background: rgba(242, 242, 242, 0.12);
  overflow: hidden;
}
.ifc-progress-bar {
  width: 0;
  height: 100%;
  background: var(--fg);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.ifc-progress-label {
  margin: 0;
  min-height: 1.2em;
}
@keyframes ifc-spin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 56px;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox[hidden] {
  display: none !important;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 96px);
  display: grid;
  gap: 10px;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(242, 242, 242, 0.18);
}
.lightbox-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  text-align: center;
}
.lightbox-category {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.lightbox-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-line;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(242, 242, 242, 0.2);
  background: rgba(13, 13, 13, 0.85);
  color: var(--fg);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close {
  top: 16px;
  right: 16px;
}
.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(242, 242, 242, 0.4);
  background: rgba(242, 242, 242, 0.08);
}

@media (max-width: 900px) {
  .form-grid,
  .split,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .nav-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(242, 242, 242, 0.28);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg);
    background: rgba(242, 242, 242, 0.08);
  }
  .nav-chat .badge-new {
    font-size: 0.8rem;
    min-width: 1.4rem;
  }

  body.immo-app-body {
    padding-bottom: 88px;
  }
  .chat-fab {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 72px;
    min-height: 72px;
    padding: 0 18px;
    border-radius: 999px;
    background: #e8c547;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }
  .chat-fab.has-unread {
    animation: chat-fab-pulse 1.8s ease-in-out infinite;
  }
  .chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 6px;
    border-radius: 999px;
    background: #111;
    color: #e8c547;
    font-size: 0.8rem;
    line-height: 1.5rem;
    text-align: center;
  }
  .alert-chat {
    font-size: 1rem;
    padding: 16px;
  }
}

@keyframes chat-fab-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 34px rgba(232, 197, 71, 0.45);
  }
}

