/* Gewerke: homepage colors, directory layout (not the old photo banners). */

.page-head { padding: 28px 0 4px; }
.crumb {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}
.crumb a { color: var(--green-deep); text-decoration: none; font-weight: 700; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-head h1 { max-width: 18em; }
.page-head .lead {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--muted);
}
.hy-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}
.hy-stats strong {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

header.site nav.desk a[aria-current="page"],
header.site nav.mob a[aria-current="page"] { color: var(--ink); }

.gewerke-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 8px 40px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 20px;
}
.hy-jump {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(23, 48, 40, 0.05);
}
.hy-jump span {
  margin: 0 8px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hy-jump a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.hy-jump a:hover,
.hy-jump a.is-open { background: var(--mint); color: var(--green-deep); }
.hy-board,
.hy-matrix { grid-column: 2; min-width: 0; }
.hy-jump { grid-column: 1; grid-row: 1 / span 2; }

.hy-trade {
  margin-bottom: 16px;
  padding: 8px 8px 4px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(23, 48, 40, 0.05);
  scroll-margin-top: 96px;
}

.hy-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px 22px;
  align-items: end;
  height: auto;
  margin: 0;
  padding: 16px 16px 0;
  background: transparent;
}
.hy-photo picture {
  grid-column: 2;
  grid-row: 1;
  height: 132px;
  overflow: hidden;
  border-radius: 16px;
  background: #D5E0DA;
}
.hy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hy-photo::after { content: none; }
.hy-photo-cap {
  position: static;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding: 0;
  color: var(--ink);
}
.hy-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hy-name strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hy-name span,
.hy-photo-cap > p,
.hy-plate > p,
.hy-trade-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hy-photo-cap > p:last-child,
.hy-plate > p:last-child,
.hy-trade-head > p:last-child {
  margin-top: 8px;
  color: var(--green);
  font-weight: 750;
}

.hy-plate,
.hy-trade-head {
  display: block;
  padding: 16px 16px 0;
  background: transparent;
  color: var(--ink);
}
.hy-plate .hy-name span,
.hy-plate > p,
.hy-trade-head .hy-name span,
.hy-trade-head > p { color: var(--muted); }
.hy-plate > p:last-child,
.hy-trade-head > p:last-child { color: var(--green); font-weight: 750; }

.hy-trade-main { padding: 14px 16px 12px; }
.hy-trade.has-photo .hy-trade-main,
.hy-trade.is-plate .hy-trade-main,
.hy-trade.is-compact .hy-trade-main {
  display: block;
  padding: 14px 16px 12px;
}
.hy-trade-head { margin: 0; }

.hy-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.hy-cell {
  display: block;
  padding: 12px 10px 10px;
  border-radius: 14px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
}
.hy-cell strong { display: block; font-size: 15px; }
.hy-cell span {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.hy-cell:hover { background: var(--green); color: #fff; }
.hy-cell:hover span { color: #fff; }

.hy-shops {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.hy-trade.is-compact .hy-shops { grid-column: auto; }
.hy-shops summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.hy-shops summary::-webkit-details-marker { display: none; }
.hy-shops summary::after {
  content: "+";
  flex: 0 0 24px;
  color: var(--green);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}
.hy-shops[open] summary::after { content: "–"; }
.hy-shops ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
  margin: 0;
  padding: 4px 0 8px;
}
.hy-shops a { color: inherit; font-size: 14.5px; text-decoration: none; }
.hy-shops a:hover { color: var(--green); }
.hy-more { margin: 4px 0 8px; }
.hy-more a { color: var(--green-deep); font-size: 14px; font-weight: 750; }

.hy-matrix { margin-top: 28px; }
.hy-matrix h2 { margin-bottom: 8px; }
.hy-matrix .meta { margin-bottom: 14px; color: var(--muted); }
.hy-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(23, 48, 40, 0.05);
}
.hy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hy-table th,
.hy-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.hy-table thead th {
  background: var(--mint);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hy-table tbody tr:last-child th,
.hy-table tbody tr:last-child td { border-bottom: 0; }
.hy-table a { color: var(--green-deep); font-weight: 700; text-decoration: none; }
.hy-table a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .gewerke-layout { grid-template-columns: 1fr; }
  .hy-jump {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: auto;
  }
  .hy-jump span { width: 100%; }
  .hy-board,
  .hy-matrix { grid-column: 1; }
  .hy-photo { grid-template-columns: 1fr; }
  .hy-photo picture { grid-column: 1; grid-row: 1; width: 100%; }
  .hy-photo-cap { grid-row: 2; }
  .hy-cells { grid-template-columns: 1fr 1fr; }
  .hy-shops ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hy-cells { grid-template-columns: 1fr; }
}
