/* Projekttabelle – Architektur-Portfolio */

.projektarchiv {
  --projekt-line: rgba(0, 0, 0, 0.22);
  --projekt-muted: rgba(0, 0, 0, 1);
  --projekt-accent: #b78a42;
  max-width: 1280px;
  margin: 0 auto 6rem 0;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
  background-color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
}

.projektarchiv__header {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.projektarchiv__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--projekt-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.projektarchiv__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
}

.projektfilter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--projekt-line);
}

.projektfilter__input,
.projektfilter select {
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-bottom: 1px solid var(--projekt-line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.projektfilter__input:focus,
.projektfilter select:focus {
  outline: none;
  border-bottom-color: currentColor;
}

.projektfilter__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.projektfilter label {
  display: grid;
  gap: 0.25rem;
  min-width: 150px;
  color: var(--projekt-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.projekttabelle-wrap {
  overflow-x: auto;
}

.projekttabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.projekttabelle th,
.projekttabelle td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--projekt-line);
  text-align: left;
  vertical-align: top;
}

.projekttabelle th {
  color: var(--projekt-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.projekttabelle th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.projekttabelle th[data-sort]::after {
  content: "↕";
  margin-left: 0.35rem;
  opacity: 0.45;
  font-size: 0.8em;
}

.projekttabelle__projekt a {
  color: inherit;
  text-decoration: none;
}

.projekttabelle__projekt a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.projekttabelle__meta {
  display: block;
  margin-top: 0.25rem;
  color: var(--projekt-muted);
  font-size: 0.85em;
}

.projekttabelle__link {
  width: 4rem;
  text-align: right;
}

/* .projekttabelle__link a {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--projekt-line);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
} */

.projekttabelle__link a {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  /* border: 1px solid var(--nagel-sauskojus-color-accent-strong); */
  border-radius: 999px;
  color: var(--nagel-sauskojus-color-accent-strong);
  text-decoration: none !important;
  font-size: 2.5em;
  position: relative;
  top: -0.4em;
  /* font-weight: 900; */
}

.projekttabelle__empty {
  margin: 2rem 0;
  color: var(--projekt-muted);
}

@media (max-width: 800px) {
  .projektfilter {
    grid-template-columns: 1fr;
  }

  .projektfilter__selects {
    display: grid;
    grid-template-columns: 1fr;
  }

  .projekttabelle th:nth-child(2),
  .projekttabelle td:nth-child(2) {
    display: none;
  }
}
/* Ergänzung: nicht anklickbare Projekte dezenter darstellen */

.projekttabelle__projekt span:not(.projekttabelle__meta) {
  color: inherit;
}

.projekttabelle__link span {
  color: rgba(0, 0, 0, 0.35);
}

.projektarchiv .grid-child.container-component {
  z-index: 1;
}

@media (max-width: 991px) {
  .projektarchiv-seite .grid-child.container-component {
    z-index: 1;
  }
}

.projektarchiv a {
  text-decoration: none;
  color: var(--nagel-sauskojus-color-accent-strong);
}

@media (max-width: 575.98px) {
  .projektarchiv-seite {
    padding: 0;
  }

  .projektarchiv-seite main {
    padding: 0;
  }

  .projektarchiv__eyebrow {
    display: none;
  }

  .projektarchiv-seite #projekttabelle th[data-sort="zeitraum"],
  .projekttabelle td:nth-child(3),
  .projektarchiv-seite #projekttabelle th[data-sort="ort"],
  .projekttabelle td:nth-child(2),
  .projektarchiv-seite #projekttabelle th.projekttabelle__link,
  .projekttabelle td:nth-child(4) {
    display: none;
  }
}
