/* =========================================================================
   member.show — Galerien Mallorca
   Design: "Die Wand" — a white-cube directory. Every gallery is hung like a
   work and carries a museum wall-label; the listing reads as an exhibition
   checklist. Signature: the red dot (the art-world "this one") + mono labels.
   Type: Bodoni Moda (Didone display, used sparingly) · Archivo (grotesque body)
         · IBM Plex Mono (wall labels & catalogue numbers).
   ========================================================================= */

:root {
  --wall:      #EAE8E2;   /* gallery wall — soft neutral grey, not cream      */
  --wall-deep: #E1DFD7;   /* recessed band                                    */
  --paper:     #FFFFFF;   /* the framed work / card plane                     */
  --ink:       #16140E;   /* warm near-black                                  */
  --ink-2:     #3C3930;
  --muted:     #6E6A5C;   /* caption grey                                     */
  --line:      #CFCBBE;   /* hairline on the wall                             */
  --line-2:    #E6E3DA;   /* lighter inner rule (the mat)                     */
  --dot:       #D6351E;   /* cinnabar — the red dot                           */
  --dot-deep:  #B22A12;
  --ink-band:  #17150F;   /* the dark feature wall                            */

  --serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* focus visibility (quality floor) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--dot);
  outline-offset: 2px;
}

/* the recurring red dot */
.brand-dot, .title-dot, .reddot {
  display: inline-block;
  background: var(--dot);
  border-radius: 50%;
}

/* ============================ header ============================ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--wall);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-dot { width: 9px; height: 9px; align-self: center; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-show { color: var(--dot); }
.brand-sub {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-left: 4px;
  padding-left: 11px; border-left: 1px solid var(--line);
}
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.header-nav a:hover { color: var(--ink); border-color: var(--dot); }
.header-cta {
  color: var(--ink) !important; border: 1px solid var(--ink) !important;
  border-radius: 0; padding: 9px 15px !important;
}
.header-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* ============================ hero ============================ */
.hero { padding-top: clamp(56px, 11vw, 116px); padding-bottom: clamp(40px, 8vw, 78px); }
.hero-inner { position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 26px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 10.5vw, 7.2rem);
  line-height: 0.92; letter-spacing: -0.012em; font-weight: 500;
  margin: 0; max-width: 14ch;
}
.title-dot {
  width: clamp(13px, 1.7vw, 20px); height: clamp(13px, 1.7vw, 20px);
  margin-left: 0.18em; vertical-align: baseline;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.62;
  color: var(--ink-2); max-width: 56ch; margin: 32px 0 0;
}
.hero-checklist {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.hero-checklist .num {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500;
  color: var(--ink); letter-spacing: 0; margin-right: 4px; line-height: 1;
}
.hero-checklist .sep { color: var(--line); }

/* ============================ filterbar ============================ */
.filterbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filterbar-inner {
  display: flex; align-items: flex-end; gap: 22px;
  padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-search { flex: 1 1 240px; min-width: 200px; }
.field label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select {
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0; padding: 6px 2px; min-width: 150px;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: var(--muted); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2316140E' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px;
}
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--dot); }
.btn-reset {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  background: transparent; border: 0; border-bottom: 1px solid transparent;
  padding: 6px 0; align-self: flex-end; transition: color .2s, border-color .2s;
}
.btn-reset:hover { color: var(--dot); border-bottom-color: var(--dot); }

/* ============================ blocks ============================ */
.block { padding-top: clamp(48px, 7vw, 84px); }
#verzeichnis { padding-bottom: clamp(48px, 7vw, 84px); }
.block-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.block-kat {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dot);
  margin-bottom: 14px;
}
.block-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.04; letter-spacing: -0.01em;
}
.block-head p { color: var(--muted); margin: 14px 0 0; font-size: 1.02rem; max-width: 52ch; }

.grid { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.grid-premium { grid-template-columns: repeat(3, 1fr); }
.grid-featured { grid-template-columns: repeat(4, 1fr); }

/* ============================ the frame (card) ============================ */
.frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(22,20,14,.02);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s;
}
.frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px -22px rgba(22,20,14,.42);
  border-color: var(--ink);
}
/* the mat + plate (the artwork) */
.frame-plate {
  position: relative; margin: 13px 13px 0; aspect-ratio: 4 / 3;
  background: var(--wall-deep); border: 1px solid var(--line-2);
  overflow: hidden;
}
.frame-premium .frame-plate { aspect-ratio: 5 / 4; }
.frame-plate .photo { width: 100%; height: 100%; object-fit: cover; }
.frame-plate .mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3.2rem; font-weight: 500; color: #BBB6A6;
}

.frame-label { padding: 16px 17px 18px; display: flex; flex-direction: column; }
.kat {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.frame-label h3 {
  font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em;
  font-size: 1.3rem;
}
.frame-premium .frame-label h3 { font-size: 1.62rem; }
.dot-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 9px;
}
.dot-tag .reddot { width: 8px; height: 8px; }
/* museum wall-label */
.label {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.55;
  margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-2);
}
.label-seg { display: block; color: var(--ink); letter-spacing: 0.04em; }
.label-loc { display: block; color: var(--muted); margin-top: 2px; }

