/* Terza Studio, direction B: Überdruck.
   Two process inks, cyan and yellow, printed over each other. The overlap is green.
   Colour only lives in the overprint and in thin yellow marks. Everything else is ink on paper.
   Rules: cyan and yellow are never text colours (too little contrast on paper). Radius 0. No shadows. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBFBF9;
  --ink: #161616;
  --graphite: #4A4A48;
  --line: #D9D9D5;
  --cyan: #0098DB;
  --yellow: #F2C400;
  --green: #007500;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .75, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--cyan); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem); line-height: 1.02; font-stretch: 100%; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.75rem); line-height: 1.02; font-stretch: 112%; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.25; font-stretch: 112%; }
.lead { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem); line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
a[href^="tel:"] { white-space: nowrap; }
.muted { color: var(--graphite); }
.prose { max-width: 60ch; }

/* skip link */
.skip { position: absolute; left: var(--gutter); top: 10px; z-index: 50; padding: 12px 18px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* header */
.site-header { position: relative; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand svg { height: 34px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; text-decoration: none; font-size: 1rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.lang { display: flex; gap: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 800; font-stretch: 112%; font-size: 1rem; text-decoration: none; }
.lang a[aria-current="true"] { box-shadow: inset 0 -6px 0 var(--yellow); }
.lang a:not([aria-current]):hover { box-shadow: inset 0 -6px 0 var(--cyan); }
.menu-toggle { display: none; min-height: 44px; padding: 0 12px; background: none; border: 2px solid var(--ink); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; }
  .js .nav-wrap.open .nav { display: block; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 6px solid var(--ink); padding: 8px var(--gutter) 24px; }
  .nav ul { flex-direction: column; gap: 0; }
  .js .nav a { font-size: 1.75rem; font-weight: 800; font-stretch: 112%; min-height: 60px; }
  .nav-wrap { gap: 10px; }
  .no-js .nav-wrap { flex-wrap: wrap; justify-content: flex-end; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
}

/* hero: the overprinted wordmark */
.hero { padding-bottom: clamp(56px, 7vw, 104px); }
.druck { position: relative; margin: 0 calc(-1 * var(--gutter)); height: clamp(170px, min(27vw, 40vh), 380px); overflow: hidden; }
.druck svg { position: absolute; left: var(--gutter); top: 0; height: 100%; width: auto; max-width: none; }
.druck .ink-c { animation: plate-c 1100ms var(--ease) 150ms both; }
.druck .ink-y, .druck .ink-g { animation: plate-y 1100ms var(--ease) 150ms both; }
.druck .ink-g { animation-name: plate-g; }
@keyframes plate-c { from { transform: translateX(-9%); } }
@keyframes plate-y { from { transform: translateX(14%); } }
@keyframes plate-g { 0%, 70% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .druck .ink-c, .druck .ink-y, .druck .ink-g { animation: none; }
}
.hero .grid { margin-top: clamp(28px, 3.5vw, 52px); align-items: start; row-gap: 28px; }
.hero h1 { grid-column: 1 / 8; }
.hero-side { grid-column: 9 / 13; }
.hero-side .lead { margin-bottom: 22px; }
.tel { display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); font-weight: 800; font-stretch: 112%; text-decoration: none; box-shadow: inset 0 -8px 0 var(--yellow); line-height: 1.2; }
.tel:hover { box-shadow: inset 0 -8px 0 var(--cyan); }
.mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; }

@media (max-width: 899px) {
  .hero h1, .hero-side { grid-column: 1 / -1; }
  .druck { margin: 8px 0 0; height: auto; }
  .druck svg { position: static; width: 100%; height: auto; }
}

/* sections */
.section { padding-block: var(--section); }
.rule { position: relative; isolation: isolate; }
.rule::before, .rule::after { content: ""; position: absolute; top: 0; height: 10px; }
.rule::before { left: 0; width: 64%; background: var(--cyan); }
.rule::after { right: 0; width: 52%; background: var(--yellow); mix-blend-mode: multiply; }
.rule.alt::before { width: 30%; }
.rule.alt::after { width: 82%; }

/* Arbeitsweise: text and the photo slot */
.arbeit .grid { align-items: start; row-gap: 48px; }
.arbeit .text { grid-column: 1 / 7; }
.arbeit h2 { margin-bottom: 32px; }
.foto { grid-column: 8 / 13; aspect-ratio: 4 / 5; border: 3px dashed var(--graphite); display: grid; place-items: center; padding: 24px; text-align: center; color: var(--graphite); font-weight: 600; }
@media (max-width: 899px) { .arbeit .text, .foto { grid-column: 1 / -1; } }

/* Unikat: a typographic list */
.unikat h2 { max-width: 18ch; margin-bottom: clamp(40px, 5vw, 72px); }
.merkmale { margin: 0; max-width: 980px; }
.merkmale div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: 18px 0 20px; border-top: 2px solid var(--ink); }
.merkmale dt { font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.merkmale dd { margin: 0; color: var(--graphite); max-width: 40ch; }
@media (max-width: 599px) { .merkmale div { grid-template-columns: 1fr; row-gap: 4px; } }



/* Kontakt */
.kontakt { background: var(--ink); color: var(--paper); }
.kontakt a { color: var(--paper); }
.kontakt :focus-visible { outline-color: var(--yellow); }
.kontakt .grid { row-gap: 48px; }
.kontakt .intro { grid-column: 1 / 6; }
.kontakt h2 { margin-bottom: 24px; }
.kontakt .lead { color: #D4D4D0; }
.kontakt .tel { color: var(--paper); margin-top: 28px; }
.kontakt .mail { color: var(--paper); }
.form { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(16px, 2vw, 28px); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #8C8C88; border-radius: 0; background: #222221; color: var(--paper); font: inherit; font-size: 1.0625rem; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; border-color: var(--paper); }
.field [aria-invalid="true"] { border-color: var(--yellow); }
.error { margin: 0; color: var(--yellow); font-size: .9375rem; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 800; font-stretch: 112%; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-foot .note { margin: 0; color: #D4D4D0; font-size: .9375rem; max-width: 44ch; }
.status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.status:empty { display: none; }
.status.ok { color: var(--paper); box-shadow: inset 6px 0 0 var(--yellow); padding-left: 18px; }
.status.fail { color: var(--yellow); }
@media (max-width: 899px) { .kontakt .intro, .form { grid-column: 1 / -1; } }
@media (max-width: 599px) { .form { grid-template-columns: 1fr; } }

/* footer */
.site-footer { padding-block: 56px 48px; font-size: 1rem; }
.site-footer .grid { row-gap: 28px; align-items: start; }
.foot-brand { grid-column: 1 / 5; }
.foot-brand svg { width: min(100%, 300px); height: auto; }
.foot-col { grid-column: span 4; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a, .foot-col span { display: inline-flex; align-items: center; min-height: 44px; }
.foot-col span { color: var(--graphite); }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 2px solid var(--ink); color: var(--graphite); font-size: .9375rem; }
@media (max-width: 899px) { .foot-brand, .foot-col { grid-column: 1 / -1; } }

/* phone call bar */
.callbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 64px; color: var(--paper); font-weight: 800; font-stretch: 112%; text-decoration: none; }
  .callbar a:first-child { background: var(--yellow); color: var(--ink); }
  .callbar a:focus-visible { outline-color: var(--paper); outline-offset: -6px; }
}
body:not(:has(.callbar)) { padding-bottom: 0; }

/* text pages */
.textpage { padding-block: clamp(56px, 8vw, 112px) var(--section); }
.textpage h1 { margin-bottom: 40px; }
.textpage h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 48px 0 12px; }
.textpage dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; margin: 0; }
.textpage dt { color: var(--graphite); }
.textpage dd { margin: 0; }
.textpage dd a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.back { display: inline-flex; align-items: center; min-height: 48px; }
.ph { background: #EFEFEA; border-bottom: 3px solid var(--yellow); padding: 0 2px; }
@media (max-width: 599px) { .textpage dl { grid-template-columns: 1fr; gap: 2px; } .textpage dd { margin-bottom: 14px; } }

.notfound { min-height: 100vh; display: grid; align-content: center; }
.notfound .druck { margin-bottom: 40px; }
.nf-pair { display: grid; gap: 32px; }
.nf-pair h1, .nf-pair .nf-h { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.05; font-stretch: 100%; text-wrap: balance; }
.nf-pair section { display: grid; gap: 16px; align-content: start; }
.nf-pair .lead a { display: inline-block; padding-block: 10px; }
@media (min-width: 900px) { .nf-pair { grid-template-columns: 1fr 1fr; gap: 64px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media print {
  .callbar, .menu-toggle, .nav, .skip, .form { display: none !important; }
  .kontakt { background: none; color: #000; }
  body { padding: 0; }
}

/* Arbeiten: honest empty slots until there is real work to show */
.arbeiten .grid { row-gap: 32px; align-items: start; }
.arbeiten .intro { grid-column: 1 / 5; }
.arbeiten .intro p { margin-top: 20px; color: var(--graphite); max-width: 32ch; }
.slots { grid-column: 6 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 3fr 2fr; gap: clamp(16px, 2vw, 28px); align-items: end; }
.slot { aspect-ratio: 4 / 3; border: 3px dashed var(--graphite); display: grid; place-items: center; padding: 20px; text-align: center; color: var(--graphite); font-weight: 600; }
.slot + .slot { aspect-ratio: 3 / 4; }
@media (max-width: 899px) { .arbeiten .intro, .slots { grid-column: 1 / -1; } .slots { grid-template-columns: 1fr; } .slot + .slot { aspect-ratio: 4 / 3; } }

/* Ablauf: told as prose, no ruled section above it */
.ablauf { padding-top: 0; }
.ablauf .grid { row-gap: 28px; }
.ablauf h2 { grid-column: 1 / 5; }
.ablauf .prose { grid-column: 5 / 12; display: grid; gap: 18px; }
.ablauf .prose p { max-width: 62ch; color: var(--graphite); }
.ablauf .prose .first { font-size: clamp(1.1875rem, 1.05rem + .45vw, 1.4375rem); line-height: 1.5; color: var(--ink); }
@media (max-width: 999px) { .ablauf h2, .ablauf .prose { grid-column: 1 / -1; } }
