/* ARTefakti – ruhiger Galerie-Stil
   Farben, Schriften und Abstände zentral als Variablen. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-normal.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}

:root {
  --ink: #161514;
  --text: #2b2926;
  --muted: #77726b;
  --line: #e7e4df;
  --paper: #ffffff;
  --tint: #f7f5f2;
  --magenta: #e2336b;
  --orange: #f28a2c;
  --verlauf: linear-gradient(90deg, var(--magenta), var(--orange));
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(72px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 300 17px/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.klein { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.lead { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.25; color: var(--ink); font-style: italic; }
.lead-s { font-size: clamp(18px, 1.6vw, 21px); max-width: 720px; color: var(--text); }
.meta { font-size: 14px; color: var(--muted); margin: 0; }

/* Wortmarke: ART e fakti mit Farbverlauf-e */
.wm { font-family: var(--serif); font-weight: 800; color: var(--ink); letter-spacing: -.005em; white-space: nowrap; }
.wm-e {
  background: var(--verlauf); -webkit-background-clip: text; background-clip: text;
  color: transparent; margin: 0 .06em; display: inline-block;
}

/* Buttons & Links */
.btn {
  display: inline-block; padding: 14px 28px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 400; letter-spacing: .03em;
  border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.textlink {
  text-decoration: none; font-size: 15px; font-weight: 400; color: var(--ink);
  background-image: var(--verlauf); background-size: 100% 1px; background-repeat: no-repeat;
  background-position: 0 100%; padding-bottom: 2px; transition: background-size .25s;
}
.textlink:hover { background-size: 100% 2px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { text-decoration: none; font-size: 26px; }
.brand-logo { display: block; line-height: 0; }
.brand-logo img { height: 78px; width: auto; }
.page-home .brand-logo { visibility: hidden; } /* Startseite: Logo steht schon groß im Hero */
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 400; color: var(--text); padding: 6px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.main-nav .lang { font-size: 13px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 4px 9px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); font: 400 14px var(--sans); padding: 8px 14px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: var(--space); }
.hero-mark { position: relative; container-type: inline-size; }
.hero-mark img { width: 100%; }
.hero-wm { position: absolute; left: 19.6%; top: 39.7%; margin: 0; line-height: 1; }
.wm-hero { font-size: 15.6cqw; display: block; }
.hero-text p:not(.eyebrow):not(.lead):not(.links) { max-width: 440px; }

/* Abschnitte */
.section { padding-top: var(--space); }
.section:last-child { padding-bottom: var(--space); }
.section-tint { background: var(--tint); padding-bottom: var(--space); margin-top: var(--space); }
.section-tint + .section { padding-top: var(--space); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.zwei-spalten { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.page-head { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(40px, 5vw, 72px); }
main > .wrap:last-child, main > section:last-child { padding-bottom: var(--space); }

/* Galerie */
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); align-items: end; }
.galerie-klein { grid-template-columns: repeat(4, 1fr); }
.werk a { text-decoration: none; display: block; }
.werk-frame { display: flex; align-items: flex-end; justify-content: center; }
.karten-bild { position: relative; display: block; line-height: 0; transition: transform .4s ease; }
.werk-frame img { max-height: 520px; width: auto; object-fit: contain; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 28px -14px rgba(0,0,0,.25); }
.werk-breit { grid-column: span 2; }
.werk-breit .karten-bild, .werk-breit .werk-frame img { width: 100%; }
.werk a:hover .karten-bild { transform: translateY(-4px); }
.werk-caption { padding-top: 20px; }
.werk-caption h3 { font-size: 20px; margin: 0 0 4px; }
.untertitel { font-style: italic; font-weight: 400; color: var(--muted); font-size: .85em; }
.preis { font-size: 14px; margin: 2px 0 0; color: var(--ink); }
.is-off { color: var(--muted); }

/* Werke-Seite: Kopf zweispaltig wie die Serien, darunter Serien-Übersicht mit Vorschaubildern */
.page-head-werke { padding-bottom: clamp(16px, 2vw, 24px); }
.werke-kopf { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.werke-kopf h1 { margin: 0; }
.werke-kopf .lead-s { margin-top: 0; }
.serien-nav { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 3vw, 44px); }
.serien-nav a { text-decoration: none; color: var(--text); display: block; }
.sn-bild { display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); margin-bottom: 10px; }
.serien-nav .sn-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.serien-nav a:hover .sn-bild img { transform: scale(1.04); }
.sn-titel { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.25; color: var(--ink); }
.sn-anzahl { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.serien > .serie:first-child { padding-top: clamp(32px, 4vw, 56px); }
.serie { padding-top: clamp(56px, 8vw, 112px); scroll-margin-top: 104px; }
.serie-head { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); padding-top: 28px; }
.serie-head p { max-width: 640px; color: var(--text); }
.serie-text p:first-child { margin-top: 0; }
.serie-text p:last-child { margin-bottom: 0; }
.serie-text .serie-zitat { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--ink); }

