/* studio z – Prototyp (Atlaxis, Okt. 2026)
   Barrierefreiheit: WCAG 2.2 AA / BITV 2.0 – Kontraste geprüft, Fokus sichtbar,
   keine automatischen Bewegungen, prefers-reduced-motion & forced-colors berücksichtigt. */

@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --papier: #fbfaf7;
  --tinte: #1d1d1b;
  --grau: #55554f;          /* Fließtext sekundär, 7.0:1 auf --papier */
  --petrol: #34525a;        /* Küchenfarbe – zweite Hausfarbe */
  --petrol-hell: #dfe7e6;
  --pink: #e5007d;         /* Neonpink aus den Pfingstrosen – nur Fläche, nie Text */
  --linie: #d9d6cf;
  --fuss: #4f514b;          /* olivgrauer Footer, weiße Schrift 8.3:1 */
  --fokus: #b3541e;         /* Fokusring, 3:1 gegen Papier und Petrol */
  --max: 78rem;
  --rand: clamp(1rem, 4vw, 3rem);
  --schrift: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--schrift); font-size: 1.125rem; line-height: 1.6; font-weight: 400;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 450; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 65ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--tinte); color: #fff; padding: .75rem 1.25rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.kicker { font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin-bottom: 1rem; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--papier); border-bottom: 1px solid transparent; transition: border-color .2s; }
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; min-height: 6.5rem; }
.marke { display: flex; align-items: center; gap: 1.8rem; text-decoration: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font-size: 1.6rem; font-weight: 500; letter-spacing: .02em; }
.marke-zusatz { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }

/* Z-Bildmarke: Outline + überstehend unterlegte Farbfläche */
.z { position: relative; width: 4.6rem; aspect-ratio: 1097 / 1045; flex: none; }
.z::before { content: ""; position: absolute; inset: 42% -22% -22% 42%; background: var(--z-flaeche, var(--petrol)); transition: background-color .6s; }
.z svg { position: relative; width: 100%; height: 100%; color: var(--tinte); }
.z path { stroke-dasharray: 5200; stroke-dashoffset: 0; fill: var(--pink); }
@media (prefers-reduced-motion: no-preference) {
  .z.zeichnen path { animation: z-zeichnen 2.2s cubic-bezier(.65, 0, .35, 1) both, z-fuellen 2.8s ease both; }
  .z.zeichnen::before { animation: z-flaeche 2.6s ease both; }
}
@keyframes z-fuellen { 0%, 70% { fill-opacity: 0; } 100% { fill-opacity: 1; } }
@keyframes z-zeichnen { from { stroke-dashoffset: 5200; } to { stroke-dashoffset: 0; } }
@keyframes z-flaeche { 0%, 60% { transform: translate(-12%, -12%); opacity: 0; } 100% { transform: none; opacity: 1; } }

.nav ul { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: .5rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: currentColor; }
.menue-knopf { display: none; font: inherit; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; background: none; border: 1px solid var(--tinte); color: var(--tinte); padding: .6rem 1rem; min-height: 44px; cursor: pointer; }

@media (max-width: 52rem) {
  .menue-knopf { display: inline-block; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--linie); }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--rand) 1.5rem; }
  .nav a { padding: .9rem 0; font-size: 1.1rem; }
  .z { width: 3.4rem; }
  .kopf .wrap { column-gap: 1rem; }
  .marke { gap: 1.3rem; }
  .marke-text { max-width: 10rem; }
  .marke-name { font-size: 1.35rem; }
}
.menue-knopf[hidden] { display: none !important; }

/* ---------- Foto-Board (Startbühne) ----------
   Fotos wie lose aufgelegte Abzüge: leicht gedreht, überlappend, mit Schatten. */
.buehne { padding: clamp(1rem, 3vw, 2.5rem) var(--rand) 0; }
.board { list-style: none; margin: 0 auto; padding: 0; max-width: 100rem; display: grid;
  grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(14px, 1.9vw, 30px); }
