/* ==========================================================================
   Layoff ticker, company pages, company overview (boards T9, T10). LAYOUT FILE.
   Loaded with verzeichnis.css (shared: section title, select, CTA wrap, fact
   table, timeline) on the ticker templates, single unternehmen and the
   unternehmen archive (inc/assets.php).
   ========================================================================== */

/* ---------- Hero ---------- */

.ah-thero {
  background: var(--ah-beige);
}

.ah-thero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 52px;
}

.ah-thero h1 {
  max-width: 1000px;
  font-size: var(--ah-h1);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.ah-thero__intro {
  max-width: 780px;
  color: var(--ah-text);
  font-size: 20px;
  line-height: 1.6;
}

.ah-thero__live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--ah-grey);
  font-size: 14px;
  font-weight: 700;
}

.ah-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-peach);
  color: var(--ah-orange-text);
  font-size: 14px;
  font-weight: 800;
}

.ah-live > span,
.ah-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ah-orange);
}

.ah-live.is-off {
  background: var(--ah-white);
  color: var(--ah-grey);
}

.ah-live.is-off > span,
.ah-dot.is-off {
  background: var(--ah-grey);
}

.ah-thero__source {
  max-width: 1100px;
  color: var(--ah-grey);
  font-size: 13px;
  line-height: 1.6;
}

.ah-tstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 22px;
}

.ah-tstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 20px 20px 18px;
  border: 1px solid var(--ah-line);
  border-radius: 16px;
  background: var(--ah-white);
}

