/* rikioegerer.at – Werkverzeichnis
   Farben aus Rikis Raku-Arbeiten: Weiß der Glasur, Rauchschwarz der Reduktion, Kupfer aus dem Rauchbrand. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("schriften/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("schriften/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --weiss: #ffffff;
  --rauch: #1b1918;          /* Rauchschwarz: Schrift, Linien */
  --text: #2c2927;
  --grau: #625c57;           /* 6,6:1 auf Weiß */
  --linie: rgba(27, 25, 24, 0.14);
  --linie-stark: rgba(27, 25, 24, 0.32);
  --kupfer: #7f3a22;         /* aus dem Rauchbrand (Kugel, Nr. 02), 8,4:1 auf Weiß */
  --kupfer-hell: color-mix(in oklab, var(--kupfer) 14%, white);
  --flaeche: #f4f3f2;        /* neutrales Hellgrau nur für Platzhalter */

  --schrift: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(20px, 4vw, 48px);
  --breite: 1240px;
  --abstand: clamp(72px, 9vw, 128px);
  --radius: 12px;
  --kurve: cubic-bezier(.2, .8, .2, 1);
  --kopfhoehe: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopfhoehe) + 16px); }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--schrift); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--rauch); margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--kupfer-hell); color: var(--rauch); }
:focus-visible { outline: 2px solid var(--kupfer); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--linie-stark) transparent; accent-color: var(--kupfer); caret-color: var(--kupfer); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rauch); color: var(--weiss); padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Links und Knöpfe ---------- */
.textlink {
  color: var(--kupfer); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, var(--kupfer) 45%, white);
  transition: text-decoration-color .15s var(--kurve);
}
.textlink:hover { text-decoration-color: var(--kupfer); }
.knopf {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  background: var(--rauch); color: var(--weiss); border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 16px;
  transition: background .15s var(--kurve);
}
.knopf:hover { background: var(--kupfer); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--linie);
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); } }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--kopfhoehe); }
.marke { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--rauch); text-decoration: none; white-space: nowrap; }
.menu { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.menu a {
  display: inline-block; padding: 8px 0; text-decoration: none; color: var(--text); font-size: 15.5px;
  border-bottom: 1px solid transparent; transition: color .15s var(--kurve), border-color .15s var(--kurve);
}
.menu a:hover { color: var(--kupfer); }
.menu a[aria-current="true"] { color: var(--rauch); border-bottom-color: var(--kupfer); }
.menu-knopf { display: none; }

@media (max-width: 900px) {
  /* kein backdrop-filter: er würde das feste Menü in die Kopfzeile einsperren */
  .site-header { background: var(--weiss); backdrop-filter: none; }
  .menu-knopf {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--weiss); cursor: pointer; font-weight: 500;
  }
  .menu {
    display: none; position: fixed; left: 0; right: 0; top: var(--kopfhoehe); bottom: 0;
    background: var(--weiss); flex-direction: column; gap: 0; overflow-y: auto;
  }
  .menu[role="list"] { padding: 12px var(--rand) 32px;
  }
  .menu.offen { display: flex; }
  .menu li { border-bottom: 1px solid var(--linie); }
  .menu a { display: flex; align-items: center; min-height: 60px; font-size: 22px; width: 100%; border: 0; }
  .menu a[aria-current="true"] { color: var(--kupfer); }
  body.menu-offen { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 0; }
.hero-raster { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 {
  font-size: clamp(54px, 9.6vw, 136px); line-height: .92; font-weight: 300; letter-spacing: -0.035em;
}
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--rauch); max-width: 30ch; margin-top: clamp(22px, 2.6vw, 34px); }
.fakten { margin-top: clamp(32px, 3.6vw, 52px); border-top: 1px solid var(--linie); max-width: 520px; }
.fakten div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.fakten dt { color: var(--grau); font-size: 15px; }
.fakten dd { color: var(--rauch); font-size: 16px; }
.zahl { font-weight: 600; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(28px, 3vw, 40px); }

