/* Bildwand: ein Meer aus Header-Bildern, harte Ecken, Halten scrollt die ganze Seite.
   Genutzt auf portfolio.html und im Portfolio-Abschnitt der Startseite. Kein Radius, keine Karten. */
.wand-sec { position: relative; padding: 0 0 clamp(2.5rem, 5vw, 4.5rem); }
.wand-head { max-width: 1400px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) 1.25rem; }
#portfolio-grid > .wand-head { padding-top: .25rem; padding-bottom: .9rem; }
.wand-head .wand-note { margin: 0; max-width: 90ch; font-family: var(--mono, 'Space Mono', monospace); font-size: .74rem; letter-spacing: .04em; line-height: 1.65; color: #90aec8; }
.wand-note b { color: #2dffa0; font-weight: 700; }
.wand-sec--c { padding-top: clamp(2rem, 5vw, 4rem); }
.wand-sec--c .wand-head { padding-bottom: 1.4rem; }
.wand-sec .wand-title { margin: .35rem 0 .7rem; font-family: var(--sans, 'Space Grotesk', sans-serif); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.02em; color: #dde8f0; }
.wand-sec .wand-lab { margin: 0; font-family: var(--mono, 'Space Mono', monospace); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #4cc4ff; }
.wand-sec .wand-sub { margin: 0 0 .9rem; max-width: 60ch; color: #90aec8; font-size: 1rem; line-height: 1.6; }

.wand-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: #080b0e; grid-template-columns: 1fr; width: 100%; }
@media (min-width: 600px) { .wand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .wand-grid { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; }
  .wand-grid > .wand-tile--a { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: auto; }
  .wand-grid > .wand-tile--b { grid-column: 3 / span 2; grid-row: 3 / span 2; aspect-ratio: auto; }
  .wand-grid--c { grid-template-columns: repeat(var(--c, 3), 1fr); }
}
@media (min-width: 600px) and (max-width: 1099px) { .wand-grid--c { grid-template-columns: repeat(2, 1fr); } }

.wand-tile { position: relative; margin: 0; padding: 0; aspect-ratio: 16 / 10; background: #0d1219; border-radius: 0; overflow: hidden; contain: layout paint; }
.wand-hit { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; border-radius: 0; outline-offset: -3px;
  touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.wand-hit:focus-visible { outline: 2px solid #2dffa0; }
.wand-view { position: absolute; inset: 0; overflow: hidden; background: #0d1219; }
.wand-view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; max-width: none; border-radius: 0; pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.wand-kopf { height: 100% !important; object-fit: cover; object-position: top center; transition: opacity .45s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .wand-kopf:not(.is-in) { opacity: 0; }
.wand-ganz { opacity: 0; will-change: transform; transition: opacity .22s ease; }
.wand-tile.is-hold .wand-ganz, .wand-tile.is-back .wand-ganz { opacity: 1; }

.wand-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .15rem .9rem; padding: 2.6rem clamp(.75rem, 1.4vw, 1.15rem) clamp(.6rem, 1.1vw, .95rem);
  background: linear-gradient(to top, rgba(8, 11, 14, .88) 0, rgba(8, 11, 14, .55) 55%, rgba(8, 11, 14, 0) 100%); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.wand-name { grid-column: 1 / -1; min-width: 0; font-family: var(--sans, 'Space Grotesk', sans-serif); font-weight: 700; font-size: clamp(.9rem, 1.15vw, 1.1rem); line-height: 1.2; letter-spacing: -.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1100px) { .wand-tile--a .wand-name, .wand-tile--b .wand-name { font-size: clamp(1.15rem, 2vw, 1.75rem); } }
.wand-type { grid-column: 1; min-width: 0; font-family: var(--mono, 'Space Mono', monospace); font-size: .64rem; letter-spacing: .05em; color: #b9cde0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wand-dom { grid-column: 2; min-width: 0; font-family: var(--mono, 'Space Mono', monospace); font-size: .6rem; letter-spacing: .03em; color: #7fa0bc; white-space: nowrap; }
.wand-line { grid-column: 1 / -1; margin: .2rem 0 .1rem; font-size: .84rem; line-height: 1.45; color: #d4e1ec; max-width: 52ch; }
.wand-cap--c .wand-name { font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.wand-cap--c .wand-dom { grid-column: 1 / -1; }
.wand-cap--c { padding-top: 4.2rem; background: linear-gradient(to top, rgba(8, 11, 14, .96) 0, rgba(8, 11, 14, .9) 62%, rgba(8, 11, 14, 0) 100%); }
.wand-tile.is-hold .wand-cap, .wand-tile.is-back .wand-cap { opacity: 0; transform: translateY(8px); }

.wand-hint { position: absolute; top: .6rem; right: .6rem; padding: .3rem .55rem; background: rgba(8, 11, 14, .78); color: #2dffa0; font-family: var(--mono, 'Space Mono', monospace); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; }
.wand-tile.is-hold .wand-hint { opacity: 0 !important; }
@media (hover: hover) and (pointer: fine) {
  .wand-tile:hover .wand-hint, .wand-hit:focus-visible .wand-hint { opacity: 1; transform: none; }
  .wand-tile:not(.is-hold):hover .wand-kopf { transform: scale(1.02); }
}
@media (hover: none), (pointer: coarse) { .wand-hint { opacity: .88; transform: none; font-size: .54rem; padding: .22rem .42rem; top: .45rem; right: .45rem; } }

.wand-ext { display: inline-block; margin-top: 1.1rem; font-family: var(--mono, 'Space Mono', monospace); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #2dffa0; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.wand-foot { max-width: 1400px; margin: 0 auto; padding: 1.4rem clamp(1.25rem, 3vw, 2.5rem) 0; }

@media (prefers-reduced-motion: reduce) {
  .wand-kopf, .wand-cap, .wand-hint, .wand-ganz { transition: none !important; }
  .wand-hint { display: none; }
  .wand-head .wand-note .wand-hold-only { display: none; }
}
