/* Karin Ohlsen – Theme-Gestaltung
   Farben, Schrift und Abstände entsprechen dem abgestimmten Entwurf. */

@font-face { font-family: "KO Inter"; src: url("../fonts/inter-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "KO Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "KO Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
	--ko-ink: #1A1A1A;
	--ko-muted: #5A5A5A;
	--ko-line: #E6E6E6;
	--ko-bg: #FFFFFF;
	--ko-ph: #E4E1DB;
	--ko-gutter: clamp(16px, 4vw, 48px);
	--ko-font: "KO Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
	margin: 0;
	background: var(--ko-bg);
	color: var(--ko-ink);
	font-family: var(--ko-font);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.006em;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ko-ink); text-decoration: none; }
a:hover { color: var(--ko-muted); }
:focus-visible { outline: 2px solid var(--ko-ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.ko-muted { color: var(--ko-muted); }
.ko-nowrap { white-space: nowrap; }
.ko-underline { text-decoration: underline; text-underline-offset: 4px; }
.ko-skip { position: absolute; left: -9999px; top: 8px; background: var(--ko-ink); color: #fff; padding: 8px 12px; z-index: 200; }
.ko-skip:focus { left: 8px; color: #fff; }

.ko-wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--ko-gutter); padding-right: var(--ko-gutter); }
.ko-wrap--wide { max-width: 1440px; }

.ko-label { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.ko-h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; }
.ko-lead { font-size: 22px; font-weight: 300; line-height: 1.45; }

.ko-linkbtn { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ko-iconbtn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ko-ink); cursor: pointer; }
.ko-button { min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; gap: 10px; background: var(--ko-muted); color: #fff; font-size: 15px; letter-spacing: 0.02em; }
.ko-button:hover { background: #444; color: #fff; }

/* ---------- Kopfzeile ---------- */
.ko-header__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-top: 36px; padding-bottom: 36px; transition: padding .25s ease; }
.ko-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: inherit; }
.ko-brand__sub { font-weight: 300; color: var(--ko-muted); }
.ko-brand__logo { height: 26px; width: auto; mix-blend-mode: multiply; }
.ko-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.ko-nav a { color: inherit; }
.ko-nav a.is-active { text-decoration: underline; text-underline-offset: 6px; }
.ko-nav__merk { display: inline-flex; align-items: center; gap: 6px; }
.ko-merk-count { color: var(--ko-muted); }

/* Startseite: Kopfzeile liegt über dem Bild und bleibt beim Scrollen stehen. */
.ko-has-hero .ko-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, color .25s ease; }
.admin-bar.ko-has-hero .ko-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.ko-has-hero .ko-header { top: 46px; } }
.ko-hero-light .ko-header:not(.is-scrolled) { color: #fff; }
.ko-hero-light .ko-header:not(.is-scrolled) .ko-brand__sub,
.ko-hero-light .ko-header:not(.is-scrolled) .ko-merk-count { color: rgba(255,255,255,.85); }
.ko-hero-light .ko-header:not(.is-scrolled) .ko-brand__logo { filter: invert(1); mix-blend-mode: screen; }
.ko-hero-light .ko-header:not(.is-scrolled) a:hover { color: rgba(255,255,255,.75); }
.ko-has-hero .ko-header.is-scrolled { background: rgba(255,255,255,.96); border-bottom-color: var(--ko-line); color: var(--ko-ink); }
.ko-has-hero .ko-header.is-scrolled .ko-header__inner { padding-top: 20px; padding-bottom: 20px; }

/* ---------- Startseite ---------- */
.ko-hero { position: relative; background: var(--ko-ph); height: clamp(520px, 62vw, 900px); overflow: hidden; }
.ko-hero__link { display: block; height: 100%; color: inherit; }
.ko-hero__img { width: 100%; height: 100%; object-fit: cover; }
.ko-hero__cap { position: absolute; right: var(--ko-gutter); bottom: 20px; font-size: 13px; color: var(--ko-ink); }
.ko-hero-light .ko-hero__cap { color: #fff; }
.ko-home { padding: 72px 0 96px; }
.ko-home__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--ko-line); font-size: 15px; }
.ko-home__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 56px 40px; align-items: end; }

