/* Final visual refinement layer for the internal TOTG prototype. */
:root {
  --app-sidebar-width: 268px;
  --app-topbar-height: 76px;
  --app-radius: 12px;
  --app-canvas: #f6f7f9;
  --app-line: #dce3e9;
  --app-line-soft: #e9edf1;
  --app-muted: #718092;
}

body {
  font-size: 15px;
}

.site-header {
  padding: 27px 18px 18px;
}

.brand {
  grid-template-columns: 50px 1fr;
  padding-inline: 10px;
}

.brand::before {
  width: 48px;
  height: 48px;
  font-size: 1.14rem;
}

.brand::after {
  padding-left: 13px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.21em;
  line-height: 1.5;
}

.main-nav {
  gap: 4px;
  padding-top: 18px;
}

.main-nav::before {
  padding-bottom: 16px;
  font-size: 0.66rem;
}

.main-nav a {
  min-height: 49px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 560;
}

.main-nav a.active {
  background: #2b4156;
}

.app-topbar {
  padding-inline: 38px;
}

.content-shell,
.content-shell.narrow,
.dashboard-shell {
  width: min(1165px, calc(100% - 64px));
  padding-top: 119px;
}

.page-intro,
.intro-action-row {
  margin-bottom: 25px;
}

.kicker,
.eyebrow {
  margin-bottom: 10px;
  font-size: 0.66rem;
  font-weight: 690;
  letter-spacing: 0.21em;
}

h1 {
  font-size: clamp(2.05rem, 2.75vw, 2.55rem);
  font-weight: 630;
  letter-spacing: -0.044em;
  line-height: 1.08;
}

h2 {
  font-weight: 590;
}

.lead {
  margin-top: 12px;
  font-size: 0.96rem;
}

.primary-button,
button:not(.logout-button):not(.secondary-button):not(.light-button),
.secondary-button,
.light-button {
  min-height: 44px;
  padding: 9px 17px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.dashboard-intro {
  margin-bottom: 28px;
}

.dashboard-intro h1 {
  max-width: 880px;
  font-size: clamp(2.05rem, 2.75vw, 2.55rem);
}

.dashboard-create {
  min-width: 245px;
}

.dashboard-next-step {
  min-height: 112px;
  padding: 23px 28px;
  background: linear-gradient(105deg, #163650 0%, #24506b 100%);
}

.dashboard-content-grid {
  grid-template-columns: minmax(0, 1.86fr) minmax(285px, 0.9fr);
  gap: 20px;
}

.dashboard-card-heading {
  min-height: 60px;
}

.dashboard-offer {
  padding-block: 16px;
}

.filter-bar {
  margin-bottom: 18px;
}

.multi-filter {
  grid-template-columns: minmax(300px, 1fr) 170px 210px 165px;
}

.member-grid {
  gap: 15px;
}

.member-card {
  min-height: 324px;
  padding: 20px;
}

.member-card > p {
  min-height: 62px;
}

.offer-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.offer-card {
  min-height: 286px;
  padding: 20px;
}

.customer-start {
  min-height: 174px;
  padding: 27px 30px;
  background: linear-gradient(105deg, #163650 0%, #295873 100%);
}

.customer-start h2 {
  font-size: 1.1rem;
}

.customer-start p {
  max-width: 760px;
  font-size: 0.82rem;
}

.customer-progress {
  display: flex;
  align-items: center;
  width: min(330px, 100%);
  margin-top: 18px;
}

.customer-progress span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
}

.customer-progress span:first-child {
  border-color: #d2a300;
  background: #d2a300;
  color: #fff;
}

.customer-progress i {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.34);
}

.customer-progress-label {
  margin-top: 7px !important;
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 0.58rem !important;
}

.subnav {
  border-bottom: 1px solid var(--app-line);
  gap: 0;
  margin-bottom: 22px;
}

.subnav a {
  padding: 11px 14px;
  border: 0;
  border-radius: 0;
}

.subnav a.active {
  border-bottom: 2px solid var(--app-gold);
  color: var(--app-text);
}

/* Austausch: strukturierte Gesprächsliste wie in der Referenz. */
.discussion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 22px;
}

