@font-face {
  font-family: 'Skate blade';
  src: url('Skateblade-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* =====================================================
   WIDGET MODE – Global scale
   ===================================================== */
html.cl-embed-widget {
  --widget-font-size: 0.875rem;   /* global base (14px) */
  --consent-scale: 0.85;          /* consent modal relative scale */
}

html.cl-embed-widget body {
  font-size: var(--widget-font-size);
}

/* =====================================================
   WIDGET MODE
   ===================================================== */

html.cl-embed-widget body {
  font-size: var(--widget-font-size);
}

/* Welcome screen layout */
html.cl-embed-widget #welcome-screen {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;

  padding: 1rem !important;
  box-sizing: border-box !important;

  /* WICHTIG: kein justify-center */
  justify-content: flex-start !important;
  align-items: stretch !important;
}

/* Injected logo + title (initial) */
html.cl-embed-widget #custom-logo,
html.cl-embed-widget #custom-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* vertikaler Spacer */
html.cl-embed-widget #custom-logo {
  margin-top: auto;
}

html.cl-embed-widget #custom-title {
  margin-bottom: auto;
}

/* Chainlit default logo → hide in widget */
html.cl-embed-widget #welcome-screen img.logo {
  display: none !important;
}

/* Composer + footer bottom aligned */
html.cl-embed-widget #message-composer {
  margin-top: auto !important;
}

html.cl-embed-widget #chat-input {
  height: 2.5rem;
  min-height: 2.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  line-height: 1.2;
}

html.cl-embed-widget .widget-footer {
  text-align: center;
  line-height: 1.25;
}

/* Common */
html.cl-embed-widget .widget-footer-line {
  font-size: 0.6875rem; /* ≈ 11px */
}

/* Line 1: disclaimer */
html.cl-embed-widget .widget-footer-disclaimer {
  margin-bottom: 0.15rem;
  opacity: 0.5;
}

/* Line 2: brand + legal */
html.cl-embed-widget .widget-footer-meta {
  white-space: nowrap; /* stays on one line */
}

html.cl-embed-widget .widget-footer .solvatio {
  opacity: 0.7;
}

html.cl-embed-widget .widget-footer a {
  text-decoration: underline;
  opacity: 0.5;
}
/* =====================================================
   EMBED / WIDGET MODE END
   ===================================================== */

.hraizn-brand {
  font-family: Skate blade;
}

/* Watermark-Hintergrund */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 10vw;
    font-weight: bold;
    color: #0902001A; /* 50% Transparenz */
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

[data-step-type="user_message"] {
    color: hsl(var(--accent-foreground));
}

[id="message-composer"] {
    color: hsl(var(--accent-foreground));
}

div.watermark {
    pointer-events: none;
    text-decoration: none;
    cursor: default;
}

div.watermark > div > span,
div.watermark > svg {
    display: none;
}

#header {
    visibility:hidden;
}

/* Color for "Type your message here..." */
#chat-input:empty::before {
  content: attr(data-placeholder);
  color: #ffffff;
}

/* remove build with chainlit watermark */
/**
a img[alt="watermark"] {
display: none;
}

a[href*='https://chainlit.io'] {
visibility: hidden;
}
*/

.chat-consent-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-family: var(--font-sans, sans-serif);
}

.chat-consent-modal {
  background-color: var(--background, #fff);
  background-color: hsl(var(--background, 0 0% 100%));
  color: var(--foreground, #000);
  max-width: 600px;
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 90vh;
}

.chat-consent-modal h2 {
  margin-top: 0;
  font-size: calc(1.5rem * var(--consent-scale, 1));
}

.chat-consent-modal p {
  font-size: calc(0.95rem * var(--consent-scale, 1));
  line-height: 1.5;
  margin: 0.75rem 0;
}

.chat-consent-modal a {
  color: var(--primary);
  text-decoration: underline;
}

#chat-consent-button {
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  font-size: calc(1rem * var(--consent-scale, 1));
  background-color: hsl(var(--primary, 311 100% 63%));
  color: hsl(var(--primary-foreground, 0 0% 100%));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#chat-consent-button:hover {
  background-color: hsl(var(--accent, 0 0% 90%));
  color: hsl(var(--accent-foreground, 0 0% 10%));
}

#message-composer-info {
    background-color: hsl(var(--primary));
    border-radius: 8px;
    width: fit-content;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

[data-step-type="assistant_message"] a {
  text-decoration: underline;
}

button[id^="step-"] {
    color: var(--foreground, #000);
}