.ah-tstat__label {
  color: var(--ah-grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-tstat__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ah-tstat__sub {
  color: var(--ah-grey);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Trends ---------- */

.ah-trends__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ah-trends__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-kicker--caps {
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ah-trends__meta {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-years__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.ah-years__title {
  font-size: 21px;
}

.ah-years__note {
  max-width: 280px;
  color: var(--ah-grey);
  font-size: 13px;
  text-align: right;
}

.ah-tcard {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
  background: var(--ah-white);
}

.ah-tcard__title {
  font-size: 18px;
  line-height: 1.3;
}

.ah-tcard__sub {
  margin-top: 2px;
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-trends__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Vertical bars: the column holds value and bar, heights in percent */
.ah-vbars {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-vbars li {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ah-vbars__col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 200px;
}

.ah-vbars__bar {
  display: block;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  background: var(--ah-bar);
}

.ah-vbars li.is-current .ah-vbars__bar {
  background: var(--ah-orange);
}

.ah-vbars__value {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.ah-vbars__label {
  color: var(--ah-grey);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.ah-vbars--years .ah-vbars__col {
  height: 230px;
  border-bottom: 1px solid var(--ah-axis);
}

.ah-vbars--months {
  gap: 9px;
  margin-top: 22px;
}

.ah-vbars--months .ah-vbars__col {
  height: 150px;
}

.ah-vbars--months .ah-vbars__bar {
  border-radius: 4px 4px 0 0;
}

.ah-vbars--staff {
  gap: 10px;
  margin-top: 18px;
}

.ah-vbars--staff .ah-vbars__col {
  height: 190px;
}

.ah-vbars--staff .ah-vbars__value {
  font-size: 11px;
}

/* Horizontal bars */
.ah-hbars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ah-hbars li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

.ah-hbars__label {
  overflow: hidden;
  color: var(--ah-grey);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-hbars__track {
  display: block;
  height: 10px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-calc-soft);
}

.ah-hbars__track span {
  display: block;
  min-width: 10px;
  height: 100%;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-orange);
}

.ah-hbars__value {
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

/* ---------- Table of all entries ---------- */

.ah-tlist__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ah-tfilter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
}

.ah-tfilter__label {
  color: var(--ah-grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-tfilter__select select,
.ah-tfilter__search {
  height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--ah-input-border);
  border-radius: 10px;
  background: var(--ah-white);
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 15px;
  appearance: none;
}

.ah-tfilter__select svg {
  right: 12px;
  width: 14px;
  height: 14px;
}

.ah-tfilter__search {
  flex: 1 1 150px;
  min-width: 0;
  padding-right: 14px;
}

.ah-tfilter__select select {
  font-size: 14px;
  padding-left: 12px;
  padding-right: 32px;
}

.ah-tfilter__select select:focus,
.ah-tfilter__search:focus {
  border-color: var(--ah-orange);
  outline: 0;
}

.ah-tfilter__reset {
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ah-orange-text);
  font-family: var(--ah-font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ah-tlist__count {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-tlist__count b {
  color: var(--ah-text);
}

.ah-ttable-wrap {
  overflow-x: auto;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
}

.ah-ttable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ah-ttable thead th {
  padding: 14px 16px;
  background: var(--ah-beige);
  color: var(--ah-grey);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ah-ttable tbody tr {
  border-top: 1px solid var(--ah-line);
}

.ah-ttable tbody th,
.ah-ttable td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
}

.ah-ttable .is-num {
  text-align: right;
}

.ah-ttable__co {
  font-size: 15px;
  font-weight: 800;
}

.ah-ttable__co a {
  color: var(--ah-text);
  text-decoration: none;
}

.ah-ttable__co a:hover {
  color: var(--ah-orange-text);
}

.ah-ttable__reason,
.ah-ttable__period,
.ah-ttable__date {
  color: var(--ah-grey);
  white-space: nowrap;
}

.ah-ttable__jobs {
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

/* Source name only, no link (Timo, 10 Nov 2026). */
.ah-ttable__source {
  color: var(--ah-grey);
  white-space: nowrap;
}

.ah-tchip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-beige);
  color: var(--ah-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ah-tchip--orange {
  background: var(--ah-peach);
  color: var(--ah-orange-text);
}

.ah-tlist__empty {
  color: var(--ah-grey);
}

.ah-tlist .ah-pagination {
  margin-top: 8px;
}

button.page-numbers {
  border: 1px solid var(--ah-line);
  background: var(--ah-white);
  font-family: var(--ah-font);
  font-size: 15px;
  cursor: pointer;
}

.ah-tbg__inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Background blocks stacked over the full width: heading left, text right at
   reading width (Timo, 10 and 12 Nov 2026). */
.ah-tbg__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.ah-tbg__text {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 0 64px;
  padding: 28px 0;
  border-top: 1px solid var(--ah-line);
}

.ah-tbg__text > * {
  grid-column: 2;
}

.ah-tbg__text > h3 {
  grid-column: 1;
  grid-row: 1 / span 20;
}

.ah-tbg__text h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.ah-tbg__text > :last-child {
  margin-bottom: 0;
}

/* ---------- Company page ---------- */

.ah-uchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.ah-uchip {
  padding: 6px 13px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-pill);
  background: var(--ah-white);
  font-size: 14px;
  font-weight: 700;
}

.ah-uchips__date {
  color: var(--ah-grey);
  font-size: 14px;
  font-weight: 700;
}

.ah-tstats--company {
  row-gap: 16px;
}

.ah-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: start;
}

.ah-company__main {
  display: flex;
  flex-direction: column;
  gap: 52px;
  min-width: 0;
}

.ah-company__block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ah-company__title {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ah-company__text {
  font-size: 17px;
  line-height: 1.85;
}

.ah-company__note {
  color: var(--ah-grey);
  font-size: 14px;
  line-height: 1.7;
}

.ah-company__seo h3 {
  font-size: 20px;
}

.ah-ufactor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 30px 34px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-beige);
}

.ah-ufactor__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ah-ufactor__label,
.ah-ufactor__unit {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-ufactor__value {
  color: var(--ah-orange);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.ah-ufactor__badge {
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-white);
  font-size: 13px;
  font-weight: 800;
}

.ah-ufactor__bar {
  position: relative;
  height: 14px;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-calc-soft);
}

.ah-ufactor__band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-orange);
}

.ah-ufactor__rule {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: var(--ah-text);
}

.ah-ufactor__ticks {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ah-grey);
  font-size: 12px;
}

.ah-ufactor__hint {
  margin-top: 12px;
  color: var(--ah-grey);
  font-size: 13px;
}

.ah-utiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Calculator */
.ah-urechner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 30px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-box);
  background: var(--ah-white);
}

.ah-urechner__title {
  margin-top: -14px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.ah-urechner__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ah-urechner__field,
.ah-urechner__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ah-urechner label,
.ah-urechner__h {
  font-size: 15px;
  font-weight: 800;
}

.ah-urechner__input {
  position: relative;
  display: block;
}

.ah-urechner__input input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 14px;
  border: 2px solid var(--ah-input-border);
  border-radius: var(--ah-radius-input);
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 16px;
}

.ah-urechner__input input:focus {
  border-color: var(--ah-orange);
  outline: 0;
}

.ah-urechner__input > span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--ah-grey);
  font-size: 14px;
  transform: translateY(-50%);
}

.ah-urechner__sliderhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ah-urechner__sliderhead b {
  color: var(--ah-orange-text);
  font-weight: 800;
}

.ah-urechner__range {
  position: relative;
  height: 28px;
  margin-top: 6px;
}

.ah-urechner__track,
.ah-urechner__band {
  position: absolute;
  top: 12px;
  height: 5px;
  border-radius: 3px;
}

.ah-urechner__track {
  left: 0;
  right: 0;
  background: var(--ah-calc-soft);
}

.ah-urechner__band {
  background: var(--ah-bar);
}

.ah-urechner__range input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ah-urechner__range input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ah-white);
  border-radius: 50%;
  background: var(--ah-orange);
  box-shadow: var(--ah-shadow-card);
  -webkit-appearance: none;
}