/* Werk-Detail */
.crumb { padding-top: 32px; font-size: 14px; }
.crumb a { text-decoration: none; color: var(--muted); }
.werk-detail { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); padding-top: 24px; align-items: start; }
.werk-bild { margin: 0; background: var(--tint); padding: clamp(24px, 5vw, 72px); display: flex; justify-content: center; }
.werk-bild img { max-height: 76vh; width: auto; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 20px 40px -20px rgba(0,0,0,.35); }
.werk-info { position: sticky; top: 100px; }
.werk-info h1 { font-size: clamp(34px, 4vw, 52px); }
.preis-gross { font-size: 20px; color: var(--ink); font-weight: 400; }
.fakten { margin: 28px 0; border-top: 1px solid var(--line); }
.fakten div { display: grid; grid-template-columns: 120px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fakten dt { color: var(--muted); }
.fakten dd { margin: 0; }
.werk-text { font-size: 16px; }
.kauf { margin-top: 44px; padding: 26px 28px; background: var(--tint); font-size: 15px; }
.kauf h2 { font-size: 20px; }
.kauf ol { padding-left: 20px; margin: 0 0 14px; }
.kauf li { margin-bottom: 6px; }
.kauf p { margin: 0; font-size: 14px; }
.blaettern { display: flex; justify-content: space-between; padding-top: 56px; font-size: 15px; }
.blaettern a { text-decoration: none; color: var(--muted); }
.blaettern a:hover { color: var(--ink); }

/* Säulen & Formate */
.saeulen { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.saeule { display: block; background: #fff; padding: clamp(28px, 3vw, 44px); text-decoration: none; border-top: 2px solid transparent; border-image: var(--verlauf) 1; border-image-slice: 1; border-width: 2px 0 0; border-style: solid; transition: transform .25s; }
.saeule:hover { transform: translateY(-3px); }
.saeule p { font-size: 16px; }
.formate { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.format { padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line); }
.format:nth-child(odd) { border-right: 1px solid var(--line); }
.format:nth-child(even) { padding-left: 40px; }
.format .meta { margin-bottom: 12px; }
.hinweis { margin-top: 40px; padding-left: 20px; border-left: 2px solid var(--orange); max-width: 720px; }
.liste { padding-left: 18px; margin: 0 0 1.4em; }
.liste li { margin-bottom: 6px; }

/* Termine */
.reihe h3 { font-size: 26px; }
.termine { list-style: none; padding: 0; margin: 20px 0 20px; border-top: 1px solid var(--line); }
.termin { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.termin-datum { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.termin-status { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.termin.is-vorbei { opacity: .45; }
.termin.is-heute .termin-status { color: var(--magenta); }

/* Interview & CTA */
.interview { max-width: 900px; }
.interview blockquote { margin: 0 0 28px; padding: 0; }
.interview blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; color: var(--ink); }
.about-teaser img, .about img { width: 100%; max-width: 420px; }
.about figure { margin: 0; }
.ausstellungen { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.ausst { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ausst-jahr { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.3; }
.ausst h3 { margin: 0 0 4px; }
.ausst .meta { margin-bottom: 12px; }
.ausst-bilder { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ausst-bilder img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.ausst-bilder a:hover img { opacity: .85; }
.ausst-bilder li:first-child { grid-column: span 2; }
.ausst-bilder li:first-child img { aspect-ratio: auto; }
.platzhalter { aspect-ratio: 1; background: var(--tint); border: 1px dashed #d6d1ca; display: flex; align-items: center; justify-content: center; }
.platzhalter span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) { .ausst { grid-template-columns: 1fr; } .ausst-bilder { grid-template-columns: repeat(2, 1fr); } }
.cta { text-align: center; }
.cta h2 { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Formular */
.formular { display: grid; gap: 20px; max-width: 640px; }
.formular label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.formular input, .formular select, .formular textarea {
  font: 300 17px/1.5 var(--sans); color: var(--ink); padding: 12px 0; border: 0; border-bottom: 1px solid #cfcac3;
  background: transparent; border-radius: 0; width: 100%;
}
.formular select { padding-right: 24px; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center; }
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-bottom-color: var(--ink); }
.formular .check { grid-template-columns: 20px 1fr; align-items: start; gap: 12px; color: var(--text); }
.formular .check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); }
.formular [hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.kontakt-info { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); }
.kontakt { grid-template-columns: 7fr 5fr; }

/* Rechtstexte */
.rechtstext h2 { font-size: 21px; margin-top: 2em; }
.rechtstext h1 { margin-bottom: .8em; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.site-footer .brand { font-size: 24px; display: inline-block; margin-bottom: 12px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { text-decoration: none; color: var(--text); }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin: 48px 0 0; font-size: 13px; color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .galerie-klein { grid-template-columns: repeat(2, 1fr); }
  .saeulen, .drei { grid-template-columns: 1fr; }
  .werk-detail { grid-template-columns: 1fr; }
  .werk-info { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

/* Smartphone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { height: 72px; }
  .brand-logo img { height: 58px; }
  .brand { font-size: 23px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px var(--gutter) 32px; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 14px; }
  .main-nav a { font-size: 19px; }
  .hero, .zwei-spalten, .kontakt, .serie-head, .werke-kopf { grid-template-columns: 1fr; }
  .serien-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 118px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .serien-nav a { scroll-snap-align: start; }
  .hero { padding-top: 8px; }
  .formate { grid-template-columns: 1fr; }
  .format, .format:nth-child(even) { padding: 28px 0; border-right: 0; }
  .format:nth-child(odd) { border-right: 0; }
  .kontakt-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .termin { grid-template-columns: 110px 1fr; }
  .termin-status { grid-column: 2; }
  .galerie { gap: 48px 16px; }
  .werk-caption h3 { font-size: 17px; }
}
@media (max-width: 420px) {
  .galerie { grid-template-columns: 1fr; }
  .werk-breit { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Bildergalerie auf der Werkseite (Werk, Raumansichten, Details) */
.werk-medien { min-width: 0; }
.karussell { position: relative; padding: 0; display: block; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 0; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; height: min(76vh, 760px); padding: clamp(16px, 4vw, 56px); }
.slide img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.werk-bild .slide-werk img { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 20px 40px -20px rgba(0,0,0,.35); }
.werk-bild .slide-raum, .werk-bild .slide-detail, .werk-bild .slide-kante { padding: 0; }
.werk-bild .slide-raum img, .werk-bild .slide-detail img, .werk-bild .slide-kante img { box-shadow: none; max-height: 100%; }
.pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font: 400 26px/1 var(--serif); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.pfeil:hover { background: #fff; }
.pfeil-zurueck { left: 12px; }
.pfeil-weiter { right: 12px; }
.karussell figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.9); padding: 4px 10px; font-size: 13px; color: var(--text); }
.zaehler { color: var(--muted); margin-right: 6px; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs a { display: block; width: 64px; height: 64px; opacity: .5; transition: opacity .2s; outline-offset: 2px; }
.thumbs a:hover { opacity: .85; }
.thumbs a[aria-current="true"] { opacity: 1; outline: 1px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Galerie-Karten: Raumansicht beim Darüberfahren */
.werk-frame { position: relative; }
/* Raumansicht liegt exakt über dem Werkfoto (gleiche Breite und Höhe) */
.werk-frame .raum-hover { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; box-shadow: none; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
@media (hover: hover) { .werk a:hover .raum-hover { opacity: 1; } }
@media (hover: none) { .raum-hover { display: none; } }
@media (max-width: 760px) {
  .slide { height: 72vw; padding: 12px; }
  .pfeil { width: 36px; height: 36px; font-size: 22px; }
  .thumbs a { width: 52px; height: 52px; }
}

.format-preis { font-size: 16px; color: var(--ink); font-weight: 400; margin: -4px 0 14px; }
.format-preis .muted { font-size: 14px; font-weight: 300; }
.preis-hinweis { margin: 16px 0 0; }
.preis-zusatz { display: block; font-size: 13px; color: var(--muted); font-weight: 300; margin-top: 2px; }
.preise-alle { margin-top: 40px; }

/* Kreativbegleitung: Sitzungsablauf und Vergleich */
.schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 0; }
.schritte li { counter-increment: schritt; position: relative; padding: 0 0 22px 52px; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--serif); font-size: 17px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.schritte strong { color: var(--ink); }
.vergleich { background: var(--tint); padding: clamp(28px, 4vw, 56px); }
.vergleich-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 8px; }
.vergleich-spalten h3 { font-size: 20px; }
.format p a { color: var(--ink); }
@media (max-width: 760px) { .vergleich-spalten { grid-template-columns: 1fr; } }
.format-inkl { font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.format-inkl strong { color: var(--ink); }
