/*
Theme Name: Robert Steinmüller – Buch + Grafik
Theme URI: https://www.robertsteinmueller.de
Author: Robert Steinmüller
Description: Portfolio mit Buchliste, Grafik-Wand, Vita und Kauf per PayPal oder E-Mail. Feine Linien, große Titel in Instrument Serif, Text in Red Hat Mono. Schriften liegen im Theme, es werden keine externen Dienste geladen.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steinmueller
*/

/* ---------- Schriften (lokal) ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/red-hat-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/red-hat-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/red-hat-mono-latin-600-normal.woff2") format("woff2"); }

/* ---------- Grundlagen ---------- */
:root {
	--ink: #111;
	--paper: #fff;
	--hover: #f4f4f2;
	--line: 1px solid var(--ink);
	--pad: 28px;
	--serif: "Instrument Serif", Georgia, serif;
	--mono: "Red Hat Mono", ui-monospace, monospace;
	--title-max: 132px;
	--fitk: 11;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 13px; letter-spacing: 0.4px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; letter-spacing: inherit; text-transform: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rs { width: 100%; overflow-x: clip; }

/* ---------- Kopf ---------- */
.rs-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px var(--pad); border-bottom: var(--line); text-transform: uppercase; }
.rs-brand { font-weight: 600; font-size: 15px; letter-spacing: 1px; }
.rs-nav { display: flex; gap: 32px; flex-wrap: wrap; }
.rs-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- Zeilen & Kategorien ---------- */
.rs-intro { border-bottom: var(--line); text-transform: uppercase; }
.rs-intro > div { padding: 18px var(--pad); }
.rs-cat { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px var(--pad); border-bottom: var(--line); text-transform: uppercase; }
.rs-cat button { text-transform: uppercase; }
.rs-cat button:hover { text-decoration: underline; }