.ah-urechner__range input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ah-white);
  border-radius: 50%;
  background: var(--ah-orange);
}

.ah-urechner__legend {
  margin-top: 4px;
  color: var(--ah-grey);
  font-size: 13px;
}

.ah-urechner__result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 22px 18px;
  border-radius: var(--ah-radius-card);
  background: var(--ah-peach);
}

.ah-urechner__label {
  color: var(--ah-grey);
  font-size: 15px;
  font-weight: 700;
}

.ah-urechner__value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.ah-urechner__range-text {
  font-size: 16px;
  font-weight: 800;
}

.ah-urechner__formula {
  color: var(--ah-grey);
  font-size: 13px;
}

.ah-urechner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-urechner__chips .ah-chip {
  height: 38px;
  min-height: 0;
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 15px;
  cursor: pointer;
}

.ah-urechner__note,
.ah-urechner__verdict {
  padding: 16px 18px;
  border-radius: var(--ah-radius-input);
  background: var(--ah-beige);
  font-size: 14px;
  line-height: 1.6;
}

.ah-urechner__note strong,
.ah-urechner__verdict strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.ah-urechner__verdict.is-low {
  background: var(--ah-con-bg);
}

.ah-urechner__verdict.is-high {
  background: var(--ah-pro-bg);
}

.ah-urechner__disclaimer {
  margin-top: -6px;
  color: var(--ah-grey);
  font-size: 13px;
}

/* Headcount chart */
.ah-uchart__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.ah-uchart__note {
  margin-top: 16px;
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-ufacts {
  margin: 0;
}

.ah-uevents .ah-uevents__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.ah-uevents__meta b {
  color: var(--ah-orange-text);
  font-weight: 800;
}

.ah-uevents__meta em {
  font-style: normal;
  font-weight: 800;
}

.ah-uevents .ah-uevents__title {
  font-size: 18px;
  font-weight: 800;
}

.ah-uevents li > span:last-child:not(.ah-uevents__meta) {
  color: var(--ah-grey);
  font-size: 16px;
  line-height: 1.75;
}

.ah-uevents li::before {
  top: 4px;
}

/* Aside: as tall as the main column, so the sidebar can travel with the page.
   --ah-sticky-fit (site.js) lets a sidebar taller than the window stick at its
   bottom edge instead. */
.ah-company__aside {
  align-self: stretch;
}

.ah-company__sticky {
  position: sticky;
  top: min(32px, var(--ah-sticky-fit, 32px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-bar .ah-company__sticky {
  top: min(64px, var(--ah-sticky-fit, 64px));
}

.ah-company__cta .ah-cta {
  margin: 0;
}

.ah-company__cta .ah-cta__body {
  gap: 12px;
  padding: 28px 24px 24px;
  align-items: stretch;
  text-align: left;
}

.ah-company__cta .ah-cta__title {
  font-size: 20px;
}

.ah-company__cta .ah-cta__text {
  font-size: 15px;
}

.ah-company__cta .ah-cta__text ul {
  margin-left: 0;
}

.ah-company__cta .ah-cta__text li {
  font-size: 14px;
}

.ah-company__cta .ah-cta__actions {
  flex-direction: column;
  gap: 10px;
}

.ah-company__cta .ah-btn {
  width: 100%;
  height: var(--ah-btn-s);
  padding: 0 12px;
  font-size: 15px;
}

.ah-glance {
  padding: 24px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-card);
}

.ah-glance__title {
  margin-bottom: 8px;
  font-size: 18px;
}

.ah-glance dl {
  margin: 0;
}

.ah-glance dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ah-line);
  font-size: 15px;
}

.ah-glance dl div:last-child {
  border-bottom: 0;
}

.ah-glance dt {
  color: var(--ah-grey);
}

.ah-glance dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

/* "Faktor melden" box with the report form (inc/faktor-meldung.php). */
.ah-factorbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--ah-radius-box);
  background: var(--ah-beige);
}

