@font-face { font-family: 'Instrument Serif'; src: url('/assets/fonts/instrument-serif-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Projekte-Übersicht ---------- */
.ue {
  width: min(1340px, 100%); margin: 0 auto;
  padding: min(92px, 10.5vh) var(--rand) 1svh;
}

/* ---------- Kopf ---------- */
.ue-kopf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 54px);
  align-items: end;
}
.ue-titel {
  font-size: min(clamp(30px, 4vw, 58px), 6.2vh);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.042em;
}
.ue-titel em {
  display: block; font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--moos);
  letter-spacing: -0.02em; font-size: 1.02em;
}
.ue-mehr {
  display: inline-flex; align-items: center; gap: 26px;
  justify-self: end; align-self: end; margin-bottom: min(10px, 1.4vh);
  padding-bottom: 8px; border-bottom: 1px solid var(--ink);
  font-size: 10px; letter-spacing: .19em; text-transform: uppercase; white-space: nowrap;
}
.ue-mehr span { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ue-mehr:hover span { transform: translateX(5px); }



/* ---------- Vorwort: sagt in zwei Absätzen, worum es geht ---------- */
.ue-vorwort, .ue-vorwort-zwei {
  max-width: 68ch; margin-top: min(22px, 2.6vh);
  font-size: min(14.5px, 1.95vh); line-height: 1.7; color: var(--grau);
}
.ue-vorwort-zwei { margin-top: min(12px, 1.4vh); }
@media (max-width: 900px) {
  .ue-vorwort, .ue-vorwort-zwei { font-size: 15px; line-height: 1.65; }
}

/* ---------- Filterleiste ---------- */
.ue-leiste {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 34px);
  margin-top: min(26px, 3vh);
}
.ue-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.uf {
  padding: 10px 20px; border-radius: 100px;
  background: none; border: 1px solid transparent; color: var(--grau);
  font: inherit; font-size: 10px; letter-spacing: .17em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s;
}
.uf:hover { color: var(--ink); border-color: var(--linie); }
.uf.da { background: var(--ink); color: var(--weiss); border-color: var(--ink); }

.ue-schiene { flex: 1 1 auto; height: 1px; background: var(--linie); position: relative; min-width: 40px; }
.ue-schiene i {
  position: absolute; inset: 0 auto 0 0; display: block; width: 34%;
  background: var(--ink); transition: width .5s cubic-bezier(.2,.8,.2,1), left .5s cubic-bezier(.2,.8,.2,1);
}
.ue-pfeile { display: flex; gap: 10px; flex: 0 0 auto; }
.up {
  width: 46px; height: 46px; border-radius: 50%;
  background: none; border: 1px solid var(--linie); color: var(--ink);
  font-size: 15px; cursor: pointer;
  transition: background .35s, border-color .35s, color .35s, opacity .35s;
}
.up:hover { background: var(--ink); border-color: var(--ink); color: var(--weiss); }
.up-voll { background: var(--ink); border-color: var(--ink); color: var(--weiss); }
.up-voll:hover { background: var(--moos); border-color: var(--moos); }
.up[disabled] { opacity: .3; pointer-events: none; }

/* ---------- Kacheln ---------- */
.ue-band {
  display: flex; gap: clamp(14px, 1.6vw, 24px);
  margin-top: min(22px, 2.6vh);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.ue-band::-webkit-scrollbar { display: none; }

.uk {
  flex: 0 0 auto; width: calc((100% - 2 * clamp(14px, 1.6vw, 24px)) / 3);
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: #FBFAF6; border: 1px solid var(--linie); border-radius: 4px; overflow: hidden;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s, opacity .4s;
}
.uk:hover { transform: translateY(-5px); box-shadow: 0 30px 56px -38px rgba(20,24,15,.4); }
.uk[hidden] { display: none; }

.uk-bild { position: relative; margin: 0; overflow: hidden; background: #EFEDE6; }
.uk-bild img {
  width: 100%; height: min(28vh, 300px); object-fit: cover; display: block;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
}
.uk:hover .uk-bild img { transform: scale(1.035); }
.uk-marke {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 12px;
}
.uk-marke i, .uk-marke b {
  color: var(--ink); background: rgba(248,247,244,.92);
  padding: 5px 10px; border-radius: 4px;
  font-size: 10px; letter-spacing: .1em; font-style: normal; font-weight: 500;
  backdrop-filter: blur(4px);
}
.uk-marke i { letter-spacing: .14em; }

.uk-fuss {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 4px 16px;
  padding: min(14px, 1.8vh) min(20px, 1.8vw);
}
.uk-name {
  grid-column: 1; font-size: min(clamp(17px, 1.6vw, 23px), 3vh);
  font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase;
}
.uk-name em {
  font-style: normal; font-weight: 400; color: var(--moos);
  font-family: 'Instrument Serif', Georgia, serif; text-transform: none;
  font-size: 1.12em; letter-spacing: -0.01em;
}
.uk-art {
  grid-column: 1; grid-row: 2;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--grau);
}
.uk-pfeil {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  font-size: 15px; color: var(--grau);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), color .4s;
}
.uk:hover .uk-pfeil { transform: translateX(5px); color: var(--ink); }

