/* blende/style.css */
/*
Theme Name:        Blende
Theme URI:         https://example.com/blende
Author:            Blende
Description:       Ruhiges Portfolio-Theme für Fotografinnen und Fotografen. Das Bild ist die Oberfläche: Navigation schwebt als Glas-Ebene über dem Inhalt, jedes Foto trägt seine Belichtungsdaten (Blende, Zeit, ISO, Brennweite). One-Pager mit Galerien und Serien in der Lightbox, Über mich, Kontakt (optional mit Formular-Shortcode) sowie Impressum und Datenschutz – in heller und dunkler Darstellung. Gestaltet nach den Prinzipien der Apple Human Interface Guidelines.
Version:           1.2.0
Requires at least: 6.4
Tested up to:      6.8
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:       blende
Tags:              portfolio, photography, one-column, grid-layout, custom-menu, custom-logo, featured-images, block-styles, wide-blocks, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Tokens
   Farbe = eine Bedeutung. Kontraste (WCAG) stehen neben jedem Wert.
   ========================================================================== */
:root {
	/* Hell */
	--b-surface:    #fbfbfd;             /* Fläche */
	--b-surface-2:  #f2f2f5;             /* erhöhte Fläche, Karten */
	--b-content:    #1d1d1f;             /* Text 16,3:1 auf surface */
	--b-secondary:  #6e6e73;             /* Sekundärtext 4,9:1 / 4,5:1 auf surface-2 */
	--b-separator:  rgba(0, 0, 0, .1);
	--b-accent:     #0066cc;             /* nur primäre Aktion + Links, 5,4:1 */
	--b-on-accent:  #ffffff;             /* 5,6:1 auf accent */
	--b-glass:      rgba(251, 251, 253, .72);
	--b-glass-line: rgba(255, 255, 255, .5);
	--b-shadow:     0 1px 2px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.08);

	/* Typografie: Systemschrift – keine externen Fonts (DSGVO, Ladezeit) */
	--b-font:       -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--b-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--b-font-mono:  ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

	/* Skala (rem bleibt an die Browser-Schriftgröße gekoppelt) */
	--b-fs-caption: .8125rem;  /* 13px – Minimum für Zusatzinfos */
	--b-fs-body:    1.0625rem; /* 17px – Apple-Standard für Fließtext */
	--b-fs-lead:    clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
	--b-fs-h3:      clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	--b-fs-h2:      clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
	--b-fs-h1:      clamp(2.5rem, 1.6rem + 4vw, 5rem);

	/* Raster */
	--b-gutter:     clamp(1rem, .5rem + 2.5vw, 2.5rem);
	--b-content-w:  720px;
	--b-wide-w:     1280px;
	--b-radius:     14px;
	--b-radius-lg:  22px;
	--b-tap:        44px;      /* Mindest-Trefferfläche mobil */

	--b-ease:       cubic-bezier(.25, .1, .25, 1);
	--b-dur:        .35s;

	color-scheme: light dark;
}