.frame-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.act {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; padding: 8px 13px; border-radius: 0;
  border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.act svg { width: 15px; height: 15px; }
.act-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.act-primary:hover { background: var(--dot); border-color: var(--dot); }
.act-ghost:hover { border-color: var(--ink); }

/* claim corner (owner action) */
.claim {
  position: absolute; top: 11px; right: 11px; z-index: 3;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.86); border: 1px solid var(--line); color: var(--muted);
  backdrop-filter: blur(3px); transition: color .2s, border-color .2s;
}
.claim svg { width: 15px; height: 15px; }
.claim:hover { color: var(--dot); border-color: var(--dot); }
.claim--row { position: static; width: 30px; height: 30px; }
.claim-tip {
  position: absolute; top: 50%; right: calc(100% + 9px); transform: translateY(-50%);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--ink); color: var(--paper); padding: 7px 11px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.claim-tip svg { width: 14px; height: 14px; color: #4ade80; }
.claim:hover .claim-tip { opacity: 1; }

/* ============================ dark feature wall (claim banner) ============================ */
.claim-banner { margin-top: clamp(48px, 7vw, 84px); }
.claim-banner-inner {
  background: var(--ink-band); color: var(--paper);
  padding: clamp(34px, 5vw, 58px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.claim-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dot); margin: 0 0 12px;
}
.claim-banner-text h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.06; color: var(--paper);
}
.claim-sub { color: #C7C2B4; margin: 12px 0 0; max-width: 46ch; }
.claim-sub strong { color: var(--paper); font-weight: 600; }
.claim-cta {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  background: var(--dot); color: var(--paper); font-weight: 600;
  padding: 14px 22px; border-radius: 0; transition: background .2s;
}
.claim-cta:hover { background: var(--dot-deep); }
.claim-cta svg { width: 19px; height: 19px; }

/* ============================ the checklist (list) ============================ */
.list { border-top: 1px solid var(--ink); }
.list-head, .row-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(140px, 220px) auto 38px;
  align-items: center; gap: 16px;
}
.list-head {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  padding: 12px 6px; border-bottom: 1px solid var(--line);
}
.list-head span:nth-child(2) { grid-column: 2 / 4; }
.row-item {
  padding: 12px 6px; border-bottom: 1px solid var(--line-2);
  transition: background .18s;
}
.row-item:hover { background: var(--paper); }
.row-kat { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); transition: color .18s; }
.row-item:hover .row-kat { color: var(--dot); }
.row-thumb {
  width: 44px; height: 44px; position: relative; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--wall-deep);
}
.row-thumb .photo { width: 100%; height: 100%; object-fit: cover; }
.row-thumb .mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; color: #B6B1A1; }
.row-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.005em; }
.row-seg { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.row-loc { font-size: 0.86rem; color: var(--muted); }
.row-links { display: flex; gap: 6px; justify-self: end; }
.icon-btn {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--ink-2); transition: color .2s, border-color .2s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--dot); border-color: var(--dot); }
.row-item .claim { color: var(--muted); }

/* ============================ results / empty ============================ */
.empty {
  font-family: var(--mono); font-size: 0.84rem; color: var(--muted);
  padding: 40px 0; text-align: center; letter-spacing: 0.04em;
}

/* ============================ footer ============================ */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.footer-inner { padding-top: 36px; padding-bottom: 56px; }
.foot-brand { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.foot-brand .brand-dot { width: 9px; height: 9px; }
.foot-note { font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; color: var(--muted); max-width: 70ch; margin: 0; letter-spacing: 0.02em; }

/* ============================ whatsapp float ============================ */
.ms-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(22,20,14,.5);
  transition: transform .2s;
}
.ms-wa svg { width: 28px; height: 28px; }
.ms-wa:hover { transform: scale(1.07); }

/* ============================ scroll reveal ============================ */
.frame, .row-item { will-change: transform; }
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }

/* ============================ responsive ============================ */
@media (max-width: 980px) {
  .grid-featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-premium { grid-template-columns: 1fr; }
  .header-nav { gap: 16px; }
  .brand-sub { display: none; }
  .filterbar-inner { gap: 14px 18px; }
  .field-search { flex-basis: 100%; }
  /* checklist collapses to two rows */
  .list-head { display: none; }
  .row-item {
    grid-template-columns: 40px minmax(0,1fr) auto;
    grid-template-areas: "thumb main links";
    gap: 2px 10px;
  }
  .row-kat { grid-area: kat; }
  .row-thumb { grid-area: thumb; width: 40px; height: 40px; }
  .row-main { grid-area: main; }
  .row-links { grid-area: links; gap: 5px; }
  .row-links .icon-btn { width: 30px; height: 30px; }
  .row-loc { display: none; }
  .row-item .claim { display: none; }
}
@media (max-width: 460px) {
  .grid-featured { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .claim-cta { width: 100%; justify-content: center; }
}

/* ============================ reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .frame, .row-item, .ms-wa, .reveal, .reveal.in { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .frame:hover { transform: none; }
}