/* dunkle Kachel */
.uk-dunkel { background: var(--ink); border-color: var(--ink); color: var(--weiss); }
.uk-dunkel .uk-art { color: rgba(248,247,244,.6); }
.uk-dunkel .uk-pfeil { color: rgba(248,247,244,.6); }
.uk-dunkel:hover .uk-pfeil { color: var(--weiss); }
.uk-dunkel .uk-name em { color: #A9C4A6; }

.ue-leer {
  margin-top: 40px; font-size: 13.5px; color: var(--grau);
}

/* ---------- Fuss ---------- */
.ue-fuss {
  width: min(1340px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  padding: 1.5svh var(--rand) 2.5svh;
}
.ue-fuss .fu-link {
  font-size: 10.5px; letter-spacing: .19em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--linie); padding-bottom: 5px; width: fit-content;
}
.ue-fuss .fu-link:hover { border-bottom-color: var(--ink); }
.ue-fuss .fu-mitte {
  justify-self: center; text-align: center;
  font-size: 9.5px; line-height: 1.7; letter-spacing: .17em; text-transform: uppercase; color: var(--grau);
}
.ue-fuss .fu-rechts {
  justify-self: end; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--grau);
}

/* ---------- Handy: Liste ---------- */
@media (max-width: 900px) {
  .ue { padding: 22px var(--rand) 30px; }
  .ue-kopf { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .ue-mehr { justify-self: start; margin-bottom: 0; }
  .ue-titel { font-size: clamp(32px, 10vw, 46px); }
  
  .ue-leiste { margin-top: 30px; gap: 12px; }
  .ue-filter {
    flex: 1 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand);
  }
  .ue-filter::-webkit-scrollbar { display: none; }
  .ue-schiene { display: none; }
  /* am Handy stehen die Projekte als Liste; die Blätterpfeile hätten
     nichts zu blättern und lagen bisher über den Filtern */
  .ue-pfeile { display: none; }

  /* die Projekte als Liste */
  .ue-band {
    display: block; overflow: visible; margin-top: 24px; padding: 0;
    border-top: 1px solid var(--linie);
  }
  .uk {
    width: auto; display: grid; grid-template-columns: 88px minmax(0, 1fr);
    align-items: center; gap: 16px;
    background: none; border: 0; border-bottom: 1px solid var(--linie); border-radius: 0;
    padding: 14px 0;
  }
  .uk:hover { transform: none; box-shadow: none; }
  .uk-bild { border-radius: 6px; }
  .uk-bild img { height: 88px; }
  .uk-marke { display: none; }
  .uk-fuss { padding: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .uk-name { font-size: 17px; }
  .uk-art { font-size: 8.5px; margin-top: 4px; }
  .uk-dunkel { background: none; color: var(--ink); }
  .uk-dunkel .uk-art, .uk-dunkel .uk-pfeil { color: var(--grau); }
  .uk-dunkel .uk-name em { color: var(--moos); }

  .ue-fuss { display: block; padding: 26px var(--rand) 36px; }
  .ue-fuss .fu-mitte { text-align: left; margin: 14px 0; }
  .ue-fuss .fu-rechts { justify-self: start; }
}