/* ---------- Kacheln ---------- */
.ko-tile { list-style: none; }
.ko-tile--link { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.ko-tile__img { width: 100%; height: auto; }
.ko-tile__ph { display: block; width: 100%; background: var(--ko-ph); }
.ko-tile__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 1.4; }

/* ---------- Werke ---------- */
.ko-werke__head { display: flex; flex-direction: column; gap: 28px; padding: 56px 0 48px; }
.ko-filter { border-top: 1px solid var(--ko-line); border-bottom: 1px solid var(--ko-line); }
.ko-filter__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.ko-filter__bar .ko-linkbtn { font-size: 14px; }
.ko-filter__toggle { min-height: 56px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ko-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.ko-filter__chev { transition: transform .2s ease; }
.ko-filter__toggle[aria-expanded="true"] .ko-filter__chev { transform: rotate(180deg); }
.ko-filter__panel { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 16px; }
.ko-filter__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.ko-filter__label { width: 112px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ko-muted); }
.ko-chip { min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ko-muted); cursor: pointer; }
.ko-chip[aria-pressed="true"] { color: var(--ko-ink); text-decoration: underline; text-underline-offset: 6px; }
.ko-empty { margin: 0 0 120px; font-size: 18px; font-weight: 300; color: var(--ko-muted); }

.ko-masonry { columns: 5 220px; column-gap: 40px; margin: 0; padding: 0 0 40px; }
.ko-masonry .ko-tile { break-inside: avoid; margin: 0 0 48px; }
.ko-tile__btn { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.ko-tile__btn .ko-tile__cap { padding-top: 10px; }
.ko-tile__btn:hover .ko-tile__img { opacity: .92; }

/* ---------- Großansicht ---------- */
.ko-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.98); display: flex; flex-direction: column; padding: 24px var(--ko-gutter); }
.ko-lightbox__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.ko-lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.ko-lightbox__figure { flex: 1; height: 100%; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
.ko-lightbox__figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ko-lightbox__ph { display: block; height: min(72vh, 900px); max-width: 100%; background: var(--ko-ph); }
.ko-lightbox__cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; padding: 20px 0 8px; font-size: 15px; }
.ko-lightbox__cap span:empty { display: none; }
.ko-merkbtn { margin: -12px 0; display: inline-flex; align-items: center; gap: 8px; }
.ko-merkbtn .ko-merkbtn__on { display: none; }
.ko-merkbtn[aria-pressed="true"] .ko-merkbtn__on { display: inline-flex; }
.ko-merkbtn[aria-pressed="true"] .ko-merkbtn__off { display: none; }
.ko-merkbtn__on, .ko-merkbtn__off { display: inline-flex; }
body.ko-lb-open { overflow: hidden; }

/* ---------- Seiten aus Abschnitten (Info, Impressum/Datenschutz) ---------- */
.ko-main { min-height: 50vh; }
.ko-page { padding-top: 40px; padding-bottom: 120px; }
.ko-page--sections { padding-bottom: 420px; }
.ko-page > .ko-h1 { margin: 56px 0 40px; }
.ko-content > *:first-child { margin-top: 0; }
.ko-content p { margin: 0 0 1em; }
.ko-content a { text-decoration: underline; text-underline-offset: 4px; }

.ko-section { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 56px 0; border-top: 1px solid var(--ko-line); }
.ko-section > h2 { flex: 1 1 200px; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.ko-section__body { flex: 999 1 560px; min-width: 0; }
.ko-section__body > p { margin: 0 0 8px; }
.ko-section__body .ko-lead { margin: 0 0 8px; }
.ko-section__body .ko-muted { font-size: 15px; }
#vita.ko-section { padding-bottom: 160px; }

.ko-vita { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.ko-portrait { flex: 0 0 227px; margin: 0; }
.ko-portrait img { width: 227px; height: auto; }
.ko-vita__text { flex: 1 1 320px; font-size: 17px; line-height: 1.65; font-weight: 300; }
.ko-vita__text p { margin: 0 0 20px; }
.ko-vita__text .ko-lead { font-size: 22px; line-height: 1.5; font-weight: 300; }
.ko-more a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.ko-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.ko-col { flex: 1 1 300px; min-width: 0; font-size: 15px; line-height: 1.65; }
.ko-col h3, .ko-prose h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--ko-muted); }
.ko-col h3:not(:first-child) { margin-top: 24px; }
.ko-col p { margin: 0; }
.ko-year { position: relative; padding-left: 72px; margin: 0 0 14px !important; font-size: 15px; line-height: 1.5; }
.ko-year strong:first-child { position: absolute; left: 0; top: 0; font-weight: 400; color: var(--ko-muted); }
.ko-col:has(.ko-year) h3 { margin-bottom: 20px; }

