/* FRIEMEL ART */
:root { --red: #d41111; --ink: #1b1d1f; --grey: #808080; --line: #e6e6e6; --bg: #fff; --pad: clamp(16px, 4vw, 48px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.65 "Helvetica BQ", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--pad); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.logo img { width: 52px; height: 36px; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.top nav a { display: block; padding: 8px 0; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--ink); border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a.on { color: var(--red); }
.has-sub { position: relative; }
.has-sub ul { display: none !important; position: absolute; left: -18px; top: 100%; min-width: 230px; padding: 8px 18px !important; background: #fff; border: 1px solid var(--line); flex-direction: column; gap: 0 !important; }
.has-sub:hover ul, .has-sub:focus-within ul { display: flex !important; }
.has-sub ul a { font-weight: 400; letter-spacing: .08em; }
.burger { display: none; width: 44px; height: 44px; padding: 12px 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--ink); transition: transform .2s, opacity .2s; }

/* Startseite: Kopf liegt über dem Titelbild */
.home .top { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; transition: background .3s, border-color .3s; }
.home .top:not(.solid) nav a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.home .top:not(.solid) .burger span { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); }
.home .top.solid { background: rgba(255,255,255,.96); border-color: var(--line); }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: #2a2a2a; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.slide.on { opacity: 1; }
.hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 0 20px; text-align: center; color: #fff; background: rgba(0,0,0,.12); }
.hero h1 { margin: 0; font-size: clamp(22px, 4.2vw, 46px); font-weight: 300; letter-spacing: .22em; text-indent: .22em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.btn { display: inline-block; padding: 12px 30px; border: 1px solid #fff; border-radius: 40px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .16em; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--ink); }

/* Inhalt */
.wrap { max-width: 1500px; margin: 0 auto; padding: 56px var(--pad) 72px; }
#works { scroll-margin-top: 40px; }
.pt { margin: 0 0 10px; text-align: center; font-size: clamp(18px, 2.4vw, 26px); font-weight: 300; letter-spacing: .16em; }
.intro { margin: 0 0 34px; text-align: center; color: var(--grey); letter-spacing: .04em; }
.intro p { margin: 0 0 4px; }

.filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 34px; }
.filter button { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid transparent; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--grey); cursor: pointer; }
.filter button:hover { color: var(--ink); }
.filter button.on { color: var(--red); border-color: var(--red); }

.grid { columns: 4 260px; column-gap: 14px; }
.tile { position: relative; display: block; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: #f2f2f2; text-decoration: none; }
.tile[hidden] { display: none; }
.tile img { width: 100%; transition: transform .6s ease; }
.tile .noimg { display: block; padding-top: 70%; }
.tile-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(102,102,102,.72); color: #fff; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: .08em; opacity: 0; transition: opacity .3s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
.tile:hover .tile-t, .tile:focus-visible .tile-t { opacity: 1; }
@media (hover: none) {
  .tile-t { position: static; display: block; padding: 8px 4px 10px; background: #fff; color: var(--ink); font-size: 12px; opacity: 1; }
}

/* Einzelner Bereich */
.cats { margin: 0 0 14px; text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--grey); }
.work-text { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.work-text p { margin: 0 0 4px; }
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery.n1 { columns: 1; max-width: 900px; margin: 0 auto; }
.gallery.n2 { columns: 2 240px; max-width: 1100px; margin: 0 auto; }
.gallery.n3 { columns: 3 240px; }
.gallery a { display: block; margin: 0 0 14px; break-inside: avoid; background: #f2f2f2; cursor: zoom-in; }
.gallery img { width: 100%; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.pn { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.pn a { text-decoration: none; padding: 6px 0; }
.pn a:hover { color: var(--red); }
.pn .n { text-align: right; }
.pn .all { color: var(--grey); }

/* Textseiten */
.text { max-width: 860px; }
.text .pt { margin-bottom: 40px; }
.text h2, .text h3, .text h4 { margin: 34px 0 10px; font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.text p { margin: 0 0 12px; }
.text ul { margin: 0 0 14px; padding-left: 20px; }
.text a { color: var(--red); text-decoration: none; }
.text a:hover { text-decoration: underline; }
.text img { margin: 22px 0 34px; }
.text img.portrait { width: 30%; min-width: 180px; }
.text hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Fuß */
.foot { padding: 34px var(--pad) 40px; border-top: 1px solid var(--line); text-align: center; font-size: 11px; letter-spacing: .12em; color: var(--grey); }
.foot ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot p { margin: 0; }

/* Großansicht */
.lbx { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(255,255,255,.98); }
.lbx[hidden] { display: none; }
.lbx-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; }
.lbx-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 6px 40px rgba(0,0,0,.14); }
.lbx-cap { min-height: 64px; padding: 12px 20px 20px; text-align: center; font-size: 14px; }
.lbx-cap b { font-weight: 600; margin-right: 10px; }
.lbx-cap small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .1em; color: var(--grey); }
.lbx button { position: absolute; width: 52px; height: 52px; background: none; border: 0; font: 300 34px/1 Helvetica, Arial, sans-serif; color: var(--ink); cursor: pointer; }
.lbx button:hover { color: var(--red); }
.lbx-x { top: 6px; right: 10px; }
.lbx-p { left: 6px; top: calc(50% - 50px); }
.lbx-n { right: 6px; top: calc(50% - 50px); }

@media (max-width: 760px) {
  .burger { display: block; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 6px var(--pad) 18px; background: #fff; border-bottom: 1px solid var(--line); }
  .top.open nav { display: block; }
  .top nav ul { flex-direction: column; gap: 0; }
  .top nav a { padding: 12px 0; }
  .home .top.open { background: #fff; }
  .home .top.open nav a { color: var(--ink); text-shadow: none; }
  .home .top.open .burger span { background: var(--ink); box-shadow: none; }
  .has-sub ul { display: flex !important; position: static; border: 0; padding: 0 0 0 16px !important; }
  .top.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .top.open .burger span:nth-child(2) { opacity: 0; }
  .top.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .grid, .gallery { columns: 2; column-gap: 10px; }
  .tile, .gallery a { margin-bottom: 10px; }
  .lbx-stage { padding: 56px 8px 4px; }
  .lbx-p, .lbx-n { top: auto; bottom: 4px; }
  .lbx-cap { padding: 10px 60px 16px; }
  .pn { grid-template-columns: 1fr 1fr; }
  .pn .all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
