:root {
  --tr-primary: #2787db;
  --tr-row-bg: #f5faff; /* whole request row background */
  --tr-thread-bg: #ffffff; /* right column (comments) background */
}

/* ==== BOARD LAYOUT: 4 columns, single-column cards ==== */

/* 1) Grid of 4 cards across */
#tr-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}

/* 2) Make each request card stack vertically (title/details above, comments below) */
.tr-card.tr-request{
  display:flex;
  flex-direction:column;
  height:auto;
  background: var(--tr-row-bg);

}

/* 3) Kill the old 2-column layout inside the card */
.tr-request-body{
  display:block !important;           /* override any previous grid/flex */
  grid-template-columns:none !important;
}
.tr-request-body .tr-content,
.tr-request-body .tr-fields{
  width:100%;
}
.tr-request-body .tr-fields{ margin-top:12px; }

/* 4) Keep comments at the bottom of the card column */
.tr-comments-wrap{
  margin-top:1rem; /* pushes comments section to the bottom of the card */
width:100%;
}

/* 5) Responsive niceties (optional, safe) */
@media (max-width: 1480px){
  #tr-list{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 980px){
  #tr-list{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px){
  #tr-list{ grid-template-columns:1fr; }
}

/* --- Fix: prevent tall comments from stretching the avatar --- */
.tr-comments-list .tr-comment{
  align-items: flex-start;               /* don't stretch children vertically */
}

.tr-comments-list .tr-comment-avatar{
  flex: 0 0 30px;                        /* lock avatar column width */
  display: flex;                         /* center the image in its box */
  align-items: center;
  justify-content: center;
}

.tr-comments-list .tr-comment-avatar .tr-avatar-img{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;                     /* crop oversized images nicely */
  display: block;
}

/**Login-promp*/

.login-prompt-section{margin-bottom:30px}
.login-prompt-card{background:linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);border-radius:20px;padding:32px;text-align:left}
.login-prompt-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px}
.login-icon{width:64px;height:64px;background:rgba(38,135,219,.1);border-radius:16px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(38,135,219,.2)}
.login-title{font-size:1.5rem;color:#1e293b;margin:0 0 8px;line-height:1.3}
.login-subtitle{font-size:1rem;color:#64748b;margin:0;line-height:1.5;max-width:600px}
.login-actions{display:flex;gap:12px;flex-wrap:wrap}
.login-action-link{display:inline-flex;align-items:center;gap:10px;padding:10px 20px;border-radius:50px;text-decoration:none;font-size:.85rem;font-weight:500;transition:all .2s}
.login-action-link.primary{background:#2687DB;color:#fff;border:1px solid #2687DB}
.login-action-link.primary:hover{background:#1f7ac5;border-color:#1f7ac5;color:#fff}
.login-action-link.secondary{background:#fff;color:#374151;border:1px solid #d1d5db}
.login-action-link.secondary:hover{background:#f9fafb;border-color:#9ca3af;color:#374151}
@media (max-width:768px){.login-title{font-size:1rem}.login-icon{width:56px;height:56px} .tr-board{ padding: 1.25rem 1.25rem !important; }}

/* Button inside textarea wrapper */
.tr-comment-form .tr-comment-box {
  position: relative;
}
.tr-comment-form .tr-comment-box .tr-textarea {
  padding-right: 52px; /* space for the icon button on the right */
  min-height: 60px;
  height: 70px;
}
/* Icon-only submit button inside the textarea (right, vertically centered) */
.tr-comment-form .tr-comment-box .tr-button-inline {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Show Font Awesome "send/paper-plane" icon (\f1d8) */
.tr-button-inline.tr-icon-btn::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900; /* solid */
  content: "\f1d8";
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
}
/* Optional: simple loading state without changing inner HTML */
.tr-button-inline.is-loading {
  opacity: .7;
  pointer-events: none;
}
/* Make links in comments look nice (comments now output real <a> tags) */
.tr-comment-content a {
  color: var(--tr-primary);
  text-decoration: underline;
  word-break: break-word;
}
.tr-board {
  padding: 0 1.25rem;
}
/* Header row: avatar left, text right */
.tr-head-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tr-head-avatar {
  flex: 0 0 auto;
}
.tr-author-avatar .tr-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
}
.tr-head-main {
  flex: 1 1 auto;
}
/* Small prefix "Erstellt am: DATE" */
.tr-title-prefix {
  font-size: .85em;
  color: #fff;
  display: block;
  color: var(--tr-primary);
}
/* Title and inline author */
.tr-title {
  margin: 0 0 4px;
  line-height: 1.3;
	font-size: clamp(1rem, 2vw, 1.5rem);

}
h3 {
  font-size: 1rem !important;
}
.tr-author-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Keep unified avatar size for comments, too */
.tr-comment-avatar .tr-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
}
/* Cards */
.tr-card {
  border-radius: 12px;
  padding: 16px;
  background: #F7F7F7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}


/* Form */
.tr-form {
  margin: 1rem 0;
}
.tr-form-row {
  margin: 0.95rem 0;
}
.tr-form .tr-row-flex {
  display: flex;
  gap: 8px;
}
.tr-form .tr-row-actions {
  display: flex;

}



button.ui-follow-button.tr-follow.active {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #e9ecef;
}
.tr-input, .tr-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: #fff;
}
.tr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 24px;
  font-size: 0.95rem;
  border: 1px solid var(--tr-primary) !important;
  background: var(--tr-primary) !important;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
/* Fix typo + explicit size for comment avatars in thread */
.tr-comment-avatar img {
  height: 60px;
  width: 60px;
  border-radius: 999px;
}
.tr-label {
  color: black;
}
.tr-value {
  color: #868686;
}
h3#reply-title {
display:none;
}
/* ================================
   REQUEST CARD: TWO-COLUMN LAYOUT
   left: head + body (+ follow)
   right: comments thread (scroll)
   ================================ */
.tr-comment-content p {
  margin-bottom: 10px;
}
/* assign areas */
.tr-request-head {
  grid-area: head;
}
.tr-request-body {
  grid-area: body;
  display: grid;
  gap: 8px;
}
.tr-request-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
/* Follow-Button */
.tr-follow {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tr-primary);
  color: white;
  font-size: 0.8rem;
}
/* Meta bits */
.tr-title {
  margin: 0 0 6px;
  line-height: 1.25;
}
.tr-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, .6);
  font-size: .95em;
}