.hero-bild { margin: 0; }
.hero-bild img { width: 100%; max-height: min(74vh, 720px); object-fit: cover; border-radius: var(--radius); }
.hero-platz { aspect-ratio: 4 / 5; max-height: min(74vh, 720px); width: 100%; }
.hero-bild { position: relative; }
.hero-hinweis { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--rauch); font-size: 13.5px; font-weight: 500; box-shadow: 0 1px 2px rgba(27,25,24,.08), 0 4px 12px rgba(27,25,24,.08); }
.hero-spruch { margin-top: 14px; max-width: 46ch; }
.hero-spruch .spruch { display: block; font-size: 15px; line-height: 1.5; color: var(--text); }
.hero-spruch .quelle { display: block; margin-top: 4px; font-size: 13px; color: var(--grau); }
.hero-bild figcaption, .portrait figcaption { margin-top: 12px; font-size: 14px; color: var(--grau); }

.termin {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  margin-top: clamp(40px, 5vw, 72px); padding: 18px 0; border-top: 1px solid var(--rauch); border-bottom: 1px solid var(--linie);
}
.termin-label { color: var(--kupfer); font-weight: 600; font-size: 15px; }
.termin strong { font-weight: 500; color: var(--rauch); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: var(--abstand); }
.abschnitt h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.abschnitt-kopf { display: grid; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--rauch); }
.abschnitt-kopf p { color: var(--grau); font-size: clamp(17px, 1.4vw, 19px); max-width: 52ch; }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.zweispaltig.schmal-links { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.text > p + p { margin-top: 1.1em; }
.text p { max-width: 64ch; }
.text h2 + * { margin-top: 28px; }
.intro { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--rauch); margin: 0 0 28px; }
.ueber-text { }
#ueber-mich h2 { margin-bottom: 28px; }
.unter { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 48px 0 8px; }

.portrait { margin: 0; }
.platzhalter {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--flaeche);
  border: 1px dashed var(--linie-stark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center;
}
.platzhalter span { color: var(--rauch); font-weight: 500; }
.platzhalter small { color: var(--grau); font-size: 14px; max-width: 26ch; line-height: 1.45; }

.werdegang { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; position: relative; }
.werdegang::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--linie-stark); }
.werdegang li { position: relative; padding: 0 0 18px; }
.werdegang li:last-child { padding-bottom: 0; }
.werdegang li::before { content: ""; position: absolute; left: -25px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--weiss); border: 1.5px solid var(--kupfer); }
.werdegang .station { display: block; color: var(--rauch); line-height: 1.45; }
.werdegang .zusatz { display: block; margin-top: 3px; }
.tabelle { border-top: 1px solid var(--linie); }
.tabelle li { display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.jahr { color: var(--grau); }
.station { color: var(--rauch); }
.zusatz { display: block; color: var(--grau); font-size: 15px; margin-top: 2px; }
.tabelle-rahmen { overflow-x: auto; }
.aus-auswahl { margin: 0 0 12px; font-size: 14.5px; color: var(--grau); }
.aus-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rauch); }
.aus-liste > li { display: grid; grid-template-columns: 5.5em 1fr; gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 16.5px; line-height: 1.45; }
.aus-liste .jahr { color: var(--grau); font-variant-numeric: tabular-nums; }
.aus-liste ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aus-liste .titel { color: var(--rauch); }
.aus-liste .ort { color: var(--grau); }
@media (max-width: 600px) { .aus-liste > li { grid-template-columns: 3.2em 1fr; gap: 0 12px; font-size: 15.5px; } }
.aus-tabelle { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.aus-tabelle th { text-align: left; font-weight: 500; color: var(--grau); font-size: 14.5px; padding: 0 16px 10px 0; border-bottom: 1px solid var(--rauch); }
.aus-tabelle td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--linie); color: var(--rauch); vertical-align: top; }
.aus-tabelle th:first-child, .aus-tabelle td:first-child { width: 5.5em; }
.aus-tabelle td.jahr { color: var(--grau); }
.aus-tabelle tr.folgt td { color: var(--grau); }
.aus-tabelle + .notiz { margin-top: 14px; }
.tabelle-rahmen + .notiz { margin-top: 14px; }