.ah-factorbox__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.ah-factorbox__text,
.ah-factorbox__reports {
  color: var(--ah-grey);
  font-size: 15px;
  line-height: 1.65;
}

.ah-factorbox__reports {
  color: var(--ah-text);
  font-weight: 700;
}

.ah-factorbox__open {
  color: var(--ah-orange-text);
  font-size: 15px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.ah-factorbox__open::-webkit-details-marker {
  display: none;
}

.ah-factorbox__details[open] .ah-factorbox__open {
  margin-bottom: 14px;
}

.ah-factorbox__msg {
  padding: 12px 14px;
  border-radius: var(--ah-radius-input);
  background: var(--ah-white);
  font-size: 15px;
  line-height: 1.5;
}

.ah-factorbox__msg--error {
  color: var(--ah-orange-dark);
}

.ah-factorform {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ah-factorform__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ah-factorform__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.ah-factorform__field input,
.ah-factorform__field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--ah-input-border);
  border-radius: var(--ah-radius-input);
  background: var(--ah-white);
  color: var(--ah-text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.ah-factorform__field input:focus,
.ah-factorform__field select:focus {
  border-color: var(--ah-orange);
  outline: none;
}

.ah-factorform__note {
  color: var(--ah-grey);
  font-size: 12px;
  line-height: 1.55;
}

.ah-factorform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Not while the form is open: its upper part could not be reached. */
.ah-company__sticky:has(.ah-factorbox__details[open]) {
  position: static;
}

.ah-ctaband--company {
  max-width: none;
  padding: 36px;
}

/* ---------- Company overview ---------- */

.ah-uarch__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: end;
  gap: 48px;
  width: 100%;
}

.ah-uarch__hero > div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ah-uarch__hero .ah-thero__intro {
  color: var(--ah-grey);
  font-size: 19px;
}

.ah-uarch__search {
  position: relative;
  display: block;
}

.ah-uarch__search svg {
  position: absolute;
  top: 50%;
  left: 20px;
  color: var(--ah-grey);
  transform: translateY(-50%);
}

.ah-uarch__search input {
  width: 100%;
  height: 60px;
  padding: 0 18px 0 50px;
  border: 2px solid var(--ah-input-border);
  border-radius: var(--ah-radius-button);
  background: var(--ah-white);
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 17px;
}

.ah-uarch__search input:focus {
  border-color: var(--ah-orange);
  outline: 0;
}

.ah-thero--archive .ah-filters {
  margin-top: 8px;
}

.ah-uarch__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 24px;
}

.ah-uarch__sort {
  color: var(--ah-grey);
  font-size: 15px;
}

.ah-uarch__cols,
.ah-uarch__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px 300px 20px;
  align-items: center;
  gap: 0;
}

