/* ---------------------------------------------------
   0. Stylische2 Tabelle (Data Table)
--------------------------------------------------- */
.stylish2-table {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 12px rgba(44,62,80,0.07);
          box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  margin-bottom: 1.5em;
  font-size: 0.82rem;
}
.stylish2-table th {
  background: -webkit-gradient(linear, left top, left bottom, from(#07689F), to(#8db7cf));
  background: linear-gradient(180deg, #07689F 0%, #8db7cf 100%);
  color: #fff;
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  padding-top: 0.7em;
  padding-bottom: 0.7em;
}
.stylish2-table tr {
  border-radius: 6px;
}
.stylish2-table td {
  background: #fff;
  border: none !important;
  padding: 0.6em 1em;
  vertical-align: middle;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

/* ---------------------------------------------------
   1. Stylische Tabelle (Data Table)
--------------------------------------------------- */
.stylish-table {
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  -webkit-box-shadow: 0 2px 12px rgba(44,62,80,0.07);
          box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  margin-bottom: 1.5em;
  font-size: 0.82rem;
}
.stylish-table th {
  background: -webkit-gradient(linear, left top, left bottom, from(#07689F), to(#8db7cf));
  background: linear-gradient(180deg, #07689F 0%, #8db7cf 100%);
  color: #fff;
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  padding-top: 1em;
  padding-bottom: 1em;
}
.stylish-table tr {
  border-radius: 6px;
}
.stylish-table td {
  background: #fff;
  border: none !important;
  padding: 0.6em 1em;
  vertical-align: middle;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.stylish-table thead tr {
  border-bottom: 2px solid #e0e5ec;
}
.stylish-table td:first-child,
.stylish-table th:first-child {
  border-top-left-radius: 8px;
}
.stylish-table td:last-child,
.stylish-table th:last-child {
  border-top-right-radius: 8px;
}
.stylish-table tbody tr {
  cursor: pointer;
  -webkit-transition: background 0.2s, -webkit-box-shadow 0.2s;
  transition: background 0.2s, -webkit-box-shadow 0.2s;
  transition: box-shadow 0.2s, background 0.2s;
  transition: box-shadow 0.2s, background 0.2s, -webkit-box-shadow 0.2s;
}
.stylish-table tbody tr:hover td {
  background: #e3f0ff;
  -webkit-box-shadow: 0 4px 20px -6px #2f80ed1a;
          box-shadow: 0 4px 20px -6px #2f80ed1a;
}

/* ---------------------------------------------------
   2. Paragraph als Button (z.B. für Auswahloptionen)
--------------------------------------------------- */

.btn-paragraph {
  display: inline-block;
  background: -webkit-gradient(linear, left top, left bottom, from(#07689F), to(#8db7cf));
  background: linear-gradient(180deg, #07689F 0%, #8db7cf 100%);
  color: #fff;
  padding: 0.7em 1.5em;
  border-radius: 1.5em;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  -webkit-transition: background 0.2s, -webkit-box-shadow 0.2s;
  transition: background 0.2s, -webkit-box-shadow 0.2s;
  transition: background 0.2s, box-shadow 0.2s;
  transition: background 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
  -webkit-box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
          box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  border: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  margin: 0.3em 0;
}
.btn-paragraph:hover, .btn-paragraph:focus {
  background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#aaa));
  background: linear-gradient(180deg, #888 0%, #aaa 100%);
  -webkit-box-shadow: 0 4px 16px rgba(44, 62, 80, 0.14);
          box-shadow: 0 4px 16px rgba(44, 62, 80, 0.14);
  outline: none;
}

/* ---------------------------------------------------
   3. Chatfenster & Chat-Bubbles
--------------------------------------------------- */

/* Chat-Container */
.chat-container {
    width: 100%;
    max-width: none;
    background: #f5f6fa;
    border-radius: 12px;
    -webkit-box-shadow: 0 2px 12px rgba(60,60,90,0.1);
            box-shadow: 0 2px 12px rgba(60,60,90,0.1);
    padding: 1rem;
    margin: 0;
    height: 300px;
    overflow-y: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

/* Nachrichtenliste */
#chatMessages {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 6px;
}

/* Zeilenumbrüche im Chat */
#chatMessages div {
    white-space: pre-wrap; /* Zeilenumbrüche werden dargestellt */
}

/* Allgemeine Bubble-Basics (alle Nachrichten) */
#chatMessages > div {
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: 9px;
    max-width: 80%;
    font-size: 0.92em;
    white-space: pre-wrap;
    word-break: break-word;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.04);
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-align: left;
    display: inline-block;
}

/* User-Message (rechts, blau) */
.chat-user-message {
    text-align: end;
    color: #2f80ed;
    background: #e6f1ff;
    padding: 0.6em 1em;
    border-radius: 0.8em 0.5em 0.8em 0.5em;
    max-width: 80%;
    margin-left: auto;
    margin-right: 0;
    display: inline-block;
}
/* Bot-Message (links, rot!) */
.chat-ai-message {
    text-align: start;
    color: #5e5e5e;
    background: #ffffff; /* <== Hier ggf. auf neutral ändern, z.B. #f4f5f7 */
    padding: 0.6em 1em;
    border-radius: 0.5em 1.2em 1.2em 1.2em;
    max-width: 80%;
    margin-right: auto;
    margin-left: 0;
    display: inline-block;
}

/* Während der Sperre am Input/Textarea aktiv */
/* Für WebKit-Browser explizit */
.input-locking::-webkit-input-placeholder {           /* Standard */
  color: #90ee90;                       /* hellgrün */
  font-size: 0.9em;                     /* kleiner */
  opacity: 1;                           /* sicherstellen, dass's sichtbar ist */
}
.input-locking::-moz-placeholder {           /* Standard */
  color: #90ee90;                       /* hellgrün */
  font-size: 0.9em;                     /* kleiner */
  opacity: 1;                           /* sicherstellen, dass's sichtbar ist */
}
.input-locking:-ms-input-placeholder {           /* Standard */
  color: #90ee90;                       /* hellgrün */
  font-size: 0.9em;                     /* kleiner */
  opacity: 1;                           /* sicherstellen, dass's sichtbar ist */
}
.input-locking::-ms-input-placeholder {           /* Standard */
  color: #90ee90;                       /* hellgrün */
  font-size: 0.9em;                     /* kleiner */
  opacity: 1;                           /* sicherstellen, dass's sichtbar ist */
}
.input-locking::placeholder {           /* Standard */
  color: #90ee90;                       /* hellgrün */
  font-size: 0.9em;                     /* kleiner */
  opacity: 1;                           /* sicherstellen, dass's sichtbar ist */
}

/* Optional: Cursor ausblenden, wirkt „deaktiviert“ */
.input-locking { 
  caret-color: transparent;
}

/* ---------------------------------------------------
   4. Chat Input & Sende-Button
--------------------------------------------------- */

/* Eingabegruppe (unten) */
.input-group {
    margin-top: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 0.5rem;
}

/* Eingabefeld */
#chatInput {
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid #bfc3c6;
    padding: 10px 12px;
    font-size: 0.9em;
    background: #fff;
    resize: none;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.03);
            box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    text-align: left;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
}

/* Sende-Button */
/*
.btn-primary, #sendBtn {
    border-radius: 16px;
    background: -webkit-gradient(linear, left top, right top, from(#4f8cff), to(#2563eb));
    background: linear-gradient(90deg, #4f8cff, #2563eb);
    border: none;
    color: #fff;
    padding: 0.5rem 1.4rem;
    font-weight: bold;
    -webkit-transition: background 0.2s, -webkit-box-shadow 0.2s;
    transition: background 0.2s, -webkit-box-shadow 0.2s;
    transition: background 0.2s, box-shadow 0.2s;
    transition: background 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
    -webkit-box-shadow: 0 1px 5px rgba(60,60,90,0.12);
            box-shadow: 0 1px 5px rgba(60,60,90,0.12);
}
.btn-primary:active, #sendBtn:active {
    background: -webkit-gradient(linear, left top, right top, from(#2563eb), to(#4f8cff));
    background: linear-gradient(90deg, #2563eb, #4f8cff);
}
*/
/* ---------------------------------------------------
   5. Responsive Anpassung für kleine Bildschirme
--------------------------------------------------- */
@media (max-width: 600px) {
    .chat-container {
        width: 100%;
        height: 60vh;
    }
    #chatInput {
        font-size: 1em;
    }
}

/* ---------------------------------------------------
   6. Anpassung Checkbox stylisch
--------------------------------------------------- */
.form-Check-stylisch, .form-check-input {
  width: 20px;
  height: 20px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #f0f0f0;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.form-Check-stylisch, .form-check-input:checked {
  background-color: #07689F;
  border-color: #07689F;
}

.form-Check-stylisch, .form-check-input:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.form-Check-stylisch, .form-check-label {
  margin-left: 8px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

/* ---------------------------------------------------
   7. Anpassung Image
--------------------------------------------------- */

.clickable-image {
  cursor: pointer;
}

/* ---------------------------------------------------
   7. Anpassung INPUT Felder
--------------------------------------------------- */

.form-control, .form-select {
  background-color: #fde0f4;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #333;
}

.style1 {
  height: 500px;
}

.style2 {}

.style3 {
  font-size: 5px;
}

/* ---------------------------------------------------
   8. Anpassung TEXTAREA Felder
--------------------------------------------------- */

.textarea-flex {
  width: 100%;
  min-height: 24em !important; /* entspricht Bootstrap-Formularhöhe */
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  resize: vertical; /* optional: erlaubt Nutzervergrößerung nach unten */
}

.textarea-flex100 {
  width: 100%;
  min-height: 48em !important; /* entspricht Bootstrap-Formularhöhe */
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  resize: vertical; /* optional: erlaubt Nutzervergrößerung nach unten */
}

/* ---------------------------------------------------
   9. Verhalten FOOTER und MAIN steuern
--------------------------------------------------- */

.fixed-heightToFooter {
  height: 500px !important;
}

/* ---------------------------------------------------
   10. Schieberegler CSS
--------------------------------------------------- */

:root {
  --track-height: 14px;
  --thumb-size: 22px;
}

/* Wrapper für Slider + Tooltip */
.regler-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
}

/* Tooltip-Stil */
.tooltip {
  position: absolute;
  top: -32px;
  left: 0;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* Slider mit festem Farbverlauf */
.regler {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  height: var(--track-height);
  border-radius: 999px;
  background: -webkit-gradient(linear, left top, right top, from(#b3d4ff), to(#b3ffd9));
  background: linear-gradient(90deg, #b3d4ff, #b3ffd9); /* hellblau → hellgrün */
  outline: none;
  border: none;
}

/* Track transparent, damit der Input-Hintergrund sichtbar bleibt */
.regler::-webkit-slider-runnable-track {
  height: var(--track-height);
  border-radius: 999px;
  background: transparent;
}
.regler::-moz-range-track {
  height: var(--track-height);
  border-radius: 999px;
  background: transparent;
}

/* Thumb */
.regler::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: #fff;
  border: 2px solid #007aff;
  -webkit-box-shadow: 0 4px 14px rgba(0,0,0,.15);
          box-shadow: 0 4px 14px rgba(0,0,0,.15);
  margin-top: calc((var(--track-height) - var(--thumb-size)) / 2);
  -webkit-transition: -webkit-transform 120ms ease;
  transition: -webkit-transform 120ms ease;
  transition: transform 120ms ease;
  transition: transform 120ms ease, -webkit-transform 120ms ease;
}
.regler:active::-webkit-slider-thumb { -webkit-transform: scale(1.05); transform: scale(1.05); }

.regler::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: #fff;
  border: 2px solid #007aff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}