/* ---------- Werkverzeichnis ---------- */
.gruppe { margin-top: clamp(40px, 5vw, 64px); }
.gruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.gruppe-kopf h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.015em; }
.notiz { color: var(--grau); max-width: 62ch; margin-top: 8px; font-size: 16px; }

.werke { --h: 300px; display: flex; flex-wrap: wrap; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.werke[role="list"] { margin-top: clamp(20px, 2.2vw, 28px); }
.werk {
  flex: var(--ar) 1 calc(var(--ar) * var(--h));
  max-width: calc(var(--ar) * var(--h) * 1.6);
  min-width: 0;
}
.werk-bild {
  display: block; width: 100%; padding: 0; border: 0; background: var(--flaeche); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
}
.werk-bild img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; transition: opacity .2s var(--kurve); }
.werk-bild:hover img { opacity: .9; }
.hero-bild .werk-bild { background: transparent; }
.werk-nr { margin-top: 12px; font-size: 13px; color: var(--kupfer); font-weight: 600; letter-spacing: .02em; }
.werk-titel { color: var(--rauch); font-size: 16.5px; line-height: 1.35; margin-top: 2px; }
.werk-meta { color: var(--grau); font-size: 14.5px; margin-top: 2px; }
.hero-bild .werk-nr { margin: 0 6px 0 0; display: inline; }

/* ---------- Kontakt ---------- */
.kontakt-liste { border-top: 1px solid var(--linie); }
.kontakt-liste .zeile { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.kontakt-liste dt { color: var(--grau); }
.kontakt-liste dd { color: var(--rauch); }
.kontakt-liste dd a:not(.textlink) { color: var(--kupfer); text-underline-offset: 4px; }

/* ---------- Rechtliches ---------- */
.h1-klein { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.recht-block { padding: 18px 0 20px; border-bottom: 1px solid var(--linie); }
.recht-block:first-child { border-top: 1px solid var(--linie); }
.recht-block h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin-bottom: 6px; }
.recht .text > p:last-child { margin-top: 28px; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: var(--abstand); border-top: 1px solid var(--rauch); }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 32px; font-size: 14.5px; color: var(--grau); }
.fuss ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.fuss a { text-decoration: none; display: inline-block; padding: 6px 0; }
.fuss a:hover { color: var(--kupfer); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius); background: var(--weiss); color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(27, 25, 24, .72); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; }
.lightbox img { width: 100%; max-height: calc(100dvh - 170px); object-fit: contain; background: var(--flaeche); }
.lightbox figcaption { padding: 14px 20px 0; }
.lb-titel { color: var(--rauch); font-weight: 500; }
.lb-meta { display: block; color: var(--grau); font-size: 14.5px; }
.lightbox .werk-nr { display: inline; margin-right: 6px; }
.lb-steuerung { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px 18px; }
.lb-steuerung button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--weiss); cursor: pointer;
}
.lb-steuerung button:hover { border-color: var(--rauch); }
.lb-schliessen { margin-left: auto; background: var(--rauch) !important; color: var(--weiss); border-color: var(--rauch) !important; }