/* ---------- Buchliste ---------- */
.rs-book { border-bottom: var(--line); }
.rs-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 240px; align-items: stretch; width: 100%; color: var(--ink); text-decoration: none; }
a.rs-row:hover { text-decoration: none; }
.rs-row:hover { background: var(--hover); }
.rs-num { padding: 20px 0 0 var(--pad); }
.rs-fit { display: block; min-width: 0; padding: 10px 24px 14px 0; align-self: center; container-type: inline-size; }
.rs-title { display: block; white-space: nowrap; font-family: var(--serif); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; font-size: clamp(30px, calc(var(--fitk) * 1cqi), var(--title-max)); }
.rs-row:hover .rs-title, .rs-row[aria-expanded="true"] .rs-title { font-style: italic; }
.rs-meta { padding: 20px; border-left: var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.rs-cover { border-left: var(--line); background: #000; min-height: 150px; overflow: hidden; }
.rs-cover img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.rs-touchcover { display: none; }

/* Aufgeklappt */
.rs-open { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); border-top: var(--line); }
.rs-open-media { border-right: var(--line); display: flex; flex-direction: column; min-width: 0; }
.rs-stage { background: #000; aspect-ratio: 1000 / 697; overflow: hidden; }
.rs-stage-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-ctrl { display: flex; justify-content: space-between; align-items: center; border-top: var(--line); text-transform: uppercase; }
.rs-ctrl button { padding: 14px var(--pad); min-height: 48px; }
.rs-ctrl button:hover { background: var(--hover); }
.rs-prev { border-right: var(--line); }
.rs-next { border-left: var(--line); }
.rs-thumbs { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px var(--pad) 16px; border-top: var(--line); }
.rs-thumb { width: 88px; height: 61px; background: #000; outline-offset: 2px; }
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-thumb.is-active { outline: 1px solid var(--ink); }
.rs-open-info { display: flex; flex-direction: column; min-width: 0; }
.rs-text { padding: 22px var(--pad); font-size: 15px; line-height: 1.6; letter-spacing: 0.1px; }
.rs-text { max-height: 400px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.rs-text p { margin: 0 0 12px; }
.rs-text.has-more { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.rs-text p:last-child { margin-bottom: 0; }
.rs-spec { display: flex; justify-content: space-between; gap: 16px; padding: 9px var(--pad); border-top: var(--line); text-transform: uppercase; }
.rs-spec span:last-child { text-align: right; }
.rs-award { font-weight: 600; }
.rs-buy { margin-top: auto; border-top: var(--line); }
.rs-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px var(--pad) 10px; text-transform: uppercase; }
.rs-price strong { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.02em; text-transform: none; white-space: nowrap; }
.rs-btn { display: flex; justify-content: center; align-items: center; min-height: 48px; margin: 0 var(--pad) 8px; padding: 10px 16px; border: var(--line); background: var(--paper); color: var(--ink); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; text-align: center; }
.rs-btn:hover { text-decoration: none; background: var(--hover); }
.rs-btn-dark { background: var(--ink); color: var(--paper); }
.rs-btn-dark:hover { background: #333; }
.rs-btn-block { margin: 0; border: 0; min-height: 56px; }
.rs-btn-inline { display: inline-flex; margin: 8px 0 0; }
.rs-small { margin: 4px var(--pad) 14px; font-size: 11px; text-transform: uppercase; }
.rs-small a { text-decoration: underline; }
.rs-sold { padding: 16px var(--pad); text-transform: uppercase; text-align: center; text-decoration: line-through; }
.rs-alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--pad); border-top: var(--line); text-transform: uppercase; }
.rs-alt span:last-child { white-space: nowrap; }

/* Bild am Mauszeiger */
.rs-float { position: fixed; z-index: 60; pointer-events: none; width: 460px; aspect-ratio: 1000 / 697; background: #000; box-shadow: 0 0 0 1px var(--ink), 0 24px 60px rgba(0, 0, 0, .25); left: 0; top: 0; }
.rs-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-float.is-in { animation: rsPop .18s ease-out; }
@keyframes rsPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ---------- Grafik-Wand ---------- */
.rs-wall { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1px; background: var(--paper); border-bottom: var(--line); padding-bottom: 1px; }
.rs-tile { position: relative; display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 240 / 340; overflow: hidden; background: var(--paper); outline: 1px solid var(--ink); z-index: 0; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.rs-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-tile-big { aspect-ratio: auto; }
.rs-tile-big { grid-column: span 2; grid-row: span 2; }
.rs-tile:hover, .rs-tile:focus-visible { transform: scale(1.22); z-index: 5; box-shadow: 0 0 0 1px var(--ink), 0 24px 48px rgba(0, 0, 0, .28); }
.rs-tile-big:hover, .rs-tile-big:focus-visible { transform: scale(1.1); }
.rs-tile-label { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 2px 6px; font-size: 11px; text-transform: uppercase; border-top: var(--line); border-right: var(--line); }

/* Großansicht */
.rs-lightbox { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; }
.rs-lb-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: var(--line); text-transform: uppercase; }
.rs-lb-bar > span:first-child { padding: 14px var(--pad); }
.rs-lb-bar button { padding: 14px var(--pad); min-height: 48px; }
.rs-lb-close { border-left: var(--line); }
.rs-lb-bottom { border-bottom: 0; border-top: var(--line); }
.rs-lb-prev { border-right: var(--line); }
.rs-lb-next { border-left: var(--line); }
.rs-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--pad); cursor: e-resize; }
.rs-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; box-shadow: 0 0 0 1px var(--ink); }
body.rs-noscroll { overflow: hidden; }

/* ---------- Information (Startseite) ---------- */
.rs-info { border-bottom: var(--line); }
.rs-claim { margin: 0; padding: 28px var(--pad) 32px; font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.02em; max-width: 1240px; }
.rs-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--line); }
.rs-cols3 > div { padding: 18px var(--pad) 22px; border-right: var(--line); }
.rs-cols3 > div:last-child { border-right: 0; }
.rs-col-title { text-transform: uppercase; margin-bottom: 10px; }
.rs-yr { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: var(--line); }
.rs-more-link, .rs-back { display: flex; justify-content: space-between; gap: 12px; padding: 16px var(--pad); border-top: var(--line); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.rs-back { border-top: 0; border-bottom: var(--line); }

/* ---------- Kontakt ---------- */
.rs-kontakt { border-bottom: var(--line); }
.rs-mail { display: block; padding: 26px var(--pad) 32px; font-family: var(--serif); font-size: clamp(30px, 4.2vw, 56px); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rs-mail:hover { font-style: italic; text-decoration: none; }
.rs-kontakt-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); border-top: var(--line); }
.rs-kontakt-text { padding: 18px var(--pad) 24px; border-right: var(--line); font-size: 15px; line-height: 1.6; letter-spacing: 0.1px; }
.rs-kontakt-text p { margin: 0 0 8px; }
.rs-kontakt-text ul { margin: 0; padding-left: 18px; }
.rs-kontakt-links { padding: 18px var(--pad) 24px; display: flex; flex-direction: column; gap: 8px; text-transform: uppercase; }

