/*
 * Projektübersicht, Filter, Projektartikel und Bildergalerien
 * ANTRILOPE – unabhängig von Joomla
 */

/* Projektübersicht und Kategorienfilter */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filters button {
  border: 1px solid #515151;
  background: transparent;
  color: #a3a3a3;
  padding: 9px 15px;
  font-size: 10px;
  letter-spacing: .07em;
  transition: background .2s,color .2s,border .2s;
}

.filters button span {
  font-size: 9px;
  opacity: .8;
  margin-left: 7px;
}

.filters button:hover,
.filters button.active {
  border-color: #ececec;
  background: #282828;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 49px 25px;
}

.project-card {
  display: block;
  min-width: 0;
}

.project-card[hidden] {
  display: none !important;
}

.project-cover {
  aspect-ratio: 1.5;
  position: relative;
  background: #29262d;
  overflow: hidden;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s,filter .6s;
  filter: saturate(.89);
}

.project-card:hover .project-cover img {
  transform: scale(1.06);
  filter: saturate(1.14);
}

.cover-arrow {
  position: absolute;
  right: 13px;
  bottom: 9px;
  z-index: 2;
  font-size: 24px;
  text-shadow: 0 1px 8px #000;
  opacity: 0;
  transform: translate(-4px,4px);
  transition: opacity .2s,transform .2s;
}

.project-card:hover .cover-arrow {
  opacity: 1;
  transform: translate(0,0);
}

.project-card h2 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 15px 0 2px;
}

.project-card p {
  font-size: 11px;
  color: #9a9a9a;
  letter-spacing: .04em;
  margin: 0;
}

.no-photo,
.article-no-photo {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(140deg,#16171b,#343039 70%,#181818);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
  color: #bfb7be;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 14px;
}

.no-results {
  margin: 35px 0;
  color: #aaa;
}

/* Einzelprojekte mit Projektbeschreibung */

.back {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #aaa;
  letter-spacing: .08em;
  margin: 24px 0 26px;
}

.back:hover {
  color: white;
}

.article-head {
  margin: 0 0 30px;
}

.article-head h1 {
  max-width: 1100px;
  overflow-wrap: break-word;
}

.dot {
  margin: 0 7px;
}

.article-hero {
  width: 100%;
  height: clamp(320px,48vw,690px);
  background: #17171c;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  padding-top: 49px;
  display: grid;
  grid-template-columns: minmax(155px,.28fr) minmax(0,.72fr);
  gap: 50px;
}

.article-side {
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: #858585;
  font-size: 10px;
  letter-spacing: .06em;
}

.article-side a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-side a:hover {
  color: white;
}

.article-copy {
  font-size: 15px;
  line-height: 2.04;
  color: #d2d2d2;
  max-width: 820px;
}

.article-copy h2 {
  font-size: 26px;
  color: #f2f2f2;
  font-weight: 400;
  letter-spacing: .02em;
  margin: 0 0 20px;
}

.article-copy p {
  margin: 0 0 24px;
}

/* Zusätzliche Bilder und Vergrößerungsfunktion */

.article-gallery {
  margin-top: 70px;
}

.article-gallery h2 {
  font-size: 19px;
  font-weight: 400;
  margin: 0 0 22px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  background: #252525;
  border: 0;
  padding: 0;
  width: 100%;
  aspect-ratio: 1.52;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-zoom {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: white;
  font-size: 10px;
  letter-spacing: .1em;
  text-shadow: 0 1px 9px black;
  opacity: 0;
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
}

/*
 * Dezenter Projektwechsel: bewusst kleiner als die Artikelüberschrift.
 * Nur .article-next wird angepasst, die Artikelinhalte bleiben unberührt.
 */
.article-next {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 380px;
  border-top: 1px solid #363636;
  margin-top: 40px;
  padding-top: 13px;
  padding-bottom: 6px;
  opacity: .74;
}

.article-next > span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .10em;
  color: #8f8f8f;
}

.article-next > a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.6;
  color: #b7b7b7;
}

.article-next > a:hover,
.article-next > a:focus-visible {
  color: #fff;
  opacity: 1;
}
