/* Öffentliche Seite: Landing, Login, Verbindungsfehler */

html.conn-error body,
body.conn-error {
  padding-top: 2cm;
}

.conn-error-banner,
.conn-error-frame {
  display: none !important;
}

html.conn-error .conn-error-banner,
body.conn-error .conn-error-banner {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2cm;
  z-index: 25001;
  align-items: center;
  justify-content: center;
  background: rgba(127, 29, 29, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  animation: conn-error-banner-pulse 1.6s ease-in-out infinite;
}

html.conn-error .conn-error-frame,
body.conn-error .conn-error-frame {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 25000;
  pointer-events: none;
  border: 6px solid rgba(127, 29, 29, 0.48);
  box-sizing: border-box;
  animation: conn-error-frame-pulse 1.6s ease-in-out infinite;
}

@keyframes conn-error-banner-pulse {
  0%, 100% {
    background-color: rgba(127, 29, 29, 0.38);
    box-shadow: 0 2px 12px rgba(69, 10, 10, 0.22);
  }
  50% {
    background-color: rgba(153, 27, 27, 0.72);
    box-shadow: 0 2px 20px rgba(69, 10, 10, 0.42);
  }
}

@keyframes conn-error-frame-pulse {
  0%, 100% {
    border-color: rgba(127, 29, 29, 0.38);
    box-shadow:
      inset 0 0 14px rgba(69, 10, 10, 0.12),
      0 0 10px rgba(69, 10, 10, 0.16);
  }
  50% {
    border-color: rgba(153, 27, 27, 0.82);
    box-shadow:
      inset 0 0 28px rgba(69, 10, 10, 0.22),
      0 0 28px 6px rgba(127, 29, 29, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.conn-error .conn-error-banner,
  body.conn-error .conn-error-banner,
  html.conn-error .conn-error-frame,
  body.conn-error .conn-error-frame {
    animation: none;
  }
}

body.demo-session-active #canicuere-app .hdr::after {
  content: "Demo — Zuchtberatung mit Beispiel-Gentests (nicht überschreibbar)";
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f766e;
}

.ckw-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(13, 148, 136, 0.88));
  color: #f0fdfa;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25);
}

.ckw-demo-banner-text {
  text-align: center;
}

.ckw-demo-banner-cta {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #0f766e;
  background: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ckw-demo-banner-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ckw-demo-breeding-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(254, 243, 199, 0.95);
  border: 2px solid #f59e0b;
  color: #78350f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ckw-demo-breeding-notice strong {
  font-weight: 800;
}

.demo-dna-notice p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(254, 243, 199, 0.95);
  border: 2px solid #f59e0b;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-dna-notice strong {
  font-weight: 800;
}