.ko-mail { margin: 0 0 12px !important; }
.ko-mail a { font-size: 32px; font-weight: 300; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ko-mail a { font-size: 24px; } }

.ko-prose { max-width: 760px; font-size: 15px; line-height: 1.65; color: #3A3A3A; }
.ko-prose h3 { color: var(--ko-ink); margin-top: 28px; }
.ko-prose h3:first-child { margin-top: 0; }
.ko-prose p { margin: 0 0 8px; }

/* ---------- Interview ---------- */
.ko-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.ko-interview { padding-top: 40px; padding-bottom: 200px; }
.ko-article { max-width: 760px; margin: 32px auto 0; }
.ko-article__head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.ko-article__head .ko-label { font-size: 12px; }
.ko-article__title { margin: 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.ko-article .ko-meta { font-size: 15px; color: var(--ko-muted); margin: 0 0 56px; padding-bottom: 40px; border-bottom: 1px solid var(--ko-line); }
.ko-frage { margin: 48px 0 14px !important; font-size: 15px; line-height: 1.6; font-weight: 500; }
.ko-frage strong { font-weight: 400; color: var(--ko-muted); }
.ko-meta + .ko-frage { margin-top: 0 !important; }
.ko-antwort { margin: 0 0 14px !important; font-size: 18px; line-height: 1.7; font-weight: 300; }
.ko-antwort strong { font-size: 15px; font-weight: 400; color: var(--ko-muted); }
.ko-zitat { margin: 32px 0 !important; padding: 18px 0 !important; border: 0; border-top: 1px solid var(--ko-line); border-bottom: 1px solid var(--ko-line); font-size: 25px; line-height: 1.4; font-weight: 300; }
.ko-zitat p { margin: 0 !important; }
.ko-zitat cite { display: none; }

/* ---------- Merkliste ---------- */
.ko-merkliste { padding-bottom: 120px; }
.ko-merkliste__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; padding: 56px 0 40px; margin-bottom: 48px; border-bottom: 1px solid var(--ko-line); }
.ko-merkliste__intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.ko-merkliste__text { font-size: 15px; line-height: 1.6; }
.ko-merkliste__text p { margin: 0; }
.ko-merkliste__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 15px; }
.ko-merkliste__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 0 80px; }
.ko-merkliste__empty .ko-lead { margin: 0; max-width: 560px; }
.ko-merkliste__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 64px 40px; align-items: end; }
.ko-ml-item { display: flex; flex-direction: column; gap: 12px; }
.ko-ml-item__media { height: 280px; display: flex; align-items: flex-end; }
.ko-ml-item__media img, .ko-ml-item__media .ko-tile__ph { max-width: 100%; max-height: 280px; width: auto; }
.ko-ml-item__media .ko-tile__ph { height: 280px; }
.ko-ml-item .ko-tile__cap { font-size: 14px; }
.ko-ml-item .ko-linkbtn { align-self: flex-start; margin-top: -8px; font-size: 13px; color: var(--ko-muted); }

/* ---------- Einzelnes Werk ---------- */
.ko-single { padding-top: 40px; padding-bottom: 120px; }
.ko-single__figure { margin: 24px 0 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ko-single__img { max-height: 80vh; width: auto; }
.ko-single__cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; }
.ko-single__title { margin: 0; font-size: 15px; font-weight: 400; }

/* ---------- Fußzeile ---------- */
.ko-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--ko-line); font-size: 13px; color: var(--ko-muted); }
.ko-footer__links { display: flex; gap: 24px; }
.ko-footer a { color: var(--ko-muted); }
.ko-footer a:hover { color: var(--ko-ink); }

/* WordPress-Standardklassen */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.wp-block-image { margin: 0; }

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