/* Relief Frames – Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Google Fonts). */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --wall: #E7E5E0;        /* Galeriewand, hell */
  --wall-deep: #DCD9D3;   /* Wand im Halbschatten */
  --ink: #1D1D1B;         /* Graphit */
  --ink-soft: #57554F;    /* Schiefer */
  --rule: #C4C1BA;        /* Kante */
  --accent: #B8281F;      /* einziger Farbakzent */

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --page: 72rem;

  /* Lichtrichtung, per Script gesetzt */
  --sx: 10px;
  --sy: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

/* Sprachumschaltung: es ist immer nur eine Sprache sichtbar */
:root[data-lang="de"] body [lang="en"],
:root[data-lang="en"] body [lang="de"] { display: none !important; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 7.2vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--wall); padding: .5rem .75rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Kopfzeile ---------- */
.site-head { padding: 1.25rem 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-block; line-height: 0; }
.logo img { width: 72px; height: 72px; }
@media (max-width: 760px) { .logo img { width: 56px; height: 56px; } }

.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.lang-toggle {
  font: inherit; font-size: .875rem; color: var(--ink);
  background: none; border: 1px solid var(--rule); border-radius: 3px;
  padding: .3rem .6rem; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .nav a { display: none; }
}

/* ---------- Einstieg ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.75rem; }
.hero .lead { font-size: 1.1875rem; color: var(--ink-soft); margin-bottom: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block;
  font-weight: 500; font-size: .9875rem;
  text-decoration: none;
  padding: .8rem 1.2rem;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn-solid { background: var(--ink); color: var(--wall); }
.btn-solid:hover { background: #000; }
.btn-line { color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--wall); }

/* Das Relief an der Wand */
.piece { margin: 0; }
.piece-frame {
  position: relative;
  background: #1F1E1C;
  padding: 10px;
  box-shadow:
    var(--sx) var(--sy) calc(18px + 0.8 * var(--sy)) rgba(30, 28, 24, .28),
    calc(var(--sx) * .35) calc(var(--sy) * .35) 6px rgba(30, 28, 24, .22);
  max-width: 36rem;
  margin-left: auto;
  touch-action: pan-y;
}
.piece-frame { background: #161614; padding: 12px; }
.piece-frame svg { width: 100%; height: auto; background: #272624; box-shadow: 0 0 0 1px #3A3936; }
.piece figcaption {
  max-width: 36rem; margin: 1.1rem 0 0 auto;
  font-size: .8125rem; color: var(--ink-soft); line-height: 1.45;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .piece-frame, .piece figcaption { margin-left: 0; max-width: 34rem; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Arbeiten: zwei Produktfotos mit Werkangabe */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 5vw, 4rem);
  list-style: none; margin: 0; padding: 0;
  align-items: start;
  max-width: 60rem;
}
.work:nth-child(2) { margin-top: clamp(0rem, 6vw, 4.5rem); }
.work-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #FFF; box-shadow: 0 0 0 1px var(--rule); }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.label { margin-top: 1.4rem; padding-left: .9rem; border-left: 1.5px solid var(--ink); }
.label h3 { margin-bottom: .45rem; }
.label p { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.works-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); color: var(--ink-soft); }

@media (max-width: 600px) {
  .works { grid-template-columns: 1fr; }
  .work { max-width: 24rem; }
  .work:nth-child(2) { margin-top: 0; }
}

/* Entstehung: echte Abfolge */
.process { background: var(--wall-deep); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif); font-size: 2.75rem; line-height: 1;
  margin-bottom: .9rem;
}
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin-bottom: .45rem; letter-spacing: 0; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { border-top: 1.5px solid var(--ink); }
.contact h2 { margin-bottom: 1.25rem; }
.mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4.6vw, 3.25rem);
  line-height: 1.1;
  text-decoration-thickness: 1.5px;
  word-break: break-word;
  margin: .25rem 0 2.5rem;
}
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 14rem)); gap: 1.5rem 3rem; margin: 0; }
.channels dt { font-size: .875rem; color: var(--ink-soft); margin-bottom: .35rem; }
.channels dd { margin: 0; }
.channels dd a { display: inline-block; margin-right: 1.25rem; font-weight: 500; }

/* Fußzeile */
.site-foot { padding: 2rem 0 2.5rem; font-size: .875rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot nav { display: flex; gap: 1.5rem; }

/* Rechtstexte */
.legal { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: .5rem; }
.legal .note { color: var(--ink-soft); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.625rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal ul { max-width: 40rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal address { font-style: normal; margin-bottom: 1em; }

/* Fehlende Angaben (nur in der Vorschau sichtbar) */
.ph {
  background: #FFE27A; color: #3D3300;
  padding: 0 .25em; border-radius: 2px;
  outline: 1px dashed #B39200;
}
[data-missing] { outline: 2px dashed #D4AA00; outline-offset: 2px; }