.board li { position: relative; transform: rotate(var(--dreh, 0deg)); z-index: var(--ebene, 1); }
.board img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(29, 29, 27, .12), 0 12px 30px -10px rgba(29, 29, 27, .35); }
@media (prefers-reduced-motion: no-preference) {
  .board li { transition: transform .4s ease; }
  .board li:hover { transform: rotate(0deg) scale(1.02); z-index: 10; }
}
.board-1 { grid-column: 1 / 6;  grid-row: 2 / 14;  --dreh: -2deg; }
.board-2 { grid-column: 5 / 8;  grid-row: 1 / 16;  --dreh: 1.5deg; --ebene: 2; }
.board-3 { grid-column: 7 / 12; grid-row: 3 / 13;  --dreh: -1deg; }
.board-4 { grid-column: 11 / 13; grid-row: 6 / 18; --dreh: 2.5deg; --ebene: 3; }
.board-5 { grid-column: 2 / 4;  grid-row: 12 / 23; --dreh: 1deg; --ebene: 3; }
.board-6 { grid-column: 8 / 10; grid-row: 12 / 22; --dreh: -2.5deg; --ebene: 4; }
@media (max-width: 52rem) {
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 0; }
  .board li { grid-column: auto !important; grid-row: auto !important; margin: -.6rem .2rem 0; }
  .board img { aspect-ratio: 4 / 5; height: auto; }
  .board li:nth-child(odd) { --dreh: -2deg; }
  .board li:nth-child(even) { --dreh: 2deg; margin-top: 1.2rem; }
}

.claim { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem); }
.claim h1 { font-size: clamp(2.1rem, 5vw, 4rem); font-weight: 400; max-width: 22ch; }
.claim h1 em { font-style: italic; color: var(--petrol); }
.claim p { font-size: 1.3rem; color: var(--grau); }

