/*
Theme Name: Werkstatt
Theme URI: https://wernerwilmes.eu
Author: Werner Wilmes
Description: Schlankes Theme für „Werkstatt des Sehens“. Benötigt das Plugin „Werkstatt“.
Version: 0.2.1
Requires PHP: 8.1
Text Domain: werkstatt
*/

/* Schriften, lokal (keine Verbindung zu Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); 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; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2"); 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 {
	--ground: #F5F8FC;
	--surface: #FFFFFF;
	--line: #DCE5F2;
	--line-soft: #E6ECF5;
	--tint: #E8EFFA;
	--ink: #16243A;
	--ink-2: #23324A;
	--text: #3B4B62;
	--muted: #51627A;
	--accent: #2B49C9;
	--accent-dark: #1C3399;
	--night: #0F1825;
	--night-line: #3A4A63;
	--night-text: #B8C4D6;
	--serif: "Newsreader", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 6px;
	--wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap--schmal { max-width: 960px; }
.abschnitt { padding-top: 88px; }
.abschnitt--eng { padding-top: 56px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 4px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Kopf */
.kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.kopf__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.marke { display: flex; flex-direction: column; color: var(--ink); line-height: 1.25; }
.marke:hover { color: var(--ink); }
.marke__name { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.marke__zusatz { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.menue { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 0; padding: 0; font-size: 16px; font-weight: 500; }
.menue a { display: flex; align-items: center; gap: 6px; color: var(--ink); padding: 10px 0; border-bottom: 2px solid transparent; }
.menue a:hover, .menue .current-menu-item > a, .menue .current-menu-ancestor > a, .menue .current_page_item > a, .menue .ist-aktiv > a { color: var(--accent); }
.menue .current-menu-item > a, .menue .ist-aktiv > a { border-bottom-color: var(--accent); }
.menue .menue-neues > a { color: var(--accent); }
.menue .menue-neues > a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.menue-knopf { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; color: var(--ink); font-weight: 600; cursor: pointer; }
@media (max-width: 860px) {
	.menue-knopf { display: inline-flex; }
	.kopf nav { flex-basis: 100%; display: none; }
	.kopf.ist-offen nav { display: block; }
	.menue { flex-direction: column; gap: 0; }
	.menue a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
}

/* Typografie-Bausteine */
.oberzeile { margin: 0 0 12px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.oberzeile--grau { color: var(--muted); }
.titel-xl { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; }
.titel-l { font-size: clamp(30px, 3.6vw, 40px); }
.titel-m { font-size: 28px; line-height: 1.2; }
.lead { font-size: 18px; color: var(--text); max-width: 680px; }
.klein { font-size: 14px; color: var(--muted); }
.kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.kopfzeile a { font-size: 15px; font-weight: 600; }
.brotkrumen { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.brotkrumen span[aria-hidden] { color: #9AA8BC; }

/* Knöpfe und Chips */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #fff; padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; }
.knopf:hover { background: var(--accent-dark); color: #fff; }
.knopf--rand { background: transparent; color: var(--ink); border: 1px solid #B9C7DE; }
.knopf--rand:hover { background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
a.chip:hover, button.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Flächen */
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hinweisband { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; background: var(--tint); border-radius: var(--radius); padding: 16px 22px; font-size: 15px; }
.hinweisband a { font-weight: 600; }

/* Startseite: Bühne */
.buehne { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 32px; background: var(--tint); }
.buehne img { width: 100%; height: clamp(360px, 46vw, 600px); object-fit: cover; }
.buehne__karte { position: absolute; left: 24px; right: 24px; bottom: 24px; max-width: 560px; background: var(--surface); border-radius: 4px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.buehne__karte:hover { color: var(--ink); }
.buehne__karte .oberzeile { margin: 0; }
.buehne__titel { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.buehne__link { font-size: 15px; font-weight: 600; color: var(--accent); }
.leitspruch { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding: 36px 0 8px; }
.leitspruch > div:first-child { flex: 1 1 560px; min-width: 0; }
.leitspruch > div:last-child { flex: 0 1 380px; display: flex; flex-direction: column; gap: 16px; }
.leitspruch h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; }
.leitspruch .oberzeile { margin-bottom: 18px; }
.leitspruch p { margin: 0; color: var(--text); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Liste „Neu auf der Seite“ */
.neu-box { padding: 28px 32px; }
.neu-liste { list-style: none; margin: 0; padding: 0; }
.neu-liste li { border-top: 1px solid var(--line-soft); }
.neu-liste a { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; color: var(--ink); align-items: baseline; }
.neu-liste a:hover .neu-liste__titel { color: var(--accent); }
.neu-liste__datum { width: 110px; font-size: 14px; color: var(--muted); }
.neu-liste__typ { width: 100px; font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.neu-liste__titel { font-size: 17px; }

/* Film-Block */
.filmblock { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 28px; }
.filmblock > :first-child { flex: 1 1 560px; min-width: 0; }
.filmblock > :last-child { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.filmblock p { margin: 0; color: var(--text); font-size: 16px; }

/* Video, Zwei-Klick */
.ww-video { position: relative; border-radius: 4px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.ww-video__poster { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.ww-video:hover .ww-video__poster, .ww-video:focus-within .ww-video__poster { filter: brightness(.85); }
.ww-video__poster--leer { display: block; }
.ww-video__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ww-video__play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.ww-video:hover .ww-video__play { transform: scale(1.07); background: #fff; }
.ww-video__play::after { content: ""; position: absolute; inset: 0; }
.ww-video__hinweis { position: absolute; right: 12px; bottom: 12px; background: rgba(15,24,37,.6); color: #fff; border-radius: 3px; padding: 3px 8px; font-size: 12px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ww-video:hover .ww-video__hinweis, .ww-video:focus-within .ww-video__hinweis { opacity: 1; }
.ww-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kachel-Raster */
.raster { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.raster--klein { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kachel { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.kachel:hover { color: var(--ink); }
.kachel:hover .kachel__titel { color: var(--accent); }
.kachel__bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--line); }
.raster--klein .kachel__bild { aspect-ratio: 1 / 1; }
.kachel__meta { font-size: 13px; color: var(--muted); }
.kachel__titel { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.raster--klein .kachel__titel { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.kachel[hidden] { display: none; }

/* Breite Kachel (Lippe) */
.breitkachel { margin-top: 28px; display: flex; flex-wrap: wrap; overflow: hidden; color: var(--ink); }
.breitkachel:hover { color: var(--ink); }
.breitkachel img { flex: 1 1 480px; min-width: 0; height: 300px; object-fit: cover; }
.breitkachel > div { flex: 1 1 400px; min-width: 0; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.breitkachel p { margin: 0; color: var(--text); }

/* Drei kleine Karten */
.dreier { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.dreier .karte { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.dreier p { margin: 0; color: var(--text); font-size: 15px; }
.dreier a { font-weight: 600; font-size: 15px; }

/* Galerie */
.galerie-kopf { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; padding: 20px 0 28px; }
.galerie-kopf > div:first-child { flex: 1 1 560px; min-width: 0; }
.galerie-kopf h1 { margin-bottom: 12px; }
.bilder { columns: 3 300px; column-gap: 20px; margin-top: 32px; }
.bilder figure { margin: 0 0 20px; break-inside: avoid; }
.bilder a { display: block; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.bilder img { width: 100%; transition: opacity .15s; }
.bilder a:hover img { opacity: .9; }
.bilder figcaption { padding-top: 8px; font-size: 14px; color: var(--text); line-height: 1.45; }

/* Bildansicht */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: var(--night); color: #E9EEF6; }
.lightbox::backdrop { background: var(--night); }
.lightbox__inner { display: flex; flex-wrap: wrap; height: 100%; }
.lightbox__bildfeld { flex: 999 1 600px; min-width: 0; min-height: 50vh; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.lightbox__bild { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__bild img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--night-text); }
.lightbox__seite { flex: 1 1 320px; max-width: 440px; min-width: 0; padding: 56px 24px 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.lightbox__text { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.4; color: #fff; }
.lightbox__meta { margin: 0; font-size: 14px; color: var(--night-text); }
.knopf-hell { display: flex; justify-content: center; align-items: center; gap: 10px; background: #fff; color: var(--night); border-radius: 4px; padding: 14px 18px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; }
.knopf-hell:hover { background: #E6ECF5; color: var(--night); }
.knopf-dunkel { display: flex; justify-content: center; align-items: center; border: 1px solid #5B6E8C; color: #fff; background: none; border-radius: 4px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.knopf-dunkel:hover { border-color: #fff; color: #fff; }
.lizenzbox { border: 1px solid var(--night-line); border-radius: 4px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lizenzbox span { font-size: 13px; color: var(--night-text); }
.lizenzbox code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #fff; line-height: 1.5; }
.lizenzbox .knopf-dunkel { align-self: flex-start; }
.lightbox__zu { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: var(--night); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox a.lightbox__frage { color: #B8D0FF; font-size: 14px; }
.lightbox [hidden] { display: none !important; }
@media (max-width: 860px) {
	.lightbox__seite { max-width: none; padding-top: 8px; }
	.lightbox__bild img { max-height: 62vh; }
}

/* Text unter Galerien, Videos und Bilder im Text */
.galerie-text { max-width: 760px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.ww-video-im-text { margin: 32px 0; }
.ww-video-im-text figcaption { padding-top: 10px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.ww-textbild { display: block; cursor: zoom-in; }
.fliesstext .wp-block-gallery, .fliesstext .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 32px 0; }
.fliesstext .wp-block-gallery figure, .fliesstext .gallery figure { margin: 0; }
.fliesstext .wp-block-gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.fliesstext p.knopfzeile a { display: inline-flex; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 4px; font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; }
.fliesstext p.knopfzeile a:hover { background: var(--accent-dark); }

/* Musikarchiv */
.song-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 20px; }
.song { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.song:hover { color: var(--ink); }
.song:hover .song__titel { color: var(--accent); }
.song img, .song .platzhalter { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--line); }
.song__titel { font-weight: 600; font-size: 16px; line-height: 1.35; }
.song__info { font-size: 13px; color: var(--muted); }

/* Unterwegs-Projekt */
.sprungmarken { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.beitrag { display: flex; flex-wrap: wrap; gap: 56px; }
.beitrag__text { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.beitrag__rand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.beitrag__rand .karte { padding: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.beitrag__rand h3 { font-family: var(--sans); font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fliesstext { font-family: var(--serif); font-size: 21px; line-height: 1.65; color: var(--ink-2); }
.fliesstext h2 { font-size: 32px; margin: 1.4em 0 .5em; }
.fliesstext h3 { font-size: 26px; margin: 1.3em 0 .5em; }
.fliesstext figure { margin: 32px 0; }
.fliesstext figcaption, .fliesstext .wp-element-caption { padding-top: 10px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.fliesstext img { border-radius: 4px; width: 100%; height: auto; }
.fliesstext .wp-caption, .fliesstext figure, .fliesstext .alignleft, .fliesstext .alignright, .fliesstext .aligncenter, .fliesstext .alignnone { width: auto !important; max-width: 100%; float: none; margin: 32px 0; }
.fliesstext .wp-caption-text { padding-top: 10px; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--muted); }
.fliesstext a { text-decoration: underline; text-underline-offset: 3px; }
.fliesstext blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--line); color: var(--text); }
.mailkasten { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 28px; }
.mailkasten > div { flex: 1 1 480px; min-width: 0; }
.mailkasten p { margin: 6px 0 0; color: var(--text); font-size: 15px; }
.mehr-kachel { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: var(--tint); border-radius: 4px; font-weight: 600; font-size: 17px; }

/* Neues-Seite */
.neu-karte { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px; color: var(--ink); }
.neu-karte:hover { color: var(--ink); border-color: #B9C7DE; }
.neu-karte img, .neu-karte .platzhalter { flex: 0 0 240px; height: 150px; object-fit: cover; border-radius: 4px; background: var(--line); }
.neu-karte > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.neu-karte strong { color: var(--accent); letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }

/* Lippe */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.schritte li { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text); }
.schritte strong { color: var(--accent); }

/* Seiten */
.seite { padding-top: 48px; }
.seite h1 { margin-bottom: 24px; }

/* Fuß */
.fuss { margin-top: 96px; background: var(--ink); color: var(--line); }
.fuss__inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.fuss__inner > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fuss__inner > div:first-child { flex: 1 1 380px; }
.fuss a { color: #fff; }
.fuss a:hover { color: #B8D0FF; }
.fuss__name { font-family: var(--serif); font-size: 22px; color: #fff; }

@media (max-width: 600px) {
	.wrap { padding: 0 18px; }
	body { font-size: 16px; }
	.abschnitt { padding-top: 64px; }
	.buehne__karte { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
	.buehne__titel { font-size: 22px; }
	.neu-box, .filmblock, .mailkasten { padding: 20px; }
	.neu-karte img, .neu-karte .platzhalter { flex-basis: 100%; height: 180px; }
	.fliesstext { font-size: 19px; }
}

/* Unterseiten (z. B. Über mich) */
.unterseiten__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.unterseiten__liste a.karte { display: block; padding: 16px 20px; font-family: var(--sans); font-weight: 600; color: var(--ink); text-decoration: none; }
.unterseiten__liste a.karte:hover { color: var(--accent); }