/* ---------- Entwurfs-Platzhalter ---------- */
.einsetzen { display: inline-block; font-size: 13px; line-height: 1.4; color: #6b4e00; background: #fff4cc; border-radius: 4px; padding: 4px 8px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .werke { --h: 230px; } }
@media (max-width: 860px) {
  .hero-raster, .zweispaltig, .zweispaltig.schmal-links { grid-template-columns: 1fr; }
  .hero-bild { order: -1; }
  .hero-bild img { max-height: 62vh; }
  .hero-platz { aspect-ratio: 4 / 3; max-height: none; }
  .portrait { max-width: 420px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .werke { --h: 140px; gap: 26px 14px; }
  .werk-titel { font-size: 15px; }
  .werk-meta { font-size: 13.5px; }
  .fakten div, .kontakt-liste .zeile { grid-template-columns: 1fr; gap: 0; }
  .tabelle li { grid-template-columns: 3.4em 1fr; gap: 10px; }
  .lb-steuerung button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Anfrage aus der Werkansicht */
.lb-anfrage {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--kupfer); color: var(--weiss); text-decoration: none; font-weight: 500;
  transition: background .15s var(--kurve);
}
.lb-anfrage:hover { background: var(--rauch); }
.lb-steuerung .lb-schliessen { margin-left: auto; }
@media (max-width: 600px) { .lb-anfrage { width: 100%; justify-content: center; } }

/* Platzhalter im Werkverzeichnis */
.werk-platz { aspect-ratio: var(--ar); padding: 12px; }
.werk-doppelt { display: flex; gap: clamp(6px, 1vw, 12px); aspect-ratio: var(--ar); }
.werk-doppelt .werk-platz { flex: 1 1 0; min-width: 0; aspect-ratio: auto; }
.werk-doppelt .werk-bild { flex: 1 1 0; min-width: 0; }
.werk-doppelt .werk-bild img { aspect-ratio: 3 / 4; height: 100%; }
.portrait-bild { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* feste Reihe (z. B. die drei Tiere) bleibt am Computer nebeneinander */
.werk-leer { visibility: hidden; }
.umbruch-mobil { display: none; }
/* kürzere Reihe mittig, Bilder etwas höher als die Reihe darüber, aber nicht raumfüllend */
.werke.reihe-mitte { justify-content: center; }
.werke.reihe-mitte > .werk { flex: 0 1 calc(var(--ar) * var(--h) * 1.4); max-width: none; }
.werke.reihe { flex-wrap: nowrap; }
@media (max-width: 600px) { .werke.reihe { gap: 26px 10px; } .werke.reihe .werk-titel { font-size: 14px; } }

/* Hinweis auf einem Werkfoto, das noch ausgetauscht wird */
.werk-bild { position: relative; }
.bild-hinweis { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--rauch); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: left; box-shadow: 0 1px 2px rgba(27,25,24,.08), 0 4px 12px rgba(27,25,24,.08); }
@media (max-width: 600px) { .bild-hinweis { top: 6px; left: 6px; right: 6px; font-size: 11.5px; padding: 4px 8px; } }

@media (max-width: 600px) { .werk-doppelt .werk-platz { padding: 6px; } .werk-doppelt .platzhalter span { font-size: 13px; } .werk-doppelt .platzhalter small { font-size: 12px; } }

/* Reihen mit vier Stück: am Handy 2 × 2 */
@media (max-width: 600px) {
  .werke.reihe-4 { flex-wrap: wrap; }
  .werke.reihe-4 > .werk { flex: var(--ar) 1 0; max-width: none; }
  .werke.reihe-4 > .umbruch-mobil { display: block; flex-basis: 100%; height: 0; margin: 0; padding: 0; }
  .werke.reihe-4 > .werk[data-plaetze="2"] { flex-basis: 100%; order: 1; }  /* Vorder- und Rückseite als ganze Zeile darunter */
  .werke.reihe-4 > .werk-leer { display: none; }
}

/* lange Wörter in schmalen Kacheln umbrechen statt überstehen */
.werk p { overflow-wrap: anywhere; hyphens: auto; }

/* Seitenverhältnisse der Werkfotos (statt Inline-Styles: der Server erlaubt per CSP keine style-Attribute) */
.ar-0625 { --ar: 0.625; }
.ar-0648 { --ar: 0.648; }
.ar-0719 { --ar: 0.719; }
.ar-0735 { --ar: 0.735; }
.ar-0750 { --ar: 0.750; }
.ar-0793 { --ar: 0.793; }
.ar-0856 { --ar: 0.856; }
.ar-0883 { --ar: 0.883; }
.ar-0898 { --ar: 0.898; }
.ar-0978 { --ar: 0.978; }
.ar-1045 { --ar: 1.045; }
.ar-1233 { --ar: 1.233; }
.ar-1320 { --ar: 1.320; }
.ar-1333 { --ar: 1.333; }
.ar-1494 { --ar: 1.494; }
.ar-1500 { --ar: 1.500; }
.ar-1784 { --ar: 1.784; }
