#agent-container {
  max-width: 860px;
  margin: -55px auto 60px auto;
  position: relative;
  z-index: 20;
}

/* === Agent-Box ============================================ */

.agent {
  padding: 2.2rem;
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Titel & Untertitel im Agent */

.agent__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: #0f172a;
}

.agent__subtitle {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #64748b;
}

/* Text-Eingabe-Area */

.agent__textarea,
.agent__textarea:focus,
.agent__textarea:active,
.agent__textarea:hover {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.7rem 0.85rem;
  font-size: 0.94rem;
  resize: vertical;
  min-height: 110px;
  outline: none;
  background: #f9fafb !important;

  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;

  line-height: 1.55;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}


/* Text-Ausgabe-Box */

.agent__output {
  margin-top: 0.8rem;
  padding: 1rem 0.9rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #111827;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  #agent-container {
    margin: -35px auto 40px auto;
    max-width: 92%;
  }
}


/* Consent & Counter */

.agent-consent-box {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.agent-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}

.agent-consent-label input {
  margin-top: 3px;
  transform: scale(1.1);
}


.agent-char-counter {
  margin-top: 8px;
  text-align: right;
  font-size: 13px;
  color: #6b7280;
}

/* === Globales Button-System ================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Haupt-CTA Button über dem Agent */

.btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.55);
}

/* Dunkler Button im Agent ("Report jetzt erstellen") */

.btn--dark {
  background: #1b263b;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.5);
}

.btn--dark:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.65);
}

button:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

@media (max-width: 768px) {
  #agent-container {
    max-width: 100%;
    width: 100%;
    margin: -35px auto 40px auto;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .agent {
    padding: 1rem;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .agent__output {
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

