/* galerie.css — die drei Galerie-Seiten: Vorlagen, Projekte, Effekte.
   Gleiche Handschrift wie die Startseite: dunkler Grund, Gold als Akzent,
   Big Shoulders für die Überschriften, Hanken Grotesk für den Text. */

.galerie-seite { padding-top: var(--kopf-h); }
/* Die Breite kommt aus stil.css (.rahmen, 1200px abzueglich Seitenrand) -- nicht noch einmal setzen. */

/* ---------- Kopf der Seite ---------- */
.gal-kopf { padding: clamp(42px, 8vw, 96px) 0 clamp(24px, 4vw, 44px); }
.gal-kopf h1 {
  margin: 0; font-family: var(--titel); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 6rem); line-height: .94; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--text);
}
.gal-kopf h1 em { font-style: normal; color: var(--gold); }
.gal-lead { max-width: 56ch; margin: 22px 0 0; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--leise); }
.gal-hinweis {
  max-width: 62ch; margin: 18px 0 0; padding: 12px 16px;
  border-left: 3px solid var(--gold-tief); border-radius: 0 10px 10px 0;
  background: rgba(217, 118, 26, .09); color: var(--leise); font-size: .95rem; line-height: 1.55;
}

/* ---------- Suchen und Filtern ---------- */
.gal-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.gal-such { flex: 1 1 260px; max-width: 420px; }
.gal-such input {
  width: 100%; min-height: 46px; padding: 0 16px;
  font: inherit; color: var(--text);
  background: rgba(244, 237, 227, .05); border: 1px solid var(--linie); border-radius: 12px;
}
.gal-such input::placeholder { color: #8f8474; }
.gal-such input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-chips button {
  min-height: 40px; padding: 0 16px; font: inherit; font-size: .92rem;
  color: var(--leise); background: transparent;
  border: 1px solid var(--linie); border-radius: 99px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.gal-chips button:hover { color: var(--text); border-color: rgba(244, 237, 227, .3); }
.gal-chips button[aria-pressed="true"] { color: var(--auf-gold); background: var(--gold); border-color: var(--gold); }
.gal-zahl { margin: 0 0 18px; font-size: .9rem; color: #8f8474; }
.gal-leer { margin: 40px 0 0; color: var(--leise); }

/* ---------- Das Gitter ---------- */
.gitter {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.karte[hidden] { display: none; }
.k-link {
  display: block; height: 100%; color: inherit; text-decoration: none;
  border-radius: 16px; transition: transform .25s ease;
}
a.k-link:hover { transform: translateY(-4px); }
a.k-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.k-bild {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--linie); border-radius: 16px;
  background: #1c1813;
}
.k-bild img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s ease; }
a.k-link:hover .k-bild img { transform: scale(1.04); }
.k-kein { position: absolute; inset: 0; display: grid; place-items: center; color: #6f6557; font-size: .85rem; }
.k-marke {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px;
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); background: rgba(20, 17, 14, .78); border: 1px solid var(--linie); border-radius: 99px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.k-titel { margin: 14px 0 0; font-family: var(--titel); font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; color: var(--text); }
.k-unter { margin: 4px 0 0; font-size: .92rem; color: var(--gold); }
.k-info { margin: 6px 0 0; font-size: .9rem; line-height: 1.5; color: var(--leise);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Projekte haben keinen Link: dann auch kein Finger-Zeiger und kein Anheben. */
.k-ohne { cursor: default; }
.k-ohne .k-bild { opacity: .88; }

/* ---------- Schluss ---------- */
.gal-schluss { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); text-align: center; }
.gal-schluss h2 {
  margin: 0; font-family: var(--titel); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem); line-height: 1; color: var(--text);
}
.gal-schluss p { max-width: 48ch; margin: 18px auto 28px; color: var(--leise); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .k-link, .k-bild img { transition: none; }
  a.k-link:hover { transform: none; }
  a.k-link:hover .k-bild img { transform: none; }
}
