/* Demo-/Vorschau-Banner — sitewide (Landing + Kalkulator) */

:root {
  --demo-banner-height: 52px;
}

.demo-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  min-height: var(--demo-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: linear-gradient(90deg, #3d2e14 0%, #5c4520 50%, #3d2e14 100%);
  color: #fbf9f4;
  border-bottom: 2px solid #c8923d;
  box-shadow: 0 2px 12px rgba(11, 16, 27, 0.22);
  box-sizing: border-box;
}

.demo-mode-banner.hidden {
  display: none !important;
}

.demo-mode-banner__inner {
  width: 100%;
  max-width: 1160px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  text-align: center;
}

.demo-mode-banner__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #c8923d;
  color: #0b101b;
}

.demo-mode-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(251, 249, 244, 0.95);
}

.demo-mode-banner__text strong {
  font-weight: 600;
  color: #fff;
}

.demo-mode-banner__cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #dcab5a;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.demo-mode-banner__cta:hover {
  color: #fff;
}

.demo-mode-banner__dismiss {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid rgba(251, 249, 244, 0.35);
  border-radius: 4px;
  background: rgba(11, 16, 27, 0.35);
  color: #fbf9f4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.demo-mode-banner__dismiss:hover {
  background: rgba(11, 16, 27, 0.55);
  border-color: rgba(251, 249, 244, 0.55);
}

.demo-mode-banner__dismiss:focus-visible {
  outline: 2px solid #dcab5a;
  outline-offset: 2px;
}

/* Landing: Nav + Scroll unter Banner */
body.demo-mode-active {
  padding-top: var(--demo-banner-height);
}

body.demo-mode-active nav#nav {
  top: var(--demo-banner-height);
}

body.demo-mode-active {
  scroll-padding-top: calc(76px + var(--demo-banner-height));
}

/* Kalkulator: Banner im Dokumentfluss (auch im iframe) */
.kalkulator-demo-banner-host .demo-mode-banner {
  position: sticky;
  top: 0;
  z-index: 500;
}

.kalkulator-demo-banner-host .demo-mode-banner.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  :root {
    --demo-banner-height: 72px;
  }

  .demo-mode-banner__inner {
    flex-direction: column;
    gap: 6px;
  }

  .demo-mode-banner__cta {
    white-space: normal;
    font-size: 11px;
  }
}