.ah-uarch__cols {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ah-line);
  color: var(--ah-grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ah-uarch__cols span:first-child {
  grid-column: 1;
}

.ah-uarch__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-uarch__list li {
  border-bottom: 1px solid var(--ah-line);
}

.ah-uarch__list a {
  grid-template-columns: 42px minmax(0, 1fr) 244px 300px 20px;
  gap: 0 14px;
  margin-left: 0;
  padding: 18px 0;
  color: var(--ah-text);
  text-decoration: none;
}

/* Column heads on the same grid as the rows; jobs centred under their head
   (Timo, 10 Nov 2026). */
.ah-uarch__cols {
  grid-template-columns: 42px minmax(0, 1fr) 244px 300px 20px;
  gap: 0 14px;
}

.ah-uarch__cols span:first-child {
  grid-column: 1 / 3;
}

.ah-uarch__cols span:nth-child(3),
.ah-uarch__jobs {
  text-align: center;
}

.ah-uarch__list a:hover .ah-uarch__name b {
  color: var(--ah-orange-text);
}

.ah-uarch__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  background: var(--ah-beige);
  color: var(--ah-grey);
  font-size: 13px;
  font-weight: 800;
}

.ah-uarch__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ah-uarch__name b {
  font-size: 18px;
  font-weight: 700;
}

.ah-uarch__name small,
.ah-uarch__status {
  color: var(--ah-grey);
  font-size: 14px;
}

.ah-uarch__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ah-uarch__jobs {
  color: var(--ah-orange-text);
  font-size: 16px;
  font-weight: 800;
}

.ah-uarch__chev {
  color: var(--ah-orange-text);
}

.ah-uarch__more {
  width: 100%;
  margin-top: 28px;
}

.ah-uarch__az {
  margin-top: 56px;
}

.ah-uarch__aztitle {
  font-size: 20px;
}

.ah-uarch__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
}