.knopf { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .8rem 1.6rem; background: var(--tinte); color: #fff; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; border: 2px solid var(--tinte); }
.knopf:hover { background: var(--petrol); border-color: var(--petrol); }
.knopf.hell { background: transparent; color: var(--tinte); }
.knopf.hell:hover { background: var(--tinte); color: #fff; }

/* ---------- Zielgruppen ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7rem) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.zielgruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); list-style: none; padding: 0; margin: 2.5rem 0 1.5rem; }
.zielgruppen li { background: var(--papier); padding: 1.6rem 1.4rem; }
.zielgruppen strong { display: block; font-size: 1.25rem; font-weight: 500; margin-bottom: .25rem; }
.zielgruppen span { color: var(--grau); font-size: 1rem; }
.privat { color: var(--grau); }

/* ---------- Leistungen als Farbkacheln ---------- */
.leistungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 2.5rem 0 0; grid-auto-flow: dense; }
.kachel { color: #fff; background: var(--k); min-height: 17rem; display: flex; flex-direction: column; position: relative; }
.kachel.breit { grid-column: span 2; }
@media (max-width: 40rem) { .kachel.breit { grid-column: auto; } }
.kachel h3 { margin: 0; flex: 1; display: flex; }
.kachel-knopf { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 17rem; font-family: var(--schrift); }
.kachel .icon { width: clamp(3rem, 5vw, 4rem); height: auto; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.kachel-titel { font-size: 1.3rem; font-weight: 500; line-height: 1.25; }
.kachel .mehr { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: .4rem; }
.kachel .mehr::after { content: "+"; font-size: 1.3rem; transition: transform .2s; }
.kachel-knopf[aria-expanded="true"] .mehr::after { transform: rotate(45deg); }
.kachel .text { padding: 0 1.5rem 1.5rem; font-size: 1.02rem; }
.kachel .text p { margin: 0; }
.kachel-knopf:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
a.kachel-knopf { color: inherit; text-decoration: none; }
.kachel.kosten { background: var(--papier); color: var(--tinte); border: 1px solid var(--tinte); }
.kachel.kosten .kachel-knopf:focus-visible { outline-color: var(--fokus); }
.kachel .mehr.pfeil::after { content: "→"; }
.kachel-knopf:hover .kachel-titel { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Projekte ---------- */
.projekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem); list-style: none; padding: 0; margin: 2.5rem 0 0; }
.projekt { display: flex; flex-direction: column; }
.projekt .bild { position: relative; overflow: hidden; background: var(--petrol-hell); }
.projekt .bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
@media (prefers-reduced-motion: no-preference) { .projekt:hover .bild img { transform: scale(1.03); } }
.projekt .kategorie { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin: 1rem 0 .3rem; }
.projekt h3 { margin-bottom: .4rem; }
.projekt p { color: var(--grau); font-size: 1rem; }
.projekt .galerie-knopf { align-self: flex-start; margin-top: auto; font: inherit; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid currentColor; padding: .4rem 0; color: var(--tinte); cursor: pointer; min-height: 44px; }
.projekt .galerie-knopf:hover { color: var(--petrol); }
.projekt .anzahl { font-size: .9rem; color: var(--grau); }

/* Galerie-Dialog */
dialog.galerie { width: min(100vw, 90rem); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: var(--papier); color: var(--tinte); }
dialog.galerie::backdrop { background: rgba(20, 22, 20, .7); }
.galerie-innen { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.galerie-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--rand); border-bottom: 1px solid var(--linie); }
.galerie-kopf h2 { font-size: 1.35rem; margin: 0; }
.galerie-bild { display: grid; place-items: center; min-height: 0; padding: 1rem; }
.galerie-bild img { max-height: 100%; max-width: 100%; object-fit: contain; }
.galerie-fuss { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem var(--rand) 1.25rem; border-top: 1px solid var(--linie); }
.galerie-fuss p { margin: 0; color: var(--grau); font-size: 1rem; }
.galerie-steuerung { display: flex; gap: .5rem; align-items: center; }
.galerie-zaehler { min-width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Über ---------- */
.ueber { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 52rem) { .ueber { grid-template-columns: 1fr; } }
.portraet { position: relative; margin: 0 1.5rem 1.5rem 0; }
.portraet::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; background: var(--petrol); }
.portraet img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.stationen { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.stationen li { border: 1px solid var(--linie); padding: .3rem .8rem; font-size: .95rem; }

/* ---------- Mood-Streifen ---------- */
.mood { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0 var(--rand); list-style: none; margin: 0 auto; max-width: 110rem; }
.mood li:nth-child(even) { margin-top: 4rem; }
.mood img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 52rem) { .mood { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--petrol); color: #fff; }
.kontakt .kicker { color: #dfe7e6; }
.kontakt h2 { max-width: 18ch; }
.kontakt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.kontakt address { font-style: normal; }
.kontakt a { color: #fff; }
.kontakt .gross { font-size: clamp(1.4rem, 2.6vw, 2rem); display: inline-block; margin-bottom: .35rem; }
.kontakt .knopf { background: #fff; color: var(--tinte); border-color: #fff; }
.kontakt .knopf:hover { background: transparent; color: #fff; }
.kontakt :focus-visible { outline-color: #fff; }

.social { margin-top: 3rem; }
.social-titel { font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.social-kacheln { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.social-kacheln a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  width: 8.5rem; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .6); color: #fff; text-decoration: none; font-size: .95rem; }
.social-kacheln a:hover { background: #fff; color: var(--petrol); }
.social-kacheln svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social-kacheln svg .voll { fill: currentColor; stroke: none; }

/* ---------- Fuß ---------- */
.fuss { background: var(--fuss); color: #fff; padding: 2.5rem 0; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.fuss ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; }
.fuss a { color: #fff; }
.fuss-credit { text-transform: none; letter-spacing: .04em; opacity: .9; }
.fuss :focus-visible { outline-color: #fff; }

/* Prototyp-Hinweis */
.proto { background: #fff6d6; color: var(--tinte); font-size: .95rem; padding: .6rem var(--rand); text-align: center; border-bottom: 1px solid #e8d79a; }
.proto p { margin: 0 auto; max-width: none; }

/* Unterseiten */
.inhalt { padding: clamp(3rem, 7vw, 5rem) 0; }
.inhalt h1 { font-size: clamp(2rem, 4vw, 3rem); }
.inhalt h2 { font-size: 1.5rem; margin-top: 2rem; }
.inhalt li { max-width: 65ch; margin-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .z::before, .portraet::before { forced-color-adjust: none; background: Highlight; opacity: .4; }
  .kachel { border: 2px solid CanvasText; }
  .knopf, .rund-knopf { border: 2px solid ButtonText; }
}
@media print {
  .kopf, .vignetten-steuerung, .proto, .galerie-knopf, dialog { display: none !important; }
}