.tr-author img {
  border-radius: 999px;
  vertical-align: middle;
}
.tr-content {
  margin-top: 6px;
}
.tr-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
}
.tr-field {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
}
/ .tr-comments-title {
  margin: 0 0 2rem;
  ;
}
/* Green pill for comment time */
.tr-comment-meta .tr-time-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .65rem;
  line-height: 1;
  background: #e7f6ec; /* light green */
  color: #1f7a3a; /* dark green text */
  border: 1px solid #c3e6cf;
}
.tr-comment-content p{
	font-size:0.9rem;
}
textarea#comment {
    font-size: 0.9rem;
}
.tr-comments-list {
  display: grid;
  gap: 12px;
 max-height: 250px;
	 min-height: 250px;
overflow: auto;
scrollbar-width: thin;
 /* customize here */
  --sb-size: 6px;                 /* base width (webkit) */
  --sb-thumb: rgba(0,0,0,.35);    /* thumb color */
  --sb-thumb-hover: rgba(0,0,0,.6);
  --sb-track: transparent;

  /* Firefox */
  scrollbar-width: thin; /* options: auto | thin | none */
  scrollbar-color: var(--sb-thumb) var(--sb-track);

  /* optional: avoid layout shift when scrollbar appears (supported in modern browsers) */
  scrollbar-gutter: stable;


}
.tr-comments-list, .comment-respond {
  padding: .35rem;
}
.comment-respond {
  background: #f7f7f7;
}
.tr-comment {
  display: flex;
  gap: 10px;
}
.tr-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72em;
}
}
.tr-comments-empty {
  opacity: .7;
}
/* Auth-Info */
.tr-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
}
/* Responsive */
@media (max-width: 980px) {
  .tr-request {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "body"
      "aside"
      "comments";
  }
  .tr-comments-wrap {
    height: 360px;
  }
}
/* Equal two-column layout; right column is the thread */
.tr-request {
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal widths */
  grid-template-areas:
    "head    comments"
    "body    comments";
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
}
@media (max-width: 980px) {
  .tr-request {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "body"
      "comments";
  }
}
.tr-request-head {
  grid-area: head;
}
.tr-request-body {
  grid-area: body;
  display: grid;
  gap: 10px;
}
.tr-comments-wrap {
  grid-area: comments;
}
/* Header: ONLY date prefix + title inside row */
.tr-head-row {
  display: block;
}
.tr-title {
  margin: 0 0 6px;
  line-height: 1.25;
}
/* Author line moved above description */
.tr-author-above {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tr-author-avatar .tr-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
}
/* Right column panel: scrollable with a subtle shadow UNDER it */
.tr-comments-wrap {
  background: var(--tr-thread-bg, #fff);
  border: 1px solid rgba(39, 135, 219, .15);
  border-radius: 12px;
  height: auto;
  overflow: auto;
  /* shadow "under" the panel */
  box-shadow: 0 10px 14px -8px rgba(0, 0, 0, .15);
}