.discussion-main {
  display: grid;
  gap: 16px;
}

.discussion-pinned {
  padding: 25px 26px;
  border: 1px solid #e3cf94;
  border-radius: 12px;
  background: #f8f3e8;
}

.discussion-pinned .eyebrow {
  margin-bottom: 8px;
  color: #ae8512;
}

.discussion-pinned h2 {
  margin: 0;
  font-size: 1.04rem;
}

.discussion-pinned p {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-size: 0.79rem;
}

.discussion-pinned a {
  display: inline-block;
  margin-top: 11px;
  color: var(--app-gold-dark);
  font-size: 0.74rem;
  font-weight: 650;
  text-decoration: none;
}

.discussion-feed,
.discussion-rooms {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: #fff;
}

.discussion-feed a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 95px;
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--app-line-soft);
  text-decoration: none;
}

.discussion-feed a:last-child {
  border-bottom: 0;
}

.discussion-feed .discussion-symbol {
  width: 38px;
  height: 38px;
}

.discussion-feed small {
  display: block;
  margin-bottom: 5px;
  color: var(--app-gold-dark);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discussion-feed strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 560;
}

.discussion-feed em {
  display: block;
  margin-top: 5px;
  color: #8996a3;
  font-size: 0.67rem;
  font-style: normal;
}

.discussion-feed time {
  color: #657483;
  font-size: 0.67rem;
  font-weight: 560;
  text-align: right;
}

.discussion-rooms {
  align-self: start;
  padding: 23px;
}

.discussion-rooms h2 {
  margin: 0 0 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--app-line-soft);
  font-size: 1.05rem;
}

.discussion-room-link {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--app-muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.discussion-room-link::before {
  content: "○";
  color: #91a0ad;
}

.discussion-room-link.active {
  color: var(--app-text);
  font-weight: 650;
}

.discussion-room-link b {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f0f3f5;
  color: #657381;
  font-size: 0.62rem;
  text-align: center;
}

.discussion-note {
  margin-top: 17px;
  padding: 15px;
  border-radius: 9px;
  background: #f1f3f5;
}

.discussion-note strong {
  display: block;
  font-size: 0.72rem;
}

.discussion-note p {
  margin: 6px 0 0;
  color: var(--app-muted);
  font-size: 0.67rem;
}

/* Profilseite */
.page-profile .profile-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
}

.page-profile .profile-summary,
.page-profile .profile-layout > .panel,
.page-profile .account-panel {
  border-radius: 12px;
  box-shadow: none;
}

.page-profile .profile-summary {
  padding: 27px 22px;
}

.page-profile .profile-summary .avatar {
  width: 76px;
  height: 76px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--app-line);
  background: #e1ebe8;
  color: #38514f;
}

.page-profile .profile-summary h2 {
  font-size: 1.06rem;
}

.page-profile .profile-summary p {
  font-size: 0.78rem;
}

.page-profile .profile-form label.field {
  font-size: 0.76rem;
  font-weight: 620;
}

.page-profile .profile-form input,
.page-profile .profile-form textarea {
  border-radius: 8px;
  font-size: 0.83rem;
}

.page-profile .visibility {
  font-size: 0.7rem;
}

.admin-grid {
  gap: 16px;
}

.admin-card {
  min-height: 280px;
  padding: 22px;
}

@media (max-width: 1050px) {
  .multi-filter {
    grid-template-columns: 1fr 1fr;
  }

  .discussion-layout {
    grid-template-columns: 1fr;
  }

  .discussion-rooms {
    order: -1;
  }
}

@media (max-width: 760px) {
  .content-shell,
  .content-shell.narrow,
  .dashboard-shell {
    width: min(100% - 28px, 1165px);
  }

  .dashboard-intro h1 {
    max-width: none;
  }

  .discussion-feed a {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .discussion-feed time {
    grid-column: 2;
    text-align: left;
  }
}