/* Dunkel: nicht invertiert, sondern gedimmte Flächen + hellere Vordergründe */
@media (prefers-color-scheme: dark) {
	:root:not([data-appearance="light"]) {
		--b-surface:    #0a0a0b;
		--b-surface-2:  #1c1c1e;
		--b-content:    #f5f5f7;  /* 18,2:1 */
		--b-secondary:  #a1a1a6;  /* 7,7:1 / 6,6:1 auf surface-2 */
		--b-separator:  rgba(255, 255, 255, .12);
		--b-accent:     var(--b-accent-dark, #4da3ff); /* 7,5:1 */
		--b-on-accent:  var(--b-on-accent-dark, #0a0a0b);
		--b-glass:      rgba(28, 28, 30, .66);
		--b-glass-line: rgba(255, 255, 255, .08);
		--b-shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 32px rgba(0,0,0,.4);
	}
}
:root[data-appearance="dark"] {
	--b-surface:    #0a0a0b;
	--b-surface-2:  #1c1c1e;
	--b-content:    #f5f5f7;
	--b-secondary:  #a1a1a6;
	--b-separator:  rgba(255, 255, 255, .12);
	--b-accent:     var(--b-accent-dark, #4da3ff);
	--b-on-accent:  var(--b-on-accent-dark, #0a0a0b);
	--b-glass:      rgba(28, 28, 30, .66);
	--b-glass-line: rgba(255, 255, 255, .08);
	--b-shadow:     0 1px 2px rgba(0,0,0,.3), 0 8px 32px rgba(0,0,0,.4);
	color-scheme: dark;
}
:root[data-appearance="light"] { color-scheme: light; }

/* Erhöhter Kontrast */
@media (prefers-contrast: more) {
	:root { --b-secondary: var(--b-content); --b-separator: currentColor; --b-glass: var(--b-surface); }
}

/* ==========================================================================
   2. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--b-surface);
	color: var(--b-content);
	font-family: var(--b-font);
	font-size: var(--b-fs-body);
	line-height: 1.53;
	letter-spacing: -.022em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--b-accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--b-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--b-font-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.028em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: var(--b-fs-h1); letter-spacing: -.04em; line-height: 1.04; }
h2 { font-size: var(--b-fs-h2); letter-spacing: -.035em; }
h3 { font-size: var(--b-fs-h3); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

hr { border: 0; border-top: 1px solid var(--b-separator); margin: 3rem 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 18px;
	background: var(--b-surface); color: var(--b-content); border-radius: 10px; box-shadow: var(--b-shadow);
}

.b-wrap      { width: min(100% - 2 * var(--b-gutter), var(--b-wide-w)); margin-inline: auto; }
.b-wrap--txt { width: min(100% - 2 * var(--b-gutter), var(--b-content-w)); margin-inline: auto; }

.b-eyebrow {
	display: block;
	font-size: var(--b-fs-caption);
	font-weight: 600;
	color: var(--b-secondary);
	letter-spacing: 0;
	margin-bottom: .75rem;
}
.b-lead { font-size: var(--b-fs-lead); color: var(--b-secondary); line-height: 1.45; }

/* ==========================================================================
   3. Funktionsebene: schwebende Glas-Navigation
   Glas nur hier – nie im Inhalt (liquid-glass.md › Where the material belongs)
   ========================================================================== */
.b-header {
	position: fixed;
	inset: 12px 0 auto;
	z-index: 100;
	pointer-events: none;
}
.b-bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: .5rem;
	width: min(100% - 24px, var(--b-wide-w));
	margin-inline: auto;
	min-height: 52px;
	padding: 4px 4px 4px 18px;
	border-radius: 999px;
	background: var(--b-glass);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	box-shadow: var(--b-shadow), inset 0 0 0 1px var(--b-glass-line);
	color: var(--b-content);
	transition: background var(--b-dur) var(--b-ease), color var(--b-dur) var(--b-ease);
}
/* "clear"-Variante über dem Titelbild, mit 35 % Abdunklung (materials.md › Liquid Glass) */
.has-hero .b-header:not(.is-scrolled) .b-bar {
	background: rgba(0, 0, 0, .35);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.has-hero .b-header:not(.is-scrolled) .b-bar a,
.has-hero .b-header:not(.is-scrolled) .b-menu-toggle { color: #fff; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.b-bar { background: var(--b-surface); }
}
@media (prefers-reduced-transparency: reduce) {
	.b-bar, .has-hero .b-header:not(.is-scrolled) .b-bar {
		background: var(--b-surface); color: var(--b-content);
		-webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.has-hero .b-header:not(.is-scrolled) .b-bar a,
	.has-hero .b-header:not(.is-scrolled) .b-menu-toggle { color: var(--b-content); }
}

.b-brand {
	display: inline-flex; align-items: center; gap: .6rem;
	color: inherit; text-decoration: none;
	font-family: var(--b-font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em;
	min-height: var(--b-tap);
	margin-right: auto;
}
.b-brand img { max-height: 30px; width: auto; }
.b-brand__mark { width: 22px; height: 22px; flex: none; }
.b-brand__soft { font-weight: 400; opacity: .62; } /* 4,7:1 hell · 7:1 dunkel */
@media (prefers-contrast: more) { .b-brand__soft { opacity: 1; } }

.b-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.b-nav a {
	display: inline-flex; align-items: center;
	min-height: var(--b-tap); padding: 0 16px; border-radius: 999px;
	color: inherit; text-decoration: none; font-size: .9375rem; font-weight: 500;
	transition: background .2s var(--b-ease);
}
.b-nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.b-nav a[aria-current] { background: color-mix(in srgb, currentColor 14%, transparent); }
.b-nav .sub-menu { display: none; }

.b-menu-toggle {
	display: none;
	align-items: center; justify-content: center; gap: .4rem;
	min-width: var(--b-tap); min-height: var(--b-tap); padding: 0 16px;
	border: 0; border-radius: 999px; background: transparent; color: inherit;
	font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer;
}
.b-menu-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Mobil: Menü als Blatt, das unter der Leiste aufklappt */
@media (max-width: 820px) {
	.b-menu-toggle { display: inline-flex; }
	.b-nav {
		position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
		padding: 8px;
		border-radius: var(--b-radius-lg);
		background: var(--b-surface);
		color: var(--b-content);
		box-shadow: var(--b-shadow), inset 0 0 0 1px var(--b-separator);
		opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
		transition: opacity .25s var(--b-ease), transform .25s var(--b-ease), visibility 0s .25s;
		pointer-events: auto;
	}
	.b-header.is-open .b-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
	.b-nav ul { flex-direction: column; }
	.b-nav a, .has-hero .b-header:not(.is-scrolled) .b-nav a { color: var(--b-content); width: 100%; font-size: var(--b-fs-body); padding: 0 16px; border-radius: 12px; }
	.b-nav .sub-menu { display: flex; padding-left: 12px; }
}

/* ==========================================================================
   4. Titelbild (Hero)
   ========================================================================== */
.b-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	align-items: end;
	color: #fff;
	background: #111;
	overflow: hidden;
	isolation: isolate;
}
.b-hero__img {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
	animation: b-develop 1.6s var(--b-ease) both;
}
/* Verlauf garantiert Lesbarkeit des Titels, unabhängig vom Motiv */
.b-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(0,0,0,.66) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 62%),
	            linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 18%);
}
.b-hero--empty { background: radial-gradient(120% 90% at 70% 20%, #3a3a3c 0%, #111 60%); }
.b-hero__inner { padding-block: 9rem clamp(2.5rem, 6vh, 5rem); }
.b-hero h1 { max-width: 14ch; margin-bottom: .3em; color: #fff; }
.b-hero p  { max-width: 46ch; font-size: var(--b-fs-lead); color: rgba(255,255,255,.88); margin: 0; }
.b-hero__link {
	display: inline-flex; align-items: center; gap: .35rem; min-height: var(--b-tap);
	margin-top: 1.25rem; color: #fff; font-weight: 500; text-decoration: none;
}
.b-hero__link::after { content: "↓"; transition: transform .3s var(--b-ease); }
.b-hero__link:hover::after { transform: translateY(3px); }
.b-hero .b-exif { margin-top: 1.25rem; color: rgba(255,255,255,.78); }
.b-hero .b-exif::before { background: rgba(255,255,255,.78); }

/* Signatur-Moment: das Bild "entwickelt" sich – einmal, beim Laden */
@keyframes b-develop {
	from { opacity: 0; filter: grayscale(1) brightness(.6); transform: scale(1.04); }
	to   { opacity: 1; filter: none; transform: none; }
}

/* ==========================================================================
   5. Belichtungszeile (Signatur): Blende · Zeit · ISO · Brennweite
   ========================================================================== */
.b-exif {
	display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem;
	margin: .6rem 0 0;
	font-family: var(--b-font-mono);
	font-size: var(--b-fs-caption);
	letter-spacing: 0;
	color: var(--b-secondary);
	font-variant-numeric: tabular-nums;
}
.b-exif::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: var(--b-secondary); opacity: .9;
}
.b-exif span + span::before { content: "·"; margin-right: .9rem; opacity: .6; }
.b-exif__cam { font-family: var(--b-font); }
.wp-block-gallery .b-exif { display: none; } /* in Galerien zeigt die Lightbox die Daten */

/* ==========================================================================
   6. Abschnitte, Galerie-Raster (Kontaktbogen)
   ========================================================================== */
.b-main { display: block; }
.b-main [id] { scroll-margin-top: 76px; }
.b-main :focus:not(:focus-visible) { outline: none; }
.b-back {
	display: inline-flex; align-items: center; gap: .3rem; min-height: var(--b-tap);
	margin-bottom: .75rem; font-size: .9375rem; text-decoration: none;
}
.b-back::before { content: "‹"; font-size: 1.3em; line-height: 1; }
.b-legal .b-entry { font-size: 1rem; }
.b-legal .b-entry > :where(h2, h3) { font-size: var(--b-fs-h3); }
.b-section { padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.b-section + .b-section { padding-top: 0; }
.b-section__head {
	display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.b-section__head h2 { margin: 0; }
.b-section__head .b-lead { margin: .5rem 0 0; max-width: 40ch; }

.b-page-head { padding-top: calc(52px + 12px + clamp(3rem, 2rem + 5vw, 7rem)); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.b-page-head h1 { margin-bottom: .2em; }
.b-page-head .b-lead { max-width: 52ch; margin: .75rem 0 0; }

/* Mauerwerk mit natürlichen Seitenverhältnissen – das Foto bestimmt die Form */
.b-grid {
	columns: 3 320px;
	column-gap: clamp(12px, 1.5vw, 24px);
}
.b-grid > * { break-inside: avoid; margin-bottom: clamp(28px, 3vw, 48px); }

.b-card { display: block; color: inherit; text-decoration: none; }
.b-card__media {
	position: relative; overflow: hidden;
	border-radius: var(--b-radius);
	background: var(--b-surface-2);
}
.b-card__media img {
	width: 100%;
	transition: transform .8s var(--b-ease), filter .4s var(--b-ease);
}
.b-card:hover .b-card__media img { transform: scale(1.025); }
.b-card__title { font-size: 1.1875rem; font-weight: 600; margin: 1rem 0 .15rem; letter-spacing: -.02em; }
.b-card__meta { font-size: .9375rem; color: var(--b-secondary); margin: 0; }
.b-card__excerpt { font-size: .9375rem; color: var(--b-secondary); margin: .5rem 0 0; }
.b-card__count {
	position: absolute; right: 10px; bottom: 10px;
	padding: 4px 10px; border-radius: 999px;
	font-size: var(--b-fs-caption); font-weight: 600; color: #fff;
	background: rgba(0,0,0,.5);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* Segmentierte Steuerung: filtert die Kacheln auf derselben Seite */
.b-segments {
	display: inline-flex; flex-wrap: wrap; gap: 2px;
	padding: 3px; border-radius: 12px;
	background: var(--b-surface-2);
}
.b-segments button {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
	border: 0; border-radius: 9px; background: transparent; color: var(--b-content);
	font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer;
	transition: background .2s var(--b-ease);
}
.b-segments button:hover { background: color-mix(in srgb, var(--b-content) 6%, transparent); }
.b-segments button[aria-pressed="true"] { background: var(--b-surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
@media (pointer: coarse) { .b-segments button { min-height: var(--b-tap); } }

/* Über mich */
.b-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.b-about__img { border-radius: var(--b-radius-lg); overflow: hidden; background: var(--b-surface-2); }
.b-about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.b-about__txt { font-size: var(--b-fs-lead); line-height: 1.5; }
.b-about__txt p { color: var(--b-secondary); }
.b-about__txt p:first-of-type { color: var(--b-content); }
@media (max-width: 760px) { .b-about { grid-template-columns: 1fr; } }
.b-about--noimg { grid-template-columns: 1fr; max-width: var(--b-content-w); }

/* Kontakt-Aufruf: die eine prominente Aktion der Seite */
.b-cta {
	text-align: center;
	padding: clamp(3.5rem, 3rem + 5vw, 7rem) var(--b-gutter);
	border-radius: var(--b-radius-lg);
	background: var(--b-surface-2);
}
.b-cta h2 { margin-inline: auto; max-width: 18ch; }
.b-cta .b-lead { margin: 0 auto 2rem; max-width: 46ch; }

/* Kontaktdaten als ruhige Liste: Bezeichnung links, Wert rechts */
.b-contact {
	list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 440px;
	text-align: left; font-size: 1.0625rem;
}
.b-contact li {
	display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline;
	padding: .7rem 0; border-top: 1px solid var(--b-separator);
}
.b-contact li:last-child { border-bottom: 1px solid var(--b-separator); }
.b-contact li > span { font-size: .9375rem; color: var(--b-secondary); }
.b-contact a { color: var(--b-content); text-decoration-color: var(--b-separator); }
.b-contact a:hover { color: var(--b-accent); }

/* Mit Formular: zweispaltig, Text links */
.b-cta--form {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem);
	text-align: left; padding: clamp(2rem, 1.5rem + 4vw, 5rem);
}
.b-cta--form h2, .b-cta--form .b-lead, .b-cta--form .b-contact { margin-inline: 0; }
.b-cta__form p { margin-bottom: 1rem; }
.b-cta__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .b-cta__form textarea, .b-cta__form select { background: var(--b-surface); }
.b-cta__form textarea { min-height: 9rem; }
@media (max-width: 820px) { .b-cta--form { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.b-btn,
.wp-block-button__link,
input[type="submit"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: var(--b-tap); padding: 0 22px;
	border: 0; border-radius: 999px;
	background: var(--b-accent); color: var(--b-on-accent);
	font: inherit; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em;
	text-decoration: none; cursor: pointer;
	transition: filter .2s var(--b-ease), transform .2s var(--b-ease);
}
.b-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:hover { filter: brightness(1.08); text-decoration: none; }
.b-btn:active, .wp-block-button__link:active { transform: scale(.98); }
.b-btn--plain { background: transparent; color: var(--b-accent); padding: 0 6px; }
.b-btn--plain::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--b-accent); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ==========================================================================
   8. Einzelansicht & Inhalt
   ========================================================================== */
.b-entry > * { width: min(100% - 2 * var(--b-gutter), var(--b-content-w)); margin-inline: auto; }
.b-entry > .alignwide { width: min(100% - 2 * var(--b-gutter), var(--b-wide-w)); }
.b-entry > .alignfull { width: 100%; }
.b-entry > * + * { margin-top: 1.4em; }
.b-entry > :where(h2, h3, h4) { margin-top: 2.2em; }
.b-entry > .wp-block-gallery, .b-entry > .wp-block-image, .b-entry > figure { margin-top: clamp(2rem, 4vw, 3.5rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.b-entry ul, .b-entry ol { padding-left: 1.3em; }
.b-entry blockquote {
	margin-block: 2.5rem; padding: 0; border: 0;
	font-family: var(--b-font-display); font-size: var(--b-fs-h3); font-weight: 500; line-height: 1.35; letter-spacing: -.02em;
}
.b-entry blockquote cite { display: block; margin-top: .75rem; font-size: .9375rem; font-style: normal; color: var(--b-secondary); font-family: var(--b-font); }

.wp-block-image img, .wp-block-gallery img { border-radius: 10px; }
.alignfull.wp-block-image img, .alignfull .wp-block-image img { border-radius: 0; }
.wp-block-image figcaption, .wp-block-gallery figcaption, .wp-element-caption {
	font-size: var(--b-fs-caption); color: var(--b-secondary); text-align: left; margin-top: .6rem;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { border-radius: 0 0 10px 10px; }
.wp-block-gallery { --wp--style--unstable-gallery-gap: clamp(8px, 1.2vw, 16px); gap: clamp(8px, 1.2vw, 16px); }
.b-zoomable { cursor: zoom-in; }

.wp-block-separator { border: 0; border-top: 1px solid var(--b-separator); }
.wp-block-pullquote { border-block: 1px solid var(--b-separator); }
code, pre, kbd { font-family: var(--b-font-mono); font-size: .9em; }
pre { background: var(--b-surface-2); padding: 1rem 1.25rem; border-radius: var(--b-radius); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--b-separator); text-align: left; }

.b-meta { font-size: .9375rem; color: var(--b-secondary); }
.b-single-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--b-secondary); font-size: .9375rem; margin-top: 1rem; }
.b-single-meta a { color: inherit; }
.b-featured { width: min(100% - 2 * var(--b-gutter), var(--b-wide-w)); margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.b-featured img { border-radius: var(--b-radius-lg); width: 100%; }

/* Formulare */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; min-height: var(--b-tap); padding: 10px 14px;
	border: 1px solid var(--b-separator); border-radius: 12px;
	background: var(--b-surface-2); color: var(--b-content);
	font: inherit; font-size: 1.0625rem; /* ≥16px: kein Auto-Zoom auf iOS */
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }
label { font-size: .9375rem; font-weight: 500; display: inline-block; margin-bottom: .35rem; }
/* Leerzustände */
.b-empty { text-align: center; padding: 4rem 0; color: var(--b-secondary); }
.b-empty h2 { color: var(--b-content); }

/* ==========================================================================
   9. Fußzeile
   ========================================================================== */
.b-footer {
	margin-top: clamp(4rem, 8vw, 8rem);
	padding-block: 2.5rem 3rem;
	border-top: 1px solid var(--b-separator);
	font-size: .9375rem;
	color: var(--b-secondary);
}
.b-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.b-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.b-footer a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--b-tap); }
.b-footer a:hover { color: var(--b-content); text-decoration: underline; }
.home .b-footer { margin-top: 0; }

/* ==========================================================================
   10. Lightbox – Vollbild, Inhalt im Mittelpunkt, Steuerung als Glas darüber
   ========================================================================== */
.b-lightbox {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; grid-template-rows: 1fr auto;
	background: #000; /* reines Schwarz: nichts konkurriert mit dem Foto */
	color: #f5f5f7;
	opacity: 0; visibility: hidden;
	transition: opacity .3s var(--b-ease), visibility 0s .3s;
	touch-action: pan-y;
}
.b-lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.b-lightbox__stage { position: relative; display: grid; place-items: center; padding: 64px clamp(8px, 6vw, 96px) 8px; min-height: 0; }
.b-lightbox__img {
	max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
	width: auto; height: auto; object-fit: contain; border-radius: 4px;
	transition: opacity .25s var(--b-ease), transform .25s var(--b-ease);
}
.b-lightbox__img.is-loading { opacity: 0; transform: scale(.985); }
.b-lightbox__info {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
	padding: 14px clamp(16px, 6vw, 96px) max(20px, env(safe-area-inset-bottom));
	font-size: .9375rem;
}
.b-lightbox__title { margin: 0 0 .15rem; font-weight: 600; color: #f5f5f7; }
.b-lightbox__caption { color: #d1d1d6; margin: 0; max-width: 70ch; }
.b-lightbox .b-exif { margin: 0; color: #a1a1a6; }
.b-lightbox .b-exif::before { background: #a1a1a6; }
.b-lightbox__count { font-family: var(--b-font-mono); font-size: var(--b-fs-caption); color: #a1a1a6; font-variant-numeric: tabular-nums; }
.b-lb-btn {
	position: absolute; z-index: 2;
	display: grid; place-items: center;
	width: var(--b-tap); height: var(--b-tap); border: 0; border-radius: 50%;
	background: rgba(60, 60, 67, .6); color: #fff; cursor: pointer;
	-webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
	transition: background .2s var(--b-ease);
}
.b-lb-btn:hover { background: rgba(90, 90, 96, .75); }
.b-lb-btn svg { width: 20px; height: 20px; }
.b-lb-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.b-lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.b-lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }
.b-lightbox[data-single] .b-lb-prev, .b-lightbox[data-single] .b-lb-next, .b-lightbox[data-single] .b-lightbox__count { display: none; }
@media (max-width: 600px) { .b-lb-prev, .b-lb-next { top: auto; bottom: 76px; transform: none; } }
body.b-noscroll { overflow: hidden; }

/* ==========================================================================
   11. Bewegung: sparsam, abschaltbar
   ========================================================================== */
.b-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--b-ease), transform .7s var(--b-ease); }
.b-reveal.is-visible { opacity: 1; transform: none; }
.no-js .b-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.b-reveal { opacity: 1; transform: none; }
	.b-card:hover .b-card__media img { transform: none; }
}

/* WordPress-Kernklassen */
.alignleft  { float: left;  margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.sticky, .bypostauthor, .gallery-caption, .wp-caption, .wp-caption-text { }

@media print {
	.b-header, .b-footer, .b-lightbox { display: none !important; }
	body { background: #fff; color: #000; }
}
