/* Website-aligned visual skin. Content, navigation and demo logic live in V3. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--font);
  --desk: #edf3ed;
  --flaeche-00: #ffffff;
  --flaeche-01: #f8faf7;
  --flaeche-02: #edf3ed;
  --flaeche-03: #e1ebe1;
  --ruhe: #f8faf7;
  --tx: #172d27;
  --tx2: #314b3e;
  --ged: #536657;
  --schwach: #536657;
  --platz: #536657;
  --reiter: #4a6053;
  --aufdunkel: #f8faf7;
  --akzent: #236149;
  --akzent-hover: #154c34;
  --hell: #d8eee3;
  --hell-hover: #cce4d6;
  --kritisch: #9e3825;
  --warnung: #78531b;
  --erledigt: #4c6634;
  --neutral: #a9b8aa;
  --griff: #d7e2d6;
  --sekh: #e7eee7;
  --leiste: #cedcce;
  --r-karte: 14px;
  --r-feld: 12px;
  --r-zeile: 10px;
  --r-flaeche: 12px;
  --schatten-composer: none;
}

.portal,
.chatwrap {
  background: var(--flaeche-00);
}
.side {
  width: 244px;
  padding: 28px 16px 20px;
  gap: 24px;
  background: var(--ruhe);
  border-right: 1px solid var(--griff);
}
.marke {
  padding-inline: 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.firma {
  padding-inline: 12px;
  background: var(--flaeche-02);
}
.slabel,
.brolle,
.flabel,
.phead .pl,
.lhead .pl {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.slabel {
  padding-inline: 12px;
  font-weight: 500;
}
.sitem,
.citem,
.cleer {
  padding-inline: 12px;
}
.sgruppe .sitem {
  height: 40px;
}
.sstart {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--griff);
}
.sitem.active,
.sitem.active:hover,
.citem.on,
.citem.on:hover {
  background: var(--hell);
  color: var(--akzent-hover);
}
.sitem.active .ccount,
.sitem.active .szahl,
.sstart.active .sar,
.sitem.active .kichev,
.citem.on .cmore {
  color: var(--akzent-hover);
}
/* V3 assigns counts inline when navigating; keep their contrast on sage. */
.sitem.active .ccount,
.sitem.active .szahl {
  color: var(--akzent-hover) !important;
}
.citem.on .cmore:hover {
  background: var(--hell-hover);
  color: var(--akzent-hover);
}
.ccount,
.szahl,
.pc,
.pc-praemie .pv,
.ohead-val-amt,
.lc.mono {
  font-variant-numeric: tabular-nums;
}
.demo-notice {
  padding: 10px 32px;
  border-bottom: 1px solid var(--griff);
  background: var(--ruhe);
}
.chatcol {
  max-width: 660px;
}
.chatcol .kicker {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}
.chatcol h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.p-title,
.area-title,
.intro h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}
.composer,
.chatcol .composer {
  border: 1px solid var(--leiste);
  border-radius: 16px;
  background: var(--ruhe);
}
.chatcol .composer {
  padding: 22px;
  gap: 18px;
  margin-top: 32px;
}
.composer:focus-within {
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px rgb(35 97 73 / 8%);
}
.demo-plus {
  background: var(--flaeche-02);
}
.gmeta,
.dmeta {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  line-height: 1.5;
}
.gbubble {
  background: var(--ruhe);
}
.ocard,
.donecard,
.card,
.infocard {
  border: 1px solid var(--griff);
}
.phead,
.lhead {
  padding-block: 8px;
}
.prow2,
.prow,
.lrow {
  border: 1px solid var(--griff);
  padding-block: 16px;
}
.prow-title,
.prow-hint {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.prow-art,
.prow.done .prow-art {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ged);
}
.lrows > .lrow:nth-child(even) {
  background: var(--ruhe);
}
.lrows > .lrow.click:hover {
  background: var(--sekh);
  border-color: var(--leiste);
}
.pc,
.pc-praemie .pv {
  font-size: 13px;
  line-height: 1.5;
}
.lc-status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  line-height: 1.3;
}
.lc-status.offen {
  background: #f6eedc;
}
.lc-status.bezahlt {
  background: #e9f0e2;
}
.frow {
  gap: 8px;
}
.fctrl {
  border: 1px solid var(--leiste);
  background: var(--flaeche-00);
  min-height: 44px;
}
.fctrl:focus {
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px rgb(35 97 73 / 8%);
}
.btn-secondary,
.fchip:not(.active) {
  box-shadow: inset 0 0 0 1px var(--griff);
}
/* Primary links must retain light text; V3's generic a:hover otherwise wins. */
.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--aufdunkel);
}
/* The imported inline count uses translucent white, below AA on aumi green. */
.actionrow .btn-primary .segn {
  color: var(--aufdunkel) !important;
}
/* Scroll containers and accordion cards clip an outer focus outline. */
.side button:focus-visible,
.side [tabindex]:focus-visible,
.ohead:focus-visible {
  outline-offset: -3px;
}
.dropzone {
  background: var(--ruhe);
}
@media (max-width: 1100px) {
  .prow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }
  .prow-art {
    grid-column: 1;
    grid-row: 1;
  }
  .prow-side {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  .prow-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .prow-convo {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    padding-left: 0;
  }
}
@media (max-height: 800px) and (min-width: 721px) {
  .side {
    padding-block: 24px 16px;
    gap: 16px;
  }
  .sidescroll {
    gap: 16px;
  }
  .sgruppe + .sgruppe {
    padding-top: 12px;
  }
  .sgruppe .sitem {
    height: 36px;
  }
}
@media (max-width: 1400px) and (min-width: 721px) {
  .side {
    width: 224px;
    padding-inline: 12px;
  }
}
@media (max-width: 720px) {
  .side {
    width: 100%;
    padding: 16px;
  }
  .demo-mobilebar {
    background: var(--ruhe);
    border-bottom: 1px solid var(--griff);
  }
  .demo-notice {
    padding: 10px 16px;
  }
  .chatcol h1 {
    font-size: 30px;
  }
  .chatcol .composer {
    margin-top: 24px;
    padding: 16px;
  }
  .p-title,
  .area-title,
  .intro h1 {
    font-size: 26px;
  }
  .fctrl {
    font-size: 16px;
  }
  .actionrow[data-pill] {
    display: flex;
    flex-wrap: wrap;
  }
  /* Override V3's desktop dimensions assigned inline to these controls. */
  .actionrow[data-pill] > button {
    height: auto !important;
    min-height: 44px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 12px !important;
    font-size: 13px !important;
    line-height: 1.4;
    overflow-wrap: break-word;
  }
}
