/* Scroll-Werkschau. Übersicht aller Demos. Hell, damit die Startbilder wirken. */
:root {
  --grund: #F2F0EB;
  --flaeche: #E8E5DE;
  --tinte: #141413;
  --tinte-weich: #5A5850;
  --linie: rgb(20 20 19 / .12);
  --akzent: #E4502A;
  --anzeige: "Funnel Display", system-ui, sans-serif;
  --text: "Funnel Sans", system-ui, sans-serif;
  --rand: clamp(1.25rem, 5vw, 5rem);
  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--grund); scrollbar-color: #b9b5aa var(--grund); }
body { margin: 0; font-family: var(--text); color: var(--tinte); background: var(--grund); -webkit-font-smoothing: antialiased; }
::selection { background: var(--tinte); color: var(--grund); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; border-radius: 4px; }
img { display: block; max-width: 100%; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px var(--rand);
  background: color-mix(in oklab, var(--grund) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.marke { font: 800 1.15rem/1 var(--anzeige); letter-spacing: -.01em; color: var(--tinte); text-decoration: none; }
.kopf__zahl { font-size: .9rem; color: var(--tinte-weich); font-variant-numeric: tabular-nums; }

/* Einstieg */
.intro { padding: clamp(4rem, 10vw, 9rem) var(--rand) clamp(2rem, 4vw, 3.5rem); max-width: 78rem; }
.intro h1 {
  margin: 0; font: 800 clamp(2.5rem, 1.4rem + 5vw, 6.2rem)/.98 var(--anzeige);
  letter-spacing: -.035em; text-wrap: balance; max-width: 15ch;
}
.intro h1 em { font-style: normal; color: var(--akzent); }
.intro p { margin: 1.6rem 0 0; max-width: 46ch; font-size: clamp(1.06rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--tinte-weich); text-wrap: pretty; }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--rand) clamp(2rem, 4vw, 3rem); }
.filter__k {
  font: 600 .95rem/1 var(--text); color: var(--tinte);
  padding: 11px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--linie);
  transition: background-color 160ms var(--aus), border-color 160ms var(--aus), color 160ms var(--aus);
}
.filter__k span { margin-left: 4px; color: var(--tinte-weich); font-variant-numeric: tabular-nums; }
.filter__k[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--grund); }
.filter__k[aria-pressed="true"] span { color: color-mix(in oklab, var(--grund) 70%, transparent); }
.filter__k:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) { .filter__k[aria-pressed="false"]:hover { border-color: var(--tinte); } }

/* Raster: zwei Spalten, die rechte versetzt, damit keine Kachelwand entsteht */
.raster {
  list-style: none; margin: 0; padding: 0 var(--rand) clamp(4rem, 8vw, 8rem);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 4vw, 4.5rem); row-gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.raster .demo:nth-child(even) { margin-top: clamp(3rem, 9vw, 9rem); }
.raster.ist-gefiltert .demo:nth-child(even) { margin-top: 0; }
.demo[hidden] { display: none; }

.demo__link { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.demo__bild {
  position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: var(--flaeche);
  box-shadow: 0 1px 2px rgb(40 36 28 / .08), 0 14px 32px -16px rgb(40 36 28 / .35);
}
.demo__bild::after { /* feine Kante oben, wie ein Bildschirmrand */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(20 20 19 / .08);
}
.demo__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--aus); }
.demo__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 6px; }
.demo__name { font: 700 clamp(1.35rem, 1.1rem + .9vw, 1.9rem)/1.1 var(--anzeige); letter-spacing: -.02em; }
.demo__art { font-size: .9rem; color: var(--tinte-weich); white-space: nowrap; }
.demo__satz { font-size: 1.02rem; line-height: 1.55; color: var(--tinte-weich); max-width: 52ch; text-wrap: pretty; }
.demo__los {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-weight: 600; font-size: .95rem; color: var(--tinte);
  border-bottom: 1.5px solid var(--akzent); padding-bottom: 3px;
}
.demo__los::after {
  content: ""; width: 18px; height: 1.5px; background: currentColor;
  transition: width 220ms var(--aus);
}
@media (hover: hover) and (pointer: fine) {
  .demo__link:hover .demo__bild img { transform: scale(1.035); }
  .demo__link:hover .demo__los::after { width: 30px; }
}
.demo__link:active .demo__bild { transform: translateY(1px); }

.leer { padding: 0 var(--rand) 6rem; color: var(--tinte-weich); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 2rem var(--rand) 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.fuss p { margin: 0; font-size: .92rem; color: var(--tinte-weich); max-width: 60ch; }

@media (max-width: 760px) {
  .raster { grid-template-columns: 1fr; }
  .raster .demo:nth-child(even) { margin-top: 0; }
  .demo__kopf { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo__bild img, .demo__los::after { transition: none; }
}