.ah-uarch__letters button {
  min-width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--ah-radius-pill);
  background: none;
  color: var(--ah-orange-text);
  font-family: var(--ah-font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.ah-uarch__letters button:disabled {
  color: var(--ah-muted);
  cursor: default;
}

.ah-uarch__letters button.is-active {
  box-shadow: inset 0 0 0 2px var(--ah-orange);
}

.ah-uband {
  background: var(--ah-peach);
}

.ah-uband__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1180px) and (min-width: 901px) {
  .ah-tstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-trends__grid,
  .ah-ufactor {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-company {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .ah-uarch__hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-uarch__list a {
    grid-template-columns: 42px minmax(0, 1fr) 180px 220px 20px;
  }

  .ah-uarch__cols {
    grid-template-columns: 42px minmax(0, 1fr) 180px 220px 20px;
  }
}

/* ==========================================================================
   Mobile (boards T9, T10 mobile)
   ========================================================================== */

@media (max-width: 900px) {
  .ah-only-desktop-block {
    display: none !important;
  }

  .ah-thero__inner {
    gap: 12px;
    padding-top: 22px;
    padding-bottom: 32px;
  }

  .ah-thero h1 {
    font-size: var(--ah-h1-mobile);
    line-height: 1.15;
    letter-spacing: -0.8px;
  }

  .ah-thero__intro,
  .ah-uarch__hero .ah-thero__intro {
    font-size: 16px;
  }

  .ah-thero__live {
    margin-top: 4px;
    font-size: 12px;
  }

  .ah-live {
    padding: 4px 10px;
    font-size: 12px;
  }

  .ah-tstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
  }

  .ah-tstat {
    padding: 14px;
  }

  .ah-tstat__label {
    font-size: 11px;
  }

  .ah-tstat__value {
    font-size: 18px;
  }

  .ah-tstat__sub {
    font-size: 12px;
  }

  .ah-thero__source {
    font-size: 12px;
  }

  .ah-trends__inner {
    gap: 18px;
  }

  .ah-trends__head {
    padding: 0;
    border: 0;
  }

  .ah-trends__title {
    font-size: var(--ah-h2-mobile);
  }

  .ah-years__head {
    margin-bottom: 14px;
  }

  .ah-years__title,
  .ah-tcard__title {
    font-size: 16px;
  }

  .ah-tcard__sub {
    font-size: 12px;
  }

  .ah-years__note {
    margin-top: 8px;
    max-width: none;
    text-align: left;
  }

  .ah-vbars {
    gap: 6px;
  }

  .ah-vbars--years .ah-vbars__col {
    height: 130px;
  }

  .ah-vbars--months {
    gap: 4px;
  }

  .ah-vbars--months .ah-vbars__col {
    height: 90px;
  }

  .ah-vbars--staff {
    gap: 6px;
  }

  .ah-vbars--staff .ah-vbars__col {
    height: 110px;
  }

  .ah-vbars__label {
    font-size: 11px;
  }

  .ah-tcard {
    padding: 18px 16px;
  }

  .ah-trends__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ah-hbars {
    gap: 12px;
  }

  .ah-hbars li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    font-size: 14px;
  }

  .ah-hbars__track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 8px;
  }

  .ah-hbars__value {
    font-size: 14px;
  }

  /* Table becomes cards */
  .ah-tlist__inner {
    gap: 14px;
  }

  .ah-tfilter-m {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .ah-tfilter-m .ah-tfilter__search {
    flex: none;
    width: 100%;
    height: 48px;
    border-width: 2px;
  }

  .ah-tlist__count {
    font-size: 13px;
  }

  .ah-ttable-wrap {
    overflow: visible;
    border: 0;
  }

  .ah-ttable thead {
    display: none;
  }

  .ah-ttable,
  .ah-ttable tbody {
    display: block;
  }

  .ah-ttable tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ah-ttable tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px 16px;
    border: 1px solid var(--ah-line);
    border-radius: 14px;
  }

  .ah-ttable tbody tr[hidden] {
    display: none;
  }

  .ah-ttable tbody th,
  .ah-ttable td {
    padding: 0;
  }

  .ah-ttable__co {
    grid-column: 1;
    grid-row: 1;
    font-size: 15px;
  }

  .ah-ttable__jobs {
    grid-column: 2;
    grid-row: 1;
  }

  .ah-ttable__sector {
    grid-column: 1;
    grid-row: 2;
  }

  .ah-ttable__period {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    text-align: right;
  }

  .ah-ttable__type,
  .ah-ttable__reason,
  .ah-ttable__date,
  .ah-ttable__source {
    display: none;
  }

  .ah-tbg__text {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 0;
  }

  .ah-tbg__text > h3 {
    grid-row: auto;
  }

  .ah-tbg__text h3 {
    font-size: 17px;
  }

  .ah-tbg__text {
    font-size: 15px;
    line-height: 1.75;
  }

  /* Company page */
  .ah-uchips {
    gap: 8px;
    margin-top: 4px;
  }

  .ah-uchip {
    padding: 4px 10px;
    font-size: 12px;
  }

  .ah-uchips__date {
    font-size: 12px;
  }

  .ah-company {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .ah-company__main {
    gap: 36px;
  }

  .ah-company__title {
    font-size: 21px;
  }

  .ah-company__block {
    gap: 14px;
  }

  .ah-company__text {
    font-size: 15px;
    line-height: 1.75;
  }

  .ah-ufactor {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }

  .ah-ufactor__value {
    font-size: 30px;
  }

  .ah-ufactor__label,
  .ah-ufactor__unit {
    font-size: 13px;
  }

  .ah-ufactor__hint {
    font-size: 12px;
  }

  .ah-utiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ah-urechner {
    gap: 16px;
    padding: 22px 16px;
  }

  .ah-urechner__title {
    font-size: 21px;
  }

  .ah-urechner__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ah-urechner__value {
    font-size: 30px;
  }

  .ah-urechner__range-text {
    font-size: 14px;
  }

  .ah-urechner__chips .ah-chip {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .ah-uevents .ah-uevents__title {
    font-size: 16px;
  }

  .ah-uevents li > span:last-child:not(.ah-uevents__meta) {
    font-size: 14px;
  }

  .ah-company__aside {
    margin-right: calc(-1 * var(--ah-page-margin-mobile));
    margin-bottom: calc(-1 * var(--ah-section-gap-mobile));
    margin-left: calc(-1 * var(--ah-page-margin-mobile));
  }

  .ah-company__sticky {
    position: static;
  }

  .ah-factorbox {
    margin: 0 var(--ah-page-margin-mobile);
  }

  .ah-company__cta .ah-cta {
    border-radius: 0;
  }

  .ah-company__cta .ah-cta__body {
    padding: 32px var(--ah-page-margin-mobile);
  }

  .ah-company__cta .ah-btn {
    height: var(--ah-btn-m);
    font-size: 16px;
  }

  /* Company overview */
  .ah-uarch__hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ah-uarch__hero > div {
    gap: 10px;
  }

  .ah-uarch__search input {
    height: 54px;
    font-size: 16px;
  }

  .ah-thero--archive .ah-filters {
    margin-top: 0;
  }

  .ah-thero .ah-filters,
  .ah-tfilter-m .ah-filters {
    width: calc(100% + var(--ah-page-margin-mobile));
    max-width: none;
  }

  .ah-uarch__head {
    margin-bottom: 14px;
  }

  .ah-uarch__sort {
    font-size: 14px;
  }

  .ah-uarch__list li:first-child {
    border-top: 1px solid var(--ah-line);
  }

  .ah-uarch__list a {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    grid-template-rows: auto auto auto;
    gap: 3px 12px;
    padding: 16px 0;
  }

  .ah-uarch__logo {
    grid-row: 1 / span 3;
    width: 40px;
    height: 40px;
  }

  .ah-uarch__name {
    grid-column: 2;
    grid-row: 1;
  }

  .ah-uarch__name b {
    font-size: 17px;
  }

  .ah-uarch__name small {
    font-size: 13px;
  }

  .ah-uarch__jobs {
    grid-column: 2;
    grid-row: 2;
    margin-top: 3px;
    text-align: left;
    font-size: 15px;
  }

  .ah-uarch__status {
    grid-column: 2;
    grid-row: 3;
    font-size: 13px;
  }

  .ah-uarch__chev {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .ah-uarch__more {
    margin-top: 16px;
  }

  .ah-uband__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: var(--ah-section-gap-mobile);
    padding-bottom: var(--ah-section-gap-mobile);
  }

  .ah-uband .ah-dcta__buttons .ah-btn {
    width: 100%;
  }
}

/* Company timeline: button for older events. */
.ah-uevents__more {
  margin-top: 16px;
}


/* ---------- Company page on phones (Timo, 12 Nov 2026) ----------
   Main column and sidebar are dissolved so their parts can be ordered:
   CTA box right under the hero, "Faktor melden" right after the severance
   section, a second CTA box before the long text at the end. */
@media (max-width: 900px) {
  .ah-company__main,
  .ah-company__aside,
  .ah-company__sticky {
    display: contents;
  }

  .ah-company > *,
  .ah-company__main > *,
  .ah-company__sticky > * {
    order: 10;
  }

  .ah-company__cta {
    order: 1;
    margin: 0 calc(-1 * var(--ah-page-margin-mobile));
  }

  .ah-company__block--severance { order: 2; }
  .ah-company__sticky > .ah-factorbox { order: 3; margin: 0; }
  .ah-urechner { order: 4; }
  .ah-company__block--chart { order: 5; }
  .ah-company__block--facts { order: 6; }
  .ah-company__block--events { order: 7; }

  .ah-company__cta--second {
    order: 8;
    margin: 0 calc(-1 * var(--ah-page-margin-mobile));
  }

  .ah-company__block--seo { order: 9; }
}

/* Company timeline: one continuous line through the centre of every dot, the dot
   level with the year row. Dots sit on top of the line. */
.ah-uevents li::before {
  top: 8px;
  left: -36px;
  z-index: 1;
  width: 10px;
  height: 10px;
}

.ah-uevents li:not(:last-child)::after {
  top: 13px;
  bottom: -39px;
  left: -32px;
}

@media (max-width: 900px) {
  .ah-uevents li::before {
    left: -28px;
  }

  .ah-uevents li:not(:last-child)::after {
    bottom: -31px;
    left: -24px;
  }
}

/* No line hanging below the last visible event while older ones are folded away. */
.ah-uevents li:has(+ li[hidden])::after {
  display: none;
}
