/* GOYAF – Farben und Maße aus der Visitenkarte */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #E2E2DD;        /* Karte */
  --panel: #CACAC6;     /* Felder Ringsize / Chainlength */
  --ghost: #D2D2CD;     /* grosses unscharfes Zeichen */
  --ink: #2A2A2A;       /* Text und Logo */
  --muted: #4A4A45;     /* Nebentext, 6.9:1 auf --bg, 5.4:1 auf --panel */
  --accent: #FD3576;    /* Hot Pink genau aus dem Produktbild */
  --on-accent: #FFFFFF; /* Weiss auf Pink 3.5:1, AA nur fuer grosse Schrift */
  --radius: 14px;
  --gut: clamp(20px, 5vw, 64px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a { transition: color .15s ease; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
.micro { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gut); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top__logo svg, .top__logo .brand-img { height: 26px; width: auto; display: block; }
.top__link { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(24px, 6vw, 72px) max(var(--gut), (100% - var(--max)) / 2) 0; }
.hero__ghost {
  position: absolute; right: -12vw; top: 3vw; width: min(70vw, 900px); color: var(--ghost);
  filter: blur(18px); pointer-events: none;
}
.hero__ghost svg, .hero__ghost img { width: 100%; }
.hero__ghost img, .tile__ghost img { opacity: .14; }   /* hochgeladene Bildmarke: hell und weich wie das Standard-Zeichen */
.hero > *:not(.hero__ghost) { position: relative; }
.hero__cats { color: var(--muted); }
.hero__title {
  font-size: clamp(44px, 9.5vw, 140px); font-weight: 600; letter-spacing: -.05em; line-height: .92;
  margin: 0; max-width: 11ch;
}
.hero__img { margin: clamp(-40px, -3vw, -10px) 0 0 auto; width: min(100%, 980px); }
.hero__img img { width: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
.hero__side { position: absolute !important; right: max(var(--gut), (100% - var(--max)) / 2); top: clamp(24px, 6vw, 72px); writing-mode: vertical-rl; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding: clamp(48px, 9vw, 120px) 0; border: 0; }
.about .micro { color: var(--muted); padding-top: .6em; }
.lead { font-size: clamp(24px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; margin: 0; max-width: 24ch; }

/* Make it yours */
.make { padding-bottom: clamp(56px, 9vw, 120px); }
.make__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 32px; }
.make__head p { margin: 0; color: var(--muted); max-width: 46ch; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 18px 20px 22px; min-height: 180px; display: flex; flex-direction: column; }
.panel .micro { color: var(--muted); }
.panel h3 { margin: auto 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.panel p { margin: 0; color: var(--muted); }
.steps .panel:nth-child(2) { background: var(--accent); color: var(--on-accent); }
.steps .panel:nth-child(2) .micro, .steps .panel:nth-child(2) p { color: var(--on-accent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 16px/1 "Geist", sans-serif; text-decoration: none; border: 0; cursor: pointer;
}
.btn { transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Work */
.work { padding-bottom: clamp(56px, 9vw, 120px); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.note { font-size: 14px; color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.grid { display: grid; row-gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; align-items: start; }
.tile { display: flex; flex-direction: column; gap: 10px; }
.tile__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--panel);
  display: flex; align-items: flex-end; padding: 16px;
}
.tile__media > a, .tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__media img { object-fit: cover; transition: transform .5s ease; }
.tile__media a:hover img { transform: scale(1.03); }
.tile:hover h3, .tile:focus-within h3 { color: var(--accent); }
.tile__ghost { position: absolute; inset: 10% -20% auto auto; width: 90%; color: var(--ghost); filter: blur(14px); }
.tile__media .btn { position: relative; }
.tile__media.is-embed { padding: 0; display: block; }
.tile__media.is-embed .instagram-media, .tile__media.is-embed iframe {
  margin: 0 !important; min-width: 0 !important; max-width: none !important; width: 100% !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; pointer-events: none;
}
.tile__media.is-embed:not(.is-ready) iframe { opacity: 0; }
.tile__media.is-ready iframe { opacity: 1; transition: opacity .3s ease; }
.tile__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.tile__cap { min-height: 1.5em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile__cap .micro { color: var(--muted); order: 2; }
.tile__cap h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tile__text { margin: -4px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 40ch; }

/* Footer */
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 40px 0 48px; border-top: 1.5px solid var(--ink); font-size: 14px; }
.foot__logo svg, .foot__logo .brand-img { height: 22px; width: auto; display: block; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { display: inline-block; padding: 8px 0; }
.foot li:not(:has(a)) { padding: 8px 0; }

/* Rechtstexte */
.legal { padding: clamp(32px, 6vw, 72px) 0 80px; max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; line-height: 1; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: var(--panel); border-radius: 6px; padding: 0 5px; color: var(--ink); }

@media (max-width: 820px) {
  .about, .make__head, .foot { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .panel { min-height: 120px; }
  .hero__side { display: none; }
  .hero__img { margin-top: 12px; }
}
/* Navigation */
.top__nav { display: flex; gap: 22px; }

/* 3D-Ansicht */
.hero__img { position: relative; }
.hero__img.has-model { aspect-ratio: 16 / 9; width: min(100%, 1240px); margin-top: clamp(-120px, -6vw, -20px); }
.hero__img.has-model .hero__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s ease; }
.viewer { position: absolute; inset: -18% -4%; opacity: 0; transition: opacity .6s ease; pointer-events: none; }   /* größer als der Rahmen, damit nichts abgeschnitten wird */
.viewer canvas { width: 100% !important; height: 100% !important; display: block; }
/* mit Modell: Foto von Anfang an aus, kein Aufblitzen. Nur ohne 3D oder auf Wunsch sichtbar. */
.hero__img.has-model.js .hero__poster img { opacity: 0; }
.hero__img.has-model.no-3d .hero__poster img, .hero__img.has-model.show-photo .hero__poster img { opacity: 1; }
.hero__img.is-3d .viewer { opacity: 1; }
.hero__img.show-photo .viewer { opacity: 0; }
.matswitch { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 6px; }
.hero__img.is-3d .matswitch { display: flex; }
.matswitch__btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px transparent; transition: box-shadow .2s ease, transform .2s ease; }
.swatch--pink { background: #FD3576; }
.swatch--chrome { background: #C4C6CA; }
.swatch--photo { display: grid; place-items: center; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--muted), 0 0 0 4px var(--bg); }
.swatch--photo svg { display: block; }
.matswitch__photo { margin-top: 4px; }
.matswitch__photo.is-active .swatch { box-shadow: inset 0 0 0 1.5px var(--muted), 0 0 0 4px var(--bg), 0 0 0 5.5px var(--ink); }
.matswitch__btn.is-active .swatch { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--ink); }
.matswitch__btn:not(.is-active):hover .swatch { transform: scale(1.08); }
.matswitch__btn:focus-visible { outline-offset: 0; }
@media (max-width: 820px) {
  .matswitch { position: static; transform: none; flex-direction: row; justify-content: center; margin-top: 8px; }
}

/* Archiv, aufklappbar */
.archive { margin-top: 40px; }
.archive > summary { list-style: none; }
.archive > summary::-webkit-details-marker { display: none; }
.archive > summary::after { content: "+"; font-size: 20px; line-height: 1; margin-left: 4px; }
.archive[open] > summary::after { content: "–"; }
.archive[open] > summary { margin-bottom: 20px; }
.archive .tile__media img { filter: grayscale(.15); }

/* Kontakt */
.contact { padding-bottom: clamp(56px, 9vw, 120px); }
.contact__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; }
.contact__head p { margin: 0; color: var(--muted); max-width: 46ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field textarea {
  font: 400 17px/1.4 "Geist", sans-serif; color: var(--ink); background: var(--panel); border: 1.5px solid transparent;
  border-radius: var(--radius); padding: 14px 16px; min-height: 52px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #D3D3CF; }
.form .btn { justify-self: start; }
.form .note { margin: 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 18px; max-width: 900px; }
.status--ok { background: var(--accent); color: var(--on-accent); }
.status--err { background: var(--panel); border-left: 4px solid var(--accent); }

@media (max-width: 820px) {
  .contact__head, .form { grid-template-columns: 1fr; }
  .top__nav { gap: 14px; }
  .top__nav .top__link:not(:last-child) { display: none; }
}

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.tile__ghost svg, .tile__ghost img { width: 100%; display: block; }
.hero:has(.has-model) { padding-bottom: clamp(24px, 6vw, 90px); }