/* ---------- Footer ---------- */
.rs-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px var(--pad); text-transform: uppercase; }
.rs-footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Information-Seite ---------- */
.rs-h1 { margin: 0; padding: 28px var(--pad) 34px; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 132px); line-height: 0.95; letter-spacing: -0.02em; border-bottom: var(--line); }
.rs-h1-small { padding: 0 0 18px; border: 0; font-size: clamp(40px, 5vw, 64px); }
.rs-bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-bottom: var(--line); }
.rs-bio-side { padding: 22px var(--pad); border-right: var(--line); text-transform: uppercase; display: flex; flex-direction: column; gap: 6px; }
.rs-bio-side .rs-gap { margin-top: 14px; }
.rs-bio-main { padding: 22px var(--pad) 30px; }
.rs-bio-big { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.04; letter-spacing: -0.02em; max-width: 980px; }
.rs-bio-text { margin: 0; font-size: 15px; line-height: 1.65; letter-spacing: 0.1px; max-width: 760px; }
.rs-vita { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-bottom: var(--line); }
.rs-vita-head { padding: 14px var(--pad); border-right: var(--line); text-transform: uppercase; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rs-count-i { font-style: italic; text-transform: none; white-space: nowrap; }
.rs-vita-row, .rs-vita-more { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 11px var(--pad); border-top: var(--line); }
.rs-vita-row:first-child { border-top: 0; }
.rs-vita-row:hover, .rs-vita-more:hover { background: var(--hover); }
.rs-up { text-transform: uppercase; }
.rs-vita .rs-extra { display: none; }
.rs-vita.is-open .rs-extra { display: grid; }
.rs-vita-more { width: 100%; min-height: 44px; text-transform: uppercase; border-top: var(--line); }
.rs-arrow { display: inline-block; transition: transform .15s ease; }
.rs-vita-more:hover .rs-arrow { transform: translateY(2px); }

/* ---------- Rechtliches ---------- */
.rs-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--line); }
.rs-jump a { padding: 22px var(--pad); border-right: var(--line); font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.02em; }
.rs-jump a:last-child { border-right: 0; }
.rs-jump a:hover { font-style: italic; text-decoration: none; }
.rs-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-bottom: var(--line); scroll-margin-top: 0; }
.rs-legal-head { padding: 22px var(--pad); border-right: var(--line); text-transform: uppercase; }
.rs-legal-body { padding: 22px var(--pad) 30px; max-width: 860px; font-size: 14px; line-height: 1.7; letter-spacing: 0.15px; }
.rs-legal-body h3 { margin: 26px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.rs-legal-body h3:first-child { margin-top: 0; }
.rs-legal-body p { margin: 0 0 12px; }
.rs-legal-body a { text-decoration: underline; }
.rs-legal-body a.rs-btn { text-decoration: none; }

/* ---------- Touch-Geräte: kleines Vorschaubild statt Bild am Mauszeiger ---------- */
@media (hover: none) {
	.rs-row { grid-template-columns: 72px minmax(0, 1fr) 240px 200px; }
	.rs-touchcover { display: block; }
	.rs-float { display: none !important; }
	.rs-tile:hover { transform: none; box-shadow: none; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1100px) {
	.rs-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	:root { --pad: 16px; }
	.rs-nav { gap: 16px; }
	.rs-row { grid-template-columns: 40px minmax(0, 1fr); }
	.rs-meta { display: none; }
	.rs-num { padding-top: 16px; }
	.rs-open, .rs-bio, .rs-vita, .rs-legal, .rs-kontakt-cols, .rs-cols3, .rs-jump { grid-template-columns: 1fr; }
	.rs-open-media, .rs-bio-side, .rs-vita-head, .rs-legal-head, .rs-kontakt-text, .rs-cols3 > div, .rs-jump a { border-right: 0; border-bottom: var(--line); }
	.rs-cols3 > div:last-child, .rs-jump a:last-child { border-bottom: 0; }
	.rs-vita-row, .rs-vita-more { grid-template-columns: 72px minmax(0, 1fr); }
	.rs-vita-row > span:last-child, .rs-vita-more > span:last-child { grid-column: 2; }
	.rs-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rs-float { display: none !important; }
	.rs-text { max-height: none; overflow: visible; }
}
@media (max-width: 820px) and (hover: none) {
	.rs-row { grid-template-columns: 40px minmax(0, 1fr) 110px; }
}
@media (max-width: 520px) {
	.rs-title { white-space: normal; overflow-wrap: anywhere; }